예제 #1
0
 private void ReadRowKreditor()
 {
     this.Gx_mode = Mode.FromRowState(this.rowKREDITOR.RowState);
     if (this.rowKREDITOR.RowState != DataRowState.Added)
     {
         this.m__NAZIVKREDITOROriginal      = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["NAZIVKREDITOR", DataRowVersion.Original]);
         this.m__VBDIKREDITOROriginal       = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["VBDIKREDITOR", DataRowVersion.Original]);
         this.m__ZRNKREDITOROriginal        = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["ZRNKREDITOR", DataRowVersion.Original]);
         this.m__PRIMATELJKREDITOR1Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR1", DataRowVersion.Original]);
         this.m__PRIMATELJKREDITOR2Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR2", DataRowVersion.Original]);
         this.m__PRIMATELJKREDITOR3Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR3", DataRowVersion.Original]);
     }
     else
     {
         this.m__NAZIVKREDITOROriginal      = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["NAZIVKREDITOR"]);
         this.m__VBDIKREDITOROriginal       = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["VBDIKREDITOR"]);
         this.m__ZRNKREDITOROriginal        = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["ZRNKREDITOR"]);
         this.m__PRIMATELJKREDITOR1Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR1"]);
         this.m__PRIMATELJKREDITOR2Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR2"]);
         this.m__PRIMATELJKREDITOR3Original = RuntimeHelpers.GetObjectValue(this.rowKREDITOR["PRIMATELJKREDITOR3"]);
     }
     this._Gxremove = this.rowKREDITOR.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowKREDITOR = (KREDITORDataSet.KREDITORRow)DataSetUtil.CloneOriginalDataRow(this.rowKREDITOR);
     }
 }
예제 #2
0
        private void LoadDataKreditor(int maxRows)
        {
            int num = 0;

            if (this.RcdFound43 != 0)
            {
                this.ScanLoadKreditor();
                while ((this.RcdFound43 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowKreditor();
                    this.CreateNewRowKreditor();
                    this.ScanNextKreditor();
                }
            }
            if (num > 0)
            {
                this.RcdFound43 = 1;
            }
            this.ScanEndKreditor();
            if (this.KREDITORSet.KREDITOR.Count > 0)
            {
                this.rowKREDITOR = this.KREDITORSet.KREDITOR[this.KREDITORSet.KREDITOR.Count - 1];
            }
        }
예제 #3
0
 public KREDITORDataSet.KREDITORRow AddKREDITORRow(int iDKREDITOR, string nAZIVKREDITOR, string vBDIKREDITOR, string zRNKREDITOR, string pRIMATELJKREDITOR1, string pRIMATELJKREDITOR2, string pRIMATELJKREDITOR3)
 {
     KREDITORDataSet.KREDITORRow row = (KREDITORDataSet.KREDITORRow) this.NewRow();
     row["IDKREDITOR"]         = iDKREDITOR;
     row["NAZIVKREDITOR"]      = nAZIVKREDITOR;
     row["VBDIKREDITOR"]       = vBDIKREDITOR;
     row["ZRNKREDITOR"]        = zRNKREDITOR;
     row["PRIMATELJKREDITOR1"] = pRIMATELJKREDITOR1;
     row["PRIMATELJKREDITOR2"] = pRIMATELJKREDITOR2;
     row["PRIMATELJKREDITOR3"] = pRIMATELJKREDITOR3;
     this.Rows.Add(row);
     return(row);
 }
예제 #4
0
        private void LoadByIDKREDITOR(int startRow, int maxRows)
        {
            bool enforceConstraints = this.KREDITORSet.EnforceConstraints;

            this.KREDITORSet.KREDITOR.BeginLoadData();
            this.ScanByIDKREDITOR(startRow, maxRows);
            this.KREDITORSet.KREDITOR.EndLoadData();
            this.KREDITORSet.EnforceConstraints = enforceConstraints;
            if (this.KREDITORSet.KREDITOR.Count > 0)
            {
                this.rowKREDITOR = this.KREDITORSet.KREDITOR[this.KREDITORSet.KREDITOR.Count - 1];
            }
        }
예제 #5
0
 public virtual bool FillByIDKREDITOR(KREDITORDataSet dataSet, int iDKREDITOR)
 {
     this.InitializeMembers();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.KREDITORSet            = dataSet;
     this.rowKREDITOR            = this.KREDITORSet.KREDITOR.NewKREDITORRow();
     this.rowKREDITOR.IDKREDITOR = iDKREDITOR;
     try
     {
         this.LoadByIDKREDITOR(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound43 == 0)
     {
         return(false);
     }
     return(true);
 }
예제 #6
0
 public KREDITORRowChangeEvent(KREDITORDataSet.KREDITORRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
예제 #7
0
 public void RemoveKREDITORRow(KREDITORDataSet.KREDITORRow row)
 {
     this.Rows.Remove(row);
 }
예제 #8
0
 public void AddKREDITORRow(KREDITORDataSet.KREDITORRow row)
 {
     this.Rows.Add(row);
 }
예제 #9
0
 public KREDITOREventArgs(KREDITORDataSet.KREDITORRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
예제 #10
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.KREDITORSet = (KREDITORDataSet)dataSet;
            this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.KREDITORSet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.KREDITORSet.KREDITOR.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        KREDITORDataSet.KREDITORRow current = (KREDITORDataSet.KREDITORRow)enumerator.Current;
                        this.rowKREDITOR = current;
                        if (Helpers.IsRowChanged(this.rowKREDITOR))
                        {
                            this.ReadRowKreditor();
                            if (this.rowKREDITOR.RowState == DataRowState.Added)
                            {
                                this.InsertKreditor();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateKreditor();
                            }
                        }
                    }
                }
                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);
        }
예제 #11
0
 private void CreateNewRowKreditor()
 {
     this.rowKREDITOR = this.KREDITORSet.KREDITOR.NewKREDITORRow();
 }