Ejemplo n.º 1
0
        public DataSet.DsPSMS.ST_TIMETABLEDataTable getAllTimeTableData(out string msg)
        {
            DataSet.DsPSMS.ST_TIMETABLEDataTable result = new DataSet.DsPSMS.ST_TIMETABLEDataTable();

            try
            {
                timedb.Open();
                result = timedb.selectAllTimetable();
                if (result != null && result.Rows.Count > 0)
                {
                    msg = result.Rows.Count + " user found";
                }

                else
                {
                    result = null;
                    msg    = "user not found";
                }
            }
            catch
            {
                msg = "error has occure when insert data";
                return(null);
            }
            finally
            {
                timedb.Close();
            }
            return(result);
        }