Example #1
0
        private void LoadDataDdkolonaidd(int maxRows)
        {
            int num = 0;

            if (this.RcdFound164 != 0)
            {
                this.ScanLoadDdkolonaidd();
                while ((this.RcdFound164 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowDdkolonaidd();
                    this.CreateNewRowDdkolonaidd();
                    this.ScanNextDdkolonaidd();
                }
            }
            if (num > 0)
            {
                this.RcdFound164 = 1;
            }
            this.ScanEndDdkolonaidd();
            if (this.DDKOLONAIDDSet.DDKOLONAIDD.Count > 0)
            {
                this.rowDDKOLONAIDD = this.DDKOLONAIDDSet.DDKOLONAIDD[this.DDKOLONAIDDSet.DDKOLONAIDD.Count - 1];
            }
        }
Example #2
0
 public DDKOLONAIDDDataSet.DDKOLONAIDDRow AddDDKOLONAIDDRow(int iDKOLONAIDD, string nAZIVKOLONAIDD)
 {
     DDKOLONAIDDDataSet.DDKOLONAIDDRow row = (DDKOLONAIDDDataSet.DDKOLONAIDDRow) this.NewRow();
     row["IDKOLONAIDD"]    = iDKOLONAIDD;
     row["NAZIVKOLONAIDD"] = nAZIVKOLONAIDD;
     this.Rows.Add(row);
     return(row);
 }
Example #3
0
        private void LoadByIDKOLONAIDD(int startRow, int maxRows)
        {
            bool enforceConstraints = this.DDKOLONAIDDSet.EnforceConstraints;

            this.DDKOLONAIDDSet.DDKOLONAIDD.BeginLoadData();
            this.ScanByIDKOLONAIDD(startRow, maxRows);
            this.DDKOLONAIDDSet.DDKOLONAIDD.EndLoadData();
            this.DDKOLONAIDDSet.EnforceConstraints = enforceConstraints;
            if (this.DDKOLONAIDDSet.DDKOLONAIDD.Count > 0)
            {
                this.rowDDKOLONAIDD = this.DDKOLONAIDDSet.DDKOLONAIDD[this.DDKOLONAIDDSet.DDKOLONAIDD.Count - 1];
            }
        }
Example #4
0
 private void ReadRowDdkolonaidd()
 {
     this.Gx_mode = Mode.FromRowState(this.rowDDKOLONAIDD.RowState);
     if (this.rowDDKOLONAIDD.RowState != DataRowState.Added)
     {
         this.m__NAZIVKOLONAIDDOriginal = RuntimeHelpers.GetObjectValue(this.rowDDKOLONAIDD["NAZIVKOLONAIDD", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVKOLONAIDDOriginal = RuntimeHelpers.GetObjectValue(this.rowDDKOLONAIDD["NAZIVKOLONAIDD"]);
     }
     this._Gxremove = this.rowDDKOLONAIDD.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowDDKOLONAIDD = (DDKOLONAIDDDataSet.DDKOLONAIDDRow)DataSetUtil.CloneOriginalDataRow(this.rowDDKOLONAIDD);
     }
 }
Example #5
0
 public virtual bool FillByIDKOLONAIDD(DDKOLONAIDDDataSet dataSet, int iDKOLONAIDD)
 {
     this.InitializeMembers();
     this.connDefault                = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.DDKOLONAIDDSet             = dataSet;
     this.rowDDKOLONAIDD             = this.DDKOLONAIDDSet.DDKOLONAIDD.NewDDKOLONAIDDRow();
     this.rowDDKOLONAIDD.IDKOLONAIDD = iDKOLONAIDD;
     try
     {
         this.LoadByIDKOLONAIDD(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound164 == 0)
     {
         return(false);
     }
     return(true);
 }
Example #6
0
 public DDKOLONAIDDRowChangeEvent(DDKOLONAIDDDataSet.DDKOLONAIDDRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #7
0
 public void RemoveDDKOLONAIDDRow(DDKOLONAIDDDataSet.DDKOLONAIDDRow row)
 {
     this.Rows.Remove(row);
 }
Example #8
0
 public void AddDDKOLONAIDDRow(DDKOLONAIDDDataSet.DDKOLONAIDDRow row)
 {
     this.Rows.Add(row);
 }
Example #9
0
 public DDKOLONAIDDEventArgs(DDKOLONAIDDDataSet.DDKOLONAIDDRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #10
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.DDKOLONAIDDSet = (DDKOLONAIDDDataSet)dataSet;
            this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.DDKOLONAIDDSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.DDKOLONAIDDSet.DDKOLONAIDD.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        DDKOLONAIDDDataSet.DDKOLONAIDDRow current = (DDKOLONAIDDDataSet.DDKOLONAIDDRow)enumerator.Current;
                        this.rowDDKOLONAIDD = current;
                        if (Helpers.IsRowChanged(this.rowDDKOLONAIDD))
                        {
                            this.ReadRowDdkolonaidd();
                            if (this.rowDDKOLONAIDD.RowState == DataRowState.Added)
                            {
                                this.InsertDdkolonaidd();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateDdkolonaidd();
                            }
                        }
                    }
                }
                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);
        }
Example #11
0
 private void CreateNewRowDdkolonaidd()
 {
     this.rowDDKOLONAIDD = this.DDKOLONAIDDSet.DDKOLONAIDD.NewDDKOLONAIDDRow();
 }