private void AgreeConTemp_Click(object sender, EventArgs e) { SignatureDetail sd = new SignatureDetail(); sd.ConId = this.ConTempId.Text; sd.EmpId = UserHelper.UserInfo.Id; if (this.Reason.Text == "备注:同意时此栏可不填,拒绝时需填写理由") { sd.Remark = "未填"; } else { sd.Remark = this.Reason.Text.Trim(); } sd.Result = 1; string result = _sc.SignDetail(sd); if (result == Response.INSERT_SIGN_DETAIL_SUCCESS.ToString()) { this.DialogResult = DialogResult.OK; } else { MessageBox.Show("处理失败,请重新处理!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
//同意 private void AgreeConTemp_Click(object sender, EventArgs e) { SignatureDetail sd = new SignatureDetail(); sd.ConId = this.ConTempId.Text; sd.EmpId = UserHelper.UserInfo.Id; sd.Advice = "0#"; if (UserHelper.UserInfo.Name == signcolumn6) { if (this.txtbox_Advice.Text == null) { MessageBox.Show("请填写栏目中的主办单位审核意见,不能为空!"); return; } else { //将主办单位的审核意见写入数据库 1表示有数据 0表示没数据 sd.Advice = "1#" + this.txtbox_Advice.Text; // MessageBox.Show(sd.Advice); } } if (this.Reason.Text == "备注:同意时此栏可不填,拒绝时需填写理由") { sd.Remark = "未填"; } else { sd.Remark = this.Reason.Text.Trim(); } sd.Result = 1; //提交个人签字同意信息 string result = _sc.SignDetail(sd); if (result == Response.INSERT_SIGN_DETAIL_SUCCESS.ToString()) { this.DialogResult = DialogResult.OK; } else { MessageBox.Show("处理失败,请重新处理!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }