コード例 #1
0
        public DataSet.DsPSMS.ST_ROOM_MSTDataTable getAllRoomData(out string msg)
        {
            DataSet.DsPSMS.ST_ROOM_MSTDataTable result = new DataSet.DsPSMS.ST_ROOM_MSTDataTable();
            try
            {
                timedb.Open();
                result = timedb.selectAllRoomData();
                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);
        }