예제 #1
0
 public virtual int FillPage(OTISLIDataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.OTISLISet   = dataSet;
     try
     {
         this.LoadChildOtisli(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
예제 #2
0
 public virtual int FillPageByIDRADNIK(OTISLIDataSet dataSet, int iDRADNIK, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault        = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.OTISLISet          = dataSet;
     this.rowOTISLI          = this.OTISLISet.OTISLI.NewOTISLIRow();
     this.rowOTISLI.IDRADNIK = iDRADNIK;
     try
     {
         this.LoadByIDRADNIK(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
예제 #3
0
 public virtual bool FillByIDRADNIKDATUMODLASKA(OTISLIDataSet dataSet, int iDRADNIK, DateTime dATUMODLASKA)
 {
     this.InitializeMembers();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.OTISLISet              = dataSet;
     this.rowOTISLI              = this.OTISLISet.OTISLI.NewOTISLIRow();
     this.rowOTISLI.IDRADNIK     = iDRADNIK;
     this.rowOTISLI.DATUMODLASKA = DateTimeUtil.ResetTime(dATUMODLASKA);
     try
     {
         this.LoadByIDRADNIKDATUMODLASKA(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound294 == 0)
     {
         return(false);
     }
     return(true);
 }
예제 #4
0
 public virtual int Fill(OTISLIDataSet dataSet)
 {
     if (this.fillDataParameters != null)
     {
         this.Fill(dataSet, int.Parse(this.fillDataParameters[0].Value.ToString()), DateTime.Parse(this.fillDataParameters[1].Value.ToString()));
     }
     else
     {
         try
         {
             this.InitializeMembers();
             this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
             this.OTISLISet   = dataSet;
             this.LoadChildOtisli(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }