public S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow AddS_FIN_DNEVNIKBLAGAJNERow(string nAZIVVRSTEDOK, DateTime bLGDATUMDOKUMENTA, int bLGBROJDOKUMENTA, int iDBLGVRSTEDOK, string bLGSVRHA, decimal pRIMITAK, decimal iZDATAK, string kONTA) { S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow row = (S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow) this.NewRow(); row.ItemArray = new object[] { nAZIVVRSTEDOK, bLGDATUMDOKUMENTA, bLGBROJDOKUMENTA, iDBLGVRSTEDOK, bLGSVRHA, pRIMITAK, iZDATAK, kONTA }; this.Rows.Add(row); return(row); }
public void executePrivate(int startRow, int maxRows) { this.cmS_FIN_DNEVNIKBLAGAJNESelect2 = this.connDefault.GetCommand("S_FIN_DNEVNIKBLAGAJNE", true); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.IDbCommand.CommandType = CommandType.StoredProcedure; this.cmS_FIN_DNEVNIKBLAGAJNESelect2.IDbCommand.Parameters.Clear(); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@dat1", this.AV8dat1)); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@dat2", this.AV9dat2)); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@blag", this.AV10blag)); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.ErrorMask |= ErrorMask.Lock; this.S_FIN_DNEVNIKBLAGAJNESelect2 = this.cmS_FIN_DNEVNIKBLAGAJNESelect2.FetchData(); while (this.cmS_FIN_DNEVNIKBLAGAJNESelect2.HasMoreRows && (startRow > 0)) { startRow--; this.cmS_FIN_DNEVNIKBLAGAJNESelect2.HasMoreRows = this.S_FIN_DNEVNIKBLAGAJNESelect2.Read(); } int num = 0; while (this.cmS_FIN_DNEVNIKBLAGAJNESelect2.HasMoreRows && (num != maxRows)) { this.rowS_FIN_DNEVNIKBLAGAJNE["NAZIVVRSTEDOK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["NAZIVVRSTEDOK"]); this.rowS_FIN_DNEVNIKBLAGAJNE["BLGDATUMDOKUMENTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["BLGDATUMDOKUMENTA"]); this.rowS_FIN_DNEVNIKBLAGAJNE["BLGBROJDOKUMENTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["BLGBROJDOKUMENTA"]); this.rowS_FIN_DNEVNIKBLAGAJNE["IDBLGVRSTEDOK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["IDBLGVRSTEDOK"]); this.rowS_FIN_DNEVNIKBLAGAJNE["BLGSVRHA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["BLGSVRHA"]); this.rowS_FIN_DNEVNIKBLAGAJNE["PRIMITAK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["PRIMITAK"]); this.rowS_FIN_DNEVNIKBLAGAJNE["IZDATAK"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["IZDATAK"]); this.rowS_FIN_DNEVNIKBLAGAJNE["KONTA"] = RuntimeHelpers.GetObjectValue(this.S_FIN_DNEVNIKBLAGAJNESelect2["KONTA"]); this.AddRowS_fin_dnevnikblagajne(); num++; this.rowS_FIN_DNEVNIKBLAGAJNE = this.S_FIN_DNEVNIKBLAGAJNESet.S_FIN_DNEVNIKBLAGAJNE.NewS_FIN_DNEVNIKBLAGAJNERow(); this.cmS_FIN_DNEVNIKBLAGAJNESelect2.HasMoreRows = this.S_FIN_DNEVNIKBLAGAJNESelect2.Read(); } this.S_FIN_DNEVNIKBLAGAJNESelect2.Close(); this.Cleanup(); }
public virtual int FillPage(S_FIN_DNEVNIKBLAGAJNEDataSet dataSet, DateTime dat1, DateTime dat2, int blag, int startRow, int maxRows) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_FIN_DNEVNIKBLAGAJNESet = dataSet; this.rowS_FIN_DNEVNIKBLAGAJNE = this.S_FIN_DNEVNIKBLAGAJNESet.S_FIN_DNEVNIKBLAGAJNE.NewS_FIN_DNEVNIKBLAGAJNERow(); this.SetFillParameters(dat1, dat2, blag); this.AV8dat1 = DateTimeUtil.ResetTime(dat1); this.AV9dat2 = DateTimeUtil.ResetTime(dat2); this.AV10blag = blag; try { this.executePrivate(startRow, maxRows); } finally { this.Cleanup(); } return(0); }
public S_FIN_DNEVNIKBLAGAJNERowChangeEvent(S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveS_FIN_DNEVNIKBLAGAJNERow(S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow row) { this.Rows.Remove(row); }
public void AddS_FIN_DNEVNIKBLAGAJNERow(S_FIN_DNEVNIKBLAGAJNEDataSet.S_FIN_DNEVNIKBLAGAJNERow row) { this.Rows.Add(row); }