public void ClearItem() { try { txtCTAR_Numero.Clear(); dtpCTAR_FecEmi.NSFecha = null; txtCTAR_Descrip.Clear(); dtpCTAR_FecFin.NSFecha = null; dtpCTAR_FecIni.NSFecha = null; CbCONS_CodReg.ConstantesSelectedValue = null; CbCONS_CodReg.SelectedIndex = 0; CbTIPO_CodMnd.SelectedIndex = 0; ENTC_CodigoEntidad.ClearValue(); txtCTAR_Profit.Clear(); txtCTAR_Profit.Text = @"0"; txtCTAR_MontoLNaviera.Value = 0; txtCTAR_MontoDTemporal.Value = 0; chkCTAR_AgMaritimo.Checked = false; chkCTAR_DepTemporal.Checked = false; chkCTAR_DepVacio.Checked = false; dtpCTAR_FecEmi.NSFecha = Presenter.Session.Fecha.Date; dtpCTAR_FecFin.NSFecha = Presenter.Session.Fecha.Date.AddMonths(6); dtpCTAR_FecIni.NSFecha = Presenter.Session.Fecha.Date; } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.ClearItem, ex); } }
public void ClearItem() { try { ENTC_CodigoEntidad.ClearValue(); CbSERV_Codigo.SelectedIndex = 0; txtSOPE_PrecioUni.Value = 0; txtSOPE_PrecioUni.Text = @"0"; txtSOPE_Cantidad.Value = 0; txtSOPE_Cantidad.Text = @"0"; CbBase.SelectedIndex = 0; CbTIPO_CodMnd.SelectedIndex = 0; txtSOPE_ImporteIngreso.Value = 0; txtSOPE_ImporteIngreso.Text = @"0"; txtSOPE_ImporteEgreso.Value = 0; txtSOPE_ImporteEgreso.Text = @"0"; CbTipoGasto.SelectedIndex = 0; txtSOPE_ImporteEgreso.Enabled = false; txtSOPE_ImporteIngreso.Enabled = false; txtSOPE_Costo.Value = 0; txtSOPE_Costo.Text = @"0"; cmbTIPE_codigo.SelectedIndex = 0; } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.ClearItem, ex); } }
public void ClearItem() { try { CbTipoEntidad.SelectedIndex = 0; ENTC_CodigoEntidad.ClearValue(); txtVenta20.Text = @"0"; txtVentaSada20.Text = @"0"; txtVenta40.Text = @"0"; txtVentaSada40.Text = @"0"; txtHBL.Text = @"0"; txtHBLSada.Text = @"0"; CbBase.SelectedIndex = 0; txtMinimo.Text = @"0"; txtCostoAduTransp.Text = @"0"; txtCostoAduTransp.Text = @"0"; CbTipo.SelectedIndex = 0; CbBase.SelectedIndex = 0; txtMinimo.Text = @"0"; CbOrigen.SelectedIndex = 0; CbDestino.SelectedIndex = 0; chkRoundtrip.Checked = false; } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.ClearItem, ex); } }
void CbTipoEntidad_SelectedValueChanged(object sender, EventArgs e) { try { /* solo 13 => Agencia Maritima , 14 => Deposito Temporal, 15 => Deposito Vacio */ if (CbTipoEntidad.SelectedValue != null) { switch (CbTipoEntidad.SelectedValue.ToString()) { case "13": ENTC_CodigoEntidad.TipoEntidad = TiposEntidad.TIPE_AgenciaMaritima; txtHBL.Enabled = true; txtHBLSada.Enabled = true; break; case "14": ENTC_CodigoEntidad.TipoEntidad = TiposEntidad.TIPE_DepositoTemporal; txtHBL.Enabled = false; txtHBLSada.Enabled = false; break; case "15": ENTC_CodigoEntidad.TipoEntidad = TiposEntidad.TIPE_DepositoVacio; txtHBL.Enabled = false; txtHBLSada.Enabled = false; break; } ENTC_CodigoEntidad.ClearValue(); txtHBL.Text = @"0"; txtHBLSada.Text = @"0"; } } catch (Exception) { } }
public void ClearItem() { try { ENTC_CodigoEntidad.ClearValue(); ENTC_CodigoDepTemporal.ClearValue(); txtHBL.Clear(); } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.ClearItem, ex); } }
void cmbTIPE_codigo_SelectedIndexChanged(object sender, EventArgs e) { try { if (cmbTIPE_codigo.TipoEntidadSelectedItem != null) { ENTC_CodigoEntidad.Enabled = true; ENTC_CodigoEntidad.TipoEntidad = Delfin.Controls.EntidadClear.getTipoEntidadEnum(cmbTIPE_codigo.TipoEntidadSelectedItem.TIPE_Codigo); } else { ENTC_CodigoEntidad.Enabled = false; ENTC_CodigoEntidad.ClearValue(); } } catch (Exception) { } }
public void SetItem() { try { txtHBL.Text = Presenter.ItemCab_Seguimientos.CSEG_HBL; if (Presenter.ItemCab_Seguimientos.COPE_Codigo != null) { Presenter.COPE_Codigo = Presenter.ItemCab_Seguimientos.COPE_Codigo.Value; } if (Presenter.ENTC_CodCliente != 0) { ENTC_CodigoEntidad.SetValue(Presenter.ENTC_CodCliente); } else { ENTC_CodigoEntidad.ClearValue(); } /* falta deposito temporal */ //Presenter.ItemCab_Seguimientos.CSEG_FechaEmision = DateTime.Now; } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.SetItem, ex); } }
public void ClearItem(string xTipoTarifa) { try { switch (xTipoTarifa) { case "L": /* Logistico */ CbTipoEntidad.SelectedIndex = 0; ENTC_CodigoEntidad.ClearValue(); txtCosto20.Value = 0; txtCostoSada20.Value = 0; txtCosto40.Value = 0; txtCostoSada40.Value = 0; txtHBL.Value = 0; txtHBLSada.Value = 0; break; case "A": /* Aduana */ CbBase.SelectedIndex = 0; txtMinimo.Value = 0; txtCostoAduTransp.Value = 0; break; case "T": /* Transporte */ txtCostoAduTransp.Value = 0; CbTipo.SelectedIndex = 0; CbBase.SelectedIndex = 0; txtMinimo.Value = 0; CbOrigen.SelectedIndex = 0; CbDestino.SelectedIndex = 0; chkRoundtrip.Checked = false; break; } } catch (Exception ex) { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.ClearItem, ex); } }