protected void Page_Load(object sender, EventArgs e) { width = Request.QueryString["w"]; catid = ConvertUtility.ToInt32(Request.QueryString["catid"]); cityid = ConvertUtility.ToInt32(Request.QueryString["id"]); cipher = Request.QueryString["link"]; DataTable dtbank = BCBController.GetBankNameByID(catid); DataTable dtbycity = BCBController.GetAllByCityID(cityid); if (!IsPostBack) { lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); if (lang == 1) { lnkAtm.Text = "<span class=\"trang\">" + dtbank.Rows[0]["name"].ToString().ToUpper() + "</span>"; lnkTitle.Text = "<span class=\"trang\">" + dtbycity.Rows[0]["CityName"].ToString().ToUpper() + "</span>"; } else { lnkAtm.Text = "<span class=\"trang\">" + dtbank.Rows[0]["name_kd"].ToString().ToUpper() + "</span>"; lnkTitle.Text = "<span class=\"trang\">" + dtbycity.Rows[0]["CityNamKD"].ToString().ToUpper() + "</span>"; } lnkAtm.NavigateUrl = UrlProcess.GetBankUrl(lang.ToString(), "listatm", width, catid.ToString()); lnkTitle.NavigateUrl = UrlProcess.GetBankByCityUrl(lang.ToString(), "listbycity", width, catid.ToString(), cityid.ToString()); } //Get City of ATM rptcity.DataSource = dtbycity; rptcity.ItemDataBound += new RepeaterItemEventHandler(rptcity_ItemDataBound);; rptcity.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { width = Request.QueryString["w"]; catid = ConvertUtility.ToInt32(Request.QueryString["catid"]); cipher = Request.QueryString["link"]; DataTable dtbank = BCBController.GetBankNameByID(catid); if (!IsPostBack) { lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); if (lang == 1) { lnkChanelHome.Text = "<span class=\"trang\">" + "MÁY ATM" + "</span>"; lnkCatName.Text = "<span class=\"trang\">" + dtbank.Rows[0]["name"].ToString().ToUpper() + "</span>"; } else { lnkChanelHome.Text = "<span class=\"trang\">" + "MÁY ATM" + "</span>"; lnkCatName.Text = "<span class=\"trang\">" + dtbank.Rows[0]["name_kd"].ToString().ToUpper() + "</span>"; } } lnkChanelHome.NavigateUrl = UrlProcess.GetYouNeedKnowHomeUrl(lang.ToString(), "home", width); lnkCatName.NavigateUrl = UrlProcess.GetBankUrl(lang.ToString(), "listatm", width, catid.ToString()); //Get City of ATM DataTable dtATM = BCBController.GetAllCityOfATM(); rptcity.DataSource = dtATM; rptcity.ItemDataBound += new RepeaterItemEventHandler(rptcity_ItemDataBound);; rptcity.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); width = Request.QueryString["w"]; bankid = ConvertUtility.ToInt32(Request.QueryString["catid"]); zoneid = ConvertUtility.ToInt32(Request.QueryString["id"]); DataTable dtdetail = BCBController.GetAllDetailByBankIDAndZoneID(bankid, zoneid); if (dtdetail.Rows.Count > 0) { if (lang == 1) { lnkAtm.Text = "<span class=\"trang\">" + dtdetail.Rows[0]["BankName"].ToString().ToUpper() + "</span>"; lnkTitle.Text = "<span class=\"trang\">" + dtdetail.Rows[0]["ZoneName"].ToString().ToUpper() + "</span>"; lblBankRelation.Text = "CÁC NGÂN HÀNG LIÊN MINH"; } else { lnkAtm.Text = "<span class=\"trang\">" + dtdetail.Rows[0]["BankNameKD"].ToString().ToUpper() + "</span>"; lnkTitle.Text = "<span class=\"trang\">" + dtdetail.Rows[0]["ZoneNameKD"].ToString().ToUpper() + "</span>"; } lnkAtm.NavigateUrl = UrlProcess.GetBankUrl(lang.ToString(), "listatm", width, bankid.ToString()); } //get relation bank rptbankRelation.DataSource = BCBController.GetAllBankNameRelation(ConvertUtility.ToInt32(BCBController.GetBankNameByID(bankid).Rows[0]["link_id"])); rptbankRelation.ItemDataBound += new RepeaterItemEventHandler(rptbankRelation_ItemDataBound);; rptbankRelation.DataBind(); //Get Detail of ATM if (dtdetail.Rows.Count > 0) { rptATMdetail.DataSource = dtdetail; rptATMdetail.ItemDataBound += new RepeaterItemEventHandler(rptATMdetail_ItemDataBound);; rptATMdetail.DataBind(); } else { lblThongbao.Visible = true; if (lang == 1) { lblBankRelation.Text = "CÁC NGÂN HÀNG LIÊN MINH"; lblThongbao.Text = "Không có máy ATM nào tại khu vực bạn tìm kiếm.<br />Bạn có thể tham khảo máy ATM của các ngân hàng liên minh"; } } }