private void getkaisen(kaisenDS kaisendt) { this.m_kaisenno.Text = kaisendt.kaisenno; this.m_statusCombo.Text = kaisendt.status; this.m_hostno.Text = kaisendt.host_no; this.m_userno.Text = kaisendt.userno; this.m_systemno.Text = kaisendt.systemno; this.m_siteno.Text = kaisendt.siteno; this.m_career.Text = kaisendt.career; this.m_kaisentype.Text = kaisendt.type; this.m_kaisenID.Text = kaisendt.kaisenid; this.m_isp.Text = kaisendt.isp; this.m_serviceType.Text = kaisendt.servicetype; this.m_serviceID.Text = kaisendt.serviceid; this.m_tel1.Text = kaisendt.telno1; this.m_tel2.Text = kaisendt.telno2; this.m_tel3.Text = kaisendt.telno3; this.m_biko.Text = kaisendt.biko; this.m_updateOpe.Text = kaisendt.chk_name_id; this.m_update.Text = kaisendt.chk_date; //コンボボックスを読み込む Read_CustomerCombo(); m_usernameCombo.SelectedValue = kaisendt.userno; if (m_usernameCombo.SelectedValue != null) { Read_systemCombo(); m_systemCombo.SelectedValue = kaisendt.systemno; } if (m_systemCombo.SelectedValue != null && m_systemCombo.SelectedValue.ToString() != "") { Read_siteCombo(); m_siteCombo.SelectedValue = kaisendt.siteno; } if (m_siteCombo.SelectedValue != null && m_siteCombo.SelectedValue.ToString() != "") { Read_hostCombo(); m_hostCombo.SelectedValue = kaisendt.host_no; if (m_hostCombo.Text != "") { m_hostno.Text = m_hostCombo.SelectedValue.ToString(); } } }
//ダブルクリック private void m_host_List_DoubleClick(object sender, EventArgs e) { ListView.SelectedIndexCollection item = m_kaisenList.SelectedIndices; string status = ""; kaisenDS kaisendt = new kaisenDS(); kaisendt.kaisenno = this.m_kaisenList.Items[item[0]].SubItems[0].Text; if (this.m_kaisenList.Items[item[0]].SubItems[1].Text == "有効") { status = "1"; } else if (this.m_kaisenList.Items[item[0]].SubItems[1].Text == "無効") { status = "0"; } kaisendt.status = status; kaisendt.career = this.m_kaisenList.Items[item[0]].SubItems[2].Text; kaisendt.type = this.m_kaisenList.Items[item[0]].SubItems[3].Text; kaisendt.kaisenid = this.m_kaisenList.Items[item[0]].SubItems[4].Text; kaisendt.isp = this.m_kaisenList.Items[item[0]].SubItems[5].Text; kaisendt.servicetype = this.m_kaisenList.Items[item[0]].SubItems[6].Text; kaisendt.serviceid = this.m_kaisenList.Items[item[0]].SubItems[7].Text; kaisendt.telno1 = this.m_kaisenList.Items[item[0]].SubItems[8].Text; kaisendt.telno2 = this.m_kaisenList.Items[item[0]].SubItems[9].Text; kaisendt.telno3 = this.m_kaisenList.Items[item[0]].SubItems[10].Text; kaisendt.biko = this.m_kaisenList.Items[item[0]].SubItems[11].Text; kaisendt.userno = this.m_kaisenList.Items[item[0]].SubItems[12].Text; kaisendt.systemno = this.m_kaisenList.Items[item[0]].SubItems[13].Text; kaisendt.siteno = this.m_kaisenList.Items[item[0]].SubItems[14].Text; kaisendt.host_no = this.m_kaisenList.Items[item[0]].SubItems[15].Text; kaisendt.chk_date = this.m_kaisenList.Items[item[0]].SubItems[16].Text; kaisendt.chk_name_id = this.m_kaisenList.Items[item[0]].SubItems[17].Text; getkaisen(kaisendt); }