protected override ResultStatus Retrieve() { try { base.Retrieve(gcMain); DataTable returnTable = new DataTable(); returnTable = RRO.GetData(); if (returnTable.Rows.Count == 0) { MessageBox.Show("無任何資料", "訊息", MessageBoxButtons.OK, MessageBoxIcon.Information); } gcMain.DataSource = returnTable; gcMain.Focus(); } catch (Exception ex) { throw ex; } return(ResultStatus.Success); }
public DataTable GetData() { return(daoRWD_REF_OMNI.GetData()); }