Example #1
0
 private void ReadRowTipiznosa()
 {
     this.Gx_mode = Mode.FromRowState(this.rowTIPIZNOSA.RowState);
     if (this.rowTIPIZNOSA.RowState != DataRowState.Added)
     {
         this.m__OPISTIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["OPISTIPAIZNOSA", DataRowVersion.Original]);
         this.m__OZNAKATIPAIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["OZNAKATIPAIZNOSA", DataRowVersion.Original]);
         this.m__VBDITIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["VBDITIPAIZNOSA", DataRowVersion.Original]);
         this.m__ZIROTIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["ZIROTIPAIZNOSA", DataRowVersion.Original]);
         this.m__MOTIPAIZNOSAOriginal     = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["MOTIPAIZNOSA", DataRowVersion.Original]);
         this.m__POTIPAIZNOSAOriginal     = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["POTIPAIZNOSA", DataRowVersion.Original]);
     }
     else
     {
         this.m__OPISTIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["OPISTIPAIZNOSA"]);
         this.m__OZNAKATIPAIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["OZNAKATIPAIZNOSA"]);
         this.m__VBDITIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["VBDITIPAIZNOSA"]);
         this.m__ZIROTIPAIZNOSAOriginal   = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["ZIROTIPAIZNOSA"]);
         this.m__MOTIPAIZNOSAOriginal     = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["MOTIPAIZNOSA"]);
         this.m__POTIPAIZNOSAOriginal     = RuntimeHelpers.GetObjectValue(this.rowTIPIZNOSA["POTIPAIZNOSA"]);
     }
     this._Gxremove = this.rowTIPIZNOSA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowTIPIZNOSA = (TIPIZNOSADataSet.TIPIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowTIPIZNOSA);
     }
 }
Example #2
0
        private void LoadDataTipiznosa(int maxRows)
        {
            int num = 0;

            if (this.RcdFound36 != 0)
            {
                this.ScanLoadTipiznosa();
                while ((this.RcdFound36 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowTipiznosa();
                    this.CreateNewRowTipiznosa();
                    this.ScanNextTipiznosa();
                }
            }
            if (num > 0)
            {
                this.RcdFound36 = 1;
            }
            this.ScanEndTipiznosa();
            if (this.TIPIZNOSASet.TIPIZNOSA.Count > 0)
            {
                this.rowTIPIZNOSA = this.TIPIZNOSASet.TIPIZNOSA[this.TIPIZNOSASet.TIPIZNOSA.Count - 1];
            }
        }
Example #3
0
 public TIPIZNOSADataSet.TIPIZNOSARow AddTIPIZNOSARow(int iDTIPAIZNOSA, string oPISTIPAIZNOSA, string oZNAKATIPAIZNOSA, string vBDITIPAIZNOSA, string zIROTIPAIZNOSA, string mOTIPAIZNOSA, string pOTIPAIZNOSA)
 {
     TIPIZNOSADataSet.TIPIZNOSARow row = (TIPIZNOSADataSet.TIPIZNOSARow) this.NewRow();
     row["IDTIPAIZNOSA"]     = iDTIPAIZNOSA;
     row["OPISTIPAIZNOSA"]   = oPISTIPAIZNOSA;
     row["OZNAKATIPAIZNOSA"] = oZNAKATIPAIZNOSA;
     row["VBDITIPAIZNOSA"]   = vBDITIPAIZNOSA;
     row["ZIROTIPAIZNOSA"]   = zIROTIPAIZNOSA;
     row["MOTIPAIZNOSA"]     = mOTIPAIZNOSA;
     row["POTIPAIZNOSA"]     = pOTIPAIZNOSA;
     this.Rows.Add(row);
     return(row);
 }
Example #4
0
        private void LoadByIDTIPAIZNOSA(int startRow, int maxRows)
        {
            bool enforceConstraints = this.TIPIZNOSASet.EnforceConstraints;

            this.TIPIZNOSASet.TIPIZNOSA.BeginLoadData();
            this.ScanByIDTIPAIZNOSA(startRow, maxRows);
            this.TIPIZNOSASet.TIPIZNOSA.EndLoadData();
            this.TIPIZNOSASet.EnforceConstraints = enforceConstraints;
            if (this.TIPIZNOSASet.TIPIZNOSA.Count > 0)
            {
                this.rowTIPIZNOSA = this.TIPIZNOSASet.TIPIZNOSA[this.TIPIZNOSASet.TIPIZNOSA.Count - 1];
            }
        }
Example #5
0
 public virtual bool FillByIDTIPAIZNOSA(TIPIZNOSADataSet dataSet, int iDTIPAIZNOSA)
 {
     this.InitializeMembers();
     this.connDefault  = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.TIPIZNOSASet = dataSet;
     this.rowTIPIZNOSA = this.TIPIZNOSASet.TIPIZNOSA.NewTIPIZNOSARow();
     this.rowTIPIZNOSA.IDTIPAIZNOSA = iDTIPAIZNOSA;
     try
     {
         this.LoadByIDTIPAIZNOSA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound36 == 0)
     {
         return(false);
     }
     return(true);
 }
Example #6
0
 public TIPIZNOSARowChangeEvent(TIPIZNOSADataSet.TIPIZNOSARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #7
0
 public void RemoveTIPIZNOSARow(TIPIZNOSADataSet.TIPIZNOSARow row)
 {
     this.Rows.Remove(row);
 }
Example #8
0
 public void AddTIPIZNOSARow(TIPIZNOSADataSet.TIPIZNOSARow row)
 {
     this.Rows.Add(row);
 }
Example #9
0
 private void CreateNewRowTipiznosa()
 {
     this.rowTIPIZNOSA = this.TIPIZNOSASet.TIPIZNOSA.NewTIPIZNOSARow();
 }
Example #10
0
 public TIPIZNOSAEventArgs(TIPIZNOSADataSet.TIPIZNOSARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Example #11
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.TIPIZNOSASet = (TIPIZNOSADataSet)dataSet;
            this.connDefault  = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.TIPIZNOSASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.TIPIZNOSASet.TIPIZNOSA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        TIPIZNOSADataSet.TIPIZNOSARow current = (TIPIZNOSADataSet.TIPIZNOSARow)enumerator.Current;
                        this.rowTIPIZNOSA = current;
                        if (Helpers.IsRowChanged(this.rowTIPIZNOSA))
                        {
                            this.ReadRowTipiznosa();
                            if (this.rowTIPIZNOSA.RowState == DataRowState.Added)
                            {
                                this.InsertTipiznosa();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateTipiznosa();
                            }
                        }
                    }
                }
                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);
        }