Ejemplo n.º 1
0
        public DataSet.DsPSMS.ST_TIMETABLE_DETAILRow searchTimeDetailByTimeHedId(int id)
        {
            DataSet.DsPSMS.ST_TIMETABLE_DETAILRow resultData = new DataSet.DsPSMS.ST_TIMETABLE_DETAILDataTable().NewST_TIMETABLE_DETAILRow();
            try
            {
                timedb.Open();
                resultData = timedb.selectTimeDetailBytimeHedId(id);
                //if (resultData != null && resultData.Rows.Count > 0)
                //{
                //    //msg = resultData.Rows.Count + " user found";
                //}

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