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

            if (this.RcdFound134 != 0)
            {
                this.ScanLoadMzostablice();
                while ((this.RcdFound134 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowMzostablice();
                    this.CreateNewRowMzostablice();
                    this.ScanNextMzostablice();
                }
            }
            if (num > 0)
            {
                this.RcdFound134 = 1;
            }
            this.ScanEndMzostablice();
            if (this.MZOSTABLICESet.MZOSTABLICE.Count > 0)
            {
                this.rowMZOSTABLICE = this.MZOSTABLICESet.MZOSTABLICE[this.MZOSTABLICESet.MZOSTABLICE.Count - 1];
            }
        }
Пример #2
0
 public MZOSTABLICEDataSet.MZOSTABLICERow AddMZOSTABLICERow(int iDMZOSTABLICE, string oPISMZOSTABLICE)
 {
     MZOSTABLICEDataSet.MZOSTABLICERow row = (MZOSTABLICEDataSet.MZOSTABLICERow) this.NewRow();
     row["IDMZOSTABLICE"]   = iDMZOSTABLICE;
     row["OPISMZOSTABLICE"] = oPISMZOSTABLICE;
     this.Rows.Add(row);
     return(row);
 }
Пример #3
0
        private void LoadByIDMZOSTABLICE(int startRow, int maxRows)
        {
            bool enforceConstraints = this.MZOSTABLICESet.EnforceConstraints;

            this.MZOSTABLICESet.MZOSTABLICE.BeginLoadData();
            this.ScanByIDMZOSTABLICE(startRow, maxRows);
            this.MZOSTABLICESet.MZOSTABLICE.EndLoadData();
            this.MZOSTABLICESet.EnforceConstraints = enforceConstraints;
            if (this.MZOSTABLICESet.MZOSTABLICE.Count > 0)
            {
                this.rowMZOSTABLICE = this.MZOSTABLICESet.MZOSTABLICE[this.MZOSTABLICESet.MZOSTABLICE.Count - 1];
            }
        }
Пример #4
0
 private void ReadRowMzostablice()
 {
     this.Gx_mode = Mode.FromRowState(this.rowMZOSTABLICE.RowState);
     if (this.rowMZOSTABLICE.RowState != DataRowState.Added)
     {
         this.m__OPISMZOSTABLICEOriginal = RuntimeHelpers.GetObjectValue(this.rowMZOSTABLICE["OPISMZOSTABLICE", DataRowVersion.Original]);
     }
     else
     {
         this.m__OPISMZOSTABLICEOriginal = RuntimeHelpers.GetObjectValue(this.rowMZOSTABLICE["OPISMZOSTABLICE"]);
     }
     this._Gxremove = this.rowMZOSTABLICE.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowMZOSTABLICE = (MZOSTABLICEDataSet.MZOSTABLICERow)DataSetUtil.CloneOriginalDataRow(this.rowMZOSTABLICE);
     }
 }
Пример #5
0
 public virtual bool FillByIDMZOSTABLICE(MZOSTABLICEDataSet dataSet, int iDMZOSTABLICE)
 {
     this.InitializeMembers();
     this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.MZOSTABLICESet = dataSet;
     this.rowMZOSTABLICE = this.MZOSTABLICESet.MZOSTABLICE.NewMZOSTABLICERow();
     this.rowMZOSTABLICE.IDMZOSTABLICE = iDMZOSTABLICE;
     try
     {
         this.LoadByIDMZOSTABLICE(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound134 == 0)
     {
         return(false);
     }
     return(true);
 }
Пример #6
0
 public MZOSTABLICEEventArgs(MZOSTABLICEDataSet.MZOSTABLICERow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Пример #7
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.MZOSTABLICESet = (MZOSTABLICEDataSet)dataSet;
            this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.MZOSTABLICESet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.MZOSTABLICESet.MZOSTABLICE.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        MZOSTABLICEDataSet.MZOSTABLICERow current = (MZOSTABLICEDataSet.MZOSTABLICERow)enumerator.Current;
                        this.rowMZOSTABLICE = current;
                        if (Helpers.IsRowChanged(this.rowMZOSTABLICE))
                        {
                            this.ReadRowMzostablice();
                            if (this.rowMZOSTABLICE.RowState == DataRowState.Added)
                            {
                                this.InsertMzostablice();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateMzostablice();
                            }
                        }
                    }
                }
                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 CreateNewRowMzostablice()
 {
     this.rowMZOSTABLICE = this.MZOSTABLICESet.MZOSTABLICE.NewMZOSTABLICERow();
 }
Пример #9
0
 public MZOSTABLICERowChangeEvent(MZOSTABLICEDataSet.MZOSTABLICERow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #10
0
 public void RemoveMZOSTABLICERow(MZOSTABLICEDataSet.MZOSTABLICERow row)
 {
     this.Rows.Remove(row);
 }
Пример #11
0
 public void AddMZOSTABLICERow(MZOSTABLICEDataSet.MZOSTABLICERow row)
 {
     this.Rows.Add(row);
 }