Пример #1
0
 public virtual int FillPage(OSVRSTADataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.OSVRSTASet  = dataSet;
     try
     {
         this.LoadChildOsvrsta(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Пример #2
0
 public virtual bool FillByIDOSVRSTA(OSVRSTADataSet dataSet, int iDOSVRSTA)
 {
     this.InitializeMembers();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.OSVRSTASet           = dataSet;
     this.rowOSVRSTA           = this.OSVRSTASet.OSVRSTA.NewOSVRSTARow();
     this.rowOSVRSTA.IDOSVRSTA = iDOSVRSTA;
     try
     {
         this.LoadByIDOSVRSTA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound255 == 0)
     {
         return(false);
     }
     return(true);
 }
Пример #3
0
 public virtual int Fill(OSVRSTADataSet 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.OSVRSTASet  = dataSet;
             this.LoadChildOsvrsta(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }