/// <summary> /// Get count /// </summary> private void GetIntro() { ContentStaticBLL pcBll = new ContentStaticBLL(); IList <PNK_ContentStatic> lst = pcBll.GetList(LangInt, string.Empty, ConfigurationManager.AppSettings["contentStatic_IntroByHome"], string.Empty, 1, 1, out total); if (total > 0) { imgIntro.Src = WebUtils.GetUrlImage(ConfigurationManager.AppSettings["ContentStaticUpload"], lst[0].Image); ltrIntroName.Text = lst[0].ContentStaticDesc.Title; ltrIntroBrief.Text = lst[0].ContentStaticDesc.Brief; } //ProductBLL pcBll = new ProductBLL(); //DataTable dtb = DBHelper.ExcuteFromCmd("SELECT * FROM dbo.fc_GetAllChildProductCategory(" + ConfigurationManager.AppSettings["contentStatic_IntroByHome"] + ",1)", null); //if (dtb != null && dtb.Rows.Count > 0) //{ // string[] array = dtb.AsEnumerable() // .Select(row => row.Field<Int32>("id").ToString()) // .ToArray(); // string idFirst = string.Join(",", array); // IList<PNK_Product> lst = pcBll.GetList(LangInt, string.Empty, string.Empty, idFirst, string.Empty, 1, 4, out total); // if (lst.Count > 0) // { // } //} }
/// <summary> /// Get website tiêu biểu /// </summary> private void GetWebsiteHot() { ContentStaticBLL pcBll = new ContentStaticBLL(); IList <PNK_ContentStatic> lst = pcBll.GetList(LangInt, string.Empty, ConfigurationManager.AppSettings["contentStatic_WebsiteHot"], string.Empty, 1, 1, out total); if (total > 0) { ltrWebsiteHot.Text = lst[0].ContentStaticDesc.Detail; } }
/// <summary> /// Get count /// </summary> private void GetHowToBook() { ContentStaticBLL pcBll = new ContentStaticBLL(); IList <PNK_ContentStatic> lst = pcBll.GetList(LangInt, string.Empty, ConfigurationManager.AppSettings["contentStatic_HowToBook"], string.Empty, 1, 1, out total); if (total > 0) { ltrHowToBook.Text = lst[0].ContentStaticDesc.Brief; } }
/// <summary> /// Get count /// </summary> private void GetCustomizeTours() { ContentStaticBLL pcBll = new ContentStaticBLL(); IList <PNK_ContentStatic> lst = pcBll.GetList(LangInt, string.Empty, ConfigurationManager.AppSettings["contentStatic_CustomTour"], string.Empty, 1, 1, out total); if (total > 0) { divCustomTour.Attributes.Add("style", "block"); ltrCustomTours.Text = lst[0].ContentStaticDesc.Brief; } }
/// <summary> /// Init page /// </summary> private void InitPage() { pcBll = new ContentStaticBLL(); genericBLL = new Generic <PNK_ContentStatic>(); generic2CBLL = new Generic2C <PNK_ContentStatic, PNK_ContentStaticDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); GetMessage(); }