protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web);
                productServiceBo      = new ProductService(SPContext.Current.Web);

                serviceId = Request.QueryString["serviceId"];
                var catId = Request.QueryString["catId"];

                if (serviceId != null)
                {
                    int id = 0;
                    if (int.TryParse(serviceId, out id))
                    {
                        var currentItem = productServiceBo.get_ProductSeviceInfoById(serviceId);
                        if (currentItem != null)
                        {
                            parrentId = currentItem.SubServiceValue != null ? currentItem.SubServiceValue.LookupId : 0;
                        }
                    }
                }

                ParentRepeater.DataSource = productServiceGroupBo.get_ProductsServicesGroup(catId);
                ParentRepeater.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            serviceId = Request.QueryString["serviceId"];
            catId     = Request.QueryString["catId"];
            type      = Request.QueryString["type"];

            if (!IsPostBack)
            {
                var productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web);
                productServiceBo = new ProductService(SPContext.Current.Web);
                var productService = CacheData();
                ltProductServiceGroup.Text = productService.catValue;
                ltProductServices.Text     = productService.Title;


                if (serviceId != null)
                {
                    int id = 0;
                    if (int.TryParse(serviceId, out id))
                    {
                        parrentId = productService.SubServiceValue != null ? productService.SubServiceValue.LookupId : 0;

                        GetContentProductService(productService);
                    }
                }

                ParentRepeater.DataSource = productServiceGroupBo.get_ProductsServicesGroup(web, catId);
                ParentRepeater.DataBind();
            }
        }
示例#3
0
 //CARGA DE AGENDA
 private void CargarAgendaActividad()
 {
     if (Session["id_Participante"] != null)
     {
         int idevento = int.Parse(Session["id_Evento"].ToString());
         //List<pa_ObtenerListaActividadesPorIDEvento_Result> listAgenda = actividadService.obtenerListaActividadesPorIDEvento(new obtenerListaActividadesPorIDEventoParams { id_Evento = idevento, codigoTipoActividad = "00", codIdioma = Session["codIdioma"].ToString() });
         //List<pa_ObtenerListaActividadesPorIDParticipante_Result> listAgenda = actividadService.obtenerListaActividadesPorIDParticipante(new EventosBCRPFrontEnd.Models.Params.obtenerListaActividadesPorIDParticipanteParams { id_Participante = int.Parse(Session["id_Participante"].ToString()), codigoTipoActividad = "01", codIdioma = Session["codIdioma"].ToString() });
         List <pa_ObtenerListaActividadesPorIDParticipante_Result> listAgenda = actividadService.obtenerListaActividadesPorIDParticipante(new EventosBCRPFrontEnd.Models.Params.obtenerListaActividadesPorIDParticipanteParams {
             id_Participante = int.Parse(Session["id_Participante"].ToString()), codigoTipoActividad = "00", codIdioma = Session["codIdioma"].ToString()
         });
         if (listAgenda != null)
         {
             ParentRepeater.DataSource = listAgenda.GroupBy(q => q.CabeceraFecha).Select(group => new { CabeceraFecha = group.Key }).ToList();
             ParentRepeater.DataBind();
             //GridViewAgendaActividad.DataSource = listAgenda;
             //GridViewAgendaActividad.DataBind();
         }
         else
         {
             D05.InnerText = "No hay registros a mostrar! ";
             D05.Visible   = true;
         }
     }
     else
     {
         D05.InnerText = "No hay datos de <Participante> a consultar!";
         D05.Visible   = true;
     }
 }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            serviceId = Request.QueryString["serviceId"];
            var catId = Request.QueryString["catId"];


            if ((string.IsNullOrEmpty(serviceId) || string.IsNullOrEmpty(catId)))
            {
                productServiceGroupBo.get_ProductServiceFirst(out catId, out serviceId);
            }

            ParentRepeater.DataSource = productServiceGroupBo.get_ProductsServicesGroup(catId);
            ParentRepeater.DataBind();
        }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["id_Participante"] != null)
     {
         List <pa_ObtenerListaActividadesPorIDParticipante_Result> listAgenda = actividadService.obtenerListaActividadesPorIDParticipante(new obtenerListaActividadesPorIDParticipanteParams {
             id_Participante = int.Parse(Session["id_Participante"].ToString()), codigoTipoActividad = "02", codIdioma = Session["codIdioma"].ToString()
         });
         ParentRepeater.DataSource = listAgenda.GroupBy(q => q.CabeceraFecha).Select(group => new { CabeceraFecha = group.Key }).ToList();
         ParentRepeater.DataBind();
     }
     else
     {
     }
 }
示例#6
0
 private void loadCategoryNews()
 {
     using (SqlConnection conn = new SqlConnection(sCnStr))
     {
         conn.Open();
         SqlCommand comm = new SqlCommand();
         comm.Connection  = conn;
         comm.CommandType = CommandType.StoredProcedure;
         comm.CommandText = "SP_doGetCategory";
         SqlDataAdapter da = new SqlDataAdapter(comm);
         DataTable      dt = new DataTable();
         da.Fill(dt);
         ParentRepeater.DataSource = dt;
         ParentRepeater.DataBind();
     }
 }
示例#7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session == null || Session.Count == 0)
     {
         Response.Redirect("../../Login.aspx");
     }
     if (Session["id_Participante"] != null)
     {
         List <pa_ObtenerListaActividadesPorIDParticipante_Result> listAgenda = actividadService.obtenerListaActividadesPorIDParticipante(new obtenerListaActividadesPorIDParticipanteParams {
             id_Participante = int.Parse(Session["id_Participante"].ToString()), codigoTipoActividad = "00", codIdioma = Session["codIdioma"].ToString()
         });
         ParentRepeater.DataSource = listAgenda.GroupBy(q => q.CabeceraFecha).Select(group => new { CabeceraFecha = group.Key }).ToList();
         ParentRepeater.DataBind();
     }
     else
     {
     }
     pintarPlantilla();
     obtenerDatosPantalle();
 }