Esempio n. 1
0
        /// <summary>
        /// 不批准归档申请——赵英武
        /// </summary>
        /// <param name="apply"></param>
        public void CancelApply(int apply)
        {
            CACLEntity acl = new CACLEntity();

            acl.Acl_Operation = (int)ACLOPERATION.AUDITAPPLY;
            acl.Acl_Resource  = this.Usr_Organize;

            if (!CheckPrivilege(acl))
            {
                throw new Exception("没有管理归档申请的权限!");
            }

            CApplyEntity aRes = new CApplyEntity().Load(apply);

            if (aRes.App_Audited == (int)AUDITE.UNAUDITED || aRes.App_Audited == (int)AUDITE.AUDITED)
            {
                throw new Exception("该资源已审核!");
            }

            aRes.Cancel();
        }