Beispiel #1
0
 public s_od_rekap_brutoDataSet.s_od_rekap_brutoRow Adds_od_rekap_brutoRow(decimal sati, decimal iZNOS, string pREZIME, string iME, string jMBG, int iDRADNIK, short iDVRSTAELEMENTA, string nAZIVELEMENT, string nAZIVVRSTAELEMENT)
 {
     s_od_rekap_brutoDataSet.s_od_rekap_brutoRow row = (s_od_rekap_brutoDataSet.s_od_rekap_brutoRow) this.NewRow();
     row.ItemArray = new object[] { sati, iZNOS, pREZIME, iME, jMBG, iDRADNIK, iDVRSTAELEMENTA, nAZIVELEMENT, nAZIVVRSTAELEMENT };
     this.Rows.Add(row);
     return(row);
 }
Beispiel #2
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cms_od_rekap_brutoSelect2 = this.connDefault.GetCommand("S_PLACA_BRUTO", true);
            this.cms_od_rekap_brutoSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cms_od_rekap_brutoSelect2.IDbCommand.Parameters.Clear();
            this.cms_od_rekap_brutoSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@idobracun", this.AV8idobrac));
            this.cms_od_rekap_brutoSelect2.ErrorMask |= ErrorMask.Lock;
            this.s_od_rekap_brutoSelect2              = this.cms_od_rekap_brutoSelect2.FetchData();
            while (this.cms_od_rekap_brutoSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cms_od_rekap_brutoSelect2.HasMoreRows = this.s_od_rekap_brutoSelect2.Read();
            }
            int num = 0;

            while (this.cms_od_rekap_brutoSelect2.HasMoreRows && (num != maxRows))
            {
                this.rows_od_rekap_bruto["sati"]              = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["sati"]);
                this.rows_od_rekap_bruto["IZNOS"]             = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["iznos"]);
                this.rows_od_rekap_bruto["PREZIME"]           = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["prezime"]);
                this.rows_od_rekap_bruto["IME"]               = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["ime"]);
                this.rows_od_rekap_bruto["JMBG"]              = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["jmbg"]);
                this.rows_od_rekap_bruto["IDRADNIK"]          = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["idradnik"]);
                this.rows_od_rekap_bruto["IDVRSTAELEMENTA"]   = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["idvrstaelementa"]);
                this.rows_od_rekap_bruto["NAZIVELEMENT"]      = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["nazivelement"]);
                this.rows_od_rekap_bruto["NAZIVVRSTAELEMENT"] = RuntimeHelpers.GetObjectValue(this.s_od_rekap_brutoSelect2["nazivvrstaelement"]);
                this.AddRowS_od_rekap_bruto();
                num++;
                this.rows_od_rekap_bruto = this.s_od_rekap_brutoSet.s_od_rekap_bruto.News_od_rekap_brutoRow();
                this.cms_od_rekap_brutoSelect2.HasMoreRows = this.s_od_rekap_brutoSelect2.Read();
            }
            this.s_od_rekap_brutoSelect2.Close();
            this.Cleanup();
        }
Beispiel #3
0
 public virtual int Fill(s_od_rekap_brutoDataSet dataSet, string idobracun)
 {
     this.Initialize();
     this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.s_od_rekap_brutoSet = dataSet;
     this.rows_od_rekap_bruto = this.s_od_rekap_brutoSet.s_od_rekap_bruto.News_od_rekap_brutoRow();
     this.SetFillParameters(idobracun);
     this.AV8idobrac = idobracun;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Beispiel #4
0
 public void Removes_od_rekap_brutoRow(s_od_rekap_brutoDataSet.s_od_rekap_brutoRow row)
 {
     this.Rows.Remove(row);
 }
Beispiel #5
0
 public void Adds_od_rekap_brutoRow(s_od_rekap_brutoDataSet.s_od_rekap_brutoRow row)
 {
     this.Rows.Add(row);
 }
Beispiel #6
0
 public s_od_rekap_brutoRowChangeEvent(s_od_rekap_brutoDataSet.s_od_rekap_brutoRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }