void ucGe_Menu_Mantenimiento_x_usuario_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (_MoviInvenInfo == null) { MessageBox.Show("Selecciones una fila", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { if (_MoviInvenInfo.IdNumMovi == null || _MoviInvenInfo.IdNumMovi == 0) { MessageBox.Show("Selecciones una fila", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { frmIn_EgresoInventario_x_Produccion_Mantenimiento fAjus = new frmIn_EgresoInventario_x_Produccion_Mantenimiento(); fAjus.set_Accion(Cl_Enumeradores.eTipo_action.consultar); fAjus.Text = fAjus.Text + " ***COSULTAR REGISTRO***"; fAjus.MdiParent = this.MdiParent; fAjus.setCab(_MoviInvenInfo); fAjus.Show(); } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmIn_EgresoInventario_x_Produccion_Mantenimiento frm = new frmIn_EgresoInventario_x_Produccion_Mantenimiento(); frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.Text = frm.Text + " ***NUEVO REGISTRO***"; frm.MdiParent = this.MdiParent; frm.Show(); frm.event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing += frm_event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
void ucGe_Menu_Mantenimiento_x_usuario_event_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (_MoviInvenInfo != null) { if (_MoviInvenInfo.Estado == "I") { MessageBox.Show("El Ajuste de inventario # " + _MoviInvenInfo.IdNumMovi + " ya fue anulado", "Sistema", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { if (_MoviInvenInfo == null) { MessageBox.Show("Selecciones una fila", "sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { //frmIn_AjustesInven_Mant fAjus = new frmIn_AjustesInven_Mant(); //fAjus.set_Accion(Cl_Enumeradores.eTipo_action.borrar); //fAjus.set_AjusteMoviInven(_MoviInvenInfo); //fAjus.Text = fAjus.Text + " ***ANULAR REGISTRO***"; //fAjus.Show(); //fAjus.Event_frmIn_AjustesInven_Mant_FormClosing += new frmIn_AjustesInven_Mant.Delegate_frmIn_AjustesInven_Mant_FormClosing(fAjus_Event_frmIn_AjustesInven_Mant_FormClosing); frmIn_EgresoInventario_x_Produccion_Mantenimiento fAjus = new frmIn_EgresoInventario_x_Produccion_Mantenimiento(); fAjus.set_Accion(Cl_Enumeradores.eTipo_action.Anular); fAjus.setCab(_MoviInvenInfo); fAjus.Text = fAjus.Text + " ***ANULAR REGISTRO***"; fAjus.MdiParent = this.MdiParent; fAjus.Show(); fAjus.event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing += frm_event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing; } } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.Message); } }