void ucGe_Menu_Mantenimiento_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (info.IdCotizacion == 0) { return; } if (info.cc_estado == "I") { MessageBox.Show("No se puede Modificar cotizacion No. " + info.IdCotizacion + " por que ya se encuentra anulada"); return; } frmFa_Cotizacion_Mant frm = new frmFa_Cotizacion_Mant(); frm.setAccion(Cl_Enumeradores.eTipo_action.actualizar); frm.IdCotizacion = info.IdCotizacion; frm.IdBodega = info.IdBodega; frm.IdSucursal = info.IdSucursal; frm.infocotizacion = info; frm.Text = "Cotizacion de Cliente - MODIFICACION"; //frm.Vendedor = info.Vendedor; //frm.Cliente = info.Cliente; frm.MdiParent = this.MdiParent; frm.Show(); frm.event_frmFA_Cotizacion_Mant_FormClosing += new frmFa_Cotizacion_Mant.delegate_frmFA_Cotizacion_Mant_FormClosing(frm_event_frmFA_Cotizacion_Mant_FormClosing); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void ucGe_Menu_Mantenimiento_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (info.IdCotizacion == 0) { return; } frmFa_Cotizacion_Mant frm = new frmFa_Cotizacion_Mant(); frm.setAccion(Cl_Enumeradores.eTipo_action.consultar); frm.IdCotizacion = info.IdCotizacion; frm.IdBodega = info.IdBodega; frm.IdSucursal = info.IdSucursal; //frm.infocotizacion = info; if (info.cc_estado == "I") { frm.lblAnulado.Visible = true; } frm.Text = "Cotizacion de Cliente - CONSULTA"; //frm.Vendedor = info.Vendedor; //frm.Cliente = info.Cliente; frm.MdiParent = this.MdiParent; frm.Show(); frm.event_frmFA_Cotizacion_Mant_FormClosing += new frmFa_Cotizacion_Mant.delegate_frmFA_Cotizacion_Mant_FormClosing(frm_event_frmFA_Cotizacion_Mant_FormClosing); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void ucGe_Menu_Mantenimiento_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmFa_Cotizacion_Mant frm = new frmFa_Cotizacion_Mant(); frm.setAccion(Cl_Enumeradores.eTipo_action.grabar); frm.IdBodega = 1; frm.IdSucursal = ucGe_Menu_Mantenimiento.getIdSucursal; frm.IdCotizacion = 0; frm.Text = "Cotizacion de Cliente - NUEVO"; frm.MdiParent = this.MdiParent; frm.Show(); frm.event_frmFA_Cotizacion_Mant_FormClosing += new frmFa_Cotizacion_Mant.delegate_frmFA_Cotizacion_Mant_FormClosing(frm_event_frmFA_Cotizacion_Mant_FormClosing); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }