From 19dd8c2b953b66294e13ef56dfbc3c5fbe38fc23 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 29 四月 2024 13:53:08 +0800
Subject: [PATCH] 1

---
 JavaCode/db/FrmDB.Designer.cs    |  283 +++++++++++++++++++++++++
 JavaCode/db/FrmDbCfg.cs          |   27 ++
 JavaCode/db/FrmDbCfg.Designer.cs |   87 ++++---
 JavaCode/db/FrmDB.resx           |  129 +++++++++++
 JavaCode/db/FrmDbCfg.resx        |   42 --
 JavaCode/db/FrmDB.cs             |   30 ++
 JavaCode/JavaCode.csproj         |    9 
 7 files changed, 531 insertions(+), 76 deletions(-)

diff --git a/JavaCode/JavaCode.csproj b/JavaCode/JavaCode.csproj
index 82bdc5d..0639ceb 100644
--- a/JavaCode/JavaCode.csproj
+++ b/JavaCode/JavaCode.csproj
@@ -97,6 +97,12 @@
     <Compile Include="db\FrmDbCfg.Designer.cs">
       <DependentUpon>FrmDbCfg.cs</DependentUpon>
     </Compile>
+    <Compile Include="db\FrmDB.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="db\FrmDB.Designer.cs">
+      <DependentUpon>FrmDB.cs</DependentUpon>
+    </Compile>
     <Compile Include="FrmMain.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -132,6 +138,9 @@
     <EmbeddedResource Include="db\FrmDbCfg.resx">
       <DependentUpon>FrmDbCfg.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="db\FrmDB.resx">
+      <DependentUpon>FrmDB.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FrmMain.resx">
       <DependentUpon>FrmMain.cs</DependentUpon>
       <SubType>Designer</SubType>
diff --git a/JavaCode/db/FrmDB.Designer.cs b/JavaCode/db/FrmDB.Designer.cs
new file mode 100644
index 0000000..6641f55
--- /dev/null
+++ b/JavaCode/db/FrmDB.Designer.cs
@@ -0,0 +1,283 @@
+锘縩amespace JavaCode.db
+{
+    partial class FrmDB
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmDbCfg));
+            this.pnlTop = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.lblClose = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.txtHost = new System.Windows.Forms.TextBox();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.btnAdd = new System.Windows.Forms.Button();
+            this.cboType = new System.Windows.Forms.ComboBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.txtPort = new System.Windows.Forms.TextBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.txtDB = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.txtUser = new System.Windows.Forms.TextBox();
+            this.label7 = new System.Windows.Forms.Label();
+            this.txtPwd = new System.Windows.Forms.TextBox();
+            this.pnlTop.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // pnlTop
+            // 
+            this.pnlTop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.pnlTop.Controls.Add(this.label1);
+            this.pnlTop.Controls.Add(this.lblClose);
+            this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
+            this.pnlTop.Location = new System.Drawing.Point(0, 0);
+            this.pnlTop.Margin = new System.Windows.Forms.Padding(2);
+            this.pnlTop.Name = "pnlTop";
+            this.pnlTop.Size = new System.Drawing.Size(530, 36);
+            this.pnlTop.TabIndex = 0;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label1.Location = new System.Drawing.Point(12, 12);
+            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(41, 12);
+            this.label1.TabIndex = 0;
+            this.label1.Text = "鏁版嵁搴�";
+            // 
+            // lblClose
+            // 
+            this.lblClose.AutoSize = true;
+            this.lblClose.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.lblClose.Image = ((System.Drawing.Image)(resources.GetObject("lblClose.Image")));
+            this.lblClose.Location = new System.Drawing.Point(501, 12);
+            this.lblClose.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.lblClose.Name = "lblClose";
+            this.lblClose.Size = new System.Drawing.Size(17, 12);
+            this.lblClose.TabIndex = 1;
+            this.lblClose.Text = "  ";
+            this.lblClose.Click += new System.EventHandler(this.label2_Click);
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label2.Location = new System.Drawing.Point(34, 65);
+            this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(41, 12);
+            this.label2.TabIndex = 1;
+            this.label2.Text = "绫诲瀷锛�";
+            // 
+            // txtHost
+            // 
+            this.txtHost.Location = new System.Drawing.Point(280, 62);
+            this.txtHost.Margin = new System.Windows.Forms.Padding(2);
+            this.txtHost.Name = "txtHost";
+            this.txtHost.Size = new System.Drawing.Size(135, 21);
+            this.txtHost.TabIndex = 2;
+            this.txtHost.Text = "127.0.0.1";
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.Location = new System.Drawing.Point(434, 166);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(59, 23);
+            this.btnCancel.TabIndex = 5;
+            this.btnCancel.Text = "鍙� 娑�";
+            this.btnCancel.UseVisualStyleBackColor = true;
+            // 
+            // btnAdd
+            // 
+            this.btnAdd.Location = new System.Drawing.Point(357, 166);
+            this.btnAdd.Name = "btnAdd";
+            this.btnAdd.Size = new System.Drawing.Size(59, 23);
+            this.btnAdd.TabIndex = 6;
+            this.btnAdd.Text = "娣� 鍔�";
+            this.btnAdd.UseVisualStyleBackColor = true;
+            // 
+            // cboType
+            // 
+            this.cboType.FormattingEnabled = true;
+            this.cboType.Items.AddRange(new object[] {
+            "PostgresSQL",
+            "Sybase"});
+            this.cboType.Location = new System.Drawing.Point(78, 62);
+            this.cboType.Name = "cboType";
+            this.cboType.Size = new System.Drawing.Size(135, 20);
+            this.cboType.TabIndex = 7;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label3.Location = new System.Drawing.Point(235, 66);
+            this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(41, 12);
+            this.label3.TabIndex = 8;
+            this.label3.Text = "涓绘満锛�";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("瀹嬩綋", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label4.Location = new System.Drawing.Point(422, 66);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(14, 14);
+            this.label4.TabIndex = 9;
+            this.label4.Text = ":";
+            // 
+            // txtPort
+            // 
+            this.txtPort.Location = new System.Drawing.Point(442, 63);
+            this.txtPort.Margin = new System.Windows.Forms.Padding(2);
+            this.txtPort.Name = "txtPort";
+            this.txtPort.Size = new System.Drawing.Size(50, 21);
+            this.txtPort.TabIndex = 10;
+            this.txtPort.Text = "5432";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label5.Location = new System.Drawing.Point(22, 116);
+            this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(53, 12);
+            this.label5.TabIndex = 12;
+            this.label5.Text = "鏁版嵁搴擄細";
+            // 
+            // txtDB
+            // 
+            this.txtDB.Location = new System.Drawing.Point(78, 112);
+            this.txtDB.Margin = new System.Windows.Forms.Padding(2);
+            this.txtDB.Name = "txtDB";
+            this.txtDB.Size = new System.Drawing.Size(135, 21);
+            this.txtDB.TabIndex = 11;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label6.Location = new System.Drawing.Point(224, 116);
+            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(53, 12);
+            this.label6.TabIndex = 14;
+            this.label6.Text = "鐢ㄦ埛鍚嶏細";
+            // 
+            // txtUser
+            // 
+            this.txtUser.Location = new System.Drawing.Point(280, 112);
+            this.txtUser.Margin = new System.Windows.Forms.Padding(2);
+            this.txtUser.Name = "txtUser";
+            this.txtUser.Size = new System.Drawing.Size(74, 21);
+            this.txtUser.TabIndex = 13;
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.label7.Location = new System.Drawing.Point(358, 116);
+            this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(41, 12);
+            this.label7.TabIndex = 16;
+            this.label7.Text = "瀵嗙爜锛�";
+            // 
+            // txtPwd
+            // 
+            this.txtPwd.Location = new System.Drawing.Point(401, 112);
+            this.txtPwd.Margin = new System.Windows.Forms.Padding(2);
+            this.txtPwd.Name = "txtPwd";
+            this.txtPwd.PasswordChar = '*';
+            this.txtPwd.Size = new System.Drawing.Size(92, 21);
+            this.txtPwd.TabIndex = 15;
+            // 
+            // FrmDbCfg
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(530, 217);
+            this.Controls.Add(this.label7);
+            this.Controls.Add(this.txtPwd);
+            this.Controls.Add(this.label6);
+            this.Controls.Add(this.txtUser);
+            this.Controls.Add(this.label5);
+            this.Controls.Add(this.txtDB);
+            this.Controls.Add(this.txtPort);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.cboType);
+            this.Controls.Add(this.btnAdd);
+            this.Controls.Add(this.btnCancel);
+            this.Controls.Add(this.txtHost);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.pnlTop);
+            this.ForeColor = System.Drawing.SystemColors.Highlight;
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(2);
+            this.Name = "FrmDbCfg";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "FrmDbCfg";
+            this.Load += new System.EventHandler(this.FrmDbCfg_Load);
+            this.pnlTop.ResumeLayout(false);
+            this.pnlTop.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel pnlTop;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label lblClose;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.TextBox txtHost;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.Button btnAdd;
+        private System.Windows.Forms.ComboBox cboType;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.TextBox txtPort;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.TextBox txtDB;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.TextBox txtUser;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.TextBox txtPwd;
+
+
+    }
+}
\ No newline at end of file
diff --git a/JavaCode/db/FrmDB.cs b/JavaCode/db/FrmDB.cs
new file mode 100644
index 0000000..9dabdd1
--- /dev/null
+++ b/JavaCode/db/FrmDB.cs
@@ -0,0 +1,30 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace JavaCode.db
+{
+    public partial class FrmDB : Form
+    {
+        public FrmDB()
+        {
+            InitializeComponent();
+        }
+
+        private void FrmDbCfg_Load(object sender, EventArgs e)
+        {
+            //
+        }
+
+        private void label2_Click(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+    }
+}
diff --git a/JavaCode/db/FrmDB.resx b/JavaCode/db/FrmDB.resx
new file mode 100644
index 0000000..5505a89
--- /dev/null
+++ b/JavaCode/db/FrmDB.resx
@@ -0,0 +1,129 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="lblClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABGdBTUEAALGPC/xhBQAAAHtJREFUKFOd
+        kokJgDAQBFOtFfiAaGGWpQWouyEb8pxGHBhI7m594wIdPODodzWss885DxcnvIIzTOFePc75IK+golQw
+        Dcgd+luXDboZNRpfoYfWQOkCM1rBKiCeHol1kwFaAbnCjFZAxuAErYHXr/frP/06EYSLj2fPuRvQrG2P
+        p84XdwAAAABJRU5ErkJggg==
+</value>
+  </data>
+</root>
\ No newline at end of file
diff --git a/JavaCode/db/FrmDbCfg.Designer.cs b/JavaCode/db/FrmDbCfg.Designer.cs
index 816fe70..78426eb 100644
--- a/JavaCode/db/FrmDbCfg.Designer.cs
+++ b/JavaCode/db/FrmDbCfg.Designer.cs
@@ -30,11 +30,11 @@
         {
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmDbCfg));
             this.pnlTop = new System.Windows.Forms.Panel();
+            this.cboDB = new System.Windows.Forms.ComboBox();
+            this.lblLog = new System.Windows.Forms.Label();
+            this.lblDB = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
             this.lblClose = new System.Windows.Forms.Label();
-            this.lblDB = new System.Windows.Forms.Label();
-            this.lblLog = new System.Windows.Forms.Label();
-            this.cboDB = new System.Windows.Forms.ComboBox();
             this.dgvGrid = new System.Windows.Forms.DataGridView();
             this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.搴忓彿 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -61,10 +61,52 @@
             this.pnlTop.Size = new System.Drawing.Size(720, 36);
             this.pnlTop.TabIndex = 0;
             // 
+            // cboDB
+            // 
+            this.cboDB.FormattingEnabled = true;
+            this.cboDB.Items.AddRange(new object[] {
+            "璇烽�夋嫨",
+            "鏈湴鏂囦欢",
+            "鏁版嵁搴�",
+            "HTTP鎺ュ彛"});
+            this.cboDB.Location = new System.Drawing.Point(341, 9);
+            this.cboDB.Name = "cboDB";
+            this.cboDB.Size = new System.Drawing.Size(107, 20);
+            this.cboDB.TabIndex = 3;
+            // 
+            // lblLog
+            // 
+            this.lblLog.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.lblLog.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblLog.Image = ((System.Drawing.Image)(resources.GetObject("lblLog.Image")));
+            this.lblLog.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.lblLog.Location = new System.Drawing.Point(580, 9);
+            this.lblLog.Margin = new System.Windows.Forms.Padding(0);
+            this.lblLog.Name = "lblLog";
+            this.lblLog.Size = new System.Drawing.Size(71, 19);
+            this.lblLog.TabIndex = 1;
+            this.lblLog.Text = "閲囬泦鏃ュ織";
+            this.lblLog.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.lblLog.Click += new System.EventHandler(this.label4_Click);
+            // 
+            // lblDB
+            // 
+            this.lblDB.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.lblDB.Image = ((System.Drawing.Image)(resources.GetObject("lblDB.Image")));
+            this.lblDB.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.lblDB.Location = new System.Drawing.Point(466, 7);
+            this.lblDB.Name = "lblDB";
+            this.lblDB.Size = new System.Drawing.Size(87, 23);
+            this.lblDB.TabIndex = 2;
+            this.lblDB.Text = "娣诲姞鏁版嵁婧�";
+            this.lblDB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.lblDB.Click += new System.EventHandler(this.label3_Click);
+            // 
             // label1
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.ForeColor = System.Drawing.SystemColors.Desktop;
             this.label1.Location = new System.Drawing.Point(12, 12);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(65, 12);
@@ -82,45 +124,6 @@
             this.lblClose.TabIndex = 1;
             this.lblClose.Text = "  ";
             this.lblClose.Click += new System.EventHandler(this.label2_Click);
-            // 
-            // lblDB
-            // 
-            this.lblDB.Image = ((System.Drawing.Image)(resources.GetObject("lblDB.Image")));
-            this.lblDB.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            this.lblDB.Location = new System.Drawing.Point(466, 7);
-            this.lblDB.Name = "lblDB";
-            this.lblDB.Size = new System.Drawing.Size(87, 23);
-            this.lblDB.TabIndex = 2;
-            this.lblDB.Text = "娣诲姞鏁版嵁婧�";
-            this.lblDB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            this.lblDB.Click += new System.EventHandler(this.label3_Click);
-            // 
-            // lblLog
-            // 
-            this.lblLog.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.lblLog.Image = ((System.Drawing.Image)(resources.GetObject("lblLog.Image")));
-            this.lblLog.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            this.lblLog.Location = new System.Drawing.Point(580, 9);
-            this.lblLog.Margin = new System.Windows.Forms.Padding(0);
-            this.lblLog.Name = "lblLog";
-            this.lblLog.Size = new System.Drawing.Size(71, 19);
-            this.lblLog.TabIndex = 1;
-            this.lblLog.Text = "閲囬泦鏃ュ織";
-            this.lblLog.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            this.lblLog.Click += new System.EventHandler(this.label4_Click);
-            // 
-            // cboDB
-            // 
-            this.cboDB.FormattingEnabled = true;
-            this.cboDB.Items.AddRange(new object[] {
-            "璇烽�夋嫨",
-            "鏈湴鏂囦欢",
-            "鏁版嵁搴�",
-            "HTTP鎺ュ彛"});
-            this.cboDB.Location = new System.Drawing.Point(341, 9);
-            this.cboDB.Name = "cboDB";
-            this.cboDB.Size = new System.Drawing.Size(107, 20);
-            this.cboDB.TabIndex = 3;
             // 
             // dgvGrid
             // 
diff --git a/JavaCode/db/FrmDbCfg.cs b/JavaCode/db/FrmDbCfg.cs
index 9ec2242..a58b811 100644
--- a/JavaCode/db/FrmDbCfg.cs
+++ b/JavaCode/db/FrmDbCfg.cs
@@ -12,6 +12,8 @@
 {
     public partial class FrmDbCfg : Form
     {
+        Form showForm = null;
+
         public FrmDbCfg()
         {
             InitializeComponent();
@@ -27,14 +29,35 @@
             this.Close();
         }
 
+        // 娣诲姞鏁版嵁婧�
         private void label3_Click(object sender, EventArgs e)
         {
-            //娣诲姞鏁版嵁婧�
+            string type = this.cboDB.SelectedText;
+            switch (type)
+            {
+                case "鏈湴鏂囦欢":
+
+                    break;
+                case "鏁版嵁搴�":
+                    showForm = new FrmDB();
+                    showForm.FormClosing += showForm_FormClosing;
+                    showForm.Show();
+                    this.Hide();
+                    break;
+                case "HTTP鎺ュ彛":
+
+                    break;
+            }
         }
 
+        void showForm_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            this.Show();
+        }
+
+        // 閲囬泦鏃ュ織
         private void label4_Click(object sender, EventArgs e)
         {
-            //閲囬泦鏃ュ織
         }
     }
 }
diff --git a/JavaCode/db/FrmDbCfg.resx b/JavaCode/db/FrmDbCfg.resx
index 6e19ac8..f331c3a 100644
--- a/JavaCode/db/FrmDbCfg.resx
+++ b/JavaCode/db/FrmDbCfg.resx
@@ -130,44 +130,22 @@
   </data>
   <data name="lblDB.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
-        iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
-        YQUAAAEXSURBVDhPrVNBCsJADFyvHhQPgghWEb/jL3yA4EV/IB5sFRT8iBfrV+oD7N1bx8yaFtuuWtHA
-        kDaZCdls1hRtuESzH2DmBTgLLoKb+rDvY9I9oK5Ut3lrjIUcC/AGV/JUkjfPx0IISUHwCgn5Kn2YdlAq
-        0AtwFL9Un8sJkqwjzkACziMMduiQQ+/KC2LqjQ7RRUBnizaL0LvyFj6mRj54C05CpSIbnFiE12cDPLsV
-        7NEiDFBjEfo0xnxhRhGLcA/SwMqKPhh5T5rb3zoJnwI5UMAatrAjb8GZcJWdSUGlIrwdvgX5uZaSgip7
-        MtqiQc7vG5va129ng7lK86YdfXrFcamDovGMHBanLoJIwD2K7L/EsxlkZswdNT83oRjcMUwAAAAASUVO
-        RK5CYII=
+        iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAABGdBTUEAALGPC/xhBQAAARdJREFUOE+t
+        U0EKwkAMXK8eFA+CCFYRv+MvfIDgRX8gHmwVFPyIF+tX6gPs3VvHzJoW265a0cCQNpkJ2WzWFG24RLMf
+        YOYFOAsugpv6sO9j0j2grlS3eWuMhRwL8AZX8lSSN8/HQghJQfAKCfkqfZh2UCrQC3AUv1SfywmSrCPO
+        QALOIwx26JBD78oLYuqNDtFFQGeLNovQu/IWPqZGPngLTkKlIhucWITXZwM8uxXs0SIMUGMR+jTGfGFG
+        EYtwD9LAyoo+GHlPmtvfOgmfAjlQwBq2sCNvwZlwlZ1JQaUivB2+Bfm5lpKCKnsy2qJBzu8bm9rXb2eD
+        uUrzph19esVxqYOi8YwcFqcugkjAPYrsv8SzGWRmzB01PzehGNwxTAAAAABJRU5ErkJggg==
 </value>
   </data>
   <data name="lblClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
-        iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
-        YQUAAAB7SURBVChTnZKJCYAwEARTrRX4gGhhlqUFqLshG/KcRhwYSO5ufeMCHTzg6Hc1rLPPOQ8XJ7yC
-        M0zhXj3O+SCvoKJUMA3IHfpblw26GTUaX6GH1kDpAjNawSognh6JdZMBWgG5woxWQMbgBK2B16/36z/9
-        OhGEi49nz7kb0Kxtj6fOF3cAAAAASUVORK5CYII=
+        iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABGdBTUEAALGPC/xhBQAAAHtJREFUKFOd
+        kokJgDAQBFOtFfiAaGGWpQWouyEb8pxGHBhI7m594wIdPODodzWss885DxcnvIIzTOFePc75IK+golQw
+        Dcgd+luXDboZNRpfoYfWQOkCM1rBKiCeHol1kwFaAbnCjFZAxuAErYHXr/frP/06EYSLj2fPuRvQrG2P
+        p84XdwAAAABJRU5ErkJggg==
 </value>
   </data>
-  <metadata name="ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="搴忓彿.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="鏁版嵁婧愬悕绉�.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="绫诲瀷.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="浼犺緭棰戠巼.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="鐘舵��.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="鎿嶄綔.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <metadata name="ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>

--
Gitblit v1.9.3