Ejemplo n.º 1
0
        public void delete(CC_MONHOC cc_mh)
        {
            SqlParameter[] prams     = { MakeInParam("@CCM_ID", SqlDbType.Int, 4, cc_mh.CCM_ID) };
            int            errorcode = RunProc("usp_DeleteCC_MONHOC", prams);

            if (errorcode > 0)
            {
                throw new Exception("Error");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get chung chi mon hoc by mon hoc ID
        /// </summary>
        /// <param name="Course"></param>
        ///

        public DataTable getCC_MH_ByMHID(CC_MONHOC mHId)
        {
            connect();
            DataSet DS = new DataSet();

            SqlParameter[] prams =
            {
                MakeInParam("@CCM_MONID", SqlDbType.Int, 4, mHId.CCM_MONID)
            };

            int errorcode = RunProcDS("usp_SelectCC_MONHOC_ByMhID",
                                      prams, out DS);

            if (errorcode > 0)
            {
                throw new Exception("Error!");
            }

            return(DS.Tables[0]);
        }