Example #1
0
 public S_OD_IPPDataSet.S_OD_IPPRow AddS_OD_IPPRow(decimal oSNOVICAKRIZNOGPOREZA, decimal kRIZNIPOREZ, decimal bROJRADNIKA)
 {
     S_OD_IPPDataSet.S_OD_IPPRow row = (S_OD_IPPDataSet.S_OD_IPPRow) this.NewRow();
     row.ItemArray = new object[] { oSNOVICAKRIZNOGPOREZA, kRIZNIPOREZ, bROJRADNIKA };
     this.Rows.Add(row);
     return(row);
 }
Example #2
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_IPPSelect2 = this.connDefault.GetCommand("S_PLACA_IPP", true);
            this.cmS_OD_IPPSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_IPPSelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_IPPSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@mjesec", this.AV8mjesec));
            this.cmS_OD_IPPSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@godina", this.AV9godina));
            this.cmS_OD_IPPSelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_IPPSelect2              = this.cmS_OD_IPPSelect2.FetchData();
            while (this.cmS_OD_IPPSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_IPPSelect2.HasMoreRows = this.S_OD_IPPSelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_IPPSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_IPP["OSNOVICAKRIZNOGPOREZA"] = RuntimeHelpers.GetObjectValue(this.S_OD_IPPSelect2["OSNOVICAKRIZNOGPOREZA"]);
                this.rowS_OD_IPP["KRIZNIPOREZ"]           = RuntimeHelpers.GetObjectValue(this.S_OD_IPPSelect2["KRIZNIPOREZ"]);
                this.rowS_OD_IPP["BROJRADNIKA"]           = RuntimeHelpers.GetObjectValue(this.S_OD_IPPSelect2["BROJRADNIKA"]);
                this.AddRowS_od_ipp();
                num++;
                this.rowS_OD_IPP = this.S_OD_IPPSet.S_OD_IPP.NewS_OD_IPPRow();
                this.cmS_OD_IPPSelect2.HasMoreRows = this.S_OD_IPPSelect2.Read();
            }
            this.S_OD_IPPSelect2.Close();
            this.Cleanup();
        }
Example #3
0
 public virtual int Fill(S_OD_IPPDataSet dataSet, string mjesec, string godina)
 {
     this.Initialize();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_IPPSet = dataSet;
     this.rowS_OD_IPP = this.S_OD_IPPSet.S_OD_IPP.NewS_OD_IPPRow();
     this.SetFillParameters(mjesec, godina);
     this.AV8mjesec = mjesec;
     this.AV9godina = godina;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Example #4
0
 public S_OD_IPPRowChangeEvent(S_OD_IPPDataSet.S_OD_IPPRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #5
0
 public void RemoveS_OD_IPPRow(S_OD_IPPDataSet.S_OD_IPPRow row)
 {
     this.Rows.Remove(row);
 }
Example #6
0
 public void AddS_OD_IPPRow(S_OD_IPPDataSet.S_OD_IPPRow row)
 {
     this.Rows.Add(row);
 }