Example #1
0
 public virtual int FillPage(TIPDOKUMENTADataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault     = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.TIPDOKUMENTASet = dataSet;
     try
     {
         this.LoadChildTipdokumenta(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Example #2
0
 public virtual bool FillByIDTIPDOKUMENTA(TIPDOKUMENTADataSet dataSet, int iDTIPDOKUMENTA)
 {
     this.InitializeMembers();
     this.connDefault     = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.TIPDOKUMENTASet = dataSet;
     this.rowTIPDOKUMENTA = this.TIPDOKUMENTASet.TIPDOKUMENTA.NewTIPDOKUMENTARow();
     this.rowTIPDOKUMENTA.IDTIPDOKUMENTA = iDTIPDOKUMENTA;
     try
     {
         this.LoadByIDTIPDOKUMENTA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound197 == 0)
     {
         return(false);
     }
     return(true);
 }
Example #3
0
 public virtual int Fill(TIPDOKUMENTADataSet 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.TIPDOKUMENTASet = dataSet;
             this.LoadChildTipdokumenta(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }