示例#1
0
 public virtual int FillPage(AKTIVNOSTDataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault  = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.AKTIVNOSTSet = dataSet;
     try
     {
         this.LoadChildAktivnost(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
示例#2
0
 public virtual bool FillByIDAKTIVNOST(AKTIVNOSTDataSet dataSet, int iDAKTIVNOST)
 {
     this.InitializeMembers();
     this.connDefault              = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.AKTIVNOSTSet             = dataSet;
     this.rowAKTIVNOST             = this.AKTIVNOSTSet.AKTIVNOST.NewAKTIVNOSTRow();
     this.rowAKTIVNOST.IDAKTIVNOST = iDAKTIVNOST;
     try
     {
         this.LoadByIDAKTIVNOST(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound179 == 0)
     {
         return(false);
     }
     return(true);
 }
示例#3
0
 public virtual int Fill(AKTIVNOSTDataSet dataSet)
 {
     if (this.fillDataParameters != null)
     {
         this.Fill(dataSet, int.Parse(this.fillDataParameters[0].Value.ToString()));
     }
     else
     {
         try
         {
             this.InitializeMembers();
             this.connDefault  = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
             this.AKTIVNOSTSet = dataSet;
             this.LoadChildAktivnost(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }