//拠点一覧を取得する private void getsite(siteDS sitedt) { this.m_siteno.Text = sitedt.siteno; this.m_userno.Text = sitedt.userno; this.m_systemno.Text = sitedt.systemno; this.m_systemname.Text = sitedt.systemname; this.m_sitename.Text = sitedt.sitename; this.m_address1.Text = sitedt.address1; this.m_address2.Text = sitedt.address2; this.m_tel.Text = sitedt.telno; this.m_statusCombo.Text = sitedt.status; orgStatus = sitedt.status; this.m_biko.Text = sitedt.biko; this.m_update.Text = sitedt.chk_date; this.m_updateOpe.Text = sitedt.chk_name_id; Class_Detaget dg = new Class_Detaget(); dg.con = con; if (sitedt.userno != "") { this.m_cutomername.Text = dg.getCustomername(sitedt.userno); } if (sitedt.systemno != "") { this.m_systemname.Text = dg.getSystemname(sitedt.systemno); } }
//ホスト情報を表示する private void gethost(hostDS hostdt) { this.m_hostno.Text = hostdt.host_no; this.m_userno.Text = hostdt.userno; this.m_systemno.Text = hostdt.systemno; this.m_siteno.Text = hostdt.siteno; this.m_hostname.Text = hostdt.hostname; this.m_settikikiid.Text = hostdt.settikikiid; this.m_statusCombo.Text = hostdt.status; //元のステータスを保存しておく orgStatus = hostdt.status; this.m_kisyu.Text = hostdt.device; this.m_locate.Text = hostdt.location; this.m_usefor.Text = hostdt.usefor; if (hostdt.kansiStartdate == "") { m_start_date.Checked = false; } else { this.m_start_date.Text = hostdt.kansiStartdate; } if (hostdt.kansiEndsdate == "") { m_end_date.Checked = false; } else { this.m_end_date.Text = hostdt.kansiEndsdate; } this.m_kanrino.Text = hostdt.hosyukanri; this.m_hosyu.Text = hostdt.hosyuinfo; this.m_biko.Text = hostdt.biko; this.m_update.Text = hostdt.chk_date; this.m_updateOpe.Text = hostdt.chk_name_id; Class_Detaget dg = new Class_Detaget(); dg.con = con; if (hostdt.userno != "") { this.m_cutomername.Text = dg.getCustomername(hostdt.userno); } //システム情報 if (hostdt.systemno != "") { this.m_systemname.Text = dg.getSystemname(hostdt.systemno); } //拠点名取得 if (hostdt.siteno != "") { this.m_sitename.Text = dg.getSitename(hostdt.siteno); } }
//インターフェイス情報を表示する 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); } }
//インシデント情報を表示する private void getIncident(incidentDS incidentdt) { this.m_intervaltime.Text = incidentdt.interval; this.m_incidentno.Text = incidentdt.incident_no; this.m_userno.Text = incidentdt.userno; this.m_systemno.Text = incidentdt.systemno; this.m_siteno.Text = incidentdt.siteno; this.m_hostno.Text = incidentdt.hostno; this.m_mpmsno.Text = incidentdt.mpms_incident; this.m_scubeno.Text = incidentdt.s_cube_id; this.m_incidentnaiyou.Text = incidentdt.content; this.m_statusCombo.Text = incidentdt.status; //アラーム検知 障害申告 問い合わせ int outputdata; if (int.TryParse(incidentdt.incident_type, out outputdata)) { this.m_incidentKBN.SelectedIndex = outputdata - 1; } if (incidentdt.uketukedate != null || incidentdt.uketukedate != "") { m_uketukedate.Checked = true; this.m_uketukedate.Text = incidentdt.uketukedate; } else { m_uketukedate.Checked = false; } if (incidentdt.tehaidate != null || incidentdt.tehaidate != "") { m_tehaidate.Checked = true; this.m_tehaidate.Text = incidentdt.tehaidate; } else { m_tehaidate.Checked = false; } if (incidentdt.fukyudate != null || incidentdt.fukyudate != "") { m_fukkyudate.Checked = true; this.m_fukkyudate.Text = incidentdt.fukyudate; } else { m_fukkyudate.Checked = false; } if (incidentdt.enddate != null || incidentdt.enddate != "") { m_enddate.Checked = true; this.m_enddate.Text = incidentdt.enddate; } else { m_enddate.Checked = false; } if (incidentdt.matflg == "1") { m_MATchkbox.Checked = true; } else { m_MATchkbox.Checked = false; } this.m_MATCommannd.Text = incidentdt.matcommand; this.m_timer.Text = incidentdt.timer; if (incidentdt.timer != null || incidentdt.timer != "") { m_timer.Checked = true; this.m_timer.Text = incidentdt.timer; } else { m_enddate.Checked = false; } m_youkakunin.Text = incidentdt.kakuninmsg; this.m_updateOpe.Text = incidentdt.chk_name_id; this.m_update.Text = incidentdt.chk_date; Class_Detaget dg = new Class_Detaget(); dg.con = con; this.m_cutomername.Text = ""; if (incidentdt.userno != null && incidentdt.userno != "") { this.m_cutomername.Text = dg.getCustomername(incidentdt.userno); } //システム情報 this.m_systemname.Text = ""; if (incidentdt.systemno != null && incidentdt.systemno != "") { this.m_systemname.Text = dg.getSystemname(incidentdt.systemno); } //拠点名取得 this.m_sitename.Text = ""; if (incidentdt.siteno != null && incidentdt.siteno != "") { this.m_sitename.Text = dg.getSitename(incidentdt.siteno); } //ホスト名取得 this.m_hostname.Text = ""; if (incidentdt.hostno != null && incidentdt.hostno != "") { this.m_hostname.Text = dg.getHostname(incidentdt.hostno); } }