Ejemplo n.º 1
0
        private void LoadDataOrgjed(int maxRows)
        {
            int num = 0;

            if (this.RcdFound191 != 0)
            {
                this.ScanLoadOrgjed();
                while ((this.RcdFound191 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowOrgjed();
                    this.CreateNewRowOrgjed();
                    this.ScanNextOrgjed();
                }
            }
            if (num > 0)
            {
                this.RcdFound191 = 1;
            }
            this.ScanEndOrgjed();
            if (this.ORGJEDSet.ORGJED.Count > 0)
            {
                this.rowORGJED = this.ORGJEDSet.ORGJED[this.ORGJEDSet.ORGJED.Count - 1];
            }
        }
Ejemplo n.º 2
0
 public ORGJEDDataSet.ORGJEDRow AddORGJEDRow(int iDORGJED, string nAZIVORGJED)
 {
     ORGJEDDataSet.ORGJEDRow row = (ORGJEDDataSet.ORGJEDRow) this.NewRow();
     row["IDORGJED"]    = iDORGJED;
     row["NAZIVORGJED"] = nAZIVORGJED;
     this.Rows.Add(row);
     return(row);
 }
Ejemplo n.º 3
0
        private void LoadByIDORGJED(int startRow, int maxRows)
        {
            bool enforceConstraints = this.ORGJEDSet.EnforceConstraints;

            this.ORGJEDSet.ORGJED.BeginLoadData();
            this.ScanByIDORGJED(startRow, maxRows);
            this.ORGJEDSet.ORGJED.EndLoadData();
            this.ORGJEDSet.EnforceConstraints = enforceConstraints;
            if (this.ORGJEDSet.ORGJED.Count > 0)
            {
                this.rowORGJED = this.ORGJEDSet.ORGJED[this.ORGJEDSet.ORGJED.Count - 1];
            }
        }
Ejemplo n.º 4
0
 private void ReadRowOrgjed()
 {
     this.Gx_mode = Mode.FromRowState(this.rowORGJED.RowState);
     if (this.rowORGJED.RowState != DataRowState.Added)
     {
         this.m__NAZIVORGJEDOriginal = RuntimeHelpers.GetObjectValue(this.rowORGJED["NAZIVORGJED", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVORGJEDOriginal = RuntimeHelpers.GetObjectValue(this.rowORGJED["NAZIVORGJED"]);
     }
     this._Gxremove = this.rowORGJED.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowORGJED = (ORGJEDDataSet.ORGJEDRow)DataSetUtil.CloneOriginalDataRow(this.rowORGJED);
     }
 }
Ejemplo n.º 5
0
 public virtual bool FillByIDORGJED(ORGJEDDataSet dataSet, int iDORGJED)
 {
     this.InitializeMembers();
     this.connDefault        = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.ORGJEDSet          = dataSet;
     this.rowORGJED          = this.ORGJEDSet.ORGJED.NewORGJEDRow();
     this.rowORGJED.IDORGJED = iDORGJED;
     try
     {
         this.LoadByIDORGJED(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound191 == 0)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 6
0
 public ORGJEDEventArgs(ORGJEDDataSet.ORGJEDRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Ejemplo n.º 7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.ORGJEDSet   = (ORGJEDDataSet)dataSet;
            this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.ORGJEDSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.ORGJEDSet.ORGJED.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        ORGJEDDataSet.ORGJEDRow current = (ORGJEDDataSet.ORGJEDRow)enumerator.Current;
                        this.rowORGJED = current;
                        if (Helpers.IsRowChanged(this.rowORGJED))
                        {
                            this.ReadRowOrgjed();
                            if (this.rowORGJED.RowState == DataRowState.Added)
                            {
                                this.InsertOrgjed();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateOrgjed();
                            }
                        }
                    }
                }
                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);
        }
Ejemplo n.º 8
0
 private void CreateNewRowOrgjed()
 {
     this.rowORGJED = this.ORGJEDSet.ORGJED.NewORGJEDRow();
 }
Ejemplo n.º 9
0
 public ORGJEDRowChangeEvent(ORGJEDDataSet.ORGJEDRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Ejemplo n.º 10
0
 public void RemoveORGJEDRow(ORGJEDDataSet.ORGJEDRow row)
 {
     this.Rows.Remove(row);
 }
Ejemplo n.º 11
0
 public void AddORGJEDRow(ORGJEDDataSet.ORGJEDRow row)
 {
     this.Rows.Add(row);
 }