Exemplo n.º 1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_REKAP_POREZSelect2 = this.connDefault.GetCommand("S_PLACA_POREZ", true);
            this.cmS_OD_REKAP_POREZSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_REKAP_POREZSelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_REKAP_POREZSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_OD_REKAP_POREZSelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_REKAP_POREZSelect2              = this.cmS_OD_REKAP_POREZSelect2.FetchData();
            while (this.cmS_OD_REKAP_POREZSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_REKAP_POREZSelect2.HasMoreRows = this.S_OD_REKAP_POREZSelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_REKAP_POREZSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_REKAP_POREZ["SIFRA"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["SIFRA"]);
                this.rowS_OD_REKAP_POREZ["SIFRAOPCINESTANOVANJA"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["SIFRAOPCINESTANOVANJA"]);
                this.rowS_OD_REKAP_POREZ["NAZIVOPCINE"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["NAZIVOPCINE"]);
                this.rowS_OD_REKAP_POREZ["OBRACUNATO"]            = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["OBRACUNATO"]);
                this.rowS_OD_REKAP_POREZ["STOPA"]     = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["STOPA"]);
                this.rowS_OD_REKAP_POREZ["OSNOVICa"]  = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["OSNOVICA"]);
                this.rowS_OD_REKAP_POREZ["POREZOPIS"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POREZSelect2["POREZOPIS"]);
                this.AddRowS_od_rekap_porez();
                num++;
                this.rowS_OD_REKAP_POREZ = this.S_OD_REKAP_POREZSet.S_OD_REKAP_POREZ.NewS_OD_REKAP_POREZRow();
                this.cmS_OD_REKAP_POREZSelect2.HasMoreRows = this.S_OD_REKAP_POREZSelect2.Read();
            }
            this.S_OD_REKAP_POREZSelect2.Close();
            this.Cleanup();
        }
Exemplo n.º 2
0
 public S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow AddS_OD_REKAP_POREZRow(int sIFRA, string sIFRAOPCINESTANOVANJA, string nAZIVOPCINE, decimal oBRACUNATO, decimal sTOPA, decimal oSNOVICa, string pOREZOPIS)
 {
     S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow row = (S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow) this.NewRow();
     row.ItemArray = new object[] { sIFRA, sIFRAOPCINESTANOVANJA, nAZIVOPCINE, oBRACUNATO, sTOPA, oSNOVICa, pOREZOPIS };
     this.Rows.Add(row);
     return(row);
 }
Exemplo n.º 3
0
 public virtual int Fill(S_OD_REKAP_POREZDataSet dataSet, string iDOBRACUN)
 {
     this.Initialize();
     this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_REKAP_POREZSet = dataSet;
     this.rowS_OD_REKAP_POREZ = this.S_OD_REKAP_POREZSet.S_OD_REKAP_POREZ.NewS_OD_REKAP_POREZRow();
     this.SetFillParameters(iDOBRACUN);
     this.AV8IDOBRAC = iDOBRACUN;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Exemplo n.º 4
0
 public S_OD_REKAP_POREZRowChangeEvent(S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 5
0
 public void RemoveS_OD_REKAP_POREZRow(S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 6
0
 public void AddS_OD_REKAP_POREZRow(S_OD_REKAP_POREZDataSet.S_OD_REKAP_POREZRow row)
 {
     this.Rows.Add(row);
 }