/// <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); }
/// <summary> /// 单据头项索引号 /// </summary> /// <value></value> /// <returns></returns> public IHeadItem this[int index] { get { int maxIndex = Convert.ToInt32(VBDoNetPlugInstance.GetOldBillerInstance().Head_GetMaxIndex(this.m_BillTransfer)); IHeadItem returnValue = null; //判断下标是否越界 if (index < 0 || index > maxIndex) { throw new IndexOutOfRangeException(); } if (this._headInstanceCatch.ContainsKey(index)) { returnValue = this._headInstanceCatch[index]; } else { returnValue = new OldBillHeadItem(this.Biller, this, index); this._headInstanceCatch.Add(index, returnValue); } return(returnValue); } }
protected void SetGridCellFocus(int rowIndex, int columnIndex) { VBDoNetPlugInstance.GetOldBillerInstance().Grid_SetAction(this.OldBillObject, (short)rowIndex, (short)columnIndex); }