[성현모] TRA Recovery 기능 수정
This commit is contained in:
@ -276,8 +276,22 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
return;
|
||||
}
|
||||
|
||||
DatabaseConnControl.LongTermCatalogName.RemoveAll(x=>x != comboDbList.Text);
|
||||
//cpxv2 ip 아님
|
||||
if (string.IsNullOrEmpty(comboDbList2.Text) == true)
|
||||
{
|
||||
lbError.Text = "No selected Recovery TestList DataBase";
|
||||
return;
|
||||
}
|
||||
|
||||
//선택완료되면 DB닫았다가 다시열기
|
||||
DatabaseConnControl.MainCatalogName = comboDbList2.Text;
|
||||
DatabaseConnControl.MainDBIP = maskedTextBoxTLIP.Text;
|
||||
DatabaseConnControl.LogDBIP = maskedTextBoxTLIP.Text;
|
||||
|
||||
DatabaseConnControl.ConnectTestListDB();
|
||||
|
||||
DatabaseConnControl.LongTermCatalogName.RemoveAll(x=>x != comboDbList.Text);
|
||||
|
||||
bSelectUseDataServer2 = checkBoxUseDT2.Checked;
|
||||
//
|
||||
nOverviewModelC1 = comboBoxOverviewModel1.SelectedIndex;
|
||||
@ -341,14 +355,14 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
|
||||
private void btnRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (IsValidIPv4(maskedTextBoxDT1IP.Text) == false)
|
||||
if (IsValidIPv4(maskedTextBoxTLIP.Text) == false)
|
||||
{
|
||||
lbError.Text = "Invalid Log Server IP Address";
|
||||
return;
|
||||
}
|
||||
|
||||
lbError.Text = string.Empty;
|
||||
DatabaseConnControl.ConnectTestListDB(maskedTextBoxDT1IP.Text);
|
||||
DatabaseConnControl.ConnectTestListDB(maskedTextBoxTLIP.Text);
|
||||
var dbList = DatabaseConnControl.LongTermCatalogName;
|
||||
|
||||
comboDbList.Items.Clear();
|
||||
@ -360,5 +374,31 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
string pattern = @"^((25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)$";
|
||||
return Regex.IsMatch(input, pattern);
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void label4_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (IsValidIPv4(maskedTextBoxTLIP.Text) == false)
|
||||
{
|
||||
lbError.Text = "Invalid Log Server IP Address";
|
||||
return;
|
||||
}
|
||||
|
||||
lbError.Text = string.Empty;
|
||||
DatabaseConnControl.ConnectTestListDB(maskedTextBoxTLIP.Text);
|
||||
var dbList = DatabaseConnControl.LongTermCatalogName;
|
||||
|
||||
comboDbList2.Items.Clear();
|
||||
comboDbList2.Items.AddRange(dbList.ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user