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

            if (this.RcdFound30 != 0)
            {
                this.ScanLoadRsvrsteobveznika();
                while ((this.RcdFound30 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRsvrsteobveznika();
                    this.CreateNewRowRsvrsteobveznika();
                    this.ScanNextRsvrsteobveznika();
                }
            }
            if (num > 0)
            {
                this.RcdFound30 = 1;
            }
            this.ScanEndRsvrsteobveznika();
            if (this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.Count > 0)
            {
                this.rowRSVRSTEOBVEZNIKA = this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA[this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.Count - 1];
            }
        }
Esempio n. 2
0
 public RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow AddRSVRSTEOBVEZNIKARow(string iDRSVRSTEOBVEZNIKA, string nAZIVRSVRSTEOBVEZNIKA)
 {
     RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow row = (RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow) this.NewRow();
     row["IDRSVRSTEOBVEZNIKA"]    = iDRSVRSTEOBVEZNIKA;
     row["NAZIVRSVRSTEOBVEZNIKA"] = nAZIVRSVRSTEOBVEZNIKA;
     this.Rows.Add(row);
     return(row);
 }
Esempio n. 3
0
        private void LoadByIDRSVRSTEOBVEZNIKA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RSVRSTEOBVEZNIKASet.EnforceConstraints;

            this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.BeginLoadData();
            this.ScanByIDRSVRSTEOBVEZNIKA(startRow, maxRows);
            this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.EndLoadData();
            this.RSVRSTEOBVEZNIKASet.EnforceConstraints = enforceConstraints;
            if (this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.Count > 0)
            {
                this.rowRSVRSTEOBVEZNIKA = this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA[this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.Count - 1];
            }
        }
Esempio n. 4
0
 private void ReadRowRsvrsteobveznika()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRSVRSTEOBVEZNIKA.RowState);
     if (this.rowRSVRSTEOBVEZNIKA.RowState != DataRowState.Added)
     {
         this.m__NAZIVRSVRSTEOBVEZNIKAOriginal = RuntimeHelpers.GetObjectValue(this.rowRSVRSTEOBVEZNIKA["NAZIVRSVRSTEOBVEZNIKA", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVRSVRSTEOBVEZNIKAOriginal = RuntimeHelpers.GetObjectValue(this.rowRSVRSTEOBVEZNIKA["NAZIVRSVRSTEOBVEZNIKA"]);
     }
     this._Gxremove = this.rowRSVRSTEOBVEZNIKA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRSVRSTEOBVEZNIKA = (RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow)DataSetUtil.CloneOriginalDataRow(this.rowRSVRSTEOBVEZNIKA);
     }
 }
Esempio n. 5
0
 public virtual bool FillByIDRSVRSTEOBVEZNIKA(RSVRSTEOBVEZNIKADataSet dataSet, string iDRSVRSTEOBVEZNIKA)
 {
     this.InitializeMembers();
     this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RSVRSTEOBVEZNIKASet = dataSet;
     this.rowRSVRSTEOBVEZNIKA = this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.NewRSVRSTEOBVEZNIKARow();
     this.rowRSVRSTEOBVEZNIKA.IDRSVRSTEOBVEZNIKA = iDRSVRSTEOBVEZNIKA;
     try
     {
         this.LoadByIDRSVRSTEOBVEZNIKA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound30 == 0)
     {
         return(false);
     }
     return(true);
 }
Esempio n. 6
0
 public RSVRSTEOBVEZNIKARowChangeEvent(RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Esempio n. 7
0
 public void RemoveRSVRSTEOBVEZNIKARow(RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow row)
 {
     this.Rows.Remove(row);
 }
Esempio n. 8
0
 public void AddRSVRSTEOBVEZNIKARow(RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow row)
 {
     this.Rows.Add(row);
 }
Esempio n. 9
0
 public RSVRSTEOBVEZNIKAEventArgs(RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow 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.RSVRSTEOBVEZNIKASet = (RSVRSTEOBVEZNIKADataSet)dataSet;
            this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RSVRSTEOBVEZNIKASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow current = (RSVRSTEOBVEZNIKADataSet.RSVRSTEOBVEZNIKARow)enumerator.Current;
                        this.rowRSVRSTEOBVEZNIKA = current;
                        if (Helpers.IsRowChanged(this.rowRSVRSTEOBVEZNIKA))
                        {
                            this.ReadRowRsvrsteobveznika();
                            if (this.rowRSVRSTEOBVEZNIKA.RowState == DataRowState.Added)
                            {
                                this.InsertRsvrsteobveznika();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRsvrsteobveznika();
                            }
                        }
                    }
                }
                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 CreateNewRowRsvrsteobveznika()
 {
     this.rowRSVRSTEOBVEZNIKA = this.RSVRSTEOBVEZNIKASet.RSVRSTEOBVEZNIKA.NewRSVRSTEOBVEZNIKARow();
 }