Exemplo n.º 1
0
        private void LoadDataDdvrsteposla(int maxRows)
        {
            int num = 0;

            if (this.RcdFound168 != 0)
            {
                this.ScanLoadDdvrsteposla();
                while ((this.RcdFound168 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowDdvrsteposla();
                    this.CreateNewRowDdvrsteposla();
                    this.ScanNextDdvrsteposla();
                }
            }
            if (num > 0)
            {
                this.RcdFound168 = 1;
            }
            this.ScanEndDdvrsteposla();
            if (this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count > 0)
            {
                this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA[this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count - 1];
            }
        }
Exemplo n.º 2
0
 public DDVRSTEPOSLADataSet.DDVRSTEPOSLARow AddDDVRSTEPOSLARow(int dDIDVRSTAPOSLA, string dDNAZIVVRSTAPOSLA)
 {
     DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow) this.NewRow();
     row["DDIDVRSTAPOSLA"]    = dDIDVRSTAPOSLA;
     row["DDNAZIVVRSTAPOSLA"] = dDNAZIVVRSTAPOSLA;
     this.Rows.Add(row);
     return(row);
 }
Exemplo n.º 3
0
        private void LoadByDDIDVRSTAPOSLA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.DDVRSTEPOSLASet.EnforceConstraints;

            this.DDVRSTEPOSLASet.DDVRSTEPOSLA.BeginLoadData();
            this.ScanByDDIDVRSTAPOSLA(startRow, maxRows);
            this.DDVRSTEPOSLASet.DDVRSTEPOSLA.EndLoadData();
            this.DDVRSTEPOSLASet.EnforceConstraints = enforceConstraints;
            if (this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count > 0)
            {
                this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA[this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count - 1];
            }
        }
Exemplo n.º 4
0
 private void ReadRowDdvrsteposla()
 {
     this.Gx_mode = Mode.FromRowState(this.rowDDVRSTEPOSLA.RowState);
     if (this.rowDDVRSTEPOSLA.RowState != DataRowState.Added)
     {
         this.m__DDNAZIVVRSTAPOSLAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEPOSLA["DDNAZIVVRSTAPOSLA", DataRowVersion.Original]);
     }
     else
     {
         this.m__DDNAZIVVRSTAPOSLAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEPOSLA["DDNAZIVVRSTAPOSLA"]);
     }
     this._Gxremove = this.rowDDVRSTEPOSLA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowDDVRSTEPOSLA = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow)DataSetUtil.CloneOriginalDataRow(this.rowDDVRSTEPOSLA);
     }
 }
Exemplo n.º 5
0
 public virtual bool FillByDDIDVRSTAPOSLA(DDVRSTEPOSLADataSet dataSet, int dDIDVRSTAPOSLA)
 {
     this.InitializeMembers();
     this.connDefault     = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.DDVRSTEPOSLASet = dataSet;
     this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.NewDDVRSTEPOSLARow();
     this.rowDDVRSTEPOSLA.DDIDVRSTAPOSLA = dDIDVRSTAPOSLA;
     try
     {
         this.LoadByDDIDVRSTAPOSLA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound168 == 0)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 6
0
 public DDVRSTEPOSLAEventArgs(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Exemplo n.º 7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.DDVRSTEPOSLASet = (DDVRSTEPOSLADataSet)dataSet;
            this.connDefault     = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.DDVRSTEPOSLASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        DDVRSTEPOSLADataSet.DDVRSTEPOSLARow current = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow)enumerator.Current;
                        this.rowDDVRSTEPOSLA = current;
                        if (Helpers.IsRowChanged(this.rowDDVRSTEPOSLA))
                        {
                            this.ReadRowDdvrsteposla();
                            if (this.rowDDVRSTEPOSLA.RowState == DataRowState.Added)
                            {
                                this.InsertDdvrsteposla();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateDdvrsteposla();
                            }
                        }
                    }
                }
                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);
        }
Exemplo n.º 8
0
 private void CreateNewRowDdvrsteposla()
 {
     this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.NewDDVRSTEPOSLARow();
 }
Exemplo n.º 9
0
 public DDVRSTEPOSLARowChangeEvent(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemplo n.º 10
0
 public void RemoveDDVRSTEPOSLARow(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row)
 {
     this.Rows.Remove(row);
 }
Exemplo n.º 11
0
 public void AddDDVRSTEPOSLARow(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row)
 {
     this.Rows.Add(row);
 }