private void Deshacer() { try { Presenter.LimpiarReporte(); ENTC_CodCliente.ClearValue(); ENTC_CodCliente.Text = string.Empty; CCOT_FechaDesde.NSFecha = null; CCOT_FechaHasta.NSFecha = null; TIPO_CodCDT.TiposSelectedValue = null; TIPO_CodTRF.TiposSelectedValue = null; TIPO_CodPAIOrigen.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); } }
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) { } }
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) { } }