示例#1
0
        private void LoadDataTippartnera(int maxRows)
        {
            int num = 0;

            if (this.RcdFound160 != 0)
            {
                this.ScanLoadTippartnera();
                while ((this.RcdFound160 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowTippartnera();
                    this.CreateNewRowTippartnera();
                    this.ScanNextTippartnera();
                }
            }
            if (num > 0)
            {
                this.RcdFound160 = 1;
            }
            this.ScanEndTippartnera();
            if (this.TIPPARTNERASet.TIPPARTNERA.Count > 0)
            {
                this.rowTIPPARTNERA = this.TIPPARTNERASet.TIPPARTNERA[this.TIPPARTNERASet.TIPPARTNERA.Count - 1];
            }
        }
示例#2
0
 public TIPPARTNERADataSet.TIPPARTNERARow AddTIPPARTNERARow(int iDTIPPARTNERA, string nAZIVTIPPARTNERA)
 {
     TIPPARTNERADataSet.TIPPARTNERARow row = (TIPPARTNERADataSet.TIPPARTNERARow) this.NewRow();
     row["IDTIPPARTNERA"]    = iDTIPPARTNERA;
     row["NAZIVTIPPARTNERA"] = nAZIVTIPPARTNERA;
     this.Rows.Add(row);
     return(row);
 }
示例#3
0
        private void LoadByIDTIPPARTNERA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.TIPPARTNERASet.EnforceConstraints;

            this.TIPPARTNERASet.TIPPARTNERA.BeginLoadData();
            this.ScanByIDTIPPARTNERA(startRow, maxRows);
            this.TIPPARTNERASet.TIPPARTNERA.EndLoadData();
            this.TIPPARTNERASet.EnforceConstraints = enforceConstraints;
            if (this.TIPPARTNERASet.TIPPARTNERA.Count > 0)
            {
                this.rowTIPPARTNERA = this.TIPPARTNERASet.TIPPARTNERA[this.TIPPARTNERASet.TIPPARTNERA.Count - 1];
            }
        }
示例#4
0
 private void ReadRowTippartnera()
 {
     this.Gx_mode = Mode.FromRowState(this.rowTIPPARTNERA.RowState);
     if (this.rowTIPPARTNERA.RowState != DataRowState.Added)
     {
         this.m__NAZIVTIPPARTNERAOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPPARTNERA["NAZIVTIPPARTNERA", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVTIPPARTNERAOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPPARTNERA["NAZIVTIPPARTNERA"]);
     }
     this._Gxremove = this.rowTIPPARTNERA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowTIPPARTNERA = (TIPPARTNERADataSet.TIPPARTNERARow)DataSetUtil.CloneOriginalDataRow(this.rowTIPPARTNERA);
     }
 }
示例#5
0
 public virtual bool FillByIDTIPPARTNERA(TIPPARTNERADataSet dataSet, int iDTIPPARTNERA)
 {
     this.InitializeMembers();
     this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.TIPPARTNERASet = dataSet;
     this.rowTIPPARTNERA = this.TIPPARTNERASet.TIPPARTNERA.NewTIPPARTNERARow();
     this.rowTIPPARTNERA.IDTIPPARTNERA = iDTIPPARTNERA;
     try
     {
         this.LoadByIDTIPPARTNERA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound160 == 0)
     {
         return(false);
     }
     return(true);
 }
示例#6
0
 public TIPPARTNERARowChangeEvent(TIPPARTNERADataSet.TIPPARTNERARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
示例#7
0
 public void RemoveTIPPARTNERARow(TIPPARTNERADataSet.TIPPARTNERARow row)
 {
     this.Rows.Remove(row);
 }
示例#8
0
 public void AddTIPPARTNERARow(TIPPARTNERADataSet.TIPPARTNERARow row)
 {
     this.Rows.Add(row);
 }
示例#9
0
 public TIPPARTNERAEventArgs(TIPPARTNERADataSet.TIPPARTNERARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
示例#10
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.TIPPARTNERASet = (TIPPARTNERADataSet)dataSet;
            this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.TIPPARTNERASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.TIPPARTNERASet.TIPPARTNERA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        TIPPARTNERADataSet.TIPPARTNERARow current = (TIPPARTNERADataSet.TIPPARTNERARow)enumerator.Current;
                        this.rowTIPPARTNERA = current;
                        if (Helpers.IsRowChanged(this.rowTIPPARTNERA))
                        {
                            this.ReadRowTippartnera();
                            if (this.rowTIPPARTNERA.RowState == DataRowState.Added)
                            {
                                this.InsertTippartnera();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateTippartnera();
                            }
                        }
                    }
                }
                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);
        }
示例#11
0
 private void CreateNewRowTippartnera()
 {
     this.rowTIPPARTNERA = this.TIPPARTNERASet.TIPPARTNERA.NewTIPPARTNERARow();
 }