コード例 #1
0
ファイル: Tablero.cs プロジェクト: pjeconde/eFact
 private void BandejaEDataGridView_DoubleClick(object sender, EventArgs e)
 {
     if (BandejaEDataGridView.SelectedRows.Count != 0)
     {
         eFact_RN.IBKP.error[] respErroresComprobantes = new eFact_RN.IBKP.error[0];
         FeaEntidades.InterFacturas.comprobante cIBK = new FeaEntidades.InterFacturas.comprobante();
         eFact_RN.IBKP.consulta_detalle_comprobante cdc = new eFact_RN.IBKP.consulta_detalle_comprobante();
         try
         {
             cdc.cod_interno_canal = "";
             cdc.cuit_canal = Convert.ToInt64(@System.Configuration.ConfigurationManager.AppSettings["CuitCanal"]);
             cdc.cuit_vendedor = Convert.ToInt64(BandejaEDataGridView.Rows[BandejaEDataGridView.SelectedRows[0].Index].Cells["cuit_vendedor"].Value.ToString());
             cdc.punto_de_venta = Convert.ToInt32(BandejaEDataGridView.Rows[BandejaEDataGridView.SelectedRows[0].Index].Cells["punto_de_venta"].Value.ToString());
             cdc.numero_comprobante = Convert.ToInt32(BandejaEDataGridView.Rows[BandejaEDataGridView.SelectedRows[0].Index].Cells["numero_comprobante"].Value.ToString());
             cdc.tipo_de_comprobante = Convert.ToInt32(BandejaEDataGridView.Rows[BandejaEDataGridView.SelectedRows[0].Index].Cells["tipo_de_comprobante"].Value.ToString());
             cdc.tipo_doc_comprador = Convert.ToInt32("80");
             cdc.doc_comprador = Convert.ToInt64(CuitCompradorTextBox.Text);
             cdc.usuario_consulta = Aplicacion.Sesion.Usuario.IdUsuario;
             eFact_RN.Comprobante cc = new eFact_RN.Comprobante();
             cIBK = cc.ConsultarIBKP(cdc, "012f0775357c");
             //lcIBK = eFact_RNComprobante.ConsultarIBK(out respErroresLote, out respErroresComprobantes, clc, WSCertificado);
             //RespErroresLote = respErroresLote;
             //RespErroresComprobantes = respErroresComprobantes;
         }
         catch (Exception ex)
         {
             //RespErroresLote = respErroresLote;
             //RespErroresComprobantes = respErroresComprobantes;
             Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(ex);
         }
     }
 }
コード例 #2
0
ファイル: Tablero.cs プロジェクト: pjeconde/eFact
 private void ActualizarBandejaE()
 {
     VerificarServicio();
     eFact_RN.IBKP.error[] respErroresListadoComprobantes = new eFact_RN.IBKP.error[0];
     List<FeaEntidades.InterFacturas.comprobante_listado> lcIBK = new List<FeaEntidades.InterFacturas.comprobante_listado>();
     eFact_RN.IBKP.consulta_listado_comprobante clc = new eFact_RN.IBKP.consulta_listado_comprobante();
     try
     {
         clc.cod_interno_canal = "";
         clc.cuit_canal = Convert.ToInt64(@System.Configuration.ConfigurationManager.AppSettings["CuitCanal"]);
         clc.cuit_vendedor = Convert.ToInt64("20225018805");
         clc.cuit_vendedorSpecified = true;
         if (PuntoVentaTextBox.Text != "")
         {
             clc.punto_de_venta = Convert.ToInt32(PuntoVentaTextBox.Text);
         }
         if (NumeroComprobanteTextBox.Text != "")
         {
             clc.numero_comprobante_desde = Convert.ToInt32(NumeroComprobanteTextBox.Text);
             clc.numero_comprobante_hasta = Convert.ToInt32(NumeroComprobanteTextBox.Text);
         }
         if (TipoComprobanteComboBox.SelectedValue != null && TipoComprobanteComboBox.SelectedValue.ToString() != "-1")
         {
             clc.tipo_de_comprobante = Convert.ToInt32(TipoComprobanteComboBox.SelectedValue);
         }
         clc.tipo_doc_comprador = Convert.ToInt32("80");
         clc.doc_comprador = Convert.ToInt64(CuitCompradorTextBox.Text);
         eFact_RN.Comprobante cc = new eFact_RN.Comprobante();
         lcIBK = cc.ConsultarListadoIBKP(clc, "012f0775357c");
         BandejaEDataGridView.DataSource = lcIBK;
         BandejaEDataGridView.Refresh();
     }
     catch (Exception ex)
     {
         //RespErroresLote = respErroresLote;
         //RespErroresComprobantes = respErroresComprobantes;
         Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(ex);
     }
 }