private void btnBuscarPlantilla_Click(object sender, EventArgs e) { try { if (Accion == Cl_Enumeradores.eTipo_action.grabar) { frmCom_OrdenPedidoPlantillaAsignar frm = new frmCom_OrdenPedidoPlantillaAsignar(); frm.ShowDialog(); if (frm.info_plantilla != null && frm.info_plantilla.IdPlantilla > 0) { limpiar(); frm.info_plantilla = bus_plantilla.GetInfo(frm.info_plantilla.IdEmpresa, frm.info_plantilla.IdPlantilla); if (frm.info_plantilla != null) { txt_Observacion.Text = frm.info_plantilla.op_Observacion; txt_codigo.Text = frm.info_plantilla.op_Codigo; chk_EsCompraUrgente.Checked = frm.info_plantilla.EsCompraUrgente; cmb_PuntoCargoCab.EditValue = frm.info_plantilla.IdPunto_cargo; blst_det = new BindingList <com_OrdenPedidoDet_Info>(bus_detalle.GetListPlantilla(frm.info_plantilla.IdEmpresa, frm.info_plantilla.IdPlantilla)); gc_detalle.DataSource = blst_det; } } } else { FrmCom_OrdenPedidoCompradorFamilia frm = new FrmCom_OrdenPedidoCompradorFamilia(); frm.IdOrdenPedido = Convert.ToDecimal(txt_IdOrdenPedido.Text); frm.ShowDialog(); } } catch (Exception) { } }
private void txtIdOrdenPedido_DoubleClick(object sender, EventArgs e) { try { com_OrdenPedido_Info row = (com_OrdenPedido_Info)gv_Consulta.GetFocusedRow(); if (row != null) { FrmCom_OrdenPedidoCompradorFamilia frm = new FrmCom_OrdenPedidoCompradorFamilia(); frm.IdOrdenPedido = row.IdOrdenPedido; frm.ShowDialog(); } } catch (Exception) { } }
private void txtIdOrdenPedido_DoubleClick(object sender, EventArgs e) { try { com_CotizacionPedidoDet_Info row = (com_CotizacionPedidoDet_Info)gv_detalle.GetFocusedRow(); if (row == null) { return; } FrmCom_OrdenPedidoCompradorFamilia frm = new FrmCom_OrdenPedidoCompradorFamilia(); frm.IdOrdenPedido = row.opd_IdOrdenPedido; frm.ShowDialog(); } catch (Exception) { } }