Example #1
0
        /// <summary>
        /// 添加用户规则
        /// </summary>
        /// <param name="QID"></param>
        /// <param name="unitProject"></param>
        /// <returns></returns>
        public void Add(_ObjectInfo p_info)
        {
            //要每个字段都赋值
            _FixedListInfo info = p_info.Copy() as _FixedListInfo;

            info.ID = ObjectID;
            this.DataSource.Add(info);
        }
Example #2
0
        /// <summary>
        /// 从用户规则添加到单位工程
        /// </summary>
        /// <param name="QID"></param>
        /// <param name="unitProject"></param>
        /// <returns></returns>
        public void AddUn(_ObjectInfo p_info, _UnitProject unitProject)
        {
            _FixedListInfo info = p_info.Copy() as _FixedListInfo;

            unitProject.Property.SubSegments.Create(info);
        }