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

            if (this.RcdFound219 != 0)
            {
                this.ScanLoadIravrstaiznosa();
                while ((this.RcdFound219 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowIravrstaiznosa();
                    this.CreateNewRowIravrstaiznosa();
                    this.ScanNextIravrstaiznosa();
                }
            }
            if (num > 0)
            {
                this.RcdFound219 = 1;
            }
            this.ScanEndIravrstaiznosa();
            if (this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.Count > 0)
            {
                this.rowIRAVRSTAIZNOSA = this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA[this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.Count - 1];
            }
        }
Esempio n. 2
0
 public IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow AddIRAVRSTAIZNOSARow(int iDIRAVRSTAIZNOSA, string iRAVRSTAIZNOSANAZIV)
 {
     IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row = (IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow) this.NewRow();
     row["IDIRAVRSTAIZNOSA"]    = iDIRAVRSTAIZNOSA;
     row["IRAVRSTAIZNOSANAZIV"] = iRAVRSTAIZNOSANAZIV;
     this.Rows.Add(row);
     return(row);
 }
Esempio n. 3
0
        private void LoadByIDIRAVRSTAIZNOSA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.IRAVRSTAIZNOSASet.EnforceConstraints;

            this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.BeginLoadData();
            this.ScanByIDIRAVRSTAIZNOSA(startRow, maxRows);
            this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.EndLoadData();
            this.IRAVRSTAIZNOSASet.EnforceConstraints = enforceConstraints;
            if (this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.Count > 0)
            {
                this.rowIRAVRSTAIZNOSA = this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA[this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.Count - 1];
            }
        }
Esempio n. 4
0
 private void ReadRowIravrstaiznosa()
 {
     this.Gx_mode = Mode.FromRowState(this.rowIRAVRSTAIZNOSA.RowState);
     if (this.rowIRAVRSTAIZNOSA.RowState != DataRowState.Added)
     {
         this.m__IRAVRSTAIZNOSANAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowIRAVRSTAIZNOSA["IRAVRSTAIZNOSANAZIV", DataRowVersion.Original]);
     }
     else
     {
         this.m__IRAVRSTAIZNOSANAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowIRAVRSTAIZNOSA["IRAVRSTAIZNOSANAZIV"]);
     }
     this._Gxremove = this.rowIRAVRSTAIZNOSA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowIRAVRSTAIZNOSA = (IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowIRAVRSTAIZNOSA);
     }
 }
Esempio n. 5
0
 public virtual bool FillByIDIRAVRSTAIZNOSA(IRAVRSTAIZNOSADataSet dataSet, int iDIRAVRSTAIZNOSA)
 {
     this.InitializeMembers();
     this.connDefault       = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.IRAVRSTAIZNOSASet = dataSet;
     this.rowIRAVRSTAIZNOSA = this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.NewIRAVRSTAIZNOSARow();
     this.rowIRAVRSTAIZNOSA.IDIRAVRSTAIZNOSA = iDIRAVRSTAIZNOSA;
     try
     {
         this.LoadByIDIRAVRSTAIZNOSA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound219 == 0)
     {
         return(false);
     }
     return(true);
 }
Esempio n. 6
0
 public IRAVRSTAIZNOSAEventArgs(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Esempio n. 7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.IRAVRSTAIZNOSASet = (IRAVRSTAIZNOSADataSet)dataSet;
            this.connDefault       = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.IRAVRSTAIZNOSASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow current = (IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow)enumerator.Current;
                        this.rowIRAVRSTAIZNOSA = current;
                        if (Helpers.IsRowChanged(this.rowIRAVRSTAIZNOSA))
                        {
                            this.ReadRowIravrstaiznosa();
                            if (this.rowIRAVRSTAIZNOSA.RowState == DataRowState.Added)
                            {
                                this.InsertIravrstaiznosa();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateIravrstaiznosa();
                            }
                        }
                    }
                }
                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. 8
0
 private void CreateNewRowIravrstaiznosa()
 {
     this.rowIRAVRSTAIZNOSA = this.IRAVRSTAIZNOSASet.IRAVRSTAIZNOSA.NewIRAVRSTAIZNOSARow();
 }
Esempio n. 9
0
 public IRAVRSTAIZNOSARowChangeEvent(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Esempio n. 10
0
 public void RemoveIRAVRSTAIZNOSARow(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row)
 {
     this.Rows.Remove(row);
 }
Esempio n. 11
0
 public void AddIRAVRSTAIZNOSARow(IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow row)
 {
     this.Rows.Add(row);
 }