public List <Seguimiento> Get(string Server, string Usr, string Psw, string BD, string Usuario, string FiltroMov = "", string FiltroGrup1 = "", string FiltroGrup2 = "", string FiltroGrup3 = "", string FiltroGrup4 = "") { MetodosClient Metodos = new MetodosClient(Server, Usr, Psw, BD); List <Seguimiento> Seg = Metodos.Seguimiento(Usuario, FiltroMov, FiltroGrup1, FiltroGrup2, FiltroGrup3, FiltroGrup4); return(Seg); }
void enviarPedido(List <Detalle> detalle) { int cont = 1; MetodosClient met = new MetodosClient(); List <VentaStruct> vnt = new List <VentaStruct>(); List <VentaDstruct> vntd = new List <VentaDstruct>(); DC_venta venta = new DC_venta(); List <DC_ventaD> ventad = new List <DC_ventaD>(); vnt.Add(new VentaStruct() { Empresa = "ALTAI", Mov = "Pedido", Concepto = "Ventas a distribuidores", Moneda = "Pesos", Usuario = "FMARTINEZ", Estatus = "SinAfectar", Prioridad = "Normal", Cliente = "HVENEGAS", TipoCambio = Convert.ToDecimal(1.00), Directo = 1, RenglonID = 1, ServicioSerie = cmbUso.Text }); foreach (Detalle d in detalle) { //VentaDstruct det = new VentaDstruct(); //det.ID = 0; //det.Renglon = 2048 * cont; //det.RenglonID = cont; //det.Cantidad = Convert.ToDecimal(d.Cantidad); //det.RenglonTipo = "N"; //det.SubCuenta = d.Subcuenta; //det.Articulo = d.Articulo; //vntd.Add(det); vntd.Add(new VentaDstruct() { ID = 0, Renglon = 2048 * cont, RenglonID = cont, Cantidad = Convert.ToDecimal(d.Cantidad), RenglonTipo = "N", SubCuenta = d.Subcuenta, Articulo = d.Articulo }); cont = cont + 1; } venta.Venta = vnt; venta.Detalle = vntd; met.DetalleVenta(venta); }