Beispiel #1
0
        private void LoadDataVrsteobustava(int maxRows)
        {
            int num = 0;

            if (this.RcdFound42 != 0)
            {
                this.ScanLoadVrsteobustava();
                while ((this.RcdFound42 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowVrsteobustava();
                    this.CreateNewRowVrsteobustava();
                    this.ScanNextVrsteobustava();
                }
            }
            if (num > 0)
            {
                this.RcdFound42 = 1;
            }
            this.ScanEndVrsteobustava();
            if (this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.Count > 0)
            {
                this.rowVRSTEOBUSTAVA = this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA[this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.Count - 1];
            }
        }
Beispiel #2
0
 public VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow AddVRSTEOBUSTAVARow(short vRSTAOBUSTAVE, string nAZIVVRSTAOBUSTAVE)
 {
     VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow row = (VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow) this.NewRow();
     row["VRSTAOBUSTAVE"]      = vRSTAOBUSTAVE;
     row["NAZIVVRSTAOBUSTAVE"] = nAZIVVRSTAOBUSTAVE;
     this.Rows.Add(row);
     return(row);
 }
Beispiel #3
0
        private void LoadByVRSTAOBUSTAVE(int startRow, int maxRows)
        {
            bool enforceConstraints = this.VRSTAOBUSTAVESet.EnforceConstraints;

            this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.BeginLoadData();
            this.ScanByVRSTAOBUSTAVE(startRow, maxRows);
            this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.EndLoadData();
            this.VRSTAOBUSTAVESet.EnforceConstraints = enforceConstraints;
            if (this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.Count > 0)
            {
                this.rowVRSTEOBUSTAVA = this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA[this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.Count - 1];
            }
        }
Beispiel #4
0
 private void ReadRowVrsteobustava()
 {
     this.Gx_mode = Mode.FromRowState(this.rowVRSTEOBUSTAVA.RowState);
     if (this.rowVRSTEOBUSTAVA.RowState != DataRowState.Added)
     {
         this.m__NAZIVVRSTAOBUSTAVEOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTEOBUSTAVA["NAZIVVRSTAOBUSTAVE", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVVRSTAOBUSTAVEOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTEOBUSTAVA["NAZIVVRSTAOBUSTAVE"]);
     }
     this._Gxremove = this.rowVRSTEOBUSTAVA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowVRSTEOBUSTAVA = (VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow)DataSetUtil.CloneOriginalDataRow(this.rowVRSTEOBUSTAVA);
     }
 }
Beispiel #5
0
 public virtual bool FillByVRSTAOBUSTAVE(VRSTAOBUSTAVEDataSet dataSet, short vRSTAOBUSTAVE)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.VRSTAOBUSTAVESet = dataSet;
     this.rowVRSTEOBUSTAVA = this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.NewVRSTEOBUSTAVARow();
     this.rowVRSTEOBUSTAVA.VRSTAOBUSTAVE = vRSTAOBUSTAVE;
     try
     {
         this.LoadByVRSTAOBUSTAVE(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound42 == 0)
     {
         return(false);
     }
     return(true);
 }
Beispiel #6
0
 public VRSTEOBUSTAVAEventArgs(VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Beispiel #7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.VRSTAOBUSTAVESet = (VRSTAOBUSTAVEDataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.VRSTAOBUSTAVESet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow current = (VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow)enumerator.Current;
                        this.rowVRSTEOBUSTAVA = current;
                        if (Helpers.IsRowChanged(this.rowVRSTEOBUSTAVA))
                        {
                            this.ReadRowVrsteobustava();
                            if (this.rowVRSTEOBUSTAVA.RowState == DataRowState.Added)
                            {
                                this.InsertVrsteobustava();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateVrsteobustava();
                            }
                        }
                    }
                }
                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);
        }
Beispiel #8
0
 private void CreateNewRowVrsteobustava()
 {
     this.rowVRSTEOBUSTAVA = this.VRSTAOBUSTAVESet.VRSTEOBUSTAVA.NewVRSTEOBUSTAVARow();
 }
Beispiel #9
0
 public VRSTEOBUSTAVARowChangeEvent(VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Beispiel #10
0
 public void RemoveVRSTEOBUSTAVARow(VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow row)
 {
     this.Rows.Remove(row);
 }
Beispiel #11
0
 public void AddVRSTEOBUSTAVARow(VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow row)
 {
     this.Rows.Add(row);
 }