Ejemplo n.º 1
0
        /// <summary>
        /// Save Unit module access settings
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, System.EventArgs e)
        {
            string strGrantedModuleIDs;

            strGrantedModuleIDs = Request.Form["chkGrantedModule"];
            int intCourseID = int.Parse(this.cboCourse.SelectedValue);

            BusinessServices.Unit objUnit = new BusinessServices.Unit();
            objUnit.SaveModuleAccess(this.m_intUnitID, intCourseID, strGrantedModuleIDs, chbIsInherit.Checked);

            this.GetModuleAccess();

            this.lblMessage.Text     = ResourceManager.GetString("lblMessage.Saved");        //"Unit Module Access has been saved successfully.";
            this.lblMessage.CssClass = "SuccessMessage";
        }