protected override void ExecDisp()
        {
            for (int i = 0; i < detailControls.Length; i++)
            {
                if (CheckDetail(i) == false)
                {
                    detailControls[i].Focus();
                    return;
                }
            }

            mle = GetSearchInfo();
            DataTable dt = zibl.M_Location_SelectAll(mle);

            GvDetail.DataSource = dt;

            if (dt.Rows.Count > 0)
            {
                GvDetail.SelectionMode       = DataGridViewSelectionMode.RowHeaderSelect;
                GvDetail.CurrentRow.Selected = true;
                GvDetail.Enabled             = true;
                GvDetail.Focus();
            }
            else
            {
                zibl.ShowMessage("E128");
            }
        }
Exemplo n.º 2
0
        private void ScStorage_CodeKeyDownEvent(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (!string.IsNullOrWhiteSpace(ScStorage.TxtCode.Text))
                {
                    mle  = new M_Location_Entity();
                    zibl = new ZaikoIdouNyuuryoku_BL();

                    mle = GetSearchInfo();
                    DataTable dt = zibl.M_Location_SelectAll(mle);
                    if (dt.Rows.Count <= 0)
                    {
                        bbl.ShowMessage("E101");
                        ScStorage.SetFocus(1);
                    }
                }
            }
        }