protected void btnSaveSystemApplication_Click(object sender, DirectEventArgs e) { try { SystemApplicationWrapper systemApplication = SystemApplicationWrapper.FindById(int.Parse(hidSystemApplicationID.Text.Trim())); systemApplication.SystemApplicationName = txtSystemApplicationName.Text.Trim(); systemApplication.SystemApplicationDescription = txtSystemApplicationDescription.Text.Trim(); systemApplication.SystemApplicationUrl = txtSystemApplicationUrl.Text.Trim(); systemApplication.SystemApplicationIsSystemApplication = chkSystemApplicationIsSystemApplication.Checked; SystemApplicationWrapper.Update(systemApplication); winSystemApplicationEdit.Hide(); ResourceManager.AjaxSuccess = true; } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
protected void btnSaveSystemApplication_Click(object sender, DirectEventArgs e) { try { SystemApplicationWrapper systemApplication = SystemApplicationWrapper.FindById(int.Parse(hidSystemApplicationID.Text.Trim())); systemApplication.SystemApplicationName = txtSystemApplicationName.Text.Trim(); systemApplication.SystemApplicationDescription = txtSystemApplicationDescription.Text.Trim(); systemApplication.SystemApplicationUrl = txtSystemApplicationUrl.Text.Trim(); systemApplication.SystemApplicationIsSystemApplication = chkSystemApplicationIsSystemApplication.Checked; SystemApplicationWrapper.Update(systemApplication); winSystemApplicationEdit.Hide(); ResourceManager.AjaxSuccess = true; } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = string.Format(this.GetGlobalResourceObject("GlobalResource", "msgServerErrorMsg").ToString(), ex.Message); return; } }