Ejemplo n.º 1
0
        ///<summary>
        ///btnKensakuClick
        ///検索ボタンを押したとき
        ///</summary>
        private void btnKensakuClick(object sender, EventArgs e)
        {
            logger.Info(LogUtil.getMessage(this._Title, "検索実行"));

            //記入情報検索用
            List <Boolean> lstBoolean = new List <Boolean>();

            //画面の取引コード検索情報取得
            lstBoolean.Add(radAgyo.Checked);
            lstBoolean.Add(radKagyo.Checked);
            lstBoolean.Add(radSagyo.Checked);
            lstBoolean.Add(radTagyo.Checked);
            lstBoolean.Add(radNagyo.Checked);
            lstBoolean.Add(radHagyo.Checked);
            lstBoolean.Add(radMagyo.Checked);
            lstBoolean.Add(radYagyo.Checked);
            lstBoolean.Add(radRagyo.Checked);
            lstBoolean.Add(radWagyo.Checked);

            //ビジネス層のインスタンス生成
            TorihikiCdList_B torihikilistB = new TorihikiCdList_B();

            try
            {
                //データグリッドビュー部分
                gridTorihiki.DataSource = torihikilistB.getKensaku(lstBoolean);

                //表示数を記載
                lblRecords.Text = "該当件数( " + gridTorihiki.RowCount.ToString() + "件)";

                gridTorihiki.Focus();
            }
            catch (Exception ex)
            {
                //エラーロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }
Ejemplo n.º 2
0
        ///<summary>
        ///EndAction
        ///戻るボタンの処理
        ///</summary>
        private void EndAction(List <string> lstSelectCd)
        {
            this.Close();

            //ビジネス層のインスタンス生成
            TorihikiCdList_B torihikilistB = new TorihikiCdList_B();

            try
            {
                //画面終了処理
                torihikilistB.FormMove(intFrmKind);
            }
            catch (Exception ex)
            {
                //エラーロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }
Ejemplo n.º 3
0
        ///<summary>
        ///setSelectItem
        ///データグリッドビュー内のデータ選択後の処理
        ///</summary>
        private void setSelectItem()
        {
            //検索結果にデータが存在しなければ終了
            if (gridTorihiki.Rows.Count == 0)
            {
                return;
            }

            //データ渡し用
            List <string> lstSelectID = new List <string>();

            //選択行の担当者情報取得
            string strSelectId = (string)gridTorihiki.CurrentRow.Cells["コード"].Value;

            //担当者情報を入れる
            lstSelectID.Add(strSelectId);

            //ビジネス層のインスタンス生成
            TorihikiCdList_B torihikilistB = new TorihikiCdList_B();

            try
            {
                //ビジネス層、検索ロジックに移動
                torihikilistB.getSelectItem(intFrmKind, strSelectId);
                EndAction(lstSelectID);
            }
            catch (Exception ex)
            {
                //エラーロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }