Пример #1
0
 public UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow AddUCENIKRSMIDENTRow(string uCENIKRSMIDENT)
 {
     UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row = (UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow) this.NewRow();
     row["UCENIKRSMIDENT"] = uCENIKRSMIDENT;
     this.Rows.Add(row);
     return(row);
 }
Пример #2
0
        private void LoadDataUcenikrsmident(int maxRows)
        {
            int num = 0;

            if (this.RcdFound296 != 0)
            {
                this.ScanLoadUcenikrsmident();
                while ((this.RcdFound296 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowUcenikrsmident();
                    this.CreateNewRowUcenikrsmident();
                    this.ScanNextUcenikrsmident();
                }
            }
            if (num > 0)
            {
                this.RcdFound296 = 1;
            }
            this.ScanEndUcenikrsmident();
            if (this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.Count > 0)
            {
                this.rowUCENIKRSMIDENT = this.UCENIKRSMIDENTSet.UCENIKRSMIDENT[this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.Count - 1];
            }
        }
Пример #3
0
 private void ReadRowUcenikrsmident()
 {
     this.Gx_mode = Mode.FromRowState(this.rowUCENIKRSMIDENT.RowState);
     if (this.rowUCENIKRSMIDENT.RowState == DataRowState.Added)
     {
     }
     this._Gxremove = this.rowUCENIKRSMIDENT.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowUCENIKRSMIDENT = (UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow)DataSetUtil.CloneOriginalDataRow(this.rowUCENIKRSMIDENT);
     }
 }
Пример #4
0
        private void LoadByUCENIKRSMIDENT(int startRow, int maxRows)
        {
            bool enforceConstraints = this.UCENIKRSMIDENTSet.EnforceConstraints;

            this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.BeginLoadData();
            this.ScanByUCENIKRSMIDENT(startRow, maxRows);
            this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.EndLoadData();
            this.UCENIKRSMIDENTSet.EnforceConstraints = enforceConstraints;
            if (this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.Count > 0)
            {
                this.rowUCENIKRSMIDENT = this.UCENIKRSMIDENTSet.UCENIKRSMIDENT[this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.Count - 1];
            }
        }
Пример #5
0
 public virtual bool FillByUCENIKRSMIDENT(UCENIKRSMIDENTDataSet dataSet, string uCENIKRSMIDENT)
 {
     this.InitializeMembers();
     this.connDefault       = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.UCENIKRSMIDENTSet = dataSet;
     this.rowUCENIKRSMIDENT = this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.NewUCENIKRSMIDENTRow();
     this.rowUCENIKRSMIDENT.UCENIKRSMIDENT = uCENIKRSMIDENT;
     try
     {
         this.LoadByUCENIKRSMIDENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound296 == 0)
     {
         return(false);
     }
     return(true);
 }
Пример #6
0
 private void CreateNewRowUcenikrsmident()
 {
     this.rowUCENIKRSMIDENT = this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.NewUCENIKRSMIDENTRow();
 }
Пример #7
0
 public UCENIKRSMIDENTEventArgs(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Пример #8
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.UCENIKRSMIDENTSet = (UCENIKRSMIDENTDataSet)dataSet;
            this.connDefault       = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.UCENIKRSMIDENTSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.UCENIKRSMIDENTSet.UCENIKRSMIDENT.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow current = (UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow)enumerator.Current;
                        this.rowUCENIKRSMIDENT = current;
                        if (Helpers.IsRowChanged(this.rowUCENIKRSMIDENT))
                        {
                            this.ReadRowUcenikrsmident();
                            if (this.rowUCENIKRSMIDENT.RowState == DataRowState.Added)
                            {
                                this.InsertUcenikrsmident();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateUcenikrsmident();
                            }
                        }
                    }
                }
                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);
        }
Пример #9
0
 public UCENIKRSMIDENTRowChangeEvent(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #10
0
 public void RemoveUCENIKRSMIDENTRow(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row)
 {
     this.Rows.Remove(row);
 }
Пример #11
0
 public void AddUCENIKRSMIDENTRow(UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow row)
 {
     this.Rows.Add(row);
 }