public void cancelar(int id)
 {
     Ventas serv = new Ventas();
     serv.Url = new Juddi().getServiceUrl("Ventas");
     serv.finalizarVenta(id, 2, 0);
     Server.TransferRequest(Request.Url.AbsolutePath, false);
 }
        public void vender(int id, int pujadorId)
        {
            Ventas serv = new Ventas();

            serv.Url = new Juddi().getServiceUrl("Ventas");
            serv.finalizarVenta(id, 4, pujadorId);

            Response.Redirect("NuevaVenta.aspx");
        }
 private void btnVender_Click(object sender, RoutedEventArgs e)
 {
     Button button = sender as Button;
     Puja p = button.DataContext as Puja;
     int id = p.ventaId;
     Ventas serv = new Ventas();
     serv.Url = new Juddi().getServiceUrl("Ventas");
     serv.finalizarVenta(id, 4, p.pujadorId);
     this.Close();
 }
 public void vender(int id, int negociado)
 {
     Ventas serv = new Ventas();
     serv.Url = new Juddi().getServiceUrl("Ventas");
     if (negociado == 2) //Negociado Manual
     {
         Response.Redirect("PujasVenta.aspx?id="+id);
     }
     else
     {
         serv.Url = new Juddi().getServiceUrl("Ventas");
         serv.finalizarVenta(id, 1, 0);
     }
     Server.TransferRequest(Request.Url.AbsolutePath, false);
 }
Beispiel #5
0
 private void btnVender_Click(object sender, RoutedEventArgs e)
 {
     Button button = sender as Button;
     ItemPuja p = button.DataContext as ItemPuja;
     int id = p.id;
     Debug.WriteLine(p.negociado);
     if (p.negociado == 2) //Negociado Manual
     {
         VentanaListaPujas vp = new VentanaListaPujas(p, user);
         vp.Show();
     }
     else
     {
         Ventas serv = new Ventas();
         serv.Url = new Juddi().getServiceUrl("Ventas");
         serv.finalizarVenta(id, 1, 0);
     }
 }
Beispiel #6
0
 private void btnCancelar_Click(object sender, RoutedEventArgs e)
 {
     Button button = sender as Button;
     ItemPuja p = button.DataContext as ItemPuja;
     int id = p.id;
     Ventas serv = new Ventas();
     serv.Url = new Juddi().getServiceUrl("Ventas");
     serv.finalizarVenta(id, 2, 0);
 }