Example #1
0
        private void LoadDataRad1vezaspol(int maxRows)
        {
            int num = 0;

            if (this.RcdFound285 != 0)
            {
                this.ScanLoadRad1vezaspol();
                while ((this.RcdFound285 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRad1vezaspol();
                    this.CreateNewRowRad1vezaspol();
                    this.ScanNextRad1vezaspol();
                }
            }
            if (num > 0)
            {
                this.RcdFound285 = 1;
            }
            this.ScanEndRad1vezaspol();
            if (this.RAD1VEZASPOLSet.RAD1VEZASPOL.Count > 0)
            {
                this.rowRAD1VEZASPOL = this.RAD1VEZASPOLSet.RAD1VEZASPOL[this.RAD1VEZASPOLSet.RAD1VEZASPOL.Count - 1];
            }
        }
Example #2
0
 public RAD1VEZASPOLDataSet.RAD1VEZASPOLRow AddRAD1VEZASPOLRow(int rAD1SPOLID, int iDSPOL)
 {
     RAD1VEZASPOLDataSet.RAD1VEZASPOLRow row = (RAD1VEZASPOLDataSet.RAD1VEZASPOLRow) this.NewRow();
     row["RAD1SPOLID"] = rAD1SPOLID;
     row["IDSPOL"]     = iDSPOL;
     this.Rows.Add(row);
     return(row);
 }
Example #3
0
 private void ReadRowRad1vezaspol()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRAD1VEZASPOL.RowState);
     if (this.rowRAD1VEZASPOL.RowState == DataRowState.Added)
     {
     }
     this._Gxremove = this.rowRAD1VEZASPOL.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRAD1VEZASPOL = (RAD1VEZASPOLDataSet.RAD1VEZASPOLRow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1VEZASPOL);
     }
 }
Example #4
0
        private void LoadByRAD1SPOLIDIDSPOL(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RAD1VEZASPOLSet.EnforceConstraints;

            this.RAD1VEZASPOLSet.RAD1VEZASPOL.BeginLoadData();
            this.ScanByRAD1SPOLIDIDSPOL(startRow, maxRows);
            this.RAD1VEZASPOLSet.RAD1VEZASPOL.EndLoadData();
            this.RAD1VEZASPOLSet.EnforceConstraints = enforceConstraints;
            if (this.RAD1VEZASPOLSet.RAD1VEZASPOL.Count > 0)
            {
                this.rowRAD1VEZASPOL = this.RAD1VEZASPOLSet.RAD1VEZASPOL[this.RAD1VEZASPOLSet.RAD1VEZASPOL.Count - 1];
            }
        }
Example #5
0
 public virtual int FillPageByRAD1SPOLID(RAD1VEZASPOLDataSet dataSet, int rAD1SPOLID, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault                = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1VEZASPOLSet            = dataSet;
     this.rowRAD1VEZASPOL            = this.RAD1VEZASPOLSet.RAD1VEZASPOL.NewRAD1VEZASPOLRow();
     this.rowRAD1VEZASPOL.RAD1SPOLID = rAD1SPOLID;
     try
     {
         this.LoadByRAD1SPOLID(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Example #6
0
 public virtual int FillByIDSPOL(RAD1VEZASPOLDataSet dataSet, int iDSPOL)
 {
     this.InitializeMembers();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1VEZASPOLSet        = dataSet;
     this.rowRAD1VEZASPOL        = this.RAD1VEZASPOLSet.RAD1VEZASPOL.NewRAD1VEZASPOLRow();
     this.rowRAD1VEZASPOL.IDSPOL = iDSPOL;
     try
     {
         this.LoadByIDSPOL(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Example #7
0
 public virtual bool FillByRAD1SPOLIDIDSPOL(RAD1VEZASPOLDataSet dataSet, int rAD1SPOLID, int iDSPOL)
 {
     this.InitializeMembers();
     this.connDefault                = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1VEZASPOLSet            = dataSet;
     this.rowRAD1VEZASPOL            = this.RAD1VEZASPOLSet.RAD1VEZASPOL.NewRAD1VEZASPOLRow();
     this.rowRAD1VEZASPOL.RAD1SPOLID = rAD1SPOLID;
     this.rowRAD1VEZASPOL.IDSPOL     = iDSPOL;
     try
     {
         this.LoadByRAD1SPOLIDIDSPOL(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound285 == 0)
     {
         return(false);
     }
     return(true);
 }
Example #8
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.RAD1VEZASPOLSet = (RAD1VEZASPOLDataSet)dataSet;
            this.connDefault     = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RAD1VEZASPOLSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RAD1VEZASPOLSet.RAD1VEZASPOL.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RAD1VEZASPOLDataSet.RAD1VEZASPOLRow current = (RAD1VEZASPOLDataSet.RAD1VEZASPOLRow)enumerator.Current;
                        this.rowRAD1VEZASPOL = current;
                        if (Helpers.IsRowChanged(this.rowRAD1VEZASPOL))
                        {
                            this.ReadRowRad1vezaspol();
                            if (this.rowRAD1VEZASPOL.RowState == DataRowState.Added)
                            {
                                this.InsertRad1vezaspol();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRad1vezaspol();
                            }
                        }
                    }
                }
                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);
        }
Example #9
0
 private void CreateNewRowRad1vezaspol()
 {
     this.rowRAD1VEZASPOL = this.RAD1VEZASPOLSet.RAD1VEZASPOL.NewRAD1VEZASPOLRow();
 }
Example #10
0
 public RAD1VEZASPOLEventArgs(RAD1VEZASPOLDataSet.RAD1VEZASPOLRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #11
0
 public RAD1VEZASPOLRowChangeEvent(RAD1VEZASPOLDataSet.RAD1VEZASPOLRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #12
0
 public void RemoveRAD1VEZASPOLRow(RAD1VEZASPOLDataSet.RAD1VEZASPOLRow row)
 {
     this.Rows.Remove(row);
 }
Example #13
0
 public void AddRAD1VEZASPOLRow(RAD1VEZASPOLDataSet.RAD1VEZASPOLRow row)
 {
     this.Rows.Add(row);
 }