Ejemplo n.º 1
0
        public new PayList Clone()
        {
            PayList PayList = base.Clone() as PayList;

            PayList.deptInfo = this.deptInfo.Clone();
            PayList.operInfo = this.operInfo.Clone();

            return(PayList);
        }
        /// <summary>
        /// 当前项目预约模版信息的副本

        /// </summary>
        /// <returns></returns>
        public new ItemBookingTemplate Clone()
        {
            ItemBookingTemplate ItemBookingTemplate = base.Clone() as ItemBookingTemplate;

            ItemBookingTemplate.deptItem = this.deptItem.Clone();
            ItemBookingTemplate.oper     = this.oper.Clone();

            return(ItemBookingTemplate);
        }
        /// <summary>
        /// 释放资源
        /// </summary>
        /// <param name="isDisposing"></param>
        protected override void Dispose(bool isDisposing)
        {
            if (this.alreadyDisposed)
            {
                return;
            }

            if (this.operEnvironment != null)
            {
                this.operEnvironment.Dispose();
                this.operEnvironment = null;
            }

            base.Dispose(isDisposing);

            this.alreadyDisposed = true;
        }