protected void btnSaveSystemPrivilege_Click(object sender, DirectEventArgs e) { try { SystemPrivilegeWrapper obj = SystemPrivilegeWrapper.FindById(int.Parse(hidPrivilegeID.Text.Trim())); obj.OperationID = SystemOperationWrapper.FindById(Convert.ToInt32(this.cmbOperationID.SelectedItem.Value)); obj.PrivilegeCnName = this.txtPrivilegeCnName.Text.Trim(); obj.PrivilegeEnName = this.txtPrivilegeEnName.Text.Trim(); obj.Description = this.txtDescription.Text.Trim(); obj.PrivilegeOrder = Convert.ToInt32(this.txtPrivilegeOrder.Text.Trim()); //obj.PrivilegeCategory = this.txtPrivilegeCategory.Text.Trim(); SystemPrivilegeWrapper.Update(obj); winSystemPrivilegeEdit.Hide(); ResourceManager.AjaxSuccess = true; } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
protected void btnSaveSystemPrivilege_Click(object sender, DirectEventArgs e) { try { SystemPrivilegeWrapper obj = SystemPrivilegeWrapper.FindById(int.Parse(hidSystemPrivilegeID.Text.Trim())); obj.PrivilegeCnName = this.txtPrivilegeCnName.Text.Trim(); obj.PrivilegeEnName = this.txtPrivilegeEnName.Text.Trim(); obj.Description = this.txtDescription.Text.Trim(); obj.PrivilegeCategory = this.txtPrivilegeCategory.Text.Trim(); SystemPrivilegeWrapper.Update(obj); winSystemPrivilegeEdit.Hide(); ResourceManager.AjaxSuccess = true; } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }