public static ResultadoTransaccion GuardarPreAlerta(PaperlessPreAlerta info) { return(AccesoDatos.Paperless.clsPaperlessADO.GuardarPreAlerta(info)); }
public static ResultadoTransaccion CambiaEstadoCancelacionPreAlerta(PaperlessPreAlerta info) { return(AccesoDatos.Paperless.clsPaperlessADO.CambiaEstadoCancelacionPreAlerta(info)); }
public void CargarFormulario() { PaperlessPreAlerta PreAlerta = LogicaNegocios.Paperless.Paperless.ObtenerPreAlertaPorNumConsolidada(PaperlessPreAlertaActual.NumConsolidada); if (PreAlerta != null) { PaperlessPreAlertaActual = PreAlerta; txtNumConsolidada.Text = PreAlerta.NumConsolidada; ddlAgente.SelectedItem = PreAlerta.Agente; ddlNaviera.SelectedItem = PreAlerta.Naviera; txtNave.Text = PreAlerta.Nave.Nombre; ddlNave.SelectedItem = PreAlerta.Nave; if (PreAlerta.FechaSalida == null) { txtFechaSalida.Text = ""; } else { txtFechaSalida.Text = PreAlerta.FechaSalida.Value.ToShortDateString(); } if (PreAlerta.FechaLlegada == null) { txtFechaLlegada.Text = ""; } else { txtFechaLlegada.Text = PreAlerta.FechaLlegada.Value.ToShortDateString(); } ddlPuertoOrigen.SelectedItem = PreAlerta.PuertoOrigen; ddlPuertoDestino.SelectedItem = PreAlerta.PuertoDestino; if (PreAlerta.FechaRecibimiento == null) { txtFechaCierrePreAlerta.Text = ""; } else { txtFechaCierrePreAlerta.Text = PreAlerta.FechaRecibimiento.Value.ToShortDateString(); } txtNumMaster.Text = PreAlerta.NumMaster; if (PaperlessPreAlertaActual.Estado.Nombre.Equals("Cerrado") || PaperlessPreAlertaActual.Estado.Nombre.Equals("Vinculado")) { chkCerrarPreAlerta.Checked = true; } else { chkCerrarPreAlerta.Checked = false; } } }