protected override void ExecDisp() { dje = new D_Juchuu_Entity { JuchuuNO = JuchuuNO, }; DataTable dt = nnbl.D_Juchuu_SelectData_ForNyuuka(dje); GvDetail.DataSource = dt; if (dt.Rows.Count > 0) { GvDetail.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect; GvDetail.CurrentRow.Selected = true; GvDetail.Enabled = true; GvDetail.Focus(); } else { nnbl.ShowMessage("E128"); } }
protected override void ExecDisp() { bool exists = false; for (int i = 0; i < detailControls.Length; i++) { if (i != (int)EIndex.SoukoCD && !string.IsNullOrWhiteSpace(detailControls[i].Text)) { exists = true; } if (CheckDetail(i) == false) { detailControls[i].Focus(); return; } } if (!exists) { nnbl.ShowMessage("E111"); detailControls[0].Focus(); return; } dae = GetSearchInfo(); DataTable dt = nnbl.D_Arrival_SelectAll(dae); GvDetail.DataSource = dt; if (dt.Rows.Count > 0) { GvDetail.SelectionMode = DataGridViewSelectionMode.FullRowSelect; GvDetail.CurrentRow.Selected = true; GvDetail.Enabled = true; GvDetail.Focus(); } else { nnbl.ShowMessage("E128"); } }