/// <summary>
/// procedimiento que inicia la pagina correspondiente al diseno de la planilla
/// </summary>
public void PageLoad(HttpRequest request, bool hit, HttpServerUtility server)
{
DominioSKD.Entidades.Modulo14.Planilla pla =
(DominioSKD.Entidades.Modulo14.Planilla)FabricaEntidades.ObtenerPlanilla();
try
{
if (request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieId].ToString() != "")
{
idPlanilla = Convert.ToInt32(request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieId]);
pla.ID = idPlanilla;
vista.tipoPlanilla.Text = request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieTipo].ToString();
vista.planilla.Text = request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieNombre].ToString();
ComandoConsultarDiseñoPuro commando =
(ComandoConsultarDiseñoPuro)FabricaComandos.ObtenerComandoConsultarDiseñoPuro();
commando.Planilla = pla;
dis = commando.Ejecutar();
planilla1 = new DominioSKD.Entidades.Modulo14.Planilla(idPlanilla, vista.planilla.Text, true, vista.tipoPlanilla.Text);
if (!hit)
{
ComandoObtenerDatosPlanilla command =
(ComandoObtenerDatosPlanilla)FabricaComandos.ObtenerComandoObtenerDatosPlanilla();
command.IdPlanilla = idPlanilla;
List<String> datos = command.Ejecutar();
foreach (string dat in datos)
{
vista.comboDatos.Items.Add(dat);
}
vista.camposStatic.Text = RecursosPresentadorModulo14.ParteSuperior;
vista.camposStatic.Text += RecursosPresentadorModulo14.DatosPlanilla;
vista.camposStatic.Text += RecursosPresentadorModulo14.ParteSuperior;
vista.camposStatic.Text += RecursosPresentadorModulo14.FechaCreacionPlanilla;
vista.camposStatic.Text += RecursosPresentadorModulo14.FechaRetiro;
vista.camposStatic.Text += RecursosPresentadorModulo14.FechaRein;
vista.camposStatic.Text += RecursosPresentadorModulo14.Motivo;
vista.camposStatic.Text += RecursosPresentadorModulo14.ParteSuperior;
llenarCombo();
vista.CKEditor1.Text =
server.HtmlDecode(((DominioSKD.Entidades.Modulo14.Diseño)dis).Contenido);
}
request.Cookies[RecursosPresentadorModulo14.CookiePlanilla].Expires = DateTime.Now;
}
}
catch (ExcepcionesSKD.ExceptionSKDConexionBD ex)
{
Alerta(ex.Message);
}
catch (ExcepcionesSKD.Modulo14.BDDiseñoException ex)
{
Alerta(ex.Message);
}
catch (ExcepcionesSKD.Modulo14.BDDatosException ex)
{
Alerta(ex.Message);
}
catch (ExcepcionesSKD.Modulo14.BDPLanillaException ex)
{
Alerta(ex.Message);
}
catch (ExcepcionesSKD.Modulo14.BDSolicitudException ex)
{
Alerta(ex.Message);
}
catch (NullReferenceException ex)
{
// Alerta(ex.Message);
}
catch (Exception ex)
{
Alerta(ex.Message);
}
}