Beispiel #1
0
 public DataRow GetFacturaById(int p_iduser, int p_idfactura)
 {
     GestionDataSet.GetFacturaFromIdDataTable DT = new GestionDataSet.GetFacturaFromIdDataTable();
     GestionDataSetTableAdapters.GetFacturaFromIdTableAdapter TA = new GestionDataSetTableAdapters.GetFacturaFromIdTableAdapter();
     TA.Fill(DT, p_iduser, p_idfactura);
     if (DT.Rows.Count > 0)
     {
         return(DT.Rows[0]);
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 public Class.XmlSerializaers.Factura GetDatosFacturas(int IdUser, int IdFactura)
 {
     GestionDataSet.GetFacturaFromIdDataTable DT = new GestionDataSet.GetFacturaFromIdDataTable();
     GestionDataSetTableAdapters.GetFacturaFromIdTableAdapter TA = new GestionDataSetTableAdapters.GetFacturaFromIdTableAdapter();
     TA.Fill(DT, IdUser, IdFactura);
     if (DT.Rows.Count != 0)
     {
         Class.XmlSerializaers.Factura F = new Class.XmlSerializaers.Factura(DT.Rows[0]);
         GetDetalleFactura(IdUser, IdFactura, ref F);
         return(F);
     }
     else
     {
         return(null);
     }
 }