//カスタマ担当者の表示 private void user_tanntou_Disp(tantouDS tantoudt) { m_userno.Text = tantoudt.userno; Class_Detaget dg = new Class_Detaget(); dg.con = con; string cusname = dg.getCustomername(tantoudt.userno); m_username.Text = cusname; m_tantouno.Text = tantoudt.user_tantou_no; m_tantouname.Text = tantoudt.user_tantou_name; m_tantoukana.Text = tantoudt.user_tantou_name_kana; m_busyoname.Text = tantoudt.busho_name; m_tel1.Text = tantoudt.telno1; m_tel2.Text = tantoudt.telno2; m_statusCombo.Text = tantoudt.status; m_yakusyoku.Text = tantoudt.yakusyoku; m_biko.Text = tantoudt.biko; m_update.Text = tantoudt.chk_date; m_updateOpe.Text = tantoudt.chk_name_id; }
//担当者一覧がダブルクリックされたとき private void m_tantouList_MouseDoubleClick(object sender, MouseEventArgs e) { ListView.SelectedIndexCollection item = m_tantouList.SelectedIndices; tantouDS tantoudt = new tantouDS(); tantoudt.user_tantou_no = this.m_tantouList.Items[item[0]].SubItems[0].Text; tantoudt.user_tantou_name = this.m_tantouList.Items[item[0]].SubItems[1].Text; tantoudt.user_tantou_name_kana = this.m_tantouList.Items[item[0]].SubItems[2].Text; tantoudt.busho_name = this.m_tantouList.Items[item[0]].SubItems[3].Text; tantoudt.telno1 = this.m_tantouList.Items[item[0]].SubItems[4].Text; tantoudt.telno2 = this.m_tantouList.Items[item[0]].SubItems[5].Text; tantoudt.yakusyoku = this.m_tantouList.Items[item[0]].SubItems[6].Text; tantoudt.biko = this.m_tantouList.Items[item[0]].SubItems[7].Text; string status = "0"; if (this.m_tantouList.Items[item[0]].SubItems[8].Text == "有効") { status = "1"; } else { status = "0"; } tantoudt.status = status; tantoudt.userno = this.m_tantouList.Items[item[0]].SubItems[9].Text; tantoudt.chk_date = this.m_tantouList.Items[item[0]].SubItems[10].Text; tantoudt.chk_name_id = this.m_tantouList.Items[item[0]].SubItems[11].Text; Form_user_tantou usertantou = new Form_user_tantou(); usertantou.tantoudt = tantoudt; usertantou.loginDS = loginDS; usertantou.con = con; // カスタマ担当者を取得する usertantou.Show(); }
private void m_customertantouList_DoubleClick(object sender, EventArgs e) { ListView.SelectedIndexCollection item = m_customertantouList.SelectedIndices; tantouDS tantoudt = new tantouDS(); tantoudt.user_tantou_no = this.m_customertantouList.Items[item[0]].SubItems[0].Text; tantoudt.user_tantou_name = this.m_customertantouList.Items[item[0]].SubItems[1].Text; tantoudt.user_tantou_name_kana = this.m_customertantouList.Items[item[0]].SubItems[2].Text; tantoudt.busho_name = this.m_customertantouList.Items[item[0]].SubItems[3].Text; tantoudt.telno1 = this.m_customertantouList.Items[item[0]].SubItems[4].Text; tantoudt.telno2 = this.m_customertantouList.Items[item[0]].SubItems[5].Text; tantoudt.yakusyoku = this.m_customertantouList.Items[item[0]].SubItems[6].Text; tantoudt.biko = this.m_customertantouList.Items[item[0]].SubItems[8].Text; tantoudt.userno = this.m_customertantouList.Items[item[0]].SubItems[9].Text; tantoudt.chk_date = this.m_customertantouList.Items[item[0]].SubItems[11].Text; tantoudt.chk_name_id = this.m_customertantouList.Items[item[0]].SubItems[12].Text; string statustxt = this.m_customertantouList.Items[item[0]].SubItems[7].Text; if (statustxt == "有効") { tantoudt.status = "1"; } else { tantoudt.status = "0"; } //担当者番号 user_tanntou_Disp(tantoudt); //アドレスを表示 opeAddress(); }