Ejemplo n.º 1
0
        /// <summary>
        /// 新建数据行
        /// </summary>
        /// <returns></returns>
        public IRowItem NewRow()
        {
            IRowItem returnValue;

            if (this.Count == 0)
            {
                if (string.IsNullOrEmpty(this[0][((BaseBiller)this.Biller).EntityColumnKeyDic[0].ToLower()].Value))
                {
                    return(this[0]);
                }
            }
            if (VBDoNetPlugInstance.GetOldBillerInstance().Row_GetIsNeedNewRow(this.m_BillTransfer))
            {
                VBDoNetPlugInstance.GetOldBillerInstance().Row_NewRow(this.m_BillTransfer);
            }
            returnValue = new OldBillerRowItem(this.Biller, this, this.Count, true);
            return(returnValue);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 单据体行对像
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        public IRowItem this[int index]
        {
            get
            {
                if (index < 0 || this.Count < index)
                {
                    throw new IndexOutOfRangeException("下标越界");
                }

                IRowItem returnValue = null;
                if (!this._rowInstanceCatch.ContainsKey(index))
                {
                    returnValue = new OldBillerRowItem(this.Biller, this, index);
                    this._rowInstanceCatch.Add(index, returnValue);
                }
                else
                {
                    returnValue = this._rowInstanceCatch[index];
                }
                return(returnValue);
            }
        }