private void selectedSeikyusaki() { DataRow dataRow; string sData; int nId; if (m_nSelectIdx == -1) { MessageBox.Show("請求先が選択されていません。", "確認", MessageBoxButton.OK); return; } if (m_dt.Rows.Count <= m_nSelectIdx) { MessageBox.Show("この行は削除できません。", "確認", MessageBoxButton.OK); return; } // 名前単価単位税区分 dataRow = m_dt.Rows[m_nSelectIdx]; sData = dataRow["col_name"].ToString(); sData = sData + "," + dataRow["col_busyo"].ToString(); sData = sData + "," + dataRow["col_skeisyou"].ToString(); sData = sData + "," + dataRow["col_akeisyou"].ToString(); sData = sData + "," + dataRow["col_postno"].ToString(); sData = sData + "," + dataRow["col_adrs1"].ToString(); sData = sData + "," + dataRow["col_adrs2"].ToString(); sData = sData + "," + dataRow["col_tel"].ToString(); sData = sData + "," + dataRow["col_fax"].ToString(); sData = sData + "," + dataRow["col_payname"].ToString(); sData = sData + "," + dataRow["col_bikou"].ToString(); nId = m_libCmn.StrToInt(dataRow["col_id"].ToString()); m_libOdbc.updateSeikyusakiRegdate(nId); if (m_wndMain != null) { m_wndMain.setSeikyusaki(nId, sData); } if (m_wndHanbai != null) { m_wndHanbai.setSeikyusaki(nId, sData); } this.Close(); }