Esempio n. 1
0
        private void LoadDataDrzavljanstvo(int maxRows)
        {
            int num = 0;

            if (this.RcdFound270 != 0)
            {
                this.ScanLoadDrzavljanstvo();
                while ((this.RcdFound270 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowDrzavljanstvo();
                    this.CreateNewRowDrzavljanstvo();
                    this.ScanNextDrzavljanstvo();
                }
            }
            if (num > 0)
            {
                this.RcdFound270 = 1;
            }
            this.ScanEndDrzavljanstvo();
            if (this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.Count > 0)
            {
                this.rowDRZAVLJANSTVO = this.DRZAVLJANSTVOSet.DRZAVLJANSTVO[this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.Count - 1];
            }
        }
Esempio n. 2
0
 public DRZAVLJANSTVODataSet.DRZAVLJANSTVORow AddDRZAVLJANSTVORow(int iDDRZAVLJANSTVO, string nAZIVDRZAVLJANSTVO)
 {
     DRZAVLJANSTVODataSet.DRZAVLJANSTVORow row = (DRZAVLJANSTVODataSet.DRZAVLJANSTVORow) this.NewRow();
     row["IDDRZAVLJANSTVO"]    = iDDRZAVLJANSTVO;
     row["NAZIVDRZAVLJANSTVO"] = nAZIVDRZAVLJANSTVO;
     this.Rows.Add(row);
     return(row);
 }
Esempio n. 3
0
        private void LoadByIDDRZAVLJANSTVO(int startRow, int maxRows)
        {
            bool enforceConstraints = this.DRZAVLJANSTVOSet.EnforceConstraints;

            this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.BeginLoadData();
            this.ScanByIDDRZAVLJANSTVO(startRow, maxRows);
            this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.EndLoadData();
            this.DRZAVLJANSTVOSet.EnforceConstraints = enforceConstraints;
            if (this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.Count > 0)
            {
                this.rowDRZAVLJANSTVO = this.DRZAVLJANSTVOSet.DRZAVLJANSTVO[this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.Count - 1];
            }
        }
Esempio n. 4
0
 private void ReadRowDrzavljanstvo()
 {
     this.Gx_mode = Mode.FromRowState(this.rowDRZAVLJANSTVO.RowState);
     if (this.rowDRZAVLJANSTVO.RowState != DataRowState.Added)
     {
         this.m__NAZIVDRZAVLJANSTVOOriginal = RuntimeHelpers.GetObjectValue(this.rowDRZAVLJANSTVO["NAZIVDRZAVLJANSTVO", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVDRZAVLJANSTVOOriginal = RuntimeHelpers.GetObjectValue(this.rowDRZAVLJANSTVO["NAZIVDRZAVLJANSTVO"]);
     }
     this._Gxremove = this.rowDRZAVLJANSTVO.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowDRZAVLJANSTVO = (DRZAVLJANSTVODataSet.DRZAVLJANSTVORow)DataSetUtil.CloneOriginalDataRow(this.rowDRZAVLJANSTVO);
     }
 }
Esempio n. 5
0
 public virtual bool FillByIDDRZAVLJANSTVO(DRZAVLJANSTVODataSet dataSet, int iDDRZAVLJANSTVO)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.DRZAVLJANSTVOSet = dataSet;
     this.rowDRZAVLJANSTVO = this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.NewDRZAVLJANSTVORow();
     this.rowDRZAVLJANSTVO.IDDRZAVLJANSTVO = iDDRZAVLJANSTVO;
     try
     {
         this.LoadByIDDRZAVLJANSTVO(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound270 == 0)
     {
         return(false);
     }
     return(true);
 }
Esempio n. 6
0
 public DRZAVLJANSTVORowChangeEvent(DRZAVLJANSTVODataSet.DRZAVLJANSTVORow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Esempio n. 7
0
 public void RemoveDRZAVLJANSTVORow(DRZAVLJANSTVODataSet.DRZAVLJANSTVORow row)
 {
     this.Rows.Remove(row);
 }
Esempio n. 8
0
 public void AddDRZAVLJANSTVORow(DRZAVLJANSTVODataSet.DRZAVLJANSTVORow row)
 {
     this.Rows.Add(row);
 }
Esempio n. 9
0
 public DRZAVLJANSTVOEventArgs(DRZAVLJANSTVODataSet.DRZAVLJANSTVORow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Esempio n. 10
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.DRZAVLJANSTVOSet = (DRZAVLJANSTVODataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.DRZAVLJANSTVOSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        DRZAVLJANSTVODataSet.DRZAVLJANSTVORow current = (DRZAVLJANSTVODataSet.DRZAVLJANSTVORow)enumerator.Current;
                        this.rowDRZAVLJANSTVO = current;
                        if (Helpers.IsRowChanged(this.rowDRZAVLJANSTVO))
                        {
                            this.ReadRowDrzavljanstvo();
                            if (this.rowDRZAVLJANSTVO.RowState == DataRowState.Added)
                            {
                                this.InsertDrzavljanstvo();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateDrzavljanstvo();
                            }
                        }
                    }
                }
                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);
        }
Esempio n. 11
0
 private void CreateNewRowDrzavljanstvo()
 {
     this.rowDRZAVLJANSTVO = this.DRZAVLJANSTVOSet.DRZAVLJANSTVO.NewDRZAVLJANSTVORow();
 }