/// <summary>
        /// 修改授权信息
        /// </summary>
        protected virtual void EditEmpowerInfo()
        {
            if (this.spEmpower.Rows.Count == 0)
            {
                return;
            }
            if (this.spEmpower.ActiveRow.Tag == null)
            {
                return;
            }
            int            rowIndex       = this.spEmpower.ActiveRowIndex;
            AccountEmpower accountEmpower = this.spEmpower.ActiveRow.Tag as AccountEmpower;

            if (accountEmpower == null)
            {
                return;
            }
            if (accountEmpower.ValidState == Neusoft.HISFC.Models.Base.EnumValidState.Invalid)
            {
                MessageBox.Show("该用户已取消授权,不能编辑其授权信息");
                return;
            }

            //验证密码
            if (!feeIntegrate.CheckAccountPassWord(accountCard.Patient))
            {
                return;
            }

            ucEmpowerInfo uc = new ucEmpowerInfo(accountEmpower, true);

            Neusoft.FrameWork.WinForms.Classes.Function.ShowControl(uc);
            if (uc.FindForm().DialogResult == DialogResult.OK)
            {
                this.GetEmpowerList(account.ID);
            }
        }
        /// <summary>
        /// 保存
        /// </summary>
        protected virtual void save()
        {
            //授权信息校验
            if (!Valid())
            {
                this.txtMarkNO.Text = string.Empty;
                this.txtMarkNO.Focus();
                return;
            }
            //被授权信息校验
            if (!EmpowerValid())
            {
                this.txtepMarkNO.Text = string.Empty;
                this.txtepMarkNO.Focus();
                return;
            }

            //验证授权人帐户密码
            if (!feeIntegrate.CheckAccountPassWord(accountCard.Patient))
            {
                return;
            }

            AccountEmpower accountEmpower = new AccountEmpower();
            //弹出ucEmpowerInfo,输入授权信息
            ucEmpowerInfo uc = new ucEmpowerInfo(accountEmpower, false);

            Neusoft.FrameWork.WinForms.Classes.Function.ShowControl(uc);
            if (uc.FindForm().DialogResult != DialogResult.OK)
            {
                return;
            }
            //生成授权实体
            accountEmpower.AccountCard   = accountCard;
            accountEmpower.Vacancy       = accountEmpower.EmpowerLimit;
            accountEmpower.EmpowerCard   = empowerAcccountcard;
            accountEmpower.ValidState    = Neusoft.HISFC.Models.Base.EnumValidState.Valid;
            accountEmpower.AccountNO     = account.ID;
            accountEmpower.Oper.ID       = accountManager.Operator.ID;
            accountEmpower.Oper.OperTime = accountManager.GetDateTimeFromSysDateTime();
            Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();
            accountManager.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans);
            //插入授权信息
            if (accountManager.InsertEmpower(accountEmpower) < 0)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                MessageBox.Show("插入授权表出错!" + accountManager.Err);
                return;
            }
            //更新帐户授权标记
            int resultValue = accountManager.UpdateAccountEmpowerFlag(accountEmpower.AccountNO);

            if (resultValue == -1)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                MessageBox.Show("更新帐户授权标识出错!" + accountManager.Err);
                return;
            }
            if (resultValue == 0)
            {
                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                MessageBox.Show("授权帐户信息发生变化!");
                return;
            }
            //插如流水信息
            resultValue = this.InsertAccountRecord(OperTypes.Empower, accountEmpower);
            if (resultValue < 0)
            {
                MessageBox.Show("插入交易表出错!" + accountManager.Err);
                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                return;
            }

            Neusoft.FrameWork.Management.PublicTrans.Commit();
            MessageBox.Show("授权成功!");
            this.ClearEmpower();
            SetEmpowerToFp(accountEmpower);
        }