Ejemplo n.º 1
0
        protected void btnSaveSystemConfigGroup_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SystemConfigGroupWrapper obj = SystemConfigGroupWrapper.FindById(int.Parse(hidId.Text.Trim()));
                obj.Name        = this.txtName.Text.Trim();
                obj.Code        = this.txtCode.Text.Trim();
                obj.Description = this.txtDescription.Text.Trim();
                obj.IsEnable    = this.chkIsEnable.Checked;
                obj.IsSystem    = this.chkIsSystem.Checked;


                SystemConfigGroupWrapper.Update(obj);

                winSystemConfigGroupEdit.Hide();
                ResourceManager.AjaxSuccess = true;
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message;
                return;
            }
        }