Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         cEnterprise enterprise = _business.GetEnterprise();
         wucContact._enterprise = enterprise;
     }
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rptFaq.DataSource = _business.GetFaq();
                rptFaq.DataBind();

                cEnterprise enterprise = _business.GetEnterprise();
                wucContact._enterprise = enterprise;
            }
        }
Exemplo n.º 3
0
        public cEnterprise GetEnterprise()
        {
            ACAD_ACADEMIAS academy    = GetAcademy();
            cEnterprise    enterprise = new cEnterprise()
            {
                enterpriseId = academy.CD_ACADEMIA,
                description  = academy.TX_DESCRICAO,
                email        = academy.TX_EMAIL,
                tel          = academy.TX_TEL
            };

            return(enterprise);
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                cEnterprise enterprise = _business.GetEnterprise();
                imgAbout.ImageUrl = "assets/" + _enterpriseId.ToString() + "/about/about.jpg";
                ltAbout.Text      = enterprise.description;

                cTestimonial testimonial = _business.GetTestimonials().FirstOrDefault();
                ltTestimonial.Text      = testimonial.testimonial;
                ltTestimonialName.Text  = testimonial.autor;
                ltTestimonialLocal.Text = testimonial.local;

                wucContact._enterprise = enterprise;
            }
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List <cArea> areas = _business.GetCourses();
                rptTabs.DataSource = areas;
                rptTabs.DataBind();

                rptTab.DataSource = areas;
                rptTab.DataBind();

                cEnterprise enterprise = _business.GetEnterprise();
                wucContact._enterprise = enterprise;

                wucTestimonials._testimonials = _business.GetTestimonials();
                wucTestimonials._enterpriseId = _enterpriseId;
            }
        }