Пример #1
0
        //インターフェイス情報を表示する
        private void getInterface(watch_InterfaceDS interfacedt)
        {
            this.m_interfaceno.Text   = interfacedt.watch_Interfaceno;
            this.m_hostno.Text        = interfacedt.host_no;
            this.m_userno.Text        = interfacedt.userno;
            this.m_systemno.Text      = interfacedt.systemno;
            this.m_siteno.Text        = interfacedt.siteno;
            this.m_interfaceName.Text = interfacedt.interfacename;
            this.m_statusCombo.Text   = interfacedt.status;
            this.m_watchtype.Text     = interfacedt.type;

            this.m_koumoku.Text    = interfacedt.kanshi;
            this.m_sikiiti.Text    = interfacedt.border;
            this.m_addressIP.Text  = interfacedt.IPaddress;
            this.m_addressNAT.Text = interfacedt.IPaddressNAT;
            this.m_biko.Text       = interfacedt.biko;

            this.m_updateOpe.Text = interfacedt.chk_name_id;
            this.m_update.Text    = interfacedt.chk_date;

            Class_Detaget dg = new Class_Detaget();

            dg.con = con;
            if (interfacedt.userno != null && interfacedt.userno != "")
            {
                this.m_cutomername.Text = dg.getCustomername(interfacedt.userno);
            }
            //システム情報
            if (interfacedt.systemno != null && interfacedt.systemno != "")
            {
                this.m_systemname.Text = dg.getSystemname(interfacedt.systemno);
            }
            //拠点名取得
            if (interfacedt.siteno != null && interfacedt.siteno != "")
            {
                this.m_sitename.Text = dg.getSitename(interfacedt.siteno);
            }
            //ホスト名取得
            if (interfacedt.host_no != null && interfacedt.host_no != "")
            {
                this.m_hostname.Text = dg.getHostname(interfacedt.host_no);
            }
        }
Пример #2
0
        //ダブルリック
        private void m_host_List_DoubleClick(object sender, EventArgs e)
        {
            ListView.SelectedIndexCollection item = m_InterfaceList.SelectedIndices;
            watch_InterfaceDS interfacedt         = new watch_InterfaceDS();

            interfacedt.watch_Interfaceno = this.m_InterfaceList.Items[item[0]].SubItems[0].Text;
            interfacedt.interfacename     = this.m_InterfaceList.Items[item[0]].SubItems[1].Text;
            interfacedt.status            = this.m_InterfaceList.Items[item[0]].SubItems[2].Text;
            interfacedt.type         = this.m_InterfaceList.Items[item[0]].SubItems[3].Text;
            interfacedt.kanshi       = this.m_InterfaceList.Items[item[0]].SubItems[4].Text;
            interfacedt.border       = this.m_InterfaceList.Items[item[0]].SubItems[5].Text;
            interfacedt.IPaddress    = this.m_InterfaceList.Items[item[0]].SubItems[6].Text;
            interfacedt.IPaddressNAT = this.m_InterfaceList.Items[item[0]].SubItems[7].Text;
            interfacedt.biko         = this.m_InterfaceList.Items[item[0]].SubItems[8].Text;
            interfacedt.userno       = this.m_InterfaceList.Items[item[0]].SubItems[9].Text;

            interfacedt.systemno    = this.m_InterfaceList.Items[item[0]].SubItems[10].Text;
            interfacedt.siteno      = this.m_InterfaceList.Items[item[0]].SubItems[11].Text;
            interfacedt.host_no     = this.m_InterfaceList.Items[item[0]].SubItems[12].Text;
            interfacedt.chk_date    = this.m_InterfaceList.Items[item[0]].SubItems[13].Text;
            interfacedt.chk_name_id = this.m_InterfaceList.Items[item[0]].SubItems[14].Text;

            getInterface(interfacedt);
        }