Esempio n. 1
0
        public bool saveTimetableDetailData(DataSet.DsPSMS.ST_TIMETABLE_DETAILRow dr, out string msg)
        {
            bool isOk = true;

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

            return(isOk);
        }