예제 #1
0
 public static String Envio_requerimiento(String IP, int Puerto, int timeout, String trama, int iGrabaLog, int iGrabaMsg)
 {
     try
     {
         Pos p = new Pos(IP, Puerto, timeout, trama, iGrabaLog, iGrabaMsg);
         return(p.EnvioRequerimiento());
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
예제 #2
0
 public String Envio_requerimiento(String IP, int Puerto, int timeout, string trama, int iGrabaLog, int iGrabaMsg)
 {
     try
     {
         if (String.IsNullOrEmpty(IP))
         {
             return(Pinpad.SendPinpad(trama, Puerto, timeout, iGrabaLog, iGrabaMsg));
         }
         else
         {
             Pos p = new Pos(IP, Puerto, timeout, trama, iGrabaLog, iGrabaMsg);
             return(p.EnvioRequerimiento());
         }
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }