Esempio n. 1
0
        /// <summary>
        /// 创建新的归档申请,resource代表申请归档的资源id,comment是用户填写的申请说明。——赵英武
        /// </summary>
        /// <param name="resource"></param>
        /// <param name="comment"></param>
        public bool CreateApply(int resource, String comment)
        {
            CApplyEntity aRes = new CApplyEntity();

            if (aRes.GetObjectList("this.App_ResId='" + resource + "'").Count > 0)
            {
                return(false);
            }

            aRes.App_ResId      = resource;
            aRes.App_Applyer    = this.Usr_Id;
            aRes.App_Comment    = comment;
            aRes.App_Audited    = (int)AUDITE.UNAUDITING;
            aRes.App_CreateTime = DateTime.Now;
            aRes.Insert();
            return(true);
        }