private void btnSubmission_Click(object sender, EventArgs e) { try { if (txtComment.Text == "") { MessageBox.Show("请填写注解!", "文档管理系统", MessageBoxButtons.OK); } else { this._CurrentUser = new CUserEntity(); _CurrentUser = (CUserEntity)Context.Session["CurrentUser"]; bool CrAp = _CurrentUser.CreateApply(ResId, txtComment.Text.Trim()); if (CrAp == true) { MessageBox.Show("您已成功提交文件归档申请!", "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Information, new EventHandler(onMsgBoxClose)); } else { MessageBox.Show("您提交的归档申请已经存在!", "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Stop); } } } catch (Exception ex) { MessageBox.Show("提交失败:" + ex.Message, "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Error); } }