public virtual int FillPage(S_FIN_BILANCADataSet dataSet, DateTime rAZDOBLJEOD, DateTime rAZDOBLJEDO, string oRG, string mT, string dOK, short aNA, short sKR, string kLASA, short vRSTABILANCE, int startRow, int maxRows) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_FIN_BILANCASet = dataSet; this.rowS_FIN_BILANCA = this.S_FIN_BILANCASet.S_FIN_BILANCA.NewS_FIN_BILANCARow(); this.SetFillParameters(rAZDOBLJEOD, rAZDOBLJEDO, oRG, mT, dOK, aNA, sKR, kLASA, vRSTABILANCE); this.AV8RAZDOBL = DateTimeUtil.ResetTime(rAZDOBLJEOD); this.AV9RAZDOBL = DateTimeUtil.ResetTime(rAZDOBLJEDO); this.AV10ORG = oRG; this.AV11MT = mT; this.AV12DOK = dOK; this.AV13ANA = aNA; this.AV14SKR = sKR; this.AV15KLASA = kLASA; this.AV16VRSTAB = vRSTABILANCE; try { this.executePrivate(startRow, maxRows); } finally { this.Cleanup(); } return(0); }
public S_FIN_BILANCADataSet.S_FIN_BILANCARow AddS_FIN_BILANCARow(decimal duguje, decimal pOTRAZUJE, string konto, decimal pOCETNODUGUJE, decimal pOCETNOPOTRAZUJE, string nAZIV) { S_FIN_BILANCADataSet.S_FIN_BILANCARow row = (S_FIN_BILANCADataSet.S_FIN_BILANCARow) this.NewRow(); row.ItemArray = new object[] { duguje, pOTRAZUJE, konto, pOCETNODUGUJE, pOCETNOPOTRAZUJE, nAZIV }; this.Rows.Add(row); return(row); }
public void executePrivate(int startRow, int maxRows) { this.cmS_FIN_BILANCASelect2 = this.connDefault.GetCommand("S_FIN_BILANCA", true); this.cmS_FIN_BILANCASelect2.IDbCommand.CommandType = CommandType.StoredProcedure; this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Clear(); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@RAZDOBLJEOD", this.AV8RAZDOBL)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@RAZDOBLJEDO", this.AV9RAZDOBL)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@ORG", this.AV10ORG)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@MT", this.AV11MT)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@DOK", this.AV12DOK)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@ANA", this.AV13ANA)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@SKR", this.AV14SKR)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@KLASA", this.AV15KLASA)); this.cmS_FIN_BILANCASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@VRSTABILANCE", this.AV16VRSTAB)); this.cmS_FIN_BILANCASelect2.ErrorMask |= ErrorMask.Lock; this.S_FIN_BILANCASelect2 = this.cmS_FIN_BILANCASelect2.FetchData(); while (this.cmS_FIN_BILANCASelect2.HasMoreRows && (startRow > 0)) { startRow--; this.cmS_FIN_BILANCASelect2.HasMoreRows = this.S_FIN_BILANCASelect2.Read(); } int num = 0; while (this.cmS_FIN_BILANCASelect2.HasMoreRows && (num != maxRows)) { this.rowS_FIN_BILANCA["duguje"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["DUGUJE"]); this.rowS_FIN_BILANCA["POTRAZUJE"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["POTRAZUJE"]); this.rowS_FIN_BILANCA["konto"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["KONTO"]); this.rowS_FIN_BILANCA["POCETNODUGUJE"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["POcetnoduguje"]); this.rowS_FIN_BILANCA["POCETNOPOTRAZUJE"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["pocetnopotrazuje"]); this.rowS_FIN_BILANCA["NAZIV"] = RuntimeHelpers.GetObjectValue(this.S_FIN_BILANCASelect2["NAZIV"]); this.AddRowS_fin_bilanca(); num++; this.rowS_FIN_BILANCA = this.S_FIN_BILANCASet.S_FIN_BILANCA.NewS_FIN_BILANCARow(); this.cmS_FIN_BILANCASelect2.HasMoreRows = this.S_FIN_BILANCASelect2.Read(); } this.S_FIN_BILANCASelect2.Close(); this.Cleanup(); }
public S_FIN_BILANCARowChangeEvent(S_FIN_BILANCADataSet.S_FIN_BILANCARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveS_FIN_BILANCARow(S_FIN_BILANCADataSet.S_FIN_BILANCARow row) { this.Rows.Remove(row); }
public void AddS_FIN_BILANCARow(S_FIN_BILANCADataSet.S_FIN_BILANCARow row) { this.Rows.Add(row); }