Example #1
0
 public static string GetPrecioEspecialHtml(PrecioEspecial pe)
 {
     string html = "";
     string plantillaLinea = @"
     <tr>
         <td>{0}</td>
         <td>{1}</td>
         <td class='text-right'>{2:###,##0.00}</td>
         <td class='text-right'>{3:###,##0.00}</td>
     </tr>
     ";
     html = String.Format(plantillaLinea, pe.Codartic, pe.Nomartic, pe.Precioac, pe.Dtoespe);
     return html;
 }
Example #2
0
 public static PrecioEspecial GetPrecioEspecial(MySqlDataReader rdr)
 {
     if (rdr.IsDBNull(rdr.GetOrdinal("CODARTIC")))
         return null;
     PrecioEspecial pe = new PrecioEspecial();
     pe.Codartic = rdr.GetInt32("CODARTIC");
     pe.Nomartic = rdr.GetString("NOMARTIC");
     pe.Precioac = rdr.GetDecimal("PRECIOAC");
     pe.Dtoespe = rdr.GetDecimal("DTOESPE");
     return pe;
 }