//////////////////////////////////////////////////////////////////////////// // メソッド名 : DoSearch /// <summary> /// /// </summary> /// <history> /// 日付 担当者 内容 /// 2014/07/16 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void DoSearch() { gyoshaListDataGridView.DataSource = null; gyoshaListDataGridView.Rows.Clear(); IKensakuBtnClickALInput alInput = new KensakuBtnClickALInput(); GyoshaMstSearchCond searchCond = new GyoshaMstSearchCond(); searchCond.GyoshaCdFrom = gyoshaCdFromTextBox.Text.Trim(); searchCond.GyoshaCdTo = gyoshaCdToTextBox.Text.Trim(); searchCond.GyoshaNm = gyoshaNmTextBox.Text.Trim(); searchCond.GyoshaKana = gyoshaKanaTextBox.Text.Trim(); searchCond.SeizoGyoShaKbn = seizoGyoShaKbnCheckBox.Checked ? "1" : string.Empty; searchCond.KojiGyoshaKbn = kojiGyoshaKbnCheckBox.Checked ? "1" : string.Empty; searchCond.HoshuGyoshaKbn = hoshuGyoshaKbnCheckBox.Checked ? "1" : string.Empty; searchCond.SeisoGyoshaKbn = seisoGyoshaKbnCheckBox.Checked ? "1" : string.Empty; searchCond.ToriatsukaiGyoshaKbn = toriatsukaiGyoshaKbnCheckBox.Checked ? "1" : string.Empty; searchCond.SonotaGyoshaKbn = sonotaGyoshaKbnCheckBox.Checked ? "1" : string.Empty; alInput.GyoshaMstSearchCond = searchCond; IKensakuBtnClickALOutput alOutput = new KensakuBtnClickApplicationLogic().Execute(alInput); if (alOutput.GyoshaMstKensakuDT == null || alOutput.GyoshaMstKensakuDT.Count == 0) { gyoshaListCountLabel.Text = "0件"; MessageForm.Show2(MessageForm.DispModeType.Infomation, "表示データがありません。"); } else { gyoshaListCountLabel.Text = alOutput.GyoshaMstKensakuDT.Count + "件"; gyoshaListDataGridView.DataSource = alOutput.GyoshaMstKensakuDT; } }
//////////////////////////////////////////////////////////////////////////// // メソッド名 : DoSearch /// <summary> /// /// </summary> /// <history> /// 日付 担当者 内容 /// 2014/06/30 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void DoSearch() { gyoshaListDataGridView.DataSource = null; gyoshaListDataGridView.Rows.Clear(); IKensakuBtnClickALInput alInput = new KensakuBtnClickALInput(); GyoshaMstSearchCond gyoshaMst = new GyoshaMstSearchCond(); gyoshaMst.GyoshaCdFrom = gyoshaCdFromTextBox.Text.Trim(); gyoshaMst.GyoshaCdTo = gyoshaCdToTextBox.Text.Trim(); gyoshaMst.GyoshaNm = gyoshaNmTextBox.Text.Trim(); gyoshaMst.GyoshaKana = gyoshaKanaTextBox.Text.Trim(); alInput.GyoshaMstSearchCond = gyoshaMst; IKensakuBtnClickALOutput alOutput = new KensakuBtnClickApplicationLogic().Execute(alInput); if (alOutput.GyoshaMstKensakuDT == null || alOutput.GyoshaMstKensakuDT.Count == 0) { gyoshaListCountLabel.Text = "0件"; MessageForm.Show2(MessageForm.DispModeType.Infomation, "表示データがありません。"); } else { gyoshaListCountLabel.Text = alOutput.GyoshaMstKensakuDT.Count + "件"; gyoshaListDataGridView.DataSource = alOutput.GyoshaMstKensakuDT; } }
//////////////////////////////////////////////////////////////////////////// // メソッド名 : DoFormLoad /// <summary> /// /// </summary> /// <history> /// 日付 担当者 内容 /// 2014/07/16 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void DoFormLoad() { // Default search cond GyoshaMstSearchCond searchCond = new GyoshaMstSearchCond(); searchCond.SeizoGyoShaKbn = _seizoGyoShaKbn; searchCond.KojiGyoshaKbn = _kojiGyoshaKbn; IFormLoadALInput alInput = new FormLoadALInput(); alInput.GyoshaMstSearchCond = searchCond; IFormLoadALOutput alOutput = new FormLoadApplicationLogic().Execute(alInput); //検索結果件数 gyoshaListCountLabel.Text = alOutput.GyoshaMstKensakuDT.Count + "件"; //set data for display gridview gyoshaListDataGridView.DataSource = alOutput.GyoshaMstKensakuDT; this._searchShowFlg = true; this._defaultSearchPanelTop = this.searchPanel.Top; this._defaultSearchPanelHeight = this.searchPanel.Height; this._defaultListPanelTop = this.gyoshaListPanel.Top; this._defaultListPanelHeight = this.gyoshaListPanel.Height; }