public S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow AddS_FIN_DNEVNIKBLAGAJNEODDORow(string nAZIVVRSTEDOK, DateTime bLGDATUMDOKUMENTA, int bLGBROJDOKUMENTA, int iDBLGVRSTEDOK, string bLGSVRHA, decimal pRIMITAK, decimal iZDATAK, string bLGSLOVIMA, string kONTA) { S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow row = (S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow) this.NewRow(); row.ItemArray = new object[] { nAZIVVRSTEDOK, bLGDATUMDOKUMENTA, bLGBROJDOKUMENTA, iDBLGVRSTEDOK, bLGSVRHA, pRIMITAK, iZDATAK, bLGSLOVIMA, kONTA }; this.Rows.Add(row); return(row); }
public virtual int FillPage(S_FIN_DNEVNIKBLAGAJNEODDODataSet dataSet, int oDD, int dOO, int vRSTA, int bLAG, short aKTIVNAGODINA, int startRow, int maxRows) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_FIN_DNEVNIKBLAGAJNEODDOSet = dataSet; this.rowS_FIN_DNEVNIKBLAGAJNEODDO = this.S_FIN_DNEVNIKBLAGAJNEODDOSet.S_FIN_DNEVNIKBLAGAJNEODDO.NewS_FIN_DNEVNIKBLAGAJNEODDORow(); this.SetFillParameters(oDD, dOO, vRSTA, bLAG, aKTIVNAGODINA); this.AV8ODD = oDD; this.AV9DOO = dOO; this.AV10VRSTA = vRSTA; this.AV11BLAG = bLAG; this.AV12AKTIVN = aKTIVNAGODINA; try { this.executePrivate(startRow, maxRows); } finally { this.Cleanup(); } return(0); }
public void executePrivate(int startRow, int maxRows) { this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2 = this.connDefault.GetCommand("S_FIN_DNEVNIKBLAGAJNEOdDo", true); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.CommandType = CommandType.StoredProcedure; this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Clear(); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@ODD", this.AV8ODD)); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@DOO", this.AV9DOO)); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@VRSTA", this.AV10VRSTA)); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@BLAG", this.AV11BLAG)); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@AKTIVNAGODINA", this.AV12AKTIVN)); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.ErrorMask |= ErrorMask.Lock; this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2 = this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.FetchData(); while (this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.HasMoreRows && (startRow > 0)) { startRow--; this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.HasMoreRows = this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2.Read(); } int num = 0; while (this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.HasMoreRows && (num != maxRows)) { this.rowS_FIN_DNEVNIKBLAGAJNEODDO["NAZIVVRSTEDOK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["NAZIVVRSTEDOK"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["BLGDATUMDOKUMENTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["BLGDATUMDOKUMENTA"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["BLGBROJDOKUMENTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["BLGBROJDOKUMENTA"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["IDBLGVRSTEDOK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["IDBLGVRSTEDOK"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["BLGSVRHA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["BLGSVRHA"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["PRIMITAK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["PRIMITAK"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["IZDATAK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["IZDATAK"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["BLGSLOVIMA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["BLGSLOVIMA"]); this.rowS_FIN_DNEVNIKBLAGAJNEODDO["KONTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2["KONTA"]); this.AddRowS_fin_dnevnikblagajneoddo(); num++; this.rowS_FIN_DNEVNIKBLAGAJNEODDO = this.S_FIN_DNEVNIKBLAGAJNEODDOSet.S_FIN_DNEVNIKBLAGAJNEODDO.NewS_FIN_DNEVNIKBLAGAJNEODDORow(); this.cmS_FIN_DNEVNIKBLAGAJNEODDOSelect2.HasMoreRows = this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2.Read(); } this.S_FIN_DNEVNIKBLAGAJNEODDOSelect2.Close(); this.Cleanup(); }
public void RemoveS_FIN_DNEVNIKBLAGAJNEODDORow(S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow row) { this.Rows.Remove(row); }
public void AddS_FIN_DNEVNIKBLAGAJNEODDORow(S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow row) { this.Rows.Add(row); }
public S_FIN_DNEVNIKBLAGAJNEODDORowChangeEvent(S_FIN_DNEVNIKBLAGAJNEODDODataSet.S_FIN_DNEVNIKBLAGAJNEODDORow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }