示例#1
0
 public static List <ServiceReferenceDLL.cDllPedidoTransfer> TomarPedidoTransfer(string pLoginCliente, string pIdSucursal, string pMensajeEnFactura, string pMensajeEnRemito, string pTipoEnvio, List <ServiceReferenceDLL.cDllProductosAndCantidad> pListaProducto)
 {
     try
     {
         ServiceReferenceDLL.ServiceSoapClient objServicio = Instacia();
         ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad listaArray = new ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad();
         foreach (var item in pListaProducto)
         {
             listaArray.Add(item);
         }
         List <ServiceReferenceDLL.cDllPedidoTransfer> listaResultado = objServicio.TomarPedidoDeTransfers(pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, listaArray);
         return(listaResultado);
     }
     catch (Exception ex)
     {
         FuncionesPersonalizadas.grabarLog(MethodBase.GetCurrentMethod(), ex, DateTime.Now, pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, pListaProducto);
         return(null);
     }
 }
示例#2
0
 public static ServiceReferenceDLL.cDllPedido TomarPedidoConIdCarrito(int pIdCarrito, string pLoginCliente, string pIdSucursal, string pMensajeEnFactura, string pMensajeEnRemito, string pTipoEnvio, List <ServiceReferenceDLL.cDllProductosAndCantidad> pListaProducto, bool pIsUrgente)
 {
     try
     {
         //capaCAR.InicioCarritoEnProceso(pIdCarrito, Constantes.cAccionCarrito_TOMAR);
         ServiceReferenceDLL.ServiceSoapClient objServicio = Instacia();
         ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad listaArray = new ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad();
         foreach (var item in pListaProducto)
         {
             listaArray.Add(item);
         }
         ServiceReferenceDLL.cDllPedido objResultado = objServicio.TomarPedidoConIdCarrito(pIdCarrito, pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, listaArray, pIsUrgente);
         return(objResultado);
     }
     catch (Exception ex)
     {
         FuncionesPersonalizadas.grabarLog(MethodBase.GetCurrentMethod(), ex, DateTime.Now, pIdCarrito, pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, pListaProducto, pIsUrgente);
         return(null);
     }
     //finally
     //{
     //    capaCAR.EndCarritoEnProceso(pIdCarrito);
     //}
 }