private void btnDesgloseCierre_Click(object sender, EventArgs e) { WinControl_ELR_NET.ELRFormDesgloseEfectivo frm = new WinControl_ELR_NET.ELRFormDesgloseEfectivo(); try { lblEfectivo.Text = "-1"; DSDatos.Tables[0].Rows[0]["Desglose_Cierre"] = ""; frm.ShowDialog(); if (frm.lOK) { lblEfectivo.Text = frm.montoDesglose.ToString("N2"); DSDatos.Tables[0].Rows[0]["Desglose_Cierre"] = frm.desglose; CalcularDiferencia(); } } catch (Exception ex) { objUtil.MostrarMensajeError(ex.Message); } finally { frm.Dispose(); } }
private void btnDesglosar_Click(object sender, EventArgs e) { WinControl_ELR_NET.ELRFormDesgloseEfectivo frm = new WinControl_ELR_NET.ELRFormDesgloseEfectivo(); try { frm.monedaId = 1; frm.ShowDialog(); if (frm.lOK) { //PASAMOS EL DESGLOSE txtMontoApertura.SetValor(frm.montoDesglose.ToString(), 0); objUtil.SetValorDT("Desglose_Apertura", frm.desglose, DSDatos.Tables[0], 0); } } catch (Exception ex) { txtMontoApertura.SetValor("-1"); objUtil.SetValorDT("Desglose_Apertura", "", DSDatos.Tables[0], 0); objUtil.MostrarMensajeError(ex.Message); } }