Exemplo n.º 1
0
        private void LoadDataBolovanjefond(int maxRows)
        {
            int num = 0;

            if (this.RcdFound135 != 0)
            {
                this.ScanLoadBolovanjefond();
                while ((this.RcdFound135 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowBolovanjefond();
                    this.CreateNewRowBolovanjefond();
                    this.ScanNextBolovanjefond();
                }
            }
            if (num > 0)
            {
                this.RcdFound135 = 1;
            }
            this.ScanEndBolovanjefond();
            if (this.BOLOVANJEFONDSet.BOLOVANJEFOND.Count > 0)
            {
                this.rowBOLOVANJEFOND = this.BOLOVANJEFONDSet.BOLOVANJEFOND[this.BOLOVANJEFONDSet.BOLOVANJEFOND.Count - 1];
            }
        }
Exemplo n.º 2
0
 public BOLOVANJEFONDDataSet.BOLOVANJEFONDRow AddBOLOVANJEFONDRow(int eLEMENTBOLOVANJEIDELEMENT, short kOLONA)
 {
     BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row = (BOLOVANJEFONDDataSet.BOLOVANJEFONDRow) this.NewRow();
     row["ELEMENTBOLOVANJEIDELEMENT"] = eLEMENTBOLOVANJEIDELEMENT;
     row["KOLONA"] = kOLONA;
     this.Rows.Add(row);
     return(row);
 }
Exemplo n.º 3
0
        private void LoadByELEMENTBOLOVANJEIDELEMENT(int startRow, int maxRows)
        {
            bool enforceConstraints = this.BOLOVANJEFONDSet.EnforceConstraints;

            this.BOLOVANJEFONDSet.BOLOVANJEFOND.BeginLoadData();
            this.ScanByELEMENTBOLOVANJEIDELEMENT(startRow, maxRows);
            this.BOLOVANJEFONDSet.BOLOVANJEFOND.EndLoadData();
            this.BOLOVANJEFONDSet.EnforceConstraints = enforceConstraints;
            if (this.BOLOVANJEFONDSet.BOLOVANJEFOND.Count > 0)
            {
                this.rowBOLOVANJEFOND = this.BOLOVANJEFONDSet.BOLOVANJEFOND[this.BOLOVANJEFONDSet.BOLOVANJEFOND.Count - 1];
            }
        }
Exemplo n.º 4
0
 private void ReadRowBolovanjefond()
 {
     this.Gx_mode = Mode.FromRowState(this.rowBOLOVANJEFOND.RowState);
     if (this.rowBOLOVANJEFOND.RowState != DataRowState.Added)
     {
         this.m__KOLONAOriginal = RuntimeHelpers.GetObjectValue(this.rowBOLOVANJEFOND["KOLONA", DataRowVersion.Original]);
     }
     else
     {
         this.m__KOLONAOriginal = RuntimeHelpers.GetObjectValue(this.rowBOLOVANJEFOND["KOLONA"]);
     }
     this._Gxremove = this.rowBOLOVANJEFOND.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowBOLOVANJEFOND = (BOLOVANJEFONDDataSet.BOLOVANJEFONDRow)DataSetUtil.CloneOriginalDataRow(this.rowBOLOVANJEFOND);
     }
 }
Exemplo n.º 5
0
 public virtual bool FillByELEMENTBOLOVANJEIDELEMENT(BOLOVANJEFONDDataSet dataSet, int eLEMENTBOLOVANJEIDELEMENT)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.BOLOVANJEFONDSet = dataSet;
     this.rowBOLOVANJEFOND = this.BOLOVANJEFONDSet.BOLOVANJEFOND.NewBOLOVANJEFONDRow();
     this.rowBOLOVANJEFOND.ELEMENTBOLOVANJEIDELEMENT = eLEMENTBOLOVANJEIDELEMENT;
     try
     {
         this.LoadByELEMENTBOLOVANJEIDELEMENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound135 == 0)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 6
0
 public BOLOVANJEFONDEventArgs(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Exemplo n.º 7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.BOLOVANJEFONDSet = (BOLOVANJEFONDDataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.BOLOVANJEFONDSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.BOLOVANJEFONDSet.BOLOVANJEFOND.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        BOLOVANJEFONDDataSet.BOLOVANJEFONDRow current = (BOLOVANJEFONDDataSet.BOLOVANJEFONDRow)enumerator.Current;
                        this.rowBOLOVANJEFOND = current;
                        if (Helpers.IsRowChanged(this.rowBOLOVANJEFOND))
                        {
                            this.ReadRowBolovanjefond();
                            if (this.rowBOLOVANJEFOND.RowState == DataRowState.Added)
                            {
                                this.InsertBolovanjefond();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateBolovanjefond();
                            }
                        }
                    }
                }
                finally
                {
                    if (enumerator is IDisposable)
                    {
                        (enumerator as IDisposable).Dispose();
                    }
                }
                dataSet.AcceptChanges();
                this.connDefault.Commit();
            }
            catch (System.Exception exception1)
            {
                throw exception1;

                //this.connDefault.Rollback();
            }
            finally
            {
                this.Cleanup();
            }
            return(0);
        }
Exemplo n.º 8
0
 private void CreateNewRowBolovanjefond()
 {
     this.rowBOLOVANJEFOND = this.BOLOVANJEFONDSet.BOLOVANJEFOND.NewBOLOVANJEFONDRow();
 }
Exemplo n.º 9
0
 public BOLOVANJEFONDRowChangeEvent(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 10
0
 public void RemoveBOLOVANJEFONDRow(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 11
0
 public void AddBOLOVANJEFONDRow(BOLOVANJEFONDDataSet.BOLOVANJEFONDRow row)
 {
     this.Rows.Add(row);
 }