コード例 #1
0
        public static ServiceReferenceDLL.cDllPedido TomarPedido(string pLoginCliente, string pIdSucursal, string pMensajeEnFactura, string pMensajeEnRemito, string pTipoEnvio, List <ServiceReferenceDLL.cDllProductosAndCantidad> pListaProducto, bool pIsUrgente)
        {
            try
            {
                ServiceReferenceDLL.ServiceSoapClient objServicio = Instacia();
                ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad listaArray = new ServiceReferenceDLL.ArrayOfCDllProductosAndCantidad();
                foreach (var item in pListaProducto)
                {
                    listaArray.Add(item);
                }
                ServiceReferenceDLL.cDllPedido objResultado = objServicio.TomarPedido(pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, listaArray, pIsUrgente);
                //ServiceReferenceDLL.cDllPedido objResultado = null;

                //FuncionesPersonalizadas.grabarLog(MethodBase.GetCurrentMethod(), new Exception("eeee"), DateTime.Now, pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, pListaProducto, pIsUrgente);

                return(objResultado);
            }
            catch (Exception ex)
            {
                FuncionesPersonalizadas.grabarLog(MethodBase.GetCurrentMethod(), ex, DateTime.Now, pLoginCliente, pIdSucursal, pMensajeEnFactura, pMensajeEnRemito, pTipoEnvio, pListaProducto, pIsUrgente);
                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);
     //}
 }