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

            if (this.RcdFound228 != 0)
            {
                this.ScanLoadPlvrsteiznosa();
                while ((this.RcdFound228 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowPlvrsteiznosa();
                    this.CreateNewRowPlvrsteiznosa();
                    this.ScanNextPlvrsteiznosa();
                }
            }
            if (num > 0)
            {
                this.RcdFound228 = 1;
            }
            this.ScanEndPlvrsteiznosa();
            if (this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count > 0)
            {
                this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA[this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count - 1];
            }
        }
示例#2
0
 public PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow AddPLVRSTEIZNOSARow(int iDPLVRSTEIZNOSA, string nAZIVPLVRSTEIZNOSA)
 {
     PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow) this.NewRow();
     row["IDPLVRSTEIZNOSA"]    = iDPLVRSTEIZNOSA;
     row["NAZIVPLVRSTEIZNOSA"] = nAZIVPLVRSTEIZNOSA;
     this.Rows.Add(row);
     return(row);
 }
示例#3
0
        private void LoadByIDPLVRSTEIZNOSA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.PLVRSTEIZNOSASet.EnforceConstraints;

            this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.BeginLoadData();
            this.ScanByIDPLVRSTEIZNOSA(startRow, maxRows);
            this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.EndLoadData();
            this.PLVRSTEIZNOSASet.EnforceConstraints = enforceConstraints;
            if (this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count > 0)
            {
                this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA[this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count - 1];
            }
        }
示例#4
0
 private void ReadRowPlvrsteiznosa()
 {
     this.Gx_mode = Mode.FromRowState(this.rowPLVRSTEIZNOSA.RowState);
     if (this.rowPLVRSTEIZNOSA.RowState != DataRowState.Added)
     {
         this.m__NAZIVPLVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowPLVRSTEIZNOSA["NAZIVPLVRSTEIZNOSA", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVPLVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowPLVRSTEIZNOSA["NAZIVPLVRSTEIZNOSA"]);
     }
     this._Gxremove = this.rowPLVRSTEIZNOSA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowPLVRSTEIZNOSA = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowPLVRSTEIZNOSA);
     }
 }
示例#5
0
 public virtual bool FillByIDPLVRSTEIZNOSA(PLVRSTEIZNOSADataSet dataSet, int iDPLVRSTEIZNOSA)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.PLVRSTEIZNOSASet = dataSet;
     this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.NewPLVRSTEIZNOSARow();
     this.rowPLVRSTEIZNOSA.IDPLVRSTEIZNOSA = iDPLVRSTEIZNOSA;
     try
     {
         this.LoadByIDPLVRSTEIZNOSA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound228 == 0)
     {
         return(false);
     }
     return(true);
 }
示例#6
0
 public PLVRSTEIZNOSAEventArgs(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
示例#7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.PLVRSTEIZNOSASet = (PLVRSTEIZNOSADataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.PLVRSTEIZNOSASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow current = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow)enumerator.Current;
                        this.rowPLVRSTEIZNOSA = current;
                        if (Helpers.IsRowChanged(this.rowPLVRSTEIZNOSA))
                        {
                            this.ReadRowPlvrsteiznosa();
                            if (this.rowPLVRSTEIZNOSA.RowState == DataRowState.Added)
                            {
                                this.InsertPlvrsteiznosa();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdatePlvrsteiznosa();
                            }
                        }
                    }
                }
                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);
        }
示例#8
0
 private void CreateNewRowPlvrsteiznosa()
 {
     this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.NewPLVRSTEIZNOSARow();
 }
示例#9
0
 public PLVRSTEIZNOSARowChangeEvent(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
示例#10
0
 public void RemovePLVRSTEIZNOSARow(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row)
 {
     this.Rows.Remove(row);
 }
示例#11
0
 public void AddPLVRSTEIZNOSARow(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row)
 {
     this.Rows.Add(row);
 }