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

            if (this.RcdFound242 != 0)
            {
                this.ScanLoadDdvrsteiznosa();
                while ((this.RcdFound242 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowDdvrsteiznosa();
                    this.CreateNewRowDdvrsteiznosa();
                    this.ScanNextDdvrsteiznosa();
                }
            }
            if (num > 0)
            {
                this.RcdFound242 = 1;
            }
            this.ScanEndDdvrsteiznosa();
            if (this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.Count > 0)
            {
                this.rowDDVRSTEIZNOSA = this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA[this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.Count - 1];
            }
        }
Esempio n. 2
0
 public DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow AddDDVRSTEIZNOSARow(int iDDDVRSTEIZNOSA, string nAZIVDDVRSTEIZNOSA)
 {
     DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow row = (DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow) this.NewRow();
     row["IDDDVRSTEIZNOSA"]    = iDDDVRSTEIZNOSA;
     row["NAZIVDDVRSTEIZNOSA"] = nAZIVDDVRSTEIZNOSA;
     this.Rows.Add(row);
     return(row);
 }
Esempio n. 3
0
        private void LoadByIDDDVRSTEIZNOSA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.DDVRSTEIZNOSASet.EnforceConstraints;

            this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.BeginLoadData();
            this.ScanByIDDDVRSTEIZNOSA(startRow, maxRows);
            this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.EndLoadData();
            this.DDVRSTEIZNOSASet.EnforceConstraints = enforceConstraints;
            if (this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.Count > 0)
            {
                this.rowDDVRSTEIZNOSA = this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA[this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.Count - 1];
            }
        }
Esempio n. 4
0
 private void ReadRowDdvrsteiznosa()
 {
     this.Gx_mode = Mode.FromRowState(this.rowDDVRSTEIZNOSA.RowState);
     if (this.rowDDVRSTEIZNOSA.RowState != DataRowState.Added)
     {
         this.m__NAZIVDDVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEIZNOSA["NAZIVDDVRSTEIZNOSA", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVDDVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEIZNOSA["NAZIVDDVRSTEIZNOSA"]);
     }
     this._Gxremove = this.rowDDVRSTEIZNOSA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowDDVRSTEIZNOSA = (DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowDDVRSTEIZNOSA);
     }
 }
Esempio n. 5
0
 public virtual bool FillByIDDDVRSTEIZNOSA(DDVRSTEIZNOSADataSet dataSet, int iDDDVRSTEIZNOSA)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.DDVRSTEIZNOSASet = dataSet;
     this.rowDDVRSTEIZNOSA = this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.NewDDVRSTEIZNOSARow();
     this.rowDDVRSTEIZNOSA.IDDDVRSTEIZNOSA = iDDDVRSTEIZNOSA;
     try
     {
         this.LoadByIDDDVRSTEIZNOSA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound242 == 0)
     {
         return(false);
     }
     return(true);
 }
Esempio n. 6
0
 public DDVRSTEIZNOSARowChangeEvent(DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Esempio n. 7
0
 public void RemoveDDVRSTEIZNOSARow(DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow row)
 {
     this.Rows.Remove(row);
 }
Esempio n. 8
0
 public void AddDDVRSTEIZNOSARow(DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow row)
 {
     this.Rows.Add(row);
 }
Esempio n. 9
0
 public DDVRSTEIZNOSAEventArgs(DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow 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.DDVRSTEIZNOSASet = (DDVRSTEIZNOSADataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.DDVRSTEIZNOSASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow current = (DDVRSTEIZNOSADataSet.DDVRSTEIZNOSARow)enumerator.Current;
                        this.rowDDVRSTEIZNOSA = current;
                        if (Helpers.IsRowChanged(this.rowDDVRSTEIZNOSA))
                        {
                            this.ReadRowDdvrsteiznosa();
                            if (this.rowDDVRSTEIZNOSA.RowState == DataRowState.Added)
                            {
                                this.InsertDdvrsteiznosa();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateDdvrsteiznosa();
                            }
                        }
                    }
                }
                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 CreateNewRowDdvrsteiznosa()
 {
     this.rowDDVRSTEIZNOSA = this.DDVRSTEIZNOSASet.DDVRSTEIZNOSA.NewDDVRSTEIZNOSARow();
 }