Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public DataTable GetData()
 {
     return(daoRWD_REF_OMNI.GetData());
 }