private void b_ok_Click(object sender, EventArgs e) { string s_rt003 = string.Empty; if (string.IsNullOrEmpty(bitId)) { be_newposition.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight; be_newposition.ErrorText = "请选择变更后位置!"; return; } s_rt003 = txtedit_rt003.Text; if (string.IsNullOrEmpty(s_rt003)) { txtedit_rt003.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight; txtedit_rt003.ErrorText = "请输入变更原因!"; return; } int re = RegisterAction.RegisterMove(rc001, bitId_Old, bitId, s_rt003, Envior.cur_userId); if (re > 0) { MessageBox.Show("办理成功!", "提示"); DialogResult = DialogResult.OK; this.Close(); } }