private bool VoteProcess(EnumLibrary.IDVoteFlag voteFlag) { if (voteFlag == EnumLibrary.IDVoteFlag.None) { if (DXMessage.ShowYesNoAndTips("确定撤销上次投票结果么?") == System.Windows.Forms.DialogResult.No) { return(false); } } else { var dialog = this.CreateDialog <_dialogInputVoteReason>(); dialog.ReturnEvent += new _dialogInputVoteReason.ReturnContentToParentForm(GetVoteReason); dialog.ContentTitle = CTMHelper.GetIDVoteFlagName((int)voteFlag) + "理由"; if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return(false); } } _IDService.IDOperationVoteProcess(LoginInfo.CurrentUser.UserCode, ApplyNo, OperateNo, voteFlag, _reasonCategoryId, _reasonContent, this.chkAdminVeto.Checked); this._reasonCategoryId = -1; this._reasonContent = null; RefreshForm(); return(true); }