SVN r1182
SVN-Revision: r1182
This commit is contained in:
@@ -65,7 +65,10 @@ namespace Lskj.Main
|
||||
try
|
||||
{
|
||||
DBConfig.Instance.ReadConfig(true);
|
||||
this.txtServerName.Text = DBConfig.Instance.ServerName;
|
||||
serverType.Items.Add("SqlServer");
|
||||
serverType.Items.Add("达梦数据库");
|
||||
serverType.SelectedValue = DBConfig.Instance.ServerType;
|
||||
this.txtServerName.Text = DBConfig.Instance.ServerName;
|
||||
this.txtServerNameInternal.Text = DBConfig.Instance.InternalNetworkAddress;
|
||||
this.txtDBName.Text = DBConfig.Instance.DataBase;
|
||||
|
||||
@@ -169,11 +172,12 @@ namespace Lskj.Main
|
||||
/// <param name="isSave">if set to <c>true</c> [is save].</param>
|
||||
private void ConnectServer(bool isSave = false)
|
||||
{
|
||||
|
||||
|
||||
string dbName = this.txtDBName.Text.Trim();
|
||||
string internalNetworkAddress = this.txtServerNameInternal.Text.Trim();
|
||||
string externalNetworkAddress = this.txtServerName.Text.Trim();
|
||||
bool internalNetwork = radioWithin.Checked;
|
||||
string serverTypeValue = serverType.Text + "";
|
||||
string serverName = internalNetwork ? internalNetworkAddress : externalNetworkAddress;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(serverName))
|
||||
@@ -192,6 +196,7 @@ namespace Lskj.Main
|
||||
DBConfig.Instance.InternalNetworkAddress = internalNetworkAddress;
|
||||
DBConfig.Instance.IsInternalNetwork = internalNetwork;
|
||||
DBConfig.Instance.ExternalNetworkAddress = externalNetworkAddress;
|
||||
DBConfig.Instance.ServerType = serverTypeValue;
|
||||
DBConfig.Instance.Connection = "";
|
||||
DBConfig.Instance.dephiConnection = "";
|
||||
|
||||
@@ -200,4 +205,4 @@ namespace Lskj.Main
|
||||
{
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
if (Del
|
||||
//if (DelphiHelpe
|
||||
Reference in New Issue
Block a user