Пример #1
0
        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 <_dialogInputContent>();
                dialog.ReturnEvent += new _dialogInputContent.ReturnContentToParentForm(GetVoteReason);
                dialog.ContentTitle = "判定理由";
                if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
                {
                    return(false);
                }
            }

            _IDService.IDOperationAccuracyProcess(LoginInfo.CurrentUser.UserCode, ApplyNo, OperateNo, voteFlag, _reasonContent, this.chkAdminVeto.Checked);

            this._reasonContent = null;

            RefreshForm();

            return(true);
        }