예제 #1
0
 public virtual int FillPage(SPOLDataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.SPOLSet     = dataSet;
     try
     {
         this.LoadChildSpol(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
예제 #2
0
 public virtual bool FillByIDSPOL(SPOLDataSet dataSet, int iDSPOL)
 {
     this.InitializeMembers();
     this.connDefault    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.SPOLSet        = dataSet;
     this.rowSPOL        = this.SPOLSet.SPOL.NewSPOLRow();
     this.rowSPOL.IDSPOL = iDSPOL;
     try
     {
         this.LoadByIDSPOL(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound57 == 0)
     {
         return(false);
     }
     return(true);
 }
예제 #3
0
 public virtual int Fill(SPOLDataSet 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.SPOLSet     = dataSet;
             this.LoadChildSpol(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }