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

            while (this.cmS_DD_REKAP_DOPRINOSSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_DD_REKAP_DOPRINOS["IZNOS"]         = RuntimeHelpers.GetObjectValue(this.S_DD_REKAP_DOPRINOSSelect2["IZNOS"]);
                this.rowS_DD_REKAP_DOPRINOS["SIFRA"]         = RuntimeHelpers.GetObjectValue(this.S_DD_REKAP_DOPRINOSSelect2["SIFRA"]);
                this.rowS_DD_REKAP_DOPRINOS["vrsta"]         = RuntimeHelpers.GetObjectValue(this.S_DD_REKAP_DOPRINOSSelect2["VRSTA"]);
                this.rowS_DD_REKAP_DOPRINOS["NAZIVDOPRINOS"] = RuntimeHelpers.GetObjectValue(this.S_DD_REKAP_DOPRINOSSelect2["NAZIVDOPRINOS"]);
                this.rowS_DD_REKAP_DOPRINOS["vrstasifra"]    = RuntimeHelpers.GetObjectValue(this.S_DD_REKAP_DOPRINOSSelect2["VRSTASIFRA"]);
                this.AddRowS_dd_rekap_doprinos();
                num++;
                this.rowS_DD_REKAP_DOPRINOS = this.S_DD_REKAP_DOPRINOSSet.S_DD_REKAP_DOPRINOS.NewS_DD_REKAP_DOPRINOSRow();
                this.cmS_DD_REKAP_DOPRINOSSelect2.HasMoreRows = this.S_DD_REKAP_DOPRINOSSelect2.Read();
            }
            this.S_DD_REKAP_DOPRINOSSelect2.Close();
            this.Cleanup();
        }
Exemplo n.º 2
0
 public S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow AddS_DD_REKAP_DOPRINOSRow(decimal iZNOS, int sIFRA, string vrsta, string nAZIVDOPRINOS, int vrstasifra)
 {
     S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow row = (S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow) this.NewRow();
     row.ItemArray = new object[] { iZNOS, sIFRA, vrsta, nAZIVDOPRINOS, vrstasifra };
     this.Rows.Add(row);
     return(row);
 }
Exemplo n.º 3
0
 public virtual int Fill(S_DD_REKAP_DOPRINOSDataSet dataSet, string iDOBRACUN)
 {
     this.Initialize();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_DD_REKAP_DOPRINOSSet = dataSet;
     this.rowS_DD_REKAP_DOPRINOS = this.S_DD_REKAP_DOPRINOSSet.S_DD_REKAP_DOPRINOS.NewS_DD_REKAP_DOPRINOSRow();
     this.SetFillParameters(iDOBRACUN);
     this.AV8IDOBRAC = iDOBRACUN;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Exemplo n.º 4
0
 public S_DD_REKAP_DOPRINOSRowChangeEvent(S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 5
0
 public void RemoveS_DD_REKAP_DOPRINOSRow(S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 6
0
 public void AddS_DD_REKAP_DOPRINOSRow(S_DD_REKAP_DOPRINOSDataSet.S_DD_REKAP_DOPRINOSRow row)
 {
     this.Rows.Add(row);
 }