Пример #1
0
        private void LoadDataRsvrsteobracuna(int maxRows)
        {
            int num = 0;

            if (this.RcdFound29 != 0)
            {
                this.ScanLoadRsvrsteobracuna();
                while ((this.RcdFound29 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRsvrsteobracuna();
                    this.CreateNewRowRsvrsteobracuna();
                    this.ScanNextRsvrsteobracuna();
                }
            }
            if (num > 0)
            {
                this.RcdFound29 = 1;
            }
            this.ScanEndRsvrsteobracuna();
            if (this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.Count > 0)
            {
                this.rowRSVRSTEOBRACUNA = this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA[this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.Count - 1];
            }
        }
Пример #2
0
 public RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow AddRSVRSTEOBRACUNARow(string iDRSVRSTEOBRACUNA, string nAZIVRSVRSTEOBRACUNA)
 {
     RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row = (RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow) this.NewRow();
     row["IDRSVRSTEOBRACUNA"]    = iDRSVRSTEOBRACUNA;
     row["NAZIVRSVRSTEOBRACUNA"] = nAZIVRSVRSTEOBRACUNA;
     this.Rows.Add(row);
     return(row);
 }
Пример #3
0
        private void LoadByIDRSVRSTEOBRACUNA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RSVRSTEOBRACUNASet.EnforceConstraints;

            this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.BeginLoadData();
            this.ScanByIDRSVRSTEOBRACUNA(startRow, maxRows);
            this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.EndLoadData();
            this.RSVRSTEOBRACUNASet.EnforceConstraints = enforceConstraints;
            if (this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.Count > 0)
            {
                this.rowRSVRSTEOBRACUNA = this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA[this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.Count - 1];
            }
        }
Пример #4
0
 private void ReadRowRsvrsteobracuna()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRSVRSTEOBRACUNA.RowState);
     if (this.rowRSVRSTEOBRACUNA.RowState != DataRowState.Added)
     {
         this.m__NAZIVRSVRSTEOBRACUNAOriginal = RuntimeHelpers.GetObjectValue(this.rowRSVRSTEOBRACUNA["NAZIVRSVRSTEOBRACUNA", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVRSVRSTEOBRACUNAOriginal = RuntimeHelpers.GetObjectValue(this.rowRSVRSTEOBRACUNA["NAZIVRSVRSTEOBRACUNA"]);
     }
     this._Gxremove = this.rowRSVRSTEOBRACUNA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRSVRSTEOBRACUNA = (RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow)DataSetUtil.CloneOriginalDataRow(this.rowRSVRSTEOBRACUNA);
     }
 }
Пример #5
0
 public virtual bool FillByIDRSVRSTEOBRACUNA(RSVRSTEOBRACUNADataSet dataSet, string iDRSVRSTEOBRACUNA)
 {
     this.InitializeMembers();
     this.connDefault        = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RSVRSTEOBRACUNASet = dataSet;
     this.rowRSVRSTEOBRACUNA = this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.NewRSVRSTEOBRACUNARow();
     this.rowRSVRSTEOBRACUNA.IDRSVRSTEOBRACUNA = iDRSVRSTEOBRACUNA;
     try
     {
         this.LoadByIDRSVRSTEOBRACUNA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound29 == 0)
     {
         return(false);
     }
     return(true);
 }
Пример #6
0
 public RSVRSTEOBRACUNAEventArgs(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Пример #7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.RSVRSTEOBRACUNASet = (RSVRSTEOBRACUNADataSet)dataSet;
            this.connDefault        = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RSVRSTEOBRACUNASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow current = (RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow)enumerator.Current;
                        this.rowRSVRSTEOBRACUNA = current;
                        if (Helpers.IsRowChanged(this.rowRSVRSTEOBRACUNA))
                        {
                            this.ReadRowRsvrsteobracuna();
                            if (this.rowRSVRSTEOBRACUNA.RowState == DataRowState.Added)
                            {
                                this.InsertRsvrsteobracuna();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRsvrsteobracuna();
                            }
                        }
                    }
                }
                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 CreateNewRowRsvrsteobracuna()
 {
     this.rowRSVRSTEOBRACUNA = this.RSVRSTEOBRACUNASet.RSVRSTEOBRACUNA.NewRSVRSTEOBRACUNARow();
 }
Пример #9
0
 public RSVRSTEOBRACUNARowChangeEvent(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #10
0
 public void RemoveRSVRSTEOBRACUNARow(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row)
 {
     this.Rows.Remove(row);
 }
Пример #11
0
 public void AddRSVRSTEOBRACUNARow(RSVRSTEOBRACUNADataSet.RSVRSTEOBRACUNARow row)
 {
     this.Rows.Add(row);
 }