LEEHSIEHJUI před 10 měsíci
revize
f076f08db3
41 změnil soubory, kde provedl 1816 přidání a 0 odebrání
  1. binární
      .vs/GCM-SQL-MGMT/FileContentIndex/05f9e506-b398-48f9-b414-57225ac86b93.vsidx
  2. binární
      .vs/GCM-SQL-MGMT/FileContentIndex/12f338ff-31e4-414e-81a1-7bddd8305952.vsidx
  3. binární
      .vs/GCM-SQL-MGMT/FileContentIndex/8ade44fe-ba2b-4478-8044-044b9256df38.vsidx
  4. binární
      .vs/GCM-SQL-MGMT/FileContentIndex/e8cd2318-3269-45bb-b013-c0928c42d57c.vsidx
  5. binární
      .vs/GCM-SQL-MGMT/FileContentIndex/eb941f84-28b3-4b24-803b-47d3f47355ff.vsidx
  6. binární
      .vs/GCM-SQL-MGMT/v17/.suo
  7. 106
    0
      .vs/GCM-SQL-MGMT/v17/DocumentLayout.json
  8. 25
    0
      GCM-SQL-MGMT.sln
  9. 6
    0
      GCM-SQL-MGMT/App.config
  10. 133
    0
      GCM-SQL-MGMT/GCM-SQL-MGMT.vbproj
  11. 498
    0
      GCM-SQL-MGMT/GCM_SQL_MGMT.Designer.vb
  12. 215
    0
      GCM-SQL-MGMT/GCM_SQL_MGMT.resx
  13. 216
    0
      GCM-SQL-MGMT/GCM_SQL_MGMT.vb
  14. 44
    0
      GCM-SQL-MGMT/My Project/Application.Designer.vb
  15. 12
    0
      GCM-SQL-MGMT/My Project/Application.myapp
  16. 35
    0
      GCM-SQL-MGMT/My Project/AssemblyInfo.vb
  17. 62
    0
      GCM-SQL-MGMT/My Project/Resources.Designer.vb
  18. 117
    0
      GCM-SQL-MGMT/My Project/Resources.resx
  19. 73
    0
      GCM-SQL-MGMT/My Project/Settings.Designer.vb
  20. 7
    0
      GCM-SQL-MGMT/My Project/Settings.settings
  21. binární
      GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.exe
  22. 6
    0
      GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.exe.config
  23. binární
      GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.pdb
  24. 26
    0
      GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.xml
  25. binární
      GCM-SQL-MGMT/bitbug_favicon.ico
  26. 7
    0
      GCM-SQL-MGMT/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb
  27. binární
      GCM-SQL-MGMT/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  28. binární
      GCM-SQL-MGMT/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  29. binární
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.exe
  30. binární
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.pdb
  31. binární
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.AssemblyReference.cache
  32. 1
    0
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.CoreCompileInputs.cache
  33. 12
    0
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.FileListAbsolute.txt
  34. binární
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.GenerateResource.cache
  35. 26
    0
      GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.xml
  36. binární
      GCM-SQL-MGMT/obj/Debug/GCM_SQL_MGMT.GCM_SQL_MGMT.resources
  37. binární
      GCM-SQL-MGMT/obj/Debug/GCM_SQL_MGMT.Resources.resources
  38. binární
      GCM-SQL-MGMT/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll
  39. 61
    0
      GCM-SQL-MGMT/模組/DGV進度條.vb
  40. 36
    0
      GCM-SQL-MGMT/模組/SQL_Module.vb
  41. 92
    0
      GCM-SQL-MGMT/模組/SQL_語法1.vb

binární
.vs/GCM-SQL-MGMT/FileContentIndex/05f9e506-b398-48f9-b414-57225ac86b93.vsidx Zobrazit soubor


binární
.vs/GCM-SQL-MGMT/FileContentIndex/12f338ff-31e4-414e-81a1-7bddd8305952.vsidx Zobrazit soubor


binární
.vs/GCM-SQL-MGMT/FileContentIndex/8ade44fe-ba2b-4478-8044-044b9256df38.vsidx Zobrazit soubor


binární
.vs/GCM-SQL-MGMT/FileContentIndex/e8cd2318-3269-45bb-b013-c0928c42d57c.vsidx Zobrazit soubor


binární
.vs/GCM-SQL-MGMT/FileContentIndex/eb941f84-28b3-4b24-803b-47d3f47355ff.vsidx Zobrazit soubor


binární
.vs/GCM-SQL-MGMT/v17/.suo Zobrazit soubor


+ 106
- 0
.vs/GCM-SQL-MGMT/v17/DocumentLayout.json Zobrazit soubor

@@ -0,0 +1,106 @@
1
+{
2
+  "Version": 1,
3
+  "WorkspaceRootPath": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\",
4
+  "Documents": [
5
+    {
6
+      "AbsoluteMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|d:\\\u5DE5\u5DE7\u660E\\gcm\\gcm-sql-mgmt\\gcm-sql-mgmt\\gcm_sql_mgmt.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
7
+      "RelativeMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|solutionrelative:gcm-sql-mgmt\\gcm_sql_mgmt.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
8
+    },
9
+    {
10
+      "AbsoluteMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\gcm-sql-mgmt\\gcm_sql_mgmt.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}|Form",
11
+      "RelativeMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|solutionrelative:gcm-sql-mgmt\\gcm_sql_mgmt.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}|Form"
12
+    },
13
+    {
14
+      "AbsoluteMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\gcm-sql-mgmt\\\u6A21\u7D44\\sql_\u8A9E\u6CD51.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
15
+      "RelativeMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|solutionrelative:gcm-sql-mgmt\\\u6A21\u7D44\\sql_\u8A9E\u6CD51.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
16
+    },
17
+    {
18
+      "AbsoluteMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\gcm-sql-mgmt\\\u6A21\u7D44\\sql_module.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
19
+      "RelativeMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|solutionrelative:gcm-sql-mgmt\\\u6A21\u7D44\\sql_module.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
20
+    },
21
+    {
22
+      "AbsoluteMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\gcm-sql-mgmt\\\u6A21\u7D44\\dgv\u9032\u5EA6\u689D.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
23
+      "RelativeMoniker": "D:0:0:{DB565456-ADDB-4860-B343-5192C9169D11}|GCM-SQL-MGMT\\GCM-SQL-MGMT.vbproj|solutionrelative:gcm-sql-mgmt\\\u6A21\u7D44\\dgv\u9032\u5EA6\u689D.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
24
+    }
25
+  ],
26
+  "DocumentGroupContainers": [
27
+    {
28
+      "Orientation": 0,
29
+      "VerticalTabListWidth": 256,
30
+      "DocumentGroups": [
31
+        {
32
+          "DockedWidth": 200,
33
+          "SelectedChildIndex": 4,
34
+          "Children": [
35
+            {
36
+              "$type": "Bookmark",
37
+              "Name": "ST:0:0:{004be353-6879-467c-9d1e-9ac23cdf6d49}"
38
+            },
39
+            {
40
+              "$type": "Document",
41
+              "DocumentIndex": 4,
42
+              "Title": "DGV\u9032\u5EA6\u689D.vb",
43
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\DGV\u9032\u5EA6\u689D.vb",
44
+              "RelativeDocumentMoniker": "GCM-SQL-MGMT\\\u6A21\u7D44\\DGV\u9032\u5EA6\u689D.vb",
45
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\DGV\u9032\u5EA6\u689D.vb",
46
+              "RelativeToolTip": "GCM-SQL-MGMT\\\u6A21\u7D44\\DGV\u9032\u5EA6\u689D.vb",
47
+              "ViewState": "AQIAAAAAAAAAAAAAAAAAACAAAAA8AAAA",
48
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
49
+              "WhenOpened": "2024-01-08T05:56:54.472Z"
50
+            },
51
+            {
52
+              "$type": "Document",
53
+              "DocumentIndex": 3,
54
+              "Title": "SQL_Module.vb",
55
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_Module.vb",
56
+              "RelativeDocumentMoniker": "GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_Module.vb",
57
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_Module.vb",
58
+              "RelativeToolTip": "GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_Module.vb",
59
+              "ViewState": "AQIAAAAAAAAAAAAAAAAwwBUAAAA9AAAA",
60
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
61
+              "WhenOpened": "2024-01-08T05:41:25.353Z"
62
+            },
63
+            {
64
+              "$type": "Document",
65
+              "DocumentIndex": 2,
66
+              "Title": "SQL_\u8A9E\u6CD51.vb",
67
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_\u8A9E\u6CD51.vb",
68
+              "RelativeDocumentMoniker": "GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_\u8A9E\u6CD51.vb",
69
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_\u8A9E\u6CD51.vb",
70
+              "RelativeToolTip": "GCM-SQL-MGMT\\\u6A21\u7D44\\SQL_\u8A9E\u6CD51.vb",
71
+              "ViewState": "AQIAAAAAAAAAAAAAAAAwwA0AAAAAAAAA",
72
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
73
+              "WhenOpened": "2024-01-08T05:40:52.035Z",
74
+              "EditorCaption": ""
75
+            },
76
+            {
77
+              "$type": "Document",
78
+              "DocumentIndex": 0,
79
+              "Title": "GCM_SQL_MGMT.vb",
80
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
81
+              "RelativeDocumentMoniker": "GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
82
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
83
+              "RelativeToolTip": "GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
84
+              "ViewState": "AQIAAAAAAAAAAAAAAAAAAAEAAAAAAAAA",
85
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
86
+              "WhenOpened": "2024-01-08T05:05:39.353Z",
87
+              "EditorCaption": ""
88
+            },
89
+            {
90
+              "$type": "Document",
91
+              "DocumentIndex": 1,
92
+              "Title": "GCM_SQL_MGMT.vb [\u8A2D\u8A08]",
93
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
94
+              "RelativeDocumentMoniker": "GCM-SQL-MGMT\\GCM_SQL_MGMT.vb",
95
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\GCM\\GCM-SQL-MGMT\\GCM-SQL-MGMT\\GCM_SQL_MGMT.vb [\u8A2D\u8A08]",
96
+              "RelativeToolTip": "GCM-SQL-MGMT\\GCM_SQL_MGMT.vb [\u8A2D\u8A08]",
97
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
98
+              "WhenOpened": "2024-01-08T05:05:08.941Z",
99
+              "EditorCaption": " [\u8A2D\u8A08]"
100
+            }
101
+          ]
102
+        }
103
+      ]
104
+    }
105
+  ]
106
+}

+ 25
- 0
GCM-SQL-MGMT.sln Zobrazit soubor

@@ -0,0 +1,25 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 12.00
3
+# Visual Studio Version 17
4
+VisualStudioVersion = 17.8.34330.188
5
+MinimumVisualStudioVersion = 10.0.40219.1
6
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "GCM-SQL-MGMT", "GCM-SQL-MGMT\GCM-SQL-MGMT.vbproj", "{DB565456-ADDB-4860-B343-5192C9169D11}"
7
+EndProject
8
+Global
9
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+		Debug|Any CPU = Debug|Any CPU
11
+		Release|Any CPU = Release|Any CPU
12
+	EndGlobalSection
13
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+		{DB565456-ADDB-4860-B343-5192C9169D11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+		{DB565456-ADDB-4860-B343-5192C9169D11}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+		{DB565456-ADDB-4860-B343-5192C9169D11}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+		{DB565456-ADDB-4860-B343-5192C9169D11}.Release|Any CPU.Build.0 = Release|Any CPU
18
+	EndGlobalSection
19
+	GlobalSection(SolutionProperties) = preSolution
20
+		HideSolutionNode = FALSE
21
+	EndGlobalSection
22
+	GlobalSection(ExtensibilityGlobals) = postSolution
23
+		SolutionGuid = {E53B3A4D-DCC1-44F8-A94F-070E71D53444}
24
+	EndGlobalSection
25
+EndGlobal

+ 6
- 0
GCM-SQL-MGMT/App.config Zobrazit soubor

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<configuration>
3
+    <startup>
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
5
+    </startup>
6
+</configuration>

+ 133
- 0
GCM-SQL-MGMT/GCM-SQL-MGMT.vbproj Zobrazit soubor

@@ -0,0 +1,133 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProjectGuid>{DB565456-ADDB-4860-B343-5192C9169D11}</ProjectGuid>
8
+    <OutputType>WinExe</OutputType>
9
+    <StartupObject>GCM_SQL_MGMT.My.MyApplication</StartupObject>
10
+    <RootNamespace>GCM_SQL_MGMT</RootNamespace>
11
+    <AssemblyName>GCM-SQL-MGMT</AssemblyName>
12
+    <FileAlignment>512</FileAlignment>
13
+    <MyType>WindowsForms</MyType>
14
+    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
15
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16
+    <Deterministic>true</Deterministic>
17
+  </PropertyGroup>
18
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19
+    <PlatformTarget>AnyCPU</PlatformTarget>
20
+    <DebugSymbols>true</DebugSymbols>
21
+    <DebugType>full</DebugType>
22
+    <DefineDebug>true</DefineDebug>
23
+    <DefineTrace>true</DefineTrace>
24
+    <OutputPath>bin\Debug\</OutputPath>
25
+    <DocumentationFile>GCM-SQL-MGMT.xml</DocumentationFile>
26
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
27
+  </PropertyGroup>
28
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29
+    <PlatformTarget>AnyCPU</PlatformTarget>
30
+    <DebugType>pdbonly</DebugType>
31
+    <DefineDebug>false</DefineDebug>
32
+    <DefineTrace>true</DefineTrace>
33
+    <Optimize>true</Optimize>
34
+    <OutputPath>bin\Release\</OutputPath>
35
+    <DocumentationFile>GCM-SQL-MGMT.xml</DocumentationFile>
36
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
37
+  </PropertyGroup>
38
+  <PropertyGroup>
39
+    <OptionExplicit>On</OptionExplicit>
40
+  </PropertyGroup>
41
+  <PropertyGroup>
42
+    <OptionCompare>Binary</OptionCompare>
43
+  </PropertyGroup>
44
+  <PropertyGroup>
45
+    <OptionStrict>Off</OptionStrict>
46
+  </PropertyGroup>
47
+  <PropertyGroup>
48
+    <OptionInfer>On</OptionInfer>
49
+  </PropertyGroup>
50
+  <PropertyGroup>
51
+    <ApplicationIcon>bitbug_favicon.ico</ApplicationIcon>
52
+  </PropertyGroup>
53
+  <ItemGroup>
54
+    <Reference Include="System" />
55
+    <Reference Include="System.Data" />
56
+    <Reference Include="System.Deployment" />
57
+    <Reference Include="System.Drawing" />
58
+    <Reference Include="System.Windows.Forms" />
59
+    <Reference Include="System.Xml" />
60
+    <Reference Include="System.Core" />
61
+    <Reference Include="System.Xml.Linq" />
62
+    <Reference Include="System.Data.DataSetExtensions" />
63
+    <Reference Include="System.Net.Http" />
64
+  </ItemGroup>
65
+  <ItemGroup>
66
+    <Import Include="Microsoft.VisualBasic" />
67
+    <Import Include="System" />
68
+    <Import Include="System.Collections" />
69
+    <Import Include="System.Collections.Generic" />
70
+    <Import Include="System.Data" />
71
+    <Import Include="System.Drawing" />
72
+    <Import Include="System.Diagnostics" />
73
+    <Import Include="System.Windows.Forms" />
74
+    <Import Include="System.Linq" />
75
+    <Import Include="System.Xml.Linq" />
76
+    <Import Include="System.Threading.Tasks" />
77
+  </ItemGroup>
78
+  <ItemGroup>
79
+    <Compile Include="模組\DGV進度條.vb" />
80
+    <Compile Include="GCM_SQL_MGMT.vb">
81
+      <SubType>Form</SubType>
82
+    </Compile>
83
+    <Compile Include="GCM_SQL_MGMT.Designer.vb">
84
+      <DependentUpon>GCM_SQL_MGMT.vb</DependentUpon>
85
+      <SubType>Form</SubType>
86
+    </Compile>
87
+    <Compile Include="My Project\AssemblyInfo.vb" />
88
+    <Compile Include="My Project\Application.Designer.vb">
89
+      <AutoGen>True</AutoGen>
90
+      <DependentUpon>Application.myapp</DependentUpon>
91
+      <DesignTime>True</DesignTime>
92
+    </Compile>
93
+    <Compile Include="My Project\Resources.Designer.vb">
94
+      <AutoGen>True</AutoGen>
95
+      <DesignTime>True</DesignTime>
96
+      <DependentUpon>Resources.resx</DependentUpon>
97
+    </Compile>
98
+    <Compile Include="My Project\Settings.Designer.vb">
99
+      <AutoGen>True</AutoGen>
100
+      <DependentUpon>Settings.settings</DependentUpon>
101
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
102
+    </Compile>
103
+    <Compile Include="模組\SQL_Module.vb" />
104
+    <Compile Include="模組\SQL_語法1.vb" />
105
+  </ItemGroup>
106
+  <ItemGroup>
107
+    <EmbeddedResource Include="GCM_SQL_MGMT.resx">
108
+      <DependentUpon>GCM_SQL_MGMT.vb</DependentUpon>
109
+    </EmbeddedResource>
110
+    <EmbeddedResource Include="My Project\Resources.resx">
111
+      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
112
+      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
113
+      <CustomToolNamespace>My.Resources</CustomToolNamespace>
114
+      <SubType>Designer</SubType>
115
+    </EmbeddedResource>
116
+  </ItemGroup>
117
+  <ItemGroup>
118
+    <None Include="My Project\Application.myapp">
119
+      <Generator>MyApplicationCodeGenerator</Generator>
120
+      <LastGenOutput>Application.Designer.vb</LastGenOutput>
121
+    </None>
122
+    <None Include="My Project\Settings.settings">
123
+      <Generator>SettingsSingleFileGenerator</Generator>
124
+      <CustomToolNamespace>My</CustomToolNamespace>
125
+      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
126
+    </None>
127
+    <None Include="App.config" />
128
+  </ItemGroup>
129
+  <ItemGroup>
130
+    <Content Include="bitbug_favicon.ico" />
131
+  </ItemGroup>
132
+  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
133
+</Project>

+ 498
- 0
GCM-SQL-MGMT/GCM_SQL_MGMT.Designer.vb Zobrazit soubor

@@ -0,0 +1,498 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class GCM_SQL_MGMT
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
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(GCM_SQL_MGMT))
36
+        Me.選擇_tb = New System.Windows.Forms.TextBox()
37
+        Me.資料庫清單1_dgv = New System.Windows.Forms.DataGridView()
38
+        Me.LOG檔截斷3_bt = New System.Windows.Forms.Button()
39
+        Me.伺服器狀態_dgv = New System.Windows.Forms.DataGridView()
40
+        Me.圖片資料庫管理修改_bt = New System.Windows.Forms.Button()
41
+        Me.圖片資料庫名稱_lb = New System.Windows.Forms.Label()
42
+        Me.圖片資料庫名稱_tb = New System.Windows.Forms.TextBox()
43
+        Me.圖片資料庫管理_dgv = New System.Windows.Forms.DataGridView()
44
+        Me.重新讀取_bt = New System.Windows.Forms.Button()
45
+        Me.伺服器_lb = New System.Windows.Forms.Label()
46
+        Me.MAX_nud = New System.Windows.Forms.NumericUpDown()
47
+        Me.是否可用_ch = New System.Windows.Forms.CheckBox()
48
+        Me.資料庫_dgv = New System.Windows.Forms.DataGridView()
49
+        Me.地點 = New System.Windows.Forms.DataGridViewTextBoxColumn()
50
+        Me.位置 = New System.Windows.Forms.DataGridViewTextBoxColumn()
51
+        Me.代表庫 = New System.Windows.Forms.DataGridViewTextBoxColumn()
52
+        Me.可執行 = New System.Windows.Forms.DataGridViewCheckBoxColumn()
53
+        Me.帳號 = New System.Windows.Forms.DataGridViewTextBoxColumn()
54
+        Me.密碼 = New System.Windows.Forms.DataGridViewTextBoxColumn()
55
+        Me.IP_tb = New System.Windows.Forms.TextBox()
56
+        Me.資料庫_tb = New System.Windows.Forms.TextBox()
57
+        Me.帳號_tb = New System.Windows.Forms.TextBox()
58
+        Me.密碼_tb = New System.Windows.Forms.TextBox()
59
+        Me.可執行_cb = New System.Windows.Forms.CheckBox()
60
+        Me.地點_tb = New System.Windows.Forms.TextBox()
61
+        Me.文件資料庫管理修改_bt = New System.Windows.Forms.Button()
62
+        Me.文件資料庫名稱_lb = New System.Windows.Forms.Label()
63
+        Me.文件資料庫名稱_tb = New System.Windows.Forms.TextBox()
64
+        Me.文件資料庫管理_dgv = New System.Windows.Forms.DataGridView()
65
+        Me.是否可用1_ch = New System.Windows.Forms.CheckBox()
66
+        CType(Me.資料庫清單1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
67
+        CType(Me.伺服器狀態_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
68
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
69
+        CType(Me.MAX_nud, System.ComponentModel.ISupportInitialize).BeginInit()
70
+        CType(Me.資料庫_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
71
+        CType(Me.文件資料庫管理_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
72
+        Me.SuspendLayout()
73
+        '
74
+        '選擇_tb
75
+        '
76
+        Me.選擇_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
77
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
78
+        Me.選擇_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
79
+        Me.選擇_tb.Location = New System.Drawing.Point(544, 401)
80
+        Me.選擇_tb.Margin = New System.Windows.Forms.Padding(5)
81
+        Me.選擇_tb.Name = "選擇_tb"
82
+        Me.選擇_tb.Size = New System.Drawing.Size(164, 23)
83
+        Me.選擇_tb.TabIndex = 1519
84
+        '
85
+        '資料庫清單1_dgv
86
+        '
87
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.White
88
+        Me.資料庫清單1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
89
+        Me.資料庫清單1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
90
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
91
+        Me.資料庫清單1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
92
+        Me.資料庫清單1_dgv.BackgroundColor = System.Drawing.Color.White
93
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
94
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.White
95
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
96
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText
97
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
98
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
99
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
100
+        Me.資料庫清單1_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2
101
+        Me.資料庫清單1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
102
+        Me.資料庫清單1_dgv.Location = New System.Drawing.Point(541, 425)
103
+        Me.資料庫清單1_dgv.Name = "資料庫清單1_dgv"
104
+        Me.資料庫清單1_dgv.RowHeadersWidth = 5
105
+        Me.資料庫清單1_dgv.RowTemplate.Height = 24
106
+        Me.資料庫清單1_dgv.Size = New System.Drawing.Size(249, 301)
107
+        Me.資料庫清單1_dgv.TabIndex = 1518
108
+        '
109
+        'LOG檔截斷3_bt
110
+        '
111
+        Me.LOG檔截斷3_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
112
+        Me.LOG檔截斷3_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
113
+        Me.LOG檔截斷3_bt.Location = New System.Drawing.Point(708, 401)
114
+        Me.LOG檔截斷3_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
115
+        Me.LOG檔截斷3_bt.Name = "LOG檔截斷3_bt"
116
+        Me.LOG檔截斷3_bt.Size = New System.Drawing.Size(80, 23)
117
+        Me.LOG檔截斷3_bt.TabIndex = 1517
118
+        Me.LOG檔截斷3_bt.Text = "LOG檔截斷"
119
+        '
120
+        '伺服器狀態_dgv
121
+        '
122
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.White
123
+        Me.伺服器狀態_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
124
+        Me.伺服器狀態_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
125
+            Or System.Windows.Forms.AnchorStyles.Left) _
126
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
127
+        Me.伺服器狀態_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
128
+        Me.伺服器狀態_dgv.BackgroundColor = System.Drawing.Color.White
129
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
130
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
131
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
132
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
133
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
134
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
135
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
136
+        Me.伺服器狀態_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
137
+        Me.伺服器狀態_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
138
+        Me.伺服器狀態_dgv.Location = New System.Drawing.Point(541, 26)
139
+        Me.伺服器狀態_dgv.Name = "伺服器狀態_dgv"
140
+        Me.伺服器狀態_dgv.RowHeadersWidth = 5
141
+        Me.伺服器狀態_dgv.RowTemplate.Height = 24
142
+        Me.伺服器狀態_dgv.Size = New System.Drawing.Size(804, 371)
143
+        Me.伺服器狀態_dgv.TabIndex = 1508
144
+        '
145
+        '圖片資料庫管理修改_bt
146
+        '
147
+        Me.圖片資料庫管理修改_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
148
+        Me.圖片資料庫管理修改_bt.Location = New System.Drawing.Point(884, 423)
149
+        Me.圖片資料庫管理修改_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
150
+        Me.圖片資料庫管理修改_bt.Name = "圖片資料庫管理修改_bt"
151
+        Me.圖片資料庫管理修改_bt.Size = New System.Drawing.Size(184, 24)
152
+        Me.圖片資料庫管理修改_bt.TabIndex = 1516
153
+        Me.圖片資料庫管理修改_bt.Text = "修改"
154
+        '
155
+        '圖片資料庫名稱_lb
156
+        '
157
+        Me.圖片資料庫名稱_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
158
+        Me.圖片資料庫名稱_lb.AutoSize = True
159
+        Me.圖片資料庫名稱_lb.BackColor = System.Drawing.SystemColors.Control
160
+        Me.圖片資料庫名稱_lb.Location = New System.Drawing.Point(792, 404)
161
+        Me.圖片資料庫名稱_lb.Name = "圖片資料庫名稱_lb"
162
+        Me.圖片資料庫名稱_lb.Size = New System.Drawing.Size(91, 16)
163
+        Me.圖片資料庫名稱_lb.TabIndex = 1514
164
+        Me.圖片資料庫名稱_lb.Text = "圖片資料庫名稱"
165
+        '
166
+        '圖片資料庫名稱_tb
167
+        '
168
+        Me.圖片資料庫名稱_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
169
+        Me.圖片資料庫名稱_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
170
+        Me.圖片資料庫名稱_tb.Location = New System.Drawing.Point(884, 400)
171
+        Me.圖片資料庫名稱_tb.Margin = New System.Windows.Forms.Padding(5)
172
+        Me.圖片資料庫名稱_tb.Name = "圖片資料庫名稱_tb"
173
+        Me.圖片資料庫名稱_tb.Size = New System.Drawing.Size(184, 23)
174
+        Me.圖片資料庫名稱_tb.TabIndex = 1513
175
+        '
176
+        '圖片資料庫管理_dgv
177
+        '
178
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.White
179
+        Me.圖片資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
180
+        Me.圖片資料庫管理_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
181
+        Me.圖片資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
182
+        Me.圖片資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
183
+        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
184
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.White
185
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
186
+        DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
187
+        DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
188
+        DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
189
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
190
+        Me.圖片資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle6
191
+        Me.圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
192
+        Me.圖片資料庫管理_dgv.Location = New System.Drawing.Point(789, 447)
193
+        Me.圖片資料庫管理_dgv.Name = "圖片資料庫管理_dgv"
194
+        Me.圖片資料庫管理_dgv.RowHeadersWidth = 5
195
+        Me.圖片資料庫管理_dgv.RowTemplate.Height = 24
196
+        Me.圖片資料庫管理_dgv.Size = New System.Drawing.Size(279, 279)
197
+        Me.圖片資料庫管理_dgv.TabIndex = 1512
198
+        '
199
+        '重新讀取_bt
200
+        '
201
+        Me.重新讀取_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
202
+        Me.重新讀取_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
203
+        Me.重新讀取_bt.Location = New System.Drawing.Point(1273, 2)
204
+        Me.重新讀取_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
205
+        Me.重新讀取_bt.Name = "重新讀取_bt"
206
+        Me.重新讀取_bt.Size = New System.Drawing.Size(72, 23)
207
+        Me.重新讀取_bt.TabIndex = 1511
208
+        Me.重新讀取_bt.Text = "重新讀取"
209
+        '
210
+        '伺服器_lb
211
+        '
212
+        Me.伺服器_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
213
+        Me.伺服器_lb.AutoSize = True
214
+        Me.伺服器_lb.BackColor = System.Drawing.SystemColors.Control
215
+        Me.伺服器_lb.Location = New System.Drawing.Point(1126, 5)
216
+        Me.伺服器_lb.Name = "伺服器_lb"
217
+        Me.伺服器_lb.Size = New System.Drawing.Size(82, 16)
218
+        Me.伺服器_lb.TabIndex = 1510
219
+        Me.伺服器_lb.Text = "極限容量(MB)"
220
+        '
221
+        'MAX_nud
222
+        '
223
+        Me.MAX_nud.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
224
+        Me.MAX_nud.Location = New System.Drawing.Point(1210, 2)
225
+        Me.MAX_nud.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
226
+        Me.MAX_nud.Name = "MAX_nud"
227
+        Me.MAX_nud.Size = New System.Drawing.Size(62, 23)
228
+        Me.MAX_nud.TabIndex = 1509
229
+        Me.MAX_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
230
+        Me.MAX_nud.ThousandsSeparator = True
231
+        Me.MAX_nud.Value = New Decimal(New Integer() {2048, 0, 0, 0})
232
+        '
233
+        '是否可用_ch
234
+        '
235
+        Me.是否可用_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
236
+        Me.是否可用_ch.AutoSize = True
237
+        Me.是否可用_ch.Location = New System.Drawing.Point(796, 426)
238
+        Me.是否可用_ch.Name = "是否可用_ch"
239
+        Me.是否可用_ch.Size = New System.Drawing.Size(74, 20)
240
+        Me.是否可用_ch.TabIndex = 1515
241
+        Me.是否可用_ch.Text = "是否鎖定"
242
+        Me.是否可用_ch.UseVisualStyleBackColor = True
243
+        '
244
+        '資料庫_dgv
245
+        '
246
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.White
247
+        Me.資料庫_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
248
+        Me.資料庫_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
249
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
250
+        Me.資料庫_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
251
+        Me.資料庫_dgv.BackgroundColor = System.Drawing.Color.White
252
+        DataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
253
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.White
254
+        DataGridViewCellStyle8.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
255
+        DataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText
256
+        DataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight
257
+        DataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText
258
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
259
+        Me.資料庫_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle8
260
+        Me.資料庫_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
261
+        Me.資料庫_dgv.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.地點, Me.位置, Me.代表庫, Me.可執行, Me.帳號, Me.密碼})
262
+        Me.資料庫_dgv.Location = New System.Drawing.Point(2, 2)
263
+        Me.資料庫_dgv.Name = "資料庫_dgv"
264
+        Me.資料庫_dgv.RowHeadersWidth = 5
265
+        Me.資料庫_dgv.RowTemplate.Height = 24
266
+        Me.資料庫_dgv.Size = New System.Drawing.Size(540, 724)
267
+        Me.資料庫_dgv.TabIndex = 1520
268
+        '
269
+        '地點
270
+        '
271
+        Me.地點.HeaderText = "地點"
272
+        Me.地點.Name = "地點"
273
+        '
274
+        '位置
275
+        '
276
+        Me.位置.HeaderText = "位置"
277
+        Me.位置.Name = "位置"
278
+        '
279
+        '代表庫
280
+        '
281
+        Me.代表庫.HeaderText = "代表庫"
282
+        Me.代表庫.Name = "代表庫"
283
+        '
284
+        '可執行
285
+        '
286
+        Me.可執行.HeaderText = "可執行"
287
+        Me.可執行.Name = "可執行"
288
+        Me.可執行.Resizable = System.Windows.Forms.DataGridViewTriState.[True]
289
+        Me.可執行.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic
290
+        '
291
+        '帳號
292
+        '
293
+        Me.帳號.HeaderText = "帳號"
294
+        Me.帳號.Name = "帳號"
295
+        '
296
+        '密碼
297
+        '
298
+        Me.密碼.HeaderText = "密碼"
299
+        Me.密碼.Name = "密碼"
300
+        '
301
+        'IP_tb
302
+        '
303
+        Me.IP_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
304
+        Me.IP_tb.Location = New System.Drawing.Point(624, 2)
305
+        Me.IP_tb.Margin = New System.Windows.Forms.Padding(5)
306
+        Me.IP_tb.Name = "IP_tb"
307
+        Me.IP_tb.Size = New System.Drawing.Size(164, 23)
308
+        Me.IP_tb.TabIndex = 1521
309
+        '
310
+        '資料庫_tb
311
+        '
312
+        Me.資料庫_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
313
+        Me.資料庫_tb.Location = New System.Drawing.Point(788, 2)
314
+        Me.資料庫_tb.Margin = New System.Windows.Forms.Padding(5)
315
+        Me.資料庫_tb.Name = "資料庫_tb"
316
+        Me.資料庫_tb.Size = New System.Drawing.Size(90, 23)
317
+        Me.資料庫_tb.TabIndex = 1522
318
+        '
319
+        '帳號_tb
320
+        '
321
+        Me.帳號_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
322
+        Me.帳號_tb.Location = New System.Drawing.Point(878, 2)
323
+        Me.帳號_tb.Margin = New System.Windows.Forms.Padding(5)
324
+        Me.帳號_tb.Name = "帳號_tb"
325
+        Me.帳號_tb.Size = New System.Drawing.Size(90, 23)
326
+        Me.帳號_tb.TabIndex = 1523
327
+        '
328
+        '密碼_tb
329
+        '
330
+        Me.密碼_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
331
+        Me.密碼_tb.Location = New System.Drawing.Point(968, 2)
332
+        Me.密碼_tb.Margin = New System.Windows.Forms.Padding(5)
333
+        Me.密碼_tb.Name = "密碼_tb"
334
+        Me.密碼_tb.Size = New System.Drawing.Size(90, 23)
335
+        Me.密碼_tb.TabIndex = 1524
336
+        '
337
+        '可執行_cb
338
+        '
339
+        Me.可執行_cb.AutoSize = True
340
+        Me.可執行_cb.Location = New System.Drawing.Point(1064, 4)
341
+        Me.可執行_cb.Name = "可執行_cb"
342
+        Me.可執行_cb.Size = New System.Drawing.Size(62, 20)
343
+        Me.可執行_cb.TabIndex = 1525
344
+        Me.可執行_cb.Text = "可執行"
345
+        Me.可執行_cb.UseVisualStyleBackColor = True
346
+        '
347
+        '地點_tb
348
+        '
349
+        Me.地點_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
350
+        Me.地點_tb.Location = New System.Drawing.Point(544, 2)
351
+        Me.地點_tb.Margin = New System.Windows.Forms.Padding(5)
352
+        Me.地點_tb.Name = "地點_tb"
353
+        Me.地點_tb.Size = New System.Drawing.Size(80, 23)
354
+        Me.地點_tb.TabIndex = 1526
355
+        '
356
+        '文件資料庫管理修改_bt
357
+        '
358
+        Me.文件資料庫管理修改_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
359
+        Me.文件資料庫管理修改_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
360
+        Me.文件資料庫管理修改_bt.Location = New System.Drawing.Point(1161, 423)
361
+        Me.文件資料庫管理修改_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
362
+        Me.文件資料庫管理修改_bt.Name = "文件資料庫管理修改_bt"
363
+        Me.文件資料庫管理修改_bt.Size = New System.Drawing.Size(184, 24)
364
+        Me.文件資料庫管理修改_bt.TabIndex = 1531
365
+        Me.文件資料庫管理修改_bt.Text = "修改"
366
+        '
367
+        '文件資料庫名稱_lb
368
+        '
369
+        Me.文件資料庫名稱_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
370
+        Me.文件資料庫名稱_lb.AutoSize = True
371
+        Me.文件資料庫名稱_lb.BackColor = System.Drawing.SystemColors.Control
372
+        Me.文件資料庫名稱_lb.Location = New System.Drawing.Point(1070, 403)
373
+        Me.文件資料庫名稱_lb.Name = "文件資料庫名稱_lb"
374
+        Me.文件資料庫名稱_lb.Size = New System.Drawing.Size(91, 16)
375
+        Me.文件資料庫名稱_lb.TabIndex = 1529
376
+        Me.文件資料庫名稱_lb.Text = "文件資料庫名稱"
377
+        '
378
+        '文件資料庫名稱_tb
379
+        '
380
+        Me.文件資料庫名稱_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
381
+        Me.文件資料庫名稱_tb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
382
+        Me.文件資料庫名稱_tb.Location = New System.Drawing.Point(1161, 399)
383
+        Me.文件資料庫名稱_tb.Margin = New System.Windows.Forms.Padding(5)
384
+        Me.文件資料庫名稱_tb.Name = "文件資料庫名稱_tb"
385
+        Me.文件資料庫名稱_tb.Size = New System.Drawing.Size(184, 23)
386
+        Me.文件資料庫名稱_tb.TabIndex = 1528
387
+        '
388
+        '文件資料庫管理_dgv
389
+        '
390
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.White
391
+        Me.文件資料庫管理_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
392
+        Me.文件資料庫管理_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
393
+        Me.文件資料庫管理_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
394
+        Me.文件資料庫管理_dgv.BackgroundColor = System.Drawing.Color.White
395
+        DataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
396
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.White
397
+        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
398
+        DataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText
399
+        DataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight
400
+        DataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText
401
+        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
402
+        Me.文件資料庫管理_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle10
403
+        Me.文件資料庫管理_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
404
+        Me.文件資料庫管理_dgv.Location = New System.Drawing.Point(1067, 447)
405
+        Me.文件資料庫管理_dgv.Name = "文件資料庫管理_dgv"
406
+        Me.文件資料庫管理_dgv.RowHeadersWidth = 5
407
+        Me.文件資料庫管理_dgv.RowTemplate.Height = 24
408
+        Me.文件資料庫管理_dgv.Size = New System.Drawing.Size(279, 279)
409
+        Me.文件資料庫管理_dgv.TabIndex = 1527
410
+        '
411
+        '是否可用1_ch
412
+        '
413
+        Me.是否可用1_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
414
+        Me.是否可用1_ch.AutoSize = True
415
+        Me.是否可用1_ch.Location = New System.Drawing.Point(1075, 426)
416
+        Me.是否可用1_ch.Name = "是否可用1_ch"
417
+        Me.是否可用1_ch.Size = New System.Drawing.Size(74, 20)
418
+        Me.是否可用1_ch.TabIndex = 1530
419
+        Me.是否可用1_ch.Text = "是否鎖定"
420
+        Me.是否可用1_ch.UseVisualStyleBackColor = True
421
+        '
422
+        'GCM_SQL_MGMT
423
+        '
424
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
425
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
426
+        Me.ClientSize = New System.Drawing.Size(1350, 729)
427
+        Me.Controls.Add(Me.文件資料庫管理修改_bt)
428
+        Me.Controls.Add(Me.文件資料庫名稱_tb)
429
+        Me.Controls.Add(Me.文件資料庫管理_dgv)
430
+        Me.Controls.Add(Me.是否可用1_ch)
431
+        Me.Controls.Add(Me.地點_tb)
432
+        Me.Controls.Add(Me.可執行_cb)
433
+        Me.Controls.Add(Me.密碼_tb)
434
+        Me.Controls.Add(Me.帳號_tb)
435
+        Me.Controls.Add(Me.資料庫_tb)
436
+        Me.Controls.Add(Me.IP_tb)
437
+        Me.Controls.Add(Me.資料庫_dgv)
438
+        Me.Controls.Add(Me.選擇_tb)
439
+        Me.Controls.Add(Me.資料庫清單1_dgv)
440
+        Me.Controls.Add(Me.LOG檔截斷3_bt)
441
+        Me.Controls.Add(Me.伺服器狀態_dgv)
442
+        Me.Controls.Add(Me.圖片資料庫管理修改_bt)
443
+        Me.Controls.Add(Me.圖片資料庫名稱_tb)
444
+        Me.Controls.Add(Me.圖片資料庫管理_dgv)
445
+        Me.Controls.Add(Me.重新讀取_bt)
446
+        Me.Controls.Add(Me.伺服器_lb)
447
+        Me.Controls.Add(Me.MAX_nud)
448
+        Me.Controls.Add(Me.是否可用_ch)
449
+        Me.Controls.Add(Me.圖片資料庫名稱_lb)
450
+        Me.Controls.Add(Me.文件資料庫名稱_lb)
451
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
452
+        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
453
+        Me.Margin = New System.Windows.Forms.Padding(4)
454
+        Me.Name = "GCM_SQL_MGMT"
455
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
456
+        Me.Text = "GCM-SQL-MGMT"
457
+        CType(Me.資料庫清單1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
458
+        CType(Me.伺服器狀態_dgv, System.ComponentModel.ISupportInitialize).EndInit()
459
+        CType(Me.圖片資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
460
+        CType(Me.MAX_nud, System.ComponentModel.ISupportInitialize).EndInit()
461
+        CType(Me.資料庫_dgv, System.ComponentModel.ISupportInitialize).EndInit()
462
+        CType(Me.文件資料庫管理_dgv, System.ComponentModel.ISupportInitialize).EndInit()
463
+        Me.ResumeLayout(False)
464
+        Me.PerformLayout()
465
+
466
+    End Sub
467
+
468
+    Friend WithEvents 選擇_tb As TextBox
469
+    Friend WithEvents 資料庫清單1_dgv As DataGridView
470
+    Friend WithEvents LOG檔截斷3_bt As Button
471
+    Friend WithEvents 伺服器狀態_dgv As DataGridView
472
+    Friend WithEvents 圖片資料庫管理修改_bt As Button
473
+    Friend WithEvents 圖片資料庫名稱_lb As Label
474
+    Friend WithEvents 圖片資料庫名稱_tb As TextBox
475
+    Friend WithEvents 圖片資料庫管理_dgv As DataGridView
476
+    Friend WithEvents 重新讀取_bt As Button
477
+    Friend WithEvents 伺服器_lb As Label
478
+    Friend WithEvents MAX_nud As NumericUpDown
479
+    Friend WithEvents 是否可用_ch As CheckBox
480
+    Friend WithEvents 資料庫_dgv As DataGridView
481
+    Friend WithEvents IP_tb As TextBox
482
+    Friend WithEvents 資料庫_tb As TextBox
483
+    Friend WithEvents 帳號_tb As TextBox
484
+    Friend WithEvents 密碼_tb As TextBox
485
+    Friend WithEvents 可執行_cb As CheckBox
486
+    Friend WithEvents 地點 As DataGridViewTextBoxColumn
487
+    Friend WithEvents 位置 As DataGridViewTextBoxColumn
488
+    Friend WithEvents 代表庫 As DataGridViewTextBoxColumn
489
+    Friend WithEvents 可執行 As DataGridViewCheckBoxColumn
490
+    Friend WithEvents 帳號 As DataGridViewTextBoxColumn
491
+    Friend WithEvents 密碼 As DataGridViewTextBoxColumn
492
+    Friend WithEvents 地點_tb As TextBox
493
+    Friend WithEvents 文件資料庫管理修改_bt As Button
494
+    Friend WithEvents 文件資料庫名稱_lb As Label
495
+    Friend WithEvents 文件資料庫名稱_tb As TextBox
496
+    Friend WithEvents 文件資料庫管理_dgv As DataGridView
497
+    Friend WithEvents 是否可用1_ch As CheckBox
498
+End Class

+ 215
- 0
GCM-SQL-MGMT/GCM_SQL_MGMT.resx Zobrazit soubor

@@ -0,0 +1,215 @@
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="地點.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
121
+    <value>True</value>
122
+  </metadata>
123
+  <metadata name="位置.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124
+    <value>True</value>
125
+  </metadata>
126
+  <metadata name="代表庫.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127
+    <value>True</value>
128
+  </metadata>
129
+  <metadata name="可執行.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
130
+    <value>True</value>
131
+  </metadata>
132
+  <metadata name="帳號.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
133
+    <value>True</value>
134
+  </metadata>
135
+  <metadata name="密碼.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
136
+    <value>True</value>
137
+  </metadata>
138
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
139
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
140
+    <value>
141
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
142
+        AAAkG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
143
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
144
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQc6/8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7P8mHu7/JBzv/yQb
145
+        7v8mHu7/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8lHOz/Jh3u/yUd7v8kG+3/JBzs/yce
146
+        7/8mHvD/Jh3u/yUb7f8kG+3/JBvt/yQb7f8kG+3/Ixvw/ycf7f8nHez/JBvt/yQc7P8kG+3/JBzv/xgO
147
+        6P8aEuP/IRfj/xcN5v8hHPD/JRvt/yQb7P8kG+3/JRzt/yce7f8kG+3/JBzt/yUd7/8aFOf/Hxbn/yMd
148
+        7v8hGe//FQzj/xUL3/8dEuf/Ixrv/yQc7P8kG+3/JBvt/yMb7v8gFOf/GQzm/x4U8P8nHu//Jh3t/yUd
149
+        6v8hGef/gobQ/9zb7P/i4fP/pJvY/y8h2P8hGvD/JRzs/yUc7f8fFez/GA/v/ycf7/8mHe3/Ewvq/4WH
150
+        4v+MgNf/Fgrr/0A93P+xs9P/urfW/6Se3v8wIt//Ixvv/yQc7P8lHO7/Hhfq/5CV2P+ZkNz/Qzjc/xkQ
151
+        4P8bEu//Ixvx/yQg5P9ubM//lpHq/4+Q5v/x+e3/kYfS/xkP6f8nH+7/HhTu/0NB6v9uadL/Fgrd/yEc
152
+        7f9APN3/mZ7a//Pt5v8tIdv/PTzd/4WA1v+pq+j/+/vw/0c60/8cFfD/JBzt/yQc7P8iHuT/g4Xh/9/d
153
+        6//w8+7/trDc/1xO1P8hGeD/JB7v/xYO7f8VDOr/BADj/5We6P/Mydr/HBPd/ykf8f8VDOv/bnLw/+7u
154
+        3/9eU8n/c3Tk/+bl4P9NTrD/6Ozx/29k1P8XD+7/EATq/zs85//s8u3/RjrS/x0V8f8kG+7/JBvt/yUc
155
+        7v8XDuz/GBbV/7/D3P/t7u//7O7m/5yUv/8fEt3/JyDw/ysj7f8WD+r/gIbq/9fT1f8rHtr/Jh3w/xcP
156
+        6/9jaOv////6/9fY4P/a3uf/7uzj/zMot/+9yOz/m47J/wkA5P8QBuf/PTvo//D17v9HO9P/HRTx/yQb
157
+        7f8kG+3/JBzt/yUd8f8aGeP/v8PT/5qN4f82MNr/amHS/yEY6f8nHfL/KB/u/xsR8f9YXM//3dvX/zMi
158
+        0P8kHfL/FQzp/25y9P/c3NL/IRG6/z4+4P/m6+D/NSm8/5Wb3//e2N7/i4fW/4+L3f+iotz/8fDq/0c7
159
+        0/8dFfD/JBvt/yQb7f8lHO3/JBvw/xoY4f+/xNX/p5jn/w4C7P8aFur/HhTk/xwR4/8cE+P/DgLh/1VZ
160
+        5v/m5dz/QDHW/yAb8f8XDOr/bXP0/9jX0f8MAMv/MjLw/+ju3/8zJr//e4Pi/+3s4f+0s9v/u7ni/8PG
161
+        4//y8ev/RjvT/x0W8P8kG+3/JBvt/yUc7f8kG/D/Ghjh/77E1v+omeb/DgPn/19j3v/ExOv/xcTu/8/N
162
+        6//Jye3/2Njv//j37v9DN9z/Ihnu/xgO6f9rcPH/5+fb/3Vt0/+Nj+//6+7g/y8fvP9+je7/r6q8/wAA
163
+        zf8AAOb/MS/g//D17/9GO9L/HBXx/yQb7f8kG+3/JRzs/yMb8P8aGOL/vsTW/6iZ5v8NBOn/PDzf//D1
164
+        8P/Py+L/oKHq/62q7f+ppu7/nJbg/zgs3f8kGvD/GA/q/2Vp7P////n/19Xj/9rc6v/x7uH/LiG9/36G
165
+        6v/Tz9P/cWff/3Nx7v+Ljez/8fPt/0g70f8eFe//JBvt/yQb7f8kHO3/Jh3v/x0c3/+/xNb/p5nn/xkR
166
+        6f8aFOH/rrfl/7Sry/8NANr/Fg3p/xUM5/8ZD+j/Ihvt/yYf7f8WC+v/bXP0/9zb0/8ZCb7/Njnf/+jt
167
+        3f8xJb//dHzm////+P/2+fT//f73//r++v/08+r/RTrU/x4V8P8kG+3/JBvt/yYd7f8eEO7/BwXe/7vB
168
+        0/+ajeT/BQDj/xMK7/9gZuX/+fjm/z40zv8dFPf/JBvy/yIa8v8hGfD/Jx/s/xYM6f9tcvX/09XN/woA
169
+        yf8yL/H/5+ze/y0hvf99i+v/vrfE/yMX0v8nH+j/UFHk//D17/9GO9H/HRXx/yQb7f8mHO3/HRXr/1td
170
+        5P+QiuL/3ODm/9HM7P+JgeH/SEDf/zk8xf/s8+z/jYDI/y8l0P85M9P/ODDR/zIp3P8mHu3/FQzr/21w
171
+        8f/08ub/hn7Z/52c8v/x8+P/LSG8/4KK7//DvMT/LiPM/zUu3v9ZV9v/8/bv/0c80v8dFPH/JBvt/ycd
172
+        7v8ZEOr/g4fm/9jY6v+/v+v/xcfr/8vI6f+PkM//2t/i/+vs8f/s6+r/39/f/+Hj5P/m5dr/e264/yMY
173
+        7P8fFuv/UlHf/7a72f+7vdv/vL3c/6yryf8tIcr/cnbe//Dy5v/b3N7/4uHi/+Hi5P/i4d//QzrR/x8V
174
+        8P8kG+3/JBvt/yUb7v8gFuf/GxLe/xwU4f8dE+H/GQ7j/ywj5P9BOdv/OzHa/zYt3/86MeD/OzHh/zwx
175
+        3v8vJeL/HRXy/yIW8v8dE+3/FAvf/xMI4v8TCOP/GQ7i/yIa7f8qJt3/NC/T/zgu2f86L9b/OC/X/zYs
176
+        0v8mH+b/Ixvt/yQb7f8kG+3/JBvt/yQc7v8lHPD/JR3v/yUc8P8mHe//Ixnv/x0U8P8gGuz/MCrb/zEq
177
+        2/8xKdv/MCnd/zMr2/85Mtj/NzHa/zcx2f84Mtz/OjHc/zky3f86MNv/KB/p/yEZ8P8hGPH/IBfx/yAX
178
+        8f8gF/H/IRfy/yMb7/8kHOz/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8mHez/IBfv/zk5
179
+        1//r8un///71//z79P/8/PP//fz0//Hx8v/v8O7/+/vz//v78//6+fL////5/9vU0/86LNH/Hxnw/ycd
180
+        6/8lHOz/JRzs/yUc7P8lHOz/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yUc
181
+        7f8iGO7/Lynm/3Fr6/90bvD/c27u/3Vv8/9kY+T/wMTY/8e/1f9wZez/dW7w/3Nu7v92b/D/aGPn/ygh
182
+        5f8kGu7/JBzt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
183
+        7f8kG+3/JBvt/yUb7v8jGe7/Fg3s/xYN6/8XDev/GRDw/wIA2P+jqsj/rp/M/w0B5/8YDuv/FQ3r/xYM
184
+        6/8YEOz/Ixru/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
185
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8nHu3/Jx7t/yge7f8qIvH/FRDb/6iuy/+0ps7/HhPp/ykg
186
+        7v8nH+3/Jx7t/yYe7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
187
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvs/yge8v8RDdv/p63L/7Ol
188
+        zf8bEOn/Jh3t/yUb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
189
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+z/Jx7y/xEN
190
+        2/+nrcv/s6XN/xsQ6f8mHe3/JRvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
191
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
192
+        7P8nHvL/EQ3b/6ety/+zpc3/GxDp/yYd7f8lG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
193
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yUc
194
+        7f8mHe3/Jx3s/ykg8v8UD9v/p63L/7Slzv8dEun/KB/t/ycd7f8mHe3/JRzt/yQb7f8kG+3/JBvt/yQb
195
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
196
+        7f8mHO3/IBXt/xkR7f8bEe3/HhTz/wgC2/+kqsr/sKHN/xEH6P8dEu7/HBHt/xkR7f8iFu7/JRzu/yQb
197
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
198
+        7f8kG+3/JRzt/yAY7v89OuT/VE/i/1BK5f9VTuj/QD3U/7O40P+8sc3/TUPc/1RM5f9SS+X/VE/j/zww
199
+        5f8hF+7/Jhzt/yUb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
200
+        7f8kG+3/JBvt/yQb7f8nHu7/Fw7q/5ed5P/+/+//7/Du//Lz7//w8+7/7e7q/+zr6P/y8e7/8/Pu/+/w
201
+        7v////D/lIfd/xkO6P8nHu7/JRvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
202
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yUb7P8hGu//MC3b/0I5z/89NtD/PTbQ/z420P8/N9D/PjfQ/z03
203
+        z/8+Ns//PTbR/0A4y/83LNz/IRrv/yQc6/8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
204
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yYb7f8gGe7/HRbw/x4W7/8eFu//Hhbv/x8W
205
+        7/8fF+//Hhbv/x4X7/8eFu//Hhbw/x4Z7v8lHOz/JRvt/yMb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
206
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBzs/yQc7P8kHez/JB3s/yQd
207
+        7P8kHez/JB3s/yQd7P8kHez/JB3s/yQd7P8lHev/JBzt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
208
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvs/yQb
209
+        7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb7f8kG+3/JBvt/yQb
210
+        7f8kG+3/JBvt/yQb7f8kG+3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
211
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
212
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
213
+</value>
214
+  </data>
215
+</root>

+ 216
- 0
GCM-SQL-MGMT/GCM_SQL_MGMT.vb Zobrazit soubor

@@ -0,0 +1,216 @@
1
+Public Class GCM_SQL_MGMT
2
+    Private Sub Set_伺服器狀態()
3
+        Dim ds8 As New DataSet : 伺服器狀態_dgv.DataSource = Nothing : ds8.Clear()
4
+        伺服器狀態_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
5
+        伺服器狀態_dgv.ColumnHeadersHeight = 25
6
+        伺服器狀態_dgv.AllowUserToAddRows = False
7
+        SQL_資料庫狀態()
8
+        da.Fill(ds8) : 伺服器狀態_dgv.DataSource = ds8.Tables(0) : conn.Close()
9
+        Set_進度條顯示()
10
+        伺服器狀態_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.000"
11
+        伺服器狀態_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
12
+        伺服器狀態_dgv.Columns(5).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
13
+        伺服器狀態_dgv.Columns(0).FillWeight = 120 : 伺服器狀態_dgv.Columns(1).FillWeight = 180
14
+        伺服器狀態_dgv.Columns(2).FillWeight = 55 : 伺服器狀態_dgv.Columns(3).FillWeight = 70
15
+        伺服器狀態_dgv.Columns(4).Visible = False
16
+
17
+        Dim ds7 As New DataSet : 資料庫清單1_dgv.DataSource = Nothing : ds7.Clear()
18
+        資料庫清單1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
19
+        資料庫清單1_dgv.ColumnHeadersHeight = 25
20
+        資料庫清單1_dgv.AllowUserToAddRows = False
21
+        SQL_伺服器1清單()
22
+        da.Fill(ds7) : 資料庫清單1_dgv.DataSource = ds7.Tables(0) : conn.Close()
23
+    End Sub
24
+    Private Sub Set_資料庫狀態()
25
+        Dim 啟動 As Boolean = False
26
+        If 選擇_tb.Text = "天盾國際管理系統資料庫" Then : SQL_連線字串_圖片資料庫() : SQL_圖片資料庫管理查詢() : 啟動 = True
27
+        ElseIf 選擇_tb.Text = "METO-MES-SYS" Then : SQL_連線字串_圖片資料庫() : SQL_圖片資料庫管理查詢() : 啟動 = True
28
+        ElseIf 選擇_tb.Text = "OW-MSN" Then : SQL_連線字串_圖片資料庫() : SQL_圖片資料庫管理查詢() : 啟動 = True
29
+        ElseIf 選擇_tb.Text = "Huang_PH_SYS" Then : SQL_連線字串_圖片資料庫() : SQL_圖片資料庫管理查詢() : 啟動 = True
30
+        ElseIf 選擇_tb.Text = "PROJECT-SYS" Then : SQL_連線字串_圖片資料庫() : SQL_工程圖片資料庫管理查詢() : 啟動 = True
31
+        ElseIf 選擇_tb.Text = "Sh-To-PROJECT-SYS" Then : SQL_連線字串_圖片資料庫() : SQL_工程圖片資料庫管理查詢() : 啟動 = True
32
+        End If
33
+        If 啟動 = True Then
34
+            Dim ds9 As New DataSet : 圖片資料庫管理_dgv.DataSource = Nothing : ds9.Clear()
35
+            圖片資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
36
+            圖片資料庫管理_dgv.ColumnHeadersHeight = 25
37
+            圖片資料庫管理_dgv.AllowUserToAddRows = False
38
+
39
+            da.Fill(ds9) : 圖片資料庫管理_dgv.DataSource = ds9.Tables(0) : conn.Close()
40
+            圖片資料庫管理_dgv.Columns(0).FillWeight = 100 : 圖片資料庫管理_dgv.Columns(1).FillWeight = 30
41
+        Else : 圖片資料庫管理_dgv.DataSource = Nothing : End If
42
+
43
+        啟動 = False
44
+        If 選擇_tb.Text = "PROJECT-SYS" Then : SQL_連線字串_圖片資料庫() : SQL_工程文件資料庫管理查詢() : 啟動 = True
45
+        End If
46
+        If 啟動 = True Then
47
+            Dim ds8 As New DataSet : 文件資料庫管理_dgv.DataSource = Nothing : ds8.Clear()
48
+            文件資料庫管理_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
49
+            文件資料庫管理_dgv.ColumnHeadersHeight = 25
50
+            文件資料庫管理_dgv.AllowUserToAddRows = False
51
+
52
+            da.Fill(ds8) : 文件資料庫管理_dgv.DataSource = ds8.Tables(0) : conn.Close()
53
+            文件資料庫管理_dgv.Columns(0).FillWeight = 100 : 文件資料庫管理_dgv.Columns(1).FillWeight = 30
54
+        Else : 文件資料庫管理_dgv.DataSource = Nothing : End If
55
+    End Sub
56
+    Private Sub Set_進度條顯示()
57
+        Dim Col As New DataGridViewProgressColumn With {
58
+            .FillWeight = 100,
59
+            .DataPropertyName = "容量"
60
+        }
61
+        Col.HeaderText = "使用容量" : Col.Name = "容量" : Col.DataPropertyName = "使用容量"
62
+        伺服器狀態_dgv.Columns.Insert(5, Col)
63
+    End Sub
64
+    Private Sub GCM_SQL_MGMT_Load(sender As Object, e As EventArgs) Handles MyBase.Load
65
+    End Sub
66
+    Private Sub GCM_SQL_MGMT_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
67
+        分母 = MAX_nud.Value : 分段1 = 0.2 : 分段2 = 0.19 : 分段3 = 0.8 : 分段4 = 0.79 : 進度條後墜 = " MB"
68
+        重新讀取_bt.PerformClick()
69
+    End Sub
70
+    Private Sub 資料庫_dgv_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles 資料庫_dgv.CellClick
71
+        If e.RowIndex = -1 Then : Else
72
+            地點_tb.Text = 資料庫_dgv.Rows(e.RowIndex).Cells("地點").Value.ToString : IP_tb.Text = 資料庫_dgv.Rows(e.RowIndex).Cells("位置").Value.ToString
73
+            資料庫_tb.Text = 資料庫_dgv.Rows(e.RowIndex).Cells("代表庫").Value.ToString : 帳號_tb.Text = 資料庫_dgv.Rows(e.RowIndex).Cells("帳號").Value.ToString
74
+            密碼_tb.Text = 資料庫_dgv.Rows(e.RowIndex).Cells("密碼").Value.ToString : 可執行_cb.Checked = 資料庫_dgv.Rows(e.RowIndex).Cells("可執行").Value
75
+            If 可執行_cb.Checked = True Then
76
+                SQL_連線字串_資料庫() : 分母 = MAX_nud.Value : 圖庫限制 = MAX_nud.Value : Set_伺服器狀態()
77
+            Else
78
+                伺服器狀態_dgv.DataSource = Nothing : 圖片資料庫管理_dgv.DataSource = Nothing
79
+                圖片資料庫管理_dgv.DataSource = Nothing : 文件資料庫管理_dgv.DataSource = Nothing
80
+            End If
81
+        End If
82
+    End Sub
83
+    Private Sub 伺服器狀態_dgv_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles 伺服器狀態_dgv.CellClick
84
+        If e.RowIndex = -1 Then : Else : 選擇_tb.Text = 伺服器狀態_dgv(0, e.RowIndex).Value.ToString : Set_資料庫狀態() : End If
85
+    End Sub
86
+    Private Sub 圖片資料庫管理_dgv_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles 圖片資料庫管理_dgv.CellClick
87
+        圖片資料庫名稱_tb.Text = 圖片資料庫管理_dgv(0, e.RowIndex).Value.ToString : 是否可用_ch.Checked = 圖片資料庫管理_dgv(1, e.RowIndex).Value
88
+    End Sub
89
+    Private Sub 文件資料庫管理_dgv_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles 文件資料庫管理_dgv.CellClick
90
+        文件資料庫名稱_tb.Text = 文件資料庫管理_dgv(0, e.RowIndex).Value.ToString : 是否可用1_ch.Checked = 文件資料庫管理_dgv(1, e.RowIndex).Value
91
+    End Sub
92
+    Private Sub 伺服器狀態_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 伺服器狀態_dgv.RowPostPaint
93
+        Dim linePen As New Pen(Color.Blue, 2)
94
+        If e.RowIndex = 伺服器狀態_dgv.Rows.Count - 1 Then
95
+            Exit Sub
96
+        Else
97
+            If 伺服器狀態_dgv(0, e.RowIndex).Value.ToString <> 伺服器狀態_dgv(0, e.RowIndex + 1).Value.ToString Then
98
+                Dim startX As Integer = IIf(伺服器狀態_dgv.RowHeadersVisible, 伺服器狀態_dgv.RowHeadersWidth, 0)
99
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
100
+                Dim endX As Integer = startX + 伺服器狀態_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 伺服器狀態_dgv.HorizontalScrollingOffset
101
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
102
+                Exit Sub
103
+            End If
104
+        End If
105
+    End Sub
106
+    Private Sub 資料庫清單1_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 資料庫清單1_dgv.CellClick
107
+        If e.RowIndex = -1 Then : Else
108
+            選擇_tb.Text = 資料庫清單1_dgv(0, e.RowIndex).Value.ToString : Set_資料庫狀態()
109
+        End If
110
+    End Sub
111
+    Private Sub 圖片資料庫管理修改_bt_Click(sender As Object, e As EventArgs) Handles 圖片資料庫管理修改_bt.Click
112
+        Dim 啟動 As Boolean = False
113
+        If 選擇_tb.Text = "天盾國際管理系統資料庫" Then : SQL_連線字串_圖片資料庫()
114
+            SQL_圖片資料庫管理查詢1()
115
+            If dr.Read() Then : SQL_圖片資料庫管理查詢修改() : Else : SQL_圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("修改完成!!!")
116
+        ElseIf 選擇_tb.Text = "METO-MES-SYS" Then : SQL_連線字串_圖片資料庫()
117
+            SQL_圖片資料庫管理查詢1()
118
+            If dr.Read() Then : SQL_圖片資料庫管理查詢修改() : Else : SQL_圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("修改完成!!!")
119
+        ElseIf 選擇_tb.Text = "OW-MSN" Then : SQL_連線字串_圖片資料庫()
120
+            SQL_圖片資料庫管理查詢1()
121
+            If dr.Read() Then : SQL_圖片資料庫管理查詢修改() : Else : SQL_圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("修改完成!!!")
122
+        ElseIf 選擇_tb.Text = "Huang_PH_SYS" Then : SQL_連線字串_圖片資料庫()
123
+            SQL_圖片資料庫管理查詢1()
124
+            If dr.Read() Then : SQL_圖片資料庫管理查詢修改() : Else : SQL_圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("修改完成!!!")
125
+        ElseIf 選擇_tb.Text = "PROJECT-SYS" Then : SQL_連線字串_圖片資料庫()
126
+            SQL_工程圖片資料庫管理查詢1()
127
+            If dr.Read() Then : SQL_工程圖片資料庫管理查詢修改() : Else : SQL_工程圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("存檔完成!!")
128
+        ElseIf 選擇_tb.Text = "Sh-To-PROJECT-SYS" Then : SQL_連線字串_圖片資料庫()
129
+            SQL_工程圖片資料庫管理查詢1()
130
+            If dr.Read() Then : SQL_工程圖片資料庫管理查詢修改() : Else : SQL_工程圖片資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("存檔完成!!")
131
+        End If
132
+    End Sub
133
+    Private Sub 文件資料庫管理修改_bt_Click(sender As Object, e As EventArgs) Handles 文件資料庫管理修改_bt.Click
134
+        Dim 啟動 As Boolean = False
135
+        If 選擇_tb.Text = "PROJECT-SYS" Then : SQL_連線字串_圖片資料庫()
136
+            SQL_工程文件資料庫管理查詢1()
137
+            If dr.Read() Then : SQL_工程文件資料庫管理查詢修改() : Else : SQL_工程文件資料庫管理查詢新增() : End If : Set_資料庫狀態() : MsgBox("存檔完成!!")
138
+        End If
139
+    End Sub
140
+    Private Sub LOG檔截斷3_bt_Click(sender As Object, e As EventArgs) Handles LOG檔截斷3_bt.Click
141
+        Try
142
+            SQL_連線字串_圖片資料庫() : PA = 選擇_tb.Text : SQL_主資料庫LOG檔案截斷() : 重新讀取_bt.PerformClick()
143
+            SQL_連線字串_圖片資料庫() : 分母 = MAX_nud.Value : 圖庫限制 = MAX_nud.Value : Set_伺服器狀態() : MsgBox("伺服器截斷完成!!!")
144
+        Catch ex As Exception
145
+            MsgBox(ex.Message)
146
+        End Try
147
+    End Sub
148
+    Private Sub 重新讀取_bt_Click(sender As Object, e As EventArgs) Handles 重新讀取_bt.Click
149
+        資料庫_dgv.DataSource = Nothing
150
+        資料庫_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
151
+        資料庫_dgv.ColumnHeadersHeight = 25 : 資料庫_dgv.AllowUserToAddRows = False
152
+        資料庫_dgv.Columns(0).FillWeight = 30 : 資料庫_dgv.Columns(1).FillWeight = 100 : 資料庫_dgv.Columns(2).FillWeight = 50
153
+        資料庫_dgv.Columns(3).FillWeight = 30 : 資料庫_dgv.Columns(4).Visible = False : 資料庫_dgv.Columns(5).Visible = False
154
+        For i As Integer = 0 To 資料庫_dgv.Rows.Count - 1 : 資料庫_dgv.Rows.RemoveAt(0) : Next
155
+
156
+        資料庫_dgv.Rows.Insert(0)
157
+        資料庫_dgv.Rows(0).Cells("地點").Value = "中國-巨益" : 資料庫_dgv.Rows(0).Cells("位置").Value = "m192.168.10.5,1433"
158
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "METO-MES-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 0
159
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
160
+
161
+        資料庫_dgv.Rows.Insert(0)
162
+        資料庫_dgv.Rows(0).Cells("地點").Value = "中國-天盾" : 資料庫_dgv.Rows(0).Cells("位置").Value = "192.168.0.107,1433"
163
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "天盾國際管理系統資料庫" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 0
164
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
165
+
166
+        資料庫_dgv.Rows.Insert(0)
167
+        資料庫_dgv.Rows(0).Cells("地點").Value = "美國-租任" : 資料庫_dgv.Rows(0).Cells("位置").Value = "mssql-147629-0.cloudclusters.net,12711"
168
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "GF01-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 0
169
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
170
+
171
+        資料庫_dgv.Rows.Insert(0)
172
+        資料庫_dgv.Rows(0).Cells("地點").Value = "印尼-鴻時" : 資料庫_dgv.Rows(0).Cells("位置").Value = "36.64.59.26,2433"
173
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "HX-GPS-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
174
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
175
+
176
+        資料庫_dgv.Rows.Insert(0)
177
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-華燊" : 資料庫_dgv.Rows(0).Cells("位置").Value = "61.216.22.26,2433"
178
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "WS-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
179
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
180
+
181
+        資料庫_dgv.Rows.Insert(0)
182
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-雅邸" : 資料庫_dgv.Rows(0).Cells("位置").Value = "180.218.213.39,4567"
183
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "YD-SERVER" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
184
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
185
+
186
+        資料庫_dgv.Rows.Insert(0)
187
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-井富" : 資料庫_dgv.Rows(0).Cells("位置").Value = "118.163.161.249,2433"
188
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "OW-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
189
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
190
+
191
+        資料庫_dgv.Rows.Insert(0)
192
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-順通" : 資料庫_dgv.Rows(0).Cells("位置").Value = "210.61.41.234,4567"
193
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "Sh-To-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
194
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
195
+
196
+        資料庫_dgv.Rows.Insert(0)
197
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-電控" : 資料庫_dgv.Rows(0).Cells("位置").Value = "106.1.49.218,2433"
198
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "GCM-SCADA" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
199
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
200
+
201
+        資料庫_dgv.Rows.Insert(0)
202
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-GA" : 資料庫_dgv.Rows(0).Cells("位置").Value = "106.1.49.218,4567"
203
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "GA-LOG-DB" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
204
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
205
+
206
+        資料庫_dgv.Rows.Insert(0)
207
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-麟洛" : 資料庫_dgv.Rows(0).Cells("位置").Value = "106.1.48.106,4567"
208
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "Huang_PH_SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
209
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "Lee0911274990"
210
+
211
+        資料庫_dgv.Rows.Insert(0)
212
+        資料庫_dgv.Rows(0).Cells("地點").Value = "台灣-萬丹" : 資料庫_dgv.Rows(0).Cells("位置").Value = "180.177.181.162,5264"
213
+        資料庫_dgv.Rows(0).Cells("代表庫").Value = "BIFENG-ERP-SYS" : 資料庫_dgv.Rows(0).Cells("可執行").Value = 1
214
+        資料庫_dgv.Rows(0).Cells("帳號").Value = "b70340" : 資料庫_dgv.Rows(0).Cells("密碼").Value = "0911274990"
215
+    End Sub
216
+End Class

+ 44
- 0
GCM-SQL-MGMT/My Project/Application.Designer.vb Zobrazit soubor

@@ -0,0 +1,44 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5
+'
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+
15
+Namespace My
16
+    
17
+    '注意:這是自動產生的檔案,請勿直接修改它。若要進行變更,
18
+    ' 或者您在這個檔案發生建置錯誤,請到專案設計工具
19
+    ' (移至專案屬性或者在 [方案總管] 中按兩下 [My Project] 節點),
20
+    ' 然後在 [應用程式] 索引標籤上進行變更。
21
+    '
22
+    Partial Friend Class MyApplication
23
+        
24
+        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
25
+        Public Sub New()
26
+            MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
27
+            Me.IsSingleInstance = false
28
+            Me.EnableVisualStyles = true
29
+            Me.SaveMySettingsOnExit = true
30
+            Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
31
+        End Sub
32
+        
33
+        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
34
+        Protected Overrides Sub OnCreateMainForm()
35
+            Me.MainForm = Global.GCM_SQL_MGMT.GCM_SQL_MGMT
36
+        End Sub
37
+        
38
+        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
39
+        Protected Overrides Function OnInitialize(ByVal commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean
40
+            Me.MinimumSplashScreenDisplayTime = 0
41
+            Return MyBase.OnInitialize(commandLineArgs)
42
+        End Function
43
+    End Class
44
+End Namespace

+ 12
- 0
GCM-SQL-MGMT/My Project/Application.myapp Zobrazit soubor

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<MyApplicationData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
+  <MySubMain>true</MySubMain>
4
+  <MainForm>GCM_SQL_MGMT</MainForm>
5
+  <SingleInstance>false</SingleInstance>
6
+  <ShutdownMode>0</ShutdownMode>
7
+  <EnableVisualStyles>true</EnableVisualStyles>
8
+  <AuthenticationMode>0</AuthenticationMode>
9
+  <MinimumSplashScreenDisplayTime>0</MinimumSplashScreenDisplayTime>
10
+  <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
11
+  <HighDpiMpde>false</HighDpiMpde>
12
+</MyApplicationData>

+ 35
- 0
GCM-SQL-MGMT/My Project/AssemblyInfo.vb Zobrazit soubor

@@ -0,0 +1,35 @@
1
+Imports System
2
+Imports System.Reflection
3
+Imports System.Runtime.InteropServices
4
+
5
+' 組件的一般資訊是由下列的屬性集控制。
6
+' 變更這些屬性的值即可修改組件的相關
7
+' 資訊。
8
+
9
+' 檢閱組件屬性的值
10
+
11
+<Assembly: AssemblyTitle("GCM-SQL-MGMT")>
12
+<Assembly: AssemblyDescription("")>
13
+<Assembly: AssemblyCompany("")>
14
+<Assembly: AssemblyProduct("GCM-SQL-MGMT")>
15
+<Assembly: AssemblyCopyright("Copyright ©  2024")>
16
+<Assembly: AssemblyTrademark("")>
17
+
18
+<Assembly: ComVisible(False)>
19
+
20
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
21
+<Assembly: Guid("f175070f-3994-4f1b-b08a-a6bf86d66097")>
22
+
23
+' 組件的版本資訊由下列四個值所組成: 
24
+'
25
+'      主要版本
26
+'      次要版本
27
+'      組建編號
28
+'      修訂編號
29
+'
30
+' 您可以指定所有的值,也可以使用 '*' 將組建和修訂編號
31
+' 設為預設,如下所示:
32
+' <Assembly: AssemblyVersion("1.0.*")>
33
+
34
+<Assembly: AssemblyVersion("1.0.0.0")>
35
+<Assembly: AssemblyFileVersion("1.0.0.0")>

+ 62
- 0
GCM-SQL-MGMT/My Project/Resources.Designer.vb Zobrazit soubor

@@ -0,0 +1,62 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     This code was generated by a tool.
4
+'     Runtime Version:4.0.30319.42000
5
+'
6
+'     Changes to this file may cause incorrect behavior and will be lost if
7
+'     the code is regenerated.
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+
15
+Namespace My.Resources
16
+
17
+    'This class was auto-generated by the StronglyTypedResourceBuilder
18
+    'class via a tool like ResGen or Visual Studio.
19
+    'To add or remove a member, edit your .ResX file then rerun ResGen
20
+    'with the /str option, or rebuild your VS project.
21
+    '''<summary>
22
+    '''  A strongly-typed resource class, for looking up localized strings, etc.
23
+    '''</summary>
24
+    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
25
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
26
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
27
+     Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
28
+    Friend Module Resources
29
+
30
+        Private resourceMan As Global.System.Resources.ResourceManager
31
+
32
+        Private resourceCulture As Global.System.Globalization.CultureInfo
33
+
34
+        '''<summary>
35
+        '''  Returns the cached ResourceManager instance used by this class.
36
+        '''</summary>
37
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
38
+        Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39
+            Get
40
+                If Object.ReferenceEquals(resourceMan, Nothing) Then
41
+                    Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("GCM_SQL_MGMT.Resources", GetType(Resources).Assembly)
42
+                    resourceMan = temp
43
+                End If
44
+                Return resourceMan
45
+            End Get
46
+        End Property
47
+
48
+        '''<summary>
49
+        '''  Overrides the current thread's CurrentUICulture property for all
50
+        '''  resource lookups using this strongly typed resource class.
51
+        '''</summary>
52
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
53
+        Friend Property Culture() As Global.System.Globalization.CultureInfo
54
+            Get
55
+                Return resourceCulture
56
+            End Get
57
+            Set(ByVal value As Global.System.Globalization.CultureInfo)
58
+                resourceCulture = value
59
+            End Set
60
+        End Property
61
+    End Module
62
+End Namespace

+ 117
- 0
GCM-SQL-MGMT/My Project/Resources.resx Zobrazit soubor

@@ -0,0 +1,117 @@
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.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:element name="root" msdata:IsDataSet="true">
64
+      <xsd:complexType>
65
+        <xsd:choice maxOccurs="unbounded">
66
+          <xsd:element name="metadata">
67
+            <xsd:complexType>
68
+              <xsd:sequence>
69
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
70
+              </xsd:sequence>
71
+              <xsd:attribute name="name" type="xsd:string" />
72
+              <xsd:attribute name="type" type="xsd:string" />
73
+              <xsd:attribute name="mimetype" type="xsd:string" />
74
+            </xsd:complexType>
75
+          </xsd:element>
76
+          <xsd:element name="assembly">
77
+            <xsd:complexType>
78
+              <xsd:attribute name="alias" type="xsd:string" />
79
+              <xsd:attribute name="name" type="xsd:string" />
80
+            </xsd:complexType>
81
+          </xsd:element>
82
+          <xsd:element name="data">
83
+            <xsd:complexType>
84
+              <xsd:sequence>
85
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87
+              </xsd:sequence>
88
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91
+            </xsd:complexType>
92
+          </xsd:element>
93
+          <xsd:element name="resheader">
94
+            <xsd:complexType>
95
+              <xsd:sequence>
96
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97
+              </xsd:sequence>
98
+              <xsd:attribute name="name" type="xsd:string" use="required" />
99
+            </xsd:complexType>
100
+          </xsd:element>
101
+        </xsd:choice>
102
+      </xsd:complexType>
103
+    </xsd:element>
104
+  </xsd:schema>
105
+  <resheader name="resmimetype">
106
+    <value>text/microsoft-resx</value>
107
+  </resheader>
108
+  <resheader name="version">
109
+    <value>2.0</value>
110
+  </resheader>
111
+  <resheader name="reader">
112
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113
+  </resheader>
114
+  <resheader name="writer">
115
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+</root>

+ 73
- 0
GCM-SQL-MGMT/My Project/Settings.Designer.vb Zobrazit soubor

@@ -0,0 +1,73 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     This code was generated by a tool.
4
+'     Runtime Version:4.0.30319.42000
5
+'
6
+'     Changes to this file may cause incorrect behavior and will be lost if
7
+'     the code is regenerated.
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+
15
+Namespace My
16
+
17
+    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
18
+     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
19
+     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
20
+    Partial Friend NotInheritable Class MySettings
21
+        Inherits Global.System.Configuration.ApplicationSettingsBase
22
+
23
+        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24
+
25
+#Region "My.Settings Auto-Save Functionality"
26
+#If _MyType = "WindowsForms" Then
27
+        Private Shared addedHandler As Boolean
28
+
29
+        Private Shared addedHandlerLockObject As New Object
30
+
31
+        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
+        Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33
+            If My.Application.SaveMySettingsOnExit Then
34
+                My.Settings.Save()
35
+            End If
36
+        End Sub
37
+#End If
38
+#End Region
39
+
40
+        Public Shared ReadOnly Property [Default]() As MySettings
41
+            Get
42
+
43
+#If _MyType = "WindowsForms" Then
44
+                   If Not addedHandler Then
45
+                        SyncLock addedHandlerLockObject
46
+                            If Not addedHandler Then
47
+                                AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
+                                addedHandler = True
49
+                            End If
50
+                        End SyncLock
51
+                    End If
52
+#End If
53
+                Return defaultInstance
54
+            End Get
55
+        End Property
56
+    End Class
57
+End Namespace
58
+
59
+Namespace My
60
+
61
+    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
62
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
63
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
64
+    Friend Module MySettingsProperty
65
+
66
+        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
67
+        Friend ReadOnly Property Settings() As Global.GCM_SQL_MGMT.My.MySettings
68
+            Get
69
+                Return Global.GCM_SQL_MGMT.My.MySettings.Default
70
+            End Get
71
+        End Property
72
+    End Module
73
+End Namespace

+ 7
- 0
GCM-SQL-MGMT/My Project/Settings.settings Zobrazit soubor

@@ -0,0 +1,7 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
3
+  <Profiles>
4
+    <Profile Name="(Default)" />
5
+  </Profiles>
6
+  <Settings />
7
+</SettingsFile>

binární
GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.exe Zobrazit soubor


+ 6
- 0
GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.exe.config Zobrazit soubor

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<configuration>
3
+    <startup>
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
5
+    </startup>
6
+</configuration>

binární
GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.pdb Zobrazit soubor


+ 26
- 0
GCM-SQL-MGMT/bin/Debug/GCM-SQL-MGMT.xml Zobrazit soubor

@@ -0,0 +1,26 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+<assembly>
4
+<name>
5
+GCM-SQL-MGMT
6
+</name>
7
+</assembly>
8
+<members>
9
+<member name="T:GCM_SQL_MGMT.My.Resources.Resources">
10
+<summary>
11
+  A strongly-typed resource class, for looking up localized strings, etc.
12
+</summary>
13
+</member>
14
+<member name="P:GCM_SQL_MGMT.My.Resources.Resources.ResourceManager">
15
+<summary>
16
+  Returns the cached ResourceManager instance used by this class.
17
+</summary>
18
+</member>
19
+<member name="P:GCM_SQL_MGMT.My.Resources.Resources.Culture">
20
+<summary>
21
+  Overrides the current thread's CurrentUICulture property for all
22
+  resource lookups using this strongly typed resource class.
23
+</summary>
24
+</member>
25
+</members>
26
+</doc>

binární
GCM-SQL-MGMT/bitbug_favicon.ico Zobrazit soubor


+ 7
- 0
GCM-SQL-MGMT/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb Zobrazit soubor

@@ -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ární
GCM-SQL-MGMT/obj/Debug/DesignTimeResolveAssemblyReferences.cache Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.exe Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.pdb Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.AssemblyReference.cache Zobrazit soubor


+ 1
- 0
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.CoreCompileInputs.cache Zobrazit soubor

@@ -0,0 +1 @@
1
+39c15da22432c38000203b0d9a7f0ae367cd974ac7c2d5e855e2a5abc0087294

+ 12
- 0
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.FileListAbsolute.txt Zobrazit soubor

@@ -0,0 +1,12 @@
1
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\bin\Debug\GCM-SQL-MGMT.exe.config
2
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\bin\Debug\GCM-SQL-MGMT.exe
3
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\bin\Debug\GCM-SQL-MGMT.pdb
4
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\bin\Debug\GCM-SQL-MGMT.xml
5
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.vbproj.AssemblyReference.cache
6
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM_SQL_MGMT.GCM_SQL_MGMT.resources
7
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM_SQL_MGMT.Resources.resources
8
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.vbproj.GenerateResource.cache
9
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.vbproj.CoreCompileInputs.cache
10
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.exe
11
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.xml
12
+D:\工巧明\GCM\GCM-SQL-MGMT\GCM-SQL-MGMT\obj\Debug\GCM-SQL-MGMT.pdb

binární
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.vbproj.GenerateResource.cache Zobrazit soubor


+ 26
- 0
GCM-SQL-MGMT/obj/Debug/GCM-SQL-MGMT.xml Zobrazit soubor

@@ -0,0 +1,26 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+<assembly>
4
+<name>
5
+GCM-SQL-MGMT
6
+</name>
7
+</assembly>
8
+<members>
9
+<member name="T:GCM_SQL_MGMT.My.Resources.Resources">
10
+<summary>
11
+  A strongly-typed resource class, for looking up localized strings, etc.
12
+</summary>
13
+</member>
14
+<member name="P:GCM_SQL_MGMT.My.Resources.Resources.ResourceManager">
15
+<summary>
16
+  Returns the cached ResourceManager instance used by this class.
17
+</summary>
18
+</member>
19
+<member name="P:GCM_SQL_MGMT.My.Resources.Resources.Culture">
20
+<summary>
21
+  Overrides the current thread's CurrentUICulture property for all
22
+  resource lookups using this strongly typed resource class.
23
+</summary>
24
+</member>
25
+</members>
26
+</doc>

binární
GCM-SQL-MGMT/obj/Debug/GCM_SQL_MGMT.GCM_SQL_MGMT.resources Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/GCM_SQL_MGMT.Resources.resources Zobrazit soubor


binární
GCM-SQL-MGMT/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll Zobrazit soubor


+ 61
- 0
GCM-SQL-MGMT/模組/DGV進度條.vb Zobrazit soubor

@@ -0,0 +1,61 @@
1
+Imports System.ComponentModel
2
+Module DGV進度條
3
+    Public Class DataGridViewProgressColumn
4
+        Inherits DataGridViewImageColumn
5
+        Public Sub New()
6
+            Me.CellTemplate = New DataGridViewProgressCell
7
+        End Sub
8
+    End Class
9
+    Public Class DataGridViewProgressCell
10
+        Inherits DataGridViewImageCell
11
+        Sub New()
12
+            ValueType = Type.GetType("Integer")
13
+        End Sub
14
+        ' 使進度單元與默認圖像單元一致所需的方法。
15
+        ' 默認圖像單元將圖像作為值,儘管進度單元的值是整數。
16
+        Protected Overrides Function GetFormattedValue(
17
+            ByVal value As Object,
18
+            ByVal rowIndex As Integer,
19
+            ByRef cellStyle As DataGridViewCellStyle,
20
+            ByVal valueTypeConverter As TypeConverter,
21
+            ByVal formattedValueTypeConverter As TypeConverter,
22
+            ByVal context As DataGridViewDataErrorContexts) As Object
23
+            Static emptyImage As Bitmap = New Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
24
+            GetFormattedValue = emptyImage
25
+        End Function
26
+        Protected Overrides Sub Paint(ByVal g As System.Drawing.Graphics, ByVal clipBounds As System.Drawing.Rectangle,
27
+                                      ByVal cellBounds As System.Drawing.Rectangle,
28
+                                      ByVal rowIndex As Integer, ByVal cellState As System.Windows.Forms.DataGridViewElementStates,
29
+                                      ByVal value As Object, ByVal formattedValue As Object, ByVal errorText As String,
30
+                                      ByVal cellStyle As System.Windows.Forms.DataGridViewCellStyle,
31
+                                      ByVal advancedBorderStyle As System.Windows.Forms.DataGridViewAdvancedBorderStyle,
32
+                                      ByVal paintParts As System.Windows.Forms.DataGridViewPaintParts)
33
+            Dim progressVal As Double = CType(value, Double)
34
+            Dim percentage As Single = CType(progressVal / 分母, Single)
35
+            Dim backBrush As Brush = New SolidBrush(cellStyle.BackColor)
36
+            Dim foreBrush As Brush = New SolidBrush(cellStyle.ForeColor)
37
+            ' 調用基類方法來繪製默認單元格外觀。
38
+            MyBase.Paint(g, clipBounds, cellBounds, rowIndex, cellState,
39
+                value, formattedValue, errorText, cellStyle,
40
+                advancedBorderStyle, paintParts)
41
+            If percentage > 0.0 And percentage < 分段1 Then
42
+                ' 繪製進度條和文字
43
+                g.FillRectangle(New SolidBrush(Color.LightBlue), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
44
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
45
+            ElseIf percentage > 分段2 And percentage < 分段3 Then
46
+                ' 繪製進度條和文字
47
+                g.FillRectangle(New SolidBrush(Color.LightGreen), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
48
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
49
+            ElseIf percentage > 分段4 Then
50
+                ' 繪製進度條和文字
51
+                g.FillRectangle(New SolidBrush(Color.LightPink), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
52
+                g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
53
+            Else
54
+                '繪製文本
55
+                If Not Me.DataGridView.CurrentCell Is Nothing AndAlso Me.DataGridView.CurrentCell.RowIndex = rowIndex Then
56
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, New SolidBrush(cellStyle.SelectionForeColor), cellBounds.X + 6, cellBounds.Y + 2)
57
+                Else : g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2) : End If
58
+            End If
59
+        End Sub
60
+    End Class
61
+End Module

+ 36
- 0
GCM-SQL-MGMT/模組/SQL_Module.vb Zobrazit soubor

@@ -0,0 +1,36 @@
1
+Imports System.Data.SqlClient
2
+Imports System.IO
3
+Module SQL_Module
4
+    Public ConString, SQL1, SQL2, 進度條後墜, PA As String
5
+    Public conn As New SqlConnection : Public cmd As New SqlCommand
6
+    Public dr As SqlDataReader : Public da As New SqlDataAdapter
7
+    Public 分段1, 分段2, 分段3, 分段4 As Double
8
+    Public 分母, 圖庫限制 As Integer
9
+    Friend Sub ConnOpen()
10
+        conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
11
+    End Sub
12
+    Friend Sub CmdSet_For_DGV()
13
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd
14
+    End Sub
15
+    Friend Sub CmdSet_For_dr()
16
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
17
+    End Sub
18
+    Friend Sub SQL_連線字串_資料庫()
19
+        ConString = "Data Source=" & GCM_SQL_MGMT.IP_tb.Text & ";
20
+                     Initial Catalog=" & GCM_SQL_MGMT.資料庫_tb.Text & ";
21
+                     Persist Security Info=True;
22
+                     User ID=" & GCM_SQL_MGMT.帳號_tb.Text & ";
23
+                     Password=" & GCM_SQL_MGMT.密碼_tb.Text & ";
24
+                     Max pool size = 200;
25
+                     Connection Timeout=0"
26
+    End Sub
27
+    Friend Sub SQL_連線字串_圖片資料庫()
28
+        ConString = "Data Source=" & GCM_SQL_MGMT.IP_tb.Text & ";
29
+                     Initial Catalog=" & GCM_SQL_MGMT.選擇_tb.Text & ";
30
+                     Persist Security Info=True;
31
+                     User ID=" & GCM_SQL_MGMT.帳號_tb.Text & ";
32
+                     Password=" & GCM_SQL_MGMT.密碼_tb.Text & ";
33
+                     Max pool size = 200;
34
+                     Connection Timeout=0"
35
+    End Sub
36
+End Module

+ 92
- 0
GCM-SQL-MGMT/模組/SQL_語法1.vb Zobrazit soubor

@@ -0,0 +1,92 @@
1
+Module SQL_語法1
2
+    Friend Sub SQL_資料庫狀態()
3
+        ConnOpen()
4
+        SQL1 = "SELECT     DB_NAME(database_id) AS [資料庫名稱], physical_name AS [磁碟路徑], type_desc AS [類型描述], 
5
+                           state_desc  AS [狀態描述], size * 8.0 / 1024  AS [使用容量]
6
+                FROM       sys.master_files
7
+                WHERE     (DB_NAME(database_id) NOT LIKE N'master') AND (DB_NAME(database_id) NOT LIKE N'model') AND 
8
+                          (DB_NAME(database_id) NOT LIKE N'msdb') AND (DB_NAME(database_id) NOT LIKE N'tempdb') AND 
9
+                          (DB_NAME(database_id) NOT LIKE N'DWConfiguration') AND (DB_NAME(database_id) NOT LIKE N'DWDiagnostics') AND 
10
+                          (DB_NAME(database_id) NOT LIKE N'DWQueue') 
11
+                ORDER BY  (DB_NAME(database_id))"
12
+        CmdSet_For_DGV()
13
+    End Sub
14
+    Friend Sub SQL_伺服器1清單()
15
+        ConnOpen()
16
+        SQL1 = "SELECT    DB_NAME(database_id) AS 資料庫 FROM sys.master_files 
17
+                WHERE    (DB_NAME(database_id) NOT LIKE N'master') AND (DB_NAME(database_id) NOT LIKE N'model') AND 
18
+                         (DB_NAME(database_id) NOT LIKE N'msdb') AND (DB_NAME(database_id) NOT LIKE N'tempdb') AND 
19
+                         (DB_NAME(database_id) NOT LIKE N'DWConfiguration') AND (DB_NAME(database_id) NOT LIKE N'DWDiagnostics') AND 
20
+                         (DB_NAME(database_id) NOT LIKE N'DWQueue') 
21
+                GROUP BY  DB_NAME(database_id)  ORDER BY  DB_NAME(database_id)"
22
+        CmdSet_For_DGV()
23
+    End Sub
24
+    Friend Sub SQL_圖片資料庫管理查詢()
25
+        ConnOpen() : SQL1 = "SELECT 圖片資料庫, 是否可用  FROM 圖片資料庫管理 ORDER BY 圖片資料庫" : CmdSet_For_DGV()
26
+    End Sub
27
+    Friend Sub SQL_工程圖片資料庫管理查詢()
28
+        ConnOpen() : SQL1 = "SELECT 工程圖片資料庫 AS 圖片資料庫, 是否可用 FROM 工程圖片資料庫管理 ORDER BY 工程圖片資料庫" : CmdSet_For_DGV()
29
+    End Sub
30
+    Friend Sub SQL_工程文件資料庫管理查詢()
31
+        ConnOpen() : SQL1 = "SELECT 工程文件資料庫 AS 文件資料庫, 是否可用 FROM 工程文件資料庫管理 ORDER BY 工程文件資料庫" : CmdSet_For_DGV()
32
+    End Sub
33
+    Friend Sub SQL_工程圖片資料庫管理查詢1()
34
+        ConnOpen() : SQL1 = "SELECT 工程圖片資料庫, 是否可用 FROM 工程圖片資料庫管理 WHERE 工程圖片資料庫 LIKE N'" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "'" : CmdSet_For_dr()
35
+    End Sub
36
+    Friend Sub SQL_工程文件資料庫管理查詢1()
37
+        ConnOpen() : SQL1 = "SELECT 工程文件資料庫, 是否可用 FROM 工程文件資料庫管理 WHERE 工程文件資料庫 LIKE N'" & GCM_SQL_MGMT.文件資料庫名稱_tb.Text & "'" : CmdSet_For_dr()
38
+    End Sub
39
+    Friend Sub SQL_工程圖片資料庫管理查詢新增()
40
+        ConnOpen()
41
+        SQL1 = "INSERT INTO 工程圖片資料庫管理 (工程圖片資料庫, 是否可用) VALUES ('" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "','" & GCM_SQL_MGMT.是否可用_ch.Checked & "')"
42
+        CmdSet_For_dr()
43
+    End Sub
44
+    Friend Sub SQL_工程文件資料庫管理查詢新增()
45
+        ConnOpen()
46
+        SQL1 = "INSERT INTO 工程文件資料庫管理 (工程文件資料庫, 是否可用) VALUES ('" & GCM_SQL_MGMT.文件資料庫名稱_tb.Text & "','" & GCM_SQL_MGMT.是否可用1_ch.Checked & "')"
47
+        CmdSet_For_dr()
48
+    End Sub
49
+    Friend Sub SQL_工程圖片資料庫管理查詢修改()
50
+        ConnOpen()
51
+        SQL1 = "UPDATE 工程圖片資料庫管理 SET 是否可用 = '" & GCM_SQL_MGMT.是否可用_ch.Checked & "' WHERE 工程圖片資料庫 LIKE N'" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "'"
52
+        CmdSet_For_dr()
53
+    End Sub
54
+    Friend Sub SQL_工程文件資料庫管理查詢修改()
55
+        ConnOpen()
56
+        SQL1 = "UPDATE 工程文件資料庫管理 SET 是否可用 = '" & GCM_SQL_MGMT.是否可用1_ch.Checked & "' WHERE 工程文件資料庫 LIKE N'" & GCM_SQL_MGMT.文件資料庫名稱_tb.Text & "'"
57
+        CmdSet_For_dr()
58
+    End Sub
59
+    Friend Sub SQL_圖片資料庫管理查詢1()
60
+        ConnOpen() : SQL1 = "SELECT 圖片資料庫, 是否可用 FROM 圖片資料庫管理 WHERE 圖片資料庫 LIKE N'" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "'" : CmdSet_For_dr()
61
+    End Sub
62
+    Friend Sub SQL_圖片資料庫管理查詢新增()
63
+        ConnOpen()
64
+        SQL1 = "INSERT INTO 圖片資料庫管理 (圖片資料庫, 是否可用) VALUES ('" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "','" & GCM_SQL_MGMT.是否可用_ch.Checked & "')"
65
+        CmdSet_For_dr()
66
+    End Sub
67
+    Friend Sub SQL_圖片資料庫管理查詢修改()
68
+        ConnOpen()
69
+        SQL1 = "UPDATE 圖片資料庫管理 SET 是否可用 = '" & GCM_SQL_MGMT.是否可用_ch.Checked & "' WHERE 圖片資料庫 LIKE N'" & GCM_SQL_MGMT.圖片資料庫名稱_tb.Text & "'"
70
+        CmdSet_For_dr()
71
+    End Sub
72
+    Friend Sub SQL_主資料庫LOG檔案截斷()
73
+        Dim DSF(1) As String : Dim NB1 As Integer = 0
74
+        ConnOpen() : SQL1 = "USE [" & PA & "]" : CmdSet_For_dr()
75
+        ConnOpen() : SQL1 = "select name from sys.database_files;" : CmdSet_For_dr()
76
+        While (dr.Read()) : DSF(NB1) = dr("name").ToString : NB1 += 1 : End While
77
+
78
+        If PA = DSF(0) Then : Else
79
+            ConnOpen() : SQL1 = "alter database [" & PA & "] modify file(name=[" & DSF(0) & "], newname =[" & PA & "])" : CmdSet_For_dr()
80
+        End If
81
+
82
+        If PA & "_log" = DSF(1) Then : Else
83
+            ConnOpen() : SQL1 = "alter database [" & PA & "] modify file(name=[" & DSF(1) & "], newname=[" & PA & "_log])" : CmdSet_For_dr()
84
+        End If
85
+
86
+        ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
87
+                             SET RECOVERY SIMPLE;" : CmdSet_For_dr()
88
+        ConnOpen() : SQL1 = "DBCC SHRINKFILE ([" & PA & "_Log], 1);" : CmdSet_For_dr()
89
+        ConnOpen() : SQL1 = "ALTER DATABASE [" & PA & "]
90
+                             SET RECOVERY FULL;" : CmdSet_For_dr()
91
+    End Sub
92
+End Module

Loading…
Zrušit
Uložit