/// <summary> /// Init page /// </summary> private void InitPage() { pcBll = new ProgramTourBLL(); genericBLL = new Generic <PNK_ProgramTour>(); generic2CBLL = new Generic2C <PNK_ProgramTour, PNK_ProgramTourDesc>(); this.template_path = WebUtils.GetWebPath(); msg_confirm_delete_item = LocalizationUtility.GetText("mesConfirmDelete"); msg_no_selected_item = LocalizationUtility.GetText("mesSelectItem"); LocalizationUtility.SetValueControl(this); GetId(); GetMessage(); }
private void GetDetail() { ProgramTourBLL pcBll = new ProgramTourBLL(); IList <PNK_ProgramTour> lst = null; string level = string.Empty; if (Session["level"] != null) { switch (level) { case "1": lst = pcBll.GetList(LangInt, pageName, string.Empty, string.Empty, 1, 9999, out total); //lst = pcBll.GetList(LangInt, pageName, string.Empty, string.Empty, string.Empty, null, string.Empty, 1, 9999, out total); break; case "2": lst = pcBll.GetList(LangInt, cid, string.Empty, string.Empty, 1, 9999, out total); //lst = pcBll.GetList(LangInt, cid, string.Empty, string.Empty, string.Empty, null, string.Empty, 1, 9999, out total); break; case "3": lst = pcBll.GetList(LangInt, cidsub, string.Empty, string.Empty, 1, 9999, out total); //lst = pcBll.GetList(LangInt, cidsub, string.Empty, string.Empty, string.Empty, null, string.Empty, 1, 9999, out total); break; case "4": default: lst = pcBll.GetList(LangInt, string.Empty, string.Empty, ProductId, 1, 9999, out total); break; } } if (total > 0) { rptResult.DataSource = lst; rptResult.DataBind(); } }