예제 #1
0
        public bool saveTimetableHedData(DataSet.DsPSMS.ST_TIMETABLE_HEDRow dr, out string msg)
        {
            bool isOk = true;

            if (dr == null)
            {
                msg = "data is empty ";
                return(false);
            }
            try
            {
                timedb.Open();
                int result = timedb.insertTimetableHed(dr);
                msg = "insert complete";
            }
            catch
            {
                msg = "error occurs when inserting data to ST_TIMETABLE_HED table";
                return(false);
            }
            finally
            {
                timedb.Close();
            }

            return(isOk);
        }