Ejemplo n.º 1
0
 public virtual int FillPage(POSTANSKIBROJEVIDataSet dataSet, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.POSTANSKIBROJEVISet = dataSet;
     try
     {
         this.LoadChildPostanskibrojevi(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Ejemplo n.º 2
0
 public virtual bool FillByPOSTANSKIBROJ(POSTANSKIBROJEVIDataSet dataSet, string pOSTANSKIBROJ)
 {
     this.InitializeMembers();
     this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.POSTANSKIBROJEVISet = dataSet;
     this.rowPOSTANSKIBROJEVI = this.POSTANSKIBROJEVISet.POSTANSKIBROJEVI.NewPOSTANSKIBROJEVIRow();
     this.rowPOSTANSKIBROJEVI.POSTANSKIBROJ = pOSTANSKIBROJ;
     try
     {
         this.LoadByPOSTANSKIBROJ(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound299 == 0)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 3
0
 public virtual int Fill(POSTANSKIBROJEVIDataSet dataSet)
 {
     if (this.fillDataParameters != null)
     {
         this.Fill(dataSet, this.fillDataParameters[0].Value.ToString());
     }
     else
     {
         try
         {
             this.InitializeMembers();
             this.connDefault         = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
             this.POSTANSKIBROJEVISet = dataSet;
             this.LoadChildPostanskibrojevi(0, -1);
             dataSet.AcceptChanges();
         }
         finally
         {
             this.Cleanup();
         }
     }
     return(0);
 }