示例#1
0
        //検索ボタン
        private void m_selectBtn_Click(object sender, EventArgs e)
        {
            this.m_selectBtn.Enabled = false;
            try
            {
                m_system_list.Rows.Clear();
                m_site_list.Rows.Clear();
                m_host_list.Rows.Clear();
                m_interface_list.Rows.Clear();


                Dictionary <string, string> param_dict = new Dictionary <string, string>();

                Class_Detaget getdata = new Class_Detaget();

                dsp_L = new DISP_dataSet();

                //カスタマ名コンボボックス
                if (m_usernameCombo.Text != "")
                {
                    param_dict["username"] = m_usernameCombo.Text;
                }

                //構成データの取得
                getdata.con = con;
                dsp_L       = getdata.getSelectDataFor_Interface(param_dict, con, dsp_L);


                disp_system(dsp_L);

                disp_site(dsp_L);

                disp_host(dsp_L);

                disp_interface(dsp_L);

                //テンプレートを取得
                taskchange();
            }
            catch (Exception ex)
            {
                MessageBox.Show("構成情報の表示時にエラーが発生しました。" + ex.Message, "構成情報表示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                logger.ErrorFormat("構成情報の表示時にエラーが発生しました。" + ex.Message);
            }
            finally
            {
                this.m_selectBtn.Enabled = true;
            }

            this.m_selectBtn.Enabled = true;
        }