Example #1
0
        private void Deshacer()
        {
            try
            {
                Presenter.LimpiarReporte();

                CONS_CodRGM.ConstantesSelectedValue = null;
                CONS_CodVIA.ConstantesSelectedValue = null;
                CCOT_FecEmiDesde.NSFecha            = null;
                CCOT_FecEmiHasta.NSFecha            = null;
                ENTC_CodTransportista.ClearValue();
                ENTC_CodTransportista.Text = string.Empty;

                TIPO_CodPAIOrigen.TiposSelectedValue  = null;
                TIPO_CodPAIDestino.TiposSelectedValue = null;

                BSItems.DataSource  = null;
                grdItems.DataSource = BSItems;
                BSItems.ResetBindings(true);

                grdItems.Enabled    = true;
                btnBuscar.Enabled   = true;
                btnExportar.Enabled = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error al limpiar al reporte.", ex); }
        }
Example #2
0
        private void Deshacer()
        {
            try
            {
                BSItems.DataSource     = null;
                grdItems.DataSource    = BSItems;
                grdItems.Enabled       = false;
                navItems.BindingSource = BSItems;
                BSItems.ResetBindings(true);

                grdItems.Enabled    = true;
                btnNuevo.Enabled    = true;
                btnBuscar.Enabled   = true;
                btnExportar.Enabled = false;

                cmbCONS_CodRGM.SelectedIndex = 0;
                cmbCONS_CodVia.SelectedIndex = 0;
                ENTC_CodTransportista.ClearValue();;
                mdtNVIA_FecCreacion.NSFecha = null;
                //NAVE_Codigo.DataSource = null;
                NAVE_Codigo.SelectedIndex = 0;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error al deshacer la vista.", ex); }
        }
Example #3
0
        public void ClearItem()
        {
            try
            {
                CONT_Numero.Text    = string.Empty;
                CONT_Numero.Text    = string.Empty;
                CONT_Descrip.Text   = string.Empty;
                CONT_FecFin.NSFecha = null;
                CONT_FecIni.NSFecha = null;
                ENTC_CodTransportista.ClearValue();
                ENTC_CodTransportista.Text = String.Empty;
                ENTC_CodCliente.ClearValue();
                ENTC_CodCliente.Text = String.Empty;
                CONS_CodRGM.ConstantesSelectedValue = null;
                CONS_CodVia.ConstantesSelectedValue = null;



                TIPO_CodMnd.TiposSelectedValue       = null;
                CONS_CodBas.ConstantesSelectedValue  = null;
                TIPO_CodPAIOrigen.TiposSelectedValue = null;
                //PUER_CodOrigen.ComboIntSelectedValue = null;
                TIPO_CodPAIDestino.TiposSelectedValue = null;
                //PUER_CodDestino.ComboIntSelectedValue = null;

                PACK_Codigo.ComboIntSelectedValue = null;

                TARI_Peso.Text    = "0.00";
                TARI_Volumen.Text = "0.00";
                TARI_Costo.Text   = "0.00";
                TARI_Profit1.Text = "0.00";
                TARI_Profit2.Text = "0.00";
                TARI_Profit3.Text = "0.00";
                TARI_Profit4.Text = "0.00";
                TARI_PVenta1.Text = "0.00";
                TARI_PVenta2.Text = "0.00";
                TARI_PVenta3.Text = "0.00";
                TARI_PVenta4.Text = "0.00";
            }
            catch (Exception)
            { }
        }
Example #4
0
 public void ClearItem()
 {
     try
     {
         CONT_Codigo.Text    = string.Empty;
         CONT_Activo.Checked = false;
         CONT_Numero.Text    = string.Empty;
         CONT_FecEmi.NSFecha = null;
         CONT_Descrip.Text   = string.Empty;
         CONT_FecFin.NSFecha = null;
         CONT_FecIni.NSFecha = null;
         ENTC_CodTransportista.ClearValue();
         ENTC_CodTransportista.Text = String.Empty;
         ENTC_CodCliente.ClearValue();
         ENTC_CodCliente.Text = String.Empty;
         CONS_CodRGM.ConstantesSelectedValue = null;
         CONS_CodVia.ConstantesSelectedValue = null;
     }
     catch (Exception)
     { }
 }