private void btnConsultar_Click(object sender, EventArgs e) { GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient serviceClient = new GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient(); List <GasMetropolitanoRuntimeService.Pedido> pedidos = serviceClient.ConsultarPedidos(0, GasMetropolitanoRuntimeService.Fuente.Sigamet, GasMetropolitanoRuntimeService.TipoConsultaPedido.Boletin, false, null, null, null, DateTime.Now.Date, null, null, null, 201, null, null, null, null, null, null, "BOLETIN", null, null, null, null, null, null, null, null, null, null, null, null, null, null); dataGridView1.DataSource = pedidos; }
private void button2_Click(object sender, EventArgs e) { GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient serviceClient = new GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient(); List <GasMetropolitanoRuntimeService.Pedido> pedidos = null; try { pedidos = serviceClient.ConsultarPedidos(0, GasMetropolitanoRuntimeService.Fuente.CRM, GasMetropolitanoRuntimeService.TipoConsultaPedido.Boletin, false, null, null, null, DateTime.Now.Date, null, null, null, 201, null, null, null, null, null, null, "BOLETIN", null, null, null, null, null, null, null, null, null, null, null, null, null, null); } catch (Exception ex) { MessageBox.Show(ex.Message + ex.InnerException.Message); } dataGridView1.DataSource = pedidos; }
private void button1_Click_1(object sender, EventArgs e) { GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient serviceClient = new GasMetropolitanoRuntimeService.GasMetropolitanoRuntimeServiceClient(); try { List <GasMetropolitanoRuntimeService.Pedido> pedidos = serviceClient.ConsultarPedidos(2, GasMetropolitanoRuntimeService.Fuente.SigametPortatil, GasMetropolitanoRuntimeService.TipoConsultaPedido.Boletin, true, null, null, null, new DateTime(2017, 12, 29), null, null, null, 103, null, null, null, null, null, null, "TODOS", null, null, null, null, null, null, null, null, null, null, null, null, null, null); dataGridView1.DataSource = pedidos; } catch (Exception ex) { MessageBox.Show(ex.Message); } }