示例#1
0
        public bool updateTimeTableDetail(DataSet.DsPSMS.ST_TIMETABLE_DETAILRow dr, int id, out string msg)
        {
            bool isOk = true;

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

            return(isOk);
        }