internal ShishoMstDataSet.ShishoMstDataTable GetDataBySearchCond( string shishoCdFrom, string shishoCdTo, string shishoNm ) { SqlCommand command = CreateSqlCommand(shishoCdFrom, shishoCdTo, shishoNm); SqlDataAdapter adpt = new SqlDataAdapter(command); adpt.SelectCommand.Connection = this.Connection; ShishoMstDataSet.ShishoMstDataTable dataTable = new ShishoMstDataSet.ShishoMstDataTable(); adpt.Fill(dataTable); return dataTable; }
//////////////////////////////////////////////////////////////////////////// // メソッド名 : DoFormLoad /// <summary> /// /// </summary> /// <history> /// 日付 担当者 内容 /// 2014/06/26 AnhNV 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void DoFormLoad() { IFormLoadALInput alInput = new FormLoadALInput(); alInput.ShishoCd = (this._dispMode == DispMode.Add) ? string.Empty : this._shishoCd; IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput); // Display default value in Detail mode if (this._dispMode == DispMode.Detail) { this._dispTable = alOutput.ShishoMstDataTable; // Default value DisplayDefault(); } }
//////////////////////////////////////////////////////////////////////////// // メソッド名 : CreateShishoMstInsert /// <summary> /// /// </summary> /// <returns>ShishoMstDataSet.ShishoMstDataTable</returns> /// <history> /// 日付 担当者 内容 /// 2014/06/26 AnhNV 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private ShishoMstDataSet.ShishoMstDataTable CreateShishoMstInsert() { // Instances a new table ShishoMstDataSet.ShishoMstDataTable table = new ShishoMstDataSet.ShishoMstDataTable(); ShishoMstDataSet.ShishoMstRow newRow = table.NewShishoMstRow(); // 支所コード(2) string key = Common.Common.GetKeyRenban("ShishoMst", "", "", ""); newRow.ShishoCd = key.Length >= 2 ? " " : key; // 支所名称(3) newRow.ShishoNm = sishoNmTextBox.Text; // 郵便番号(4) newRow.ShishoZipCd = zipCdTextBox.Text; // 住所(5) newRow.ShishoAdr = sishoAdrTextBox.Text; // 電話番号(6) newRow.ShishoTelNo = telTextBox.Text; // ファックス(7) newRow.ShishoFaxNo = faxTextBox.Text; // フリーダイヤル(8) newRow.ShishoFreeDial = furidaiaruTextBox.Text; // 登録日 newRow.InsertDt = // 更新日 newRow.UpdateDt = Common.Common.GetCurrentTimestamp(); // 登録者 newRow.InsertUser = // 更新者 newRow.UpdateUser = Utility.ShokuinInfo.GetShokuinInfo().Shokuin.ShokuinNm; // 登録端末 newRow.InsertTarm = // 更新端末 newRow.UpdateTarm = Dns.GetHostName(); // 行を挿入 table.AddShishoMstRow(newRow); // 行の状態を設定 newRow.AcceptChanges(); // 行の状態を設定(新規) newRow.SetAdded(); return table; }