private void btmDataBase_Click(object sender, EventArgs e) { try { if (this.gridView1.FocusedRowHandle < 0 || this.gridView1.RowCount <= 0) { return; } if (Basic.ShowMessageQuestion("DB 접속 URI를 파일에 기록합니다. \n\r하시겠습니까?") == DialogResult.No) { return; } string strDbUri = this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, "DB_URI").ToString().Trim(); if (strDbUri == "") { return; } mService.ServiceURI = strDbUri; SettingKeys.SetValue(SettingKeys.WEB_SERVICE_IP, strDbUri, true); Basic.ShowMessage(1, "DB 접속 정보를 변경하였습니다. \n\r파일을 수정했습니다."); lblVan.Text = Parm.CurrentUserInformation.roomTask.VanInfomation.vanType + " / " + Parm.CurrentUserInformation.roomTask.VanInfomation.SvrIP + " / " + Parm.CurrentUserInformation.roomTask.VanInfomation.SvrPort; lblWCF.Text = mService.ServiceURI; fnLoginComboBoxVisable(); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }
private void btnVanReal_Click(object sender, EventArgs e) { try { if (this.gridView2.FocusedRowHandle < 0) { Basic.ShowMessage(1, "선택된 데이터가 없습니다."); return; } int i = this.gridView2.FocusedRowHandle; string vanType = this.gridView2.GetRowCellValue(i, "VAN_TYPE").ToString().Trim(); string ServerIP = this.gridView2.GetRowCellValue(i, "SERVER_IP").ToString().Trim(); string ServerPort = this.gridView2.GetRowCellValue(i, "SERVER_PORT").ToString().Trim(); SettingKeys.SetValue(SettingKeys.VAN_TYPE, vanType, true); SettingKeys.SetValue(SettingKeys.VAN_SVR_IP, ServerIP, true); SettingKeys.SetValue(SettingKeys.VAN_SVR_PORT, ServerPort, true); Basic.ShowMessage(1, "수정하였습니다."); lblVan.Text = vanType + " / " + ServerIP + " / " + ServerPort; lblWCF.Text = mService.ServiceURI; BizVan.SettingVanParm(vanType, ServerIP, ServerPort, " "); Basic.ShowMessage(1, "리얼 IP로 수정되었습니다. TID 를 갱신하기 위해 다시 실행하십시요"); Application.Exit(); } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }
private void btnVanTest_Click(object sender, EventArgs e) { try { if (this.gridView2.FocusedRowHandle < 0) { Basic.ShowMessage(1, "선택된 데이터가 없습니다."); return; } int i = this.gridView2.FocusedRowHandle; string vanType = this.gridView2.GetRowCellValue(i, "VAN_TYPE").ToString().Trim(); string ServerIP = this.gridView2.GetRowCellValue(i, "TEST_IP").ToString().Trim(); string ServerPort = this.gridView2.GetRowCellValue(i, "TEST_PORT").ToString().Trim(); string TestTID = this.gridView2.GetRowCellValue(i, "TEST_TID").ToString().Trim(); SettingKeys.SetValue(SettingKeys.VAN_TYPE, vanType, true); SettingKeys.SetValue(SettingKeys.VAN_SVR_IP, ServerIP, true); SettingKeys.SetValue(SettingKeys.VAN_SVR_PORT, ServerPort, true); BizVan.SettingVanParm(vanType, ServerIP, ServerPort, TestTID); Basic.ShowMessage(1, "수정하였습니다."); lblVan.Text = vanType + " / " + ServerIP + " / " + ServerPort + " / TID = " + TestTID; lblWCF.Text = mService.ServiceURI; } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }