Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            preurl = ConfigurationSettings.AppSettings.Get("urldata");
            width  = Request.QueryString["w"];
            cipher = Request.QueryString["link"];
            if (!IsPostBack)
            {
                lang = ConvertUtility.ToInt32(Request.QueryString["lang"]);
                if (lang == 1)
                {
                    lblTitle.Text    = "MÁY ATM";
                    ltrMienphi1.Text = "(Dịch vụ miễn phí)";
                    ltrMienphi.Text  = "(Dịch vụ miễn phí)";
                }
            }
            //Get ATM
            DataTable dtATM = BCBController.GetAllBankName();

            rptAtm.DataSource     = dtATM;
            rptAtm.ItemDataBound += new RepeaterItemEventHandler(rptAtm_ItemDataBound);;
            rptAtm.DataBind();
            //Get Taxi
            DataTable dtTaxi = BCBController.GetAllCity();

            rptTaxi.DataSource     = dtTaxi;
            rptTaxi.ItemDataBound += new RepeaterItemEventHandler(rptTaxi_ItemDataBound);;
            rptTaxi.DataBind();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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";
                }
            }
        }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
            width = Request.QueryString["w"];
            catid = ConvertUtility.ToInt32(Request.QueryString["catid"]);
            //Get Taxi by city
            DataTable dtTaxi = BCBController.GetAllTaxyByCity(catid);

            rptTaxidetail.DataSource     = dtTaxi;
            rptTaxidetail.ItemDataBound += new RepeaterItemEventHandler(rptTaxidetail_ItemDataBound);;
            rptTaxidetail.DataBind();

            lang = ConvertUtility.ToInt32(Request.QueryString["lang"]);

            if (lang == 1)
            {
                lblTitle.Text = "<span class=\"trang\">" + dtTaxi.Rows[0]["province_name"].ToString().ToUpper() + "</span>";
            }
            else
            {
                lblTitle.Text = "<span class=\"trang\">" + UnicodeUtility.UnicodeToKoDau(dtTaxi.Rows[0]["province_name"].ToString().ToUpper()) + "</span>";
            }
        }