protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; id = ConvertUtility.ToInt32(Request.QueryString["id"]); DataTable dtDetail = HinhNenController.GetWallpaperDetailByID(Session["telco"].ToString(), id); switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "WP", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", Request.QueryString["id"] + "Thu phap: " + dtDetail.Rows[0]["WTitle_Unicode"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } }
protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY", price, "D", "RELAX", "dangkydoctruyen"); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY", price, "D", "RELAX", "dangkydoctruyen", out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY", price, "D", "RELAX", "dangkydoctruyen"); } if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { WapController.W4A_Subscriber_Insert(Session["msisdn"].ToString(), 1, 30, "wap4a"); // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } }
protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "KQXS", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "LOTOLASTRESULT", "LAST_RESULT"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "LOTOLASTRESULT", "LAST_RESULT", price, "D", "KQXS", Request.QueryString["id"]); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } }
protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; DataTable dtDetail = GameController.GetGameDetailByID(Session["telco"].ToString(), id); switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "JG", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "JG", Request.QueryString["id"] + "|Game: " + dtDetail.Rows[0]["GameName"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true, price); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true, "0"); } break; } }
protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; try { WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"]); ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("---" + messageReturn + "---"); if (messageReturn == "1") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } } catch (Exception ex) { ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("----------Lỗi charging----------------------"); logger.Debug("MSISDN:" + Session["msisdn"].ToString()); logger.Debug(ex.ToString()); } }
protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "RELAX", "dangkydoctruyen"); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY", price, "D", "RELAX", "dangkydoctruyen"); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { WapController.W4A_Subscriber_Insert(Session["msisdn"].ToString(), 1, 30, "wap4a"); // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } }
protected void btnOK_Click(object sender, EventArgs e) { if (Session["msisdn"] == null) { Data data = Controller.GetDataDetail(id); title = data.name; image = data.image; link = data.linkfile; view = data.views; time = data.time; HienThiNoiDung(data); } else { Data data = Controller.GetDataDetail(id); title = data.name; image = data.image; link = data.linkfile; view = data.views; time = data.time; int status = 1; string debit_status = string.Empty; string type = "VIDEO"; DateTime sentTime = DateTime.Now; int partnerId = 60; WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price.ToString(), "D", "VID", Request.QueryString["id"]); if (messageReturn == "1") { status = 0; HienThiNoiDung(data); Session["transactionid"] = null; } DBController.Transaction_Insert_New(id.ToString(), title, 5, Session["msisdn"].ToString(), 3, 0, price, partnerId, ConvertUtility.ToDecimal(DateTime.Now.ToString("yyyyMMddHHmmss")), DateTime.Now, "debit_status: " + debit_status, status); } }
protected void Page_Load(object sender, EventArgs e) { int is3g = 0; string msisdn = MobileUtils.GetMSISDN(out is3g); if (!string.IsNullOrEmpty(msisdn) && MobileUtils.CheckOperator(msisdn, "vietnammobile")) { Session["telco"] = Constant.T_Vietnamobile; Session["msisdn"] = msisdn; } else { Session["msisdn"] = null; Session["telco"] = Constant.T_Undefined; } if (Session["msisdn"] != null) { WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); string messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "", "", "3000", "D", "RELAX", "DK MN 943"); if (messageReturn == "1") { MOProcessor obj = new MOProcessor(); obj.ProcessMO("DK", "943", Session["msisdn"].ToString(), "DK MN", DateTime.Now.ToString("yyyyMMddHHmmss")); } else { pnlSMS.Visible = true; ltrSMS.Text = "Bạn vui lòng soạn tin theo cú pháp <b>DK MN</b> gửi <b>943</b>"; } } else { pnlSMS.Visible = true; ltrSMS.Text = "Bạn vui lòng soạn tin theo cú pháp <b>DK MN</b> gửi <b>943</b>"; } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("gameprice"); lang = Request.QueryString["lang"]; hotro = Request.QueryString["hotro"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); if (id == 1402 || id == 1401) { price = "15000"; } SoDT = Request.QueryString["sdt"]; telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetGameHomeUrl(lang, width.ToString(), hotro).Replace("~/", "") + "\" >GAME<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; //Nếu số điện thoại không hợp lệ thì hướng dẫn if (!MobileUtils.IsMobileNumber(SoDT)) { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe; } else { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe_KD; } return; } DataTable dtDetail = GameController.GetGameDetailByID(Session["telco"].ToString(), id); if (ConfigurationSettings.AppSettings.Get("freecate").IndexOf("," + dtDetail.Rows[0]["W_GameCategoryID"].ToString() + ",") > -1 || (",1712,1713,").IndexOf("," + id.ToString() + ",") > -1) { freecate = true; HienThiNoiDung(true); return; } if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("gamecode") + " " + dtDetail.Rows[0]["Game_Code"].ToString() + " " + SoDT + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("gamecommandcode") + "</b> để gửi tặng game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b>" + Resources.Resource.wChon3G; if (id == 1402 || id == 1401) { ltrSMS.Text = "Soạn tin <b>HOT " + SoDT + "</b> gửi <b>333</b> để gửi tặng game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b>" + Resources.Resource.wChon3G; } } else { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("gamecode") + " " + dtDetail.Rows[0]["Game_Code"].ToString() + " " + SoDT + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("gamecommandcode") + "</b> de gui tang game <b>" + dtDetail.Rows[0]["GameName"].ToString() + "</b>" + Resources.Resource.wChon3G_KD; if (id == 1402 || id == 1401) { ltrSMS.Text = "Soan tin <b>HOT " + SoDT + "</b> gui <b>333</b> de gui tang game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b>" + Resources.Resource.wChon3G_KD; } } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu + "game " + dtDetail.Rows[0]["GameNameUnicode"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD + "game " + dtDetail.Rows[0]["GameName"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "JG", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEGIFT", "GAME_GIFT"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEGIFT", "GAME_GIFT", price, "D", "JG", Request.QueryString["id"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("videoprice"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetVideoHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >VIDEO<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; DataTable dtDetail = VideoController.GetVideoDetailByID(Session["telco"].ToString(), id); // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("videocode") + " " + dtDetail.Rows[0]["VID"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> để tải video <b>" + dtDetail.Rows[0]["VTitle_Unicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("videocode") + " " + dtDetail.Rows[0]["VID"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> de tai video <b>" + dtDetail.Rows[0]["VTitle"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "VID", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"]); ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("---" + messageReturn + "---"); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); telCo = Session["telco"].ToString(); parentCatID = 255;//Đọc truyện price = ConfigurationSettings.AppSettings.Get("relaxtruyenprice"); linkStr = "<a href=\"../" + UrlProcess.GetRelaxHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >THƯ GIÃN<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetRelaxHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >THU GIAN<a>"; chitietGiaodich = "Đọc truyện: thuê bao tháng 255 -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]); if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Bạn vui lòng" + Resources.Resource.wChon3G.Remove(0, 10); } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Ban vui long" + Resources.Resource.wChon3G_KD.Remove(0, 10); } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "RELAX", "dangkydoctruyen"); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "RELAXSTORYMONTHLY", "READ_MONTHLY", price, "D", "RELAX", "dangkydoctruyen"); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { WapController.W4A_Subscriber_Insert(Session["msisdn"].ToString(), 1, 30, "wap4a"); // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { string partnerid = string.Empty; try { DesSecurity des = new DesSecurity(); string token = des.Des3Decrypt(Request.QueryString["c"], AppEnv.GetSetting("msisdnkey")); logger.Debug("token =" + token); logger.Debug("c =" + Request.QueryString["c"]); DataTable dtTrans = DBController.Transaction_Online_GetByToken(token); if (dtTrans != null && dtTrans.Rows.Count > 0) { //logger.Debug("dtTrans.Rows.Count =" + dtTrans.Rows.Count); int status = 1; string debit_status = string.Empty; string strType = Constant.pmContentTypeVNM[ConvertUtility.ToInt32(dtTrans.Rows[0]["ItemType"])]; partnerid = dtTrans.Rows[0]["PartnerID"].ToString(); WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); string productId = string.Empty; string productKey = string.Empty; string price = dtTrans.Rows[0]["Price"].ToString(); if (strType == "TEXT") { if (price == "1000") { productId = "RELAXSTORYREAD"; productKey = "READ"; } else if (price == "15000") { productId = "RELAXSTORYMONTHLY"; productKey = "READ_MONTHLY"; } else if (price == "2000") { productId = "RELAXLOVER"; productKey = "LOVER"; } else if (price == "3000") { productId = "RELAXPLACE"; productKey = "PLACE"; } else if (price == "5000") { productId = "RELAXADVISESEX"; productKey = "ADVISE_SEX"; } } else if (strType == "WP") { productId = "PICDOWN"; productKey = "PIC_DOWN"; } else if (strType == "TT") { productId = "FOOTBALLSUMARY"; productKey = "FOOTBALL_SUMARY"; } else if (strType == "JG") { productId = "GAMEDOWN"; productKey = "GAME_DOWN"; } else if (strType == "APP") { productId = "APPDOWN"; productKey = "APP_DOWN"; } else if (strType == "VID") { productId = "VIDEODOWN"; productKey = "VIDEO_DOWN"; } else if (strType == "YKCG") { productId = "FOOTBALLADVISE"; productKey = "FOOTBALL_ADVISE"; } else if (strType == "TIP") { productId = "FOOTBALLADVISE"; productKey = "FOOTBALL_ADVISE"; } else if (strType == "KQCHO") { productId = "FOOTBALLRESULT"; productKey = "FOOTBALL_RESULT"; } else if (strType == "KQXS") { productId = "LOTOLASTRESULT"; productKey = "LAST_RESULT"; } else if (strType == "SOICAU") { productId = "LOTOSOICAU"; productKey = "SOICAU"; } else if (strType == "XSKQCHO") { productId = "LOTORESULT"; productKey = "RESULT"; } else if (strType == "XOSO20") { productId = "LOTORESULTMONTHLY"; productKey = "RESULTMONTHLY"; } else if (strType == "RELAX") { productId = "RELAXSTORYREAD"; productKey = "READ"; } else if (strType == "GAME87") { productId = "FOOTBALLADVISE"; productKey = "FOOTBALL_RESULT"; } else if (strType == "Tu vi") { productId = "HOROSCOPE"; productKey = "HOROSCOPE"; } debit_status = charging.NavigatePaymentVnm(dtTrans.Rows[0]["msisdn"].ToString(), productId, productKey, price, "D", strType, UnicodeUtility.RemoveSpecialCharacter(UnicodeUtility.UnicodeToKoDau(dtTrans.Rows[0]["ItemDetail"].ToString()))); //debit_status = charging.PaymentVNM(dtTrans.Rows[0]["msisdn"].ToString(),productId,productKey); if (!string.IsNullOrEmpty(debit_status) && debit_status == "1") { // Thanh toán thành công >> trả nội dung status = 0; } //logger.Debug("debit_status =" + debit_status); //Tạo Transaction_Online mới string vTransactionID = DBController.Transaction_Online_Insert(dtTrans.Rows[0]["msisdn"].ToString(), 4, ConvertUtility.ToInt32(partnerid), "", ""); //Ghi Transaction, Transaction_Log, xoá Transaction_Online cũ DBController.Transaction_Insert_New(dtTrans.Rows[0]["ItemID"].ToString(), dtTrans.Rows[0]["ItemDetail"].ToString(), ConvertUtility.ToInt32(dtTrans.Rows[0]["ItemType"]), dtTrans.Rows[0]["msisdn"].ToString(), 4, 0, ConvertUtility.ToInt32(dtTrans.Rows[0]["Price"]), ConvertUtility.ToInt32(partnerid), ConvertUtility.ToDecimal(dtTrans.Rows[0]["TransactionID"]), ConvertUtility.ToDateTime(dtTrans.Rows[0]["Created"]), "debit_status: " + debit_status, status); WapController.Transaction_Online_Delete(dtTrans.Rows[0]["msisdn"].ToString()); //Trả kết quả qua URL if (status == 0) { if (AppEnv.GetSetting("ExceptPartner").IndexOf("|" + ConvertUtility.ToString(dtTrans.Rows[0]["PartnerID"]) + "|") > -1) { logger.Debug("http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "?&p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString())); Response.Redirect(@"http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "?&p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString()), false); //HttpContext.Current.ApplicationInstance.CompleteRequest(); return; } else { logger.Debug("http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "?p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString())); if (dtTrans.Rows[0]["CallBackUrl"].ToString().IndexOf("?") > -1) { Response.Redirect(@"http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "&p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString()), false); } else { Response.Redirect(@"http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "?p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString()), false); } //HttpContext.Current.ApplicationInstance.CompleteRequest(); return; } } else { if (dtTrans.Rows[0]["CallBackUrl"].ToString().IndexOf("?") > -1) { Response.Redirect("http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "&p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|-1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString()), false); } else { Response.Redirect("http://" + dtTrans.Rows[0]["Domain"].ToString() + dtTrans.Rows[0]["CallBackUrl"].ToString() + "?p=" + des.Des3Encrypt(dtTrans.Rows[0]["msisdn"].ToString() + "|-1|" + vTransactionID + "|" + dtTrans.Rows[0]["TransactionID"].ToString(), dtTrans.Rows[0]["KeyCode"].ToString()), false); } } } else { Response.Redirect("http://payment.xzone.vn/e.aspx", false); } } catch (Exception ex) { logger.Debug("Exception=" + ex.ToString()); Response.Redirect("http://payment.xzone.vn/e.aspx", false); //Response.Write(ex.ToString()); //Response.Redirect("http://payment.xzone.vn/sc.aspx?pid=" + partnerid); } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("goldprice"); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BONG DA<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; gameid = ThethaoController.GetAll_Sport87DetailByGame87ID(ConvertUtility.ToInt32(Request.QueryString["id"])).Rows[0]["PK_Game87_ID"].ToString(); DataSet ds87detail = ThethaoController.GetAll_Sport87_DetailBy_PK_Game87ID(gameid); if (!ConvertUtility.ToBoolean(ds87detail.Tables[0].Rows[0]["IsFull"])) { pnlThongBao.Visible = true; if (lang == "1") { ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); ltrThongBao.Text = ds87detail.Tables[1].Rows[0]["ContentValue"].ToString(); btnCo.Visible = false; btnKhong.Visible = false; } else { ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); ltrThongBao.Text = UnicodeUtility.UnicodeToKoDau(ds87detail.Tables[1].Rows[0]["ContentValue"].ToString()); btnCo.Visible = false; btnKhong.Visible = false; } } else { if (WapController.W4A_Subscriber_IsActive(ConvertUtility.ToString(Session["msisdn"]), 2)) { HienThiNoiDung(true, false); return; } // Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán if (Session["transactionid_old"] != null) { messageReturn = ConvertUtility.ToString(Session["debit_status"]); if (ConvertUtility.ToString(Session["debit_status"]) == "0") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } Session["transactionid_old"] = null; } else { //gameid = ThethaoController.GetAll_Sport87DetailByGame87ID(ConvertUtility.ToInt32(Request.QueryString["id"])).Rows[0]["PK_Game87_ID"].ToString(); if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.thethao + "9" + Request.QueryString["id"] + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; //Xiên if (Request.QueryString["id"] == "2") { ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("xiencode") + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("xiencommandcode") + "</b> để nhận chuỗi kèo xiên sáng nhất" + Resources.Resource.wChon3G; } //Trận cầu vàng if (Request.QueryString["id"] == "4") { ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("goldcode") + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("goldcommandcode") + "</b> để nhận thông tin về trận cầu ngon ăn nhất" + Resources.Resource.wChon3G; } //Tài Xỉu sáng nhất if (Request.QueryString["id"] == "5") { ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("tvtxcode") + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("tvtxcommandcode") + "</b> để nhận thông tin Tài Xỉu sáng nhất" + Resources.Resource.wChon3G; } //Trên dưới sáng nhất if (Request.QueryString["id"] == "6") { ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("tvtdcode") + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("tvtdcommandcode") + "</b> để nhận thông tin Trên Dưới sáng nhất" + Resources.Resource.wChon3G; } //Sáng nhất giải if (",1,3,7,8,9,10,11,12,".LastIndexOf("," + Request.QueryString["id"] + ",") >= 0) { ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("sangcode") + " <ma tran></b> gửi <b>" + ConfigurationSettings.AppSettings.Get("sangcommandcode") + "</b> để nhận thông tin Kèo sáng nhất giải" + Resources.Resource.wChon3G; } } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; if (Request.QueryString["id"] == "2") { ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("xiencode") + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("xiencommandcode") + "</b> de nhan chuoi keo xien sang nhat" + Resources.Resource.wChon3G; } if (Request.QueryString["id"] == "4") { ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("goldcode") + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("goldcommandcode") + "</b> de nhan thong tin ve tran cau ngon an nhat" + Resources.Resource.wChon3G_KD; } if (Request.QueryString["id"] == "5") { ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("tvtxcode") + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("tvtxcommandcode") + "</b> de nhan thong tin Tai Xiu sang nhat" + Resources.Resource.wChon3G_KD; } if (Request.QueryString["id"] == "6") { ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("tvtdcode") + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("tvtdcommandcode") + "</b> de nhan thong tin Tren Duoi sang nhat" + Resources.Resource.wChon3G_KD; } if (",1,3,7,8,9,10,11,12,".LastIndexOf("," + Request.QueryString["id"] + ",") >= 0) { ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("sangcode") + " <ma tran></b> gui <b>" + ConfigurationSettings.AppSettings.Get("sangcommandcode") + "</b> de nhan thong tin Keo sang nhat giai" + Resources.Resource.wChon3G_KD; } } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "dịch vụ tư vấn đặc biệt " + ds87detail.Tables[0].Rows[0]["Name"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "dich vu tu van dac biet " + ds87detail.Tables[0].Rows[0]["Name"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "GAME87", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", Request.QueryString["id"]); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } } } } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("gameprice"); lang = Request.QueryString["lang"]; hotro = Request.QueryString["hotro"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); if (id == 1402 || id == 1401) { price = "15000"; } telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetGameHomeUrlNew(lang, width.ToString(), hotro).Replace("~/", "") + "\" >GAME<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; DataTable dtDetail = GameController.GetGameDetailByID(Session["telco"].ToString(), id); if (ConfigurationSettings.AppSettings.Get("freecate").IndexOf("," + dtDetail.Rows[0]["W_GameCategoryID"].ToString() + ",") > -1 || (",1712,1713,").IndexOf("," + id.ToString() + ",") > -1) { freecate = true; HienThiNoiDung(true); return; } if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("gamecode") + " " + dtDetail.Rows[0]["Game_Code"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("gamecommandcode") + "</b> để tải game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; if (id == 1402 || id == 1401) { ltrSMS.Text = "Soạn tin <b>HOT</b> gửi <b>333</b> để tải game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; } } else { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("gamecode") + " " + dtDetail.Rows[0]["Game_Code"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("gamecommandcode") + "</b> de tai game <b>" + dtDetail.Rows[0]["GameName"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; if (id == 1402 || id == 1401) { ltrSMS.Text = "Soan tin <b>HOT</b> gui <b>333</b> de tai game <b>" + dtDetail.Rows[0]["GameNameUnicode"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; } } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "JG", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "JG", Request.QueryString["id"] + "|Game: " + dtDetail.Rows[0]["GameNameUnicode"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { catID = ConvertUtility.ToInt32(Request.QueryString["catid"]); if (catID == ConvertUtility.ToInt32(ConfigurationSettings.AppSettings.Get("thuphapid"))) { price = ConfigurationSettings.AppSettings.Get("thuphapprice"); } else { price = ConfigurationSettings.AppSettings.Get("wallprice"); } lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetWallpaperHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >HÌNH NỀN<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetWallpaperHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >HINH NEN<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; DataTable dtDetail = HinhNenController.GetWallpaperDetailByID(Session["telco"].ToString(), id); if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("wallcode") + " " + dtDetail.Rows[0]["WCode"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("wallcommandcode") + "</b> để tải hình nền <b>" + dtDetail.Rows[0]["WTitle_Unicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("wallcode") + " " + dtDetail.Rows[0]["WCode"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("wallcommandcode") + "</b> de tai hinh nen <b>" + dtDetail.Rows[0]["WTitle"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "WP", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", Request.QueryString["id"] + "Thu phap: " + dtDetail.Rows[0]["WTitle_Unicode"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("kqchoxsprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetXosoHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >XỔ SỐ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetXosoHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >XO SO<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; DataTable ds = XosoController.GetInfobyCompanyID(ConvertUtility.ToInt32(id)); // Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán if (Session["transactionid_old"] != null) { messageReturn = ConvertUtility.ToString(Session["debit_status"]); if (ConvertUtility.ToString(Session["debit_status"]) == "0") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } Session["transactionid_old"] = null; } else { if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.xoso + "x11" + id.ToString() + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("kqchoxscode") + " " + ds.Rows[0]["company_comment"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("kqchoxscommandcode") + "</b> để nhận kết quả xổ số trực tiếp" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("kqchoxscode") + " " + ds.Rows[0]["company_comment"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("kqchoxscommandcode") + "</b> de nhan ket qua xo so truc tiep" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDangKyDichVu + "kết quả chờ " + ds.Rows[0]["company_name"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDangKyDichVu_KD + "ket qua cho " + UnicodeUtility.UnicodeToKoDau(ds.Rows[0]["company_name"].ToString()); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "XSKQCHO", Request.QueryString["id"].ToString()); //ban dang chay //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "LOTOSOICAU", "SOICAU"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "LOTOSOICAU", "SOICAU", price, "D", "XSKQCHO", Request.QueryString["id"]); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("relaxprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); DataTable dtDetail = TintucController.GetNewsDetailHasCache(id); catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]); DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID); parentCatID = ConvertUtility.ToInt32(catInfo.Rows[0]["Zone_ParentID"]); chitietGiaodich = "Thu gian: " + catInfo.Rows[0]["Zone_Name"].ToString() + " -- id: " + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]); linkStr = "<a href=\"../" + UrlProcess.GetRelaxHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >THƯ GIÃN<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetRelaxHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >THU GIAN<a>"; switch (parentCatID.ToString()) { case "258": //Cẩm nang tư vấn if (catID == 264) //Sex và cuộc sống { price = ConfigurationSettings.AppSettings.Get("relaxsexprice"); ProductId = "RELAXADVISESEX"; Keyword = "ADVISE_SEX"; } else { price = ConfigurationSettings.AppSettings.Get("relaxtuvanprice"); ProductId = "RELAXADVISEBOOK"; Keyword = "ADVISE_BOOK"; } break; case "121": //Gửi lời yêu thương price = ConfigurationSettings.AppSettings.Get("relaxtuvanprice"); ProductId = "RELAXLOVER"; Keyword = "LOVER"; break; case "268": //Địa điểm ăn chơi price = ConfigurationSettings.AppSettings.Get("relaxanchoiprice"); ProductId = "RELAXPLACE"; Keyword = "PLACE"; break; case "255": //Đọc truyện price = ConfigurationSettings.AppSettings.Get("relaxprice"); ProductId = "LOTOLASTRESULT"; Keyword = "LAST_RESULT"; break; default: price = ConfigurationSettings.AppSettings.Get("relaxprice"); ProductId = "HOROSCOPE"; Keyword = "HOROSCOPE"; break; } if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Bạn vui lòng" + Resources.Resource.wChon3G.Remove(0, 10); } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Ban vui long" + Resources.Resource.wChon3G_KD.Remove(0, 10); } } else { if (parentCatID.ToString() == "255" && WapController.W4A_Subscriber_IsActive(Session["msisdn"].ToString(), 1)) { HienThiNoiDung(true, false); } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "RELAX", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), ProductId, Keyword); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } } } }
protected void Page_Load(object sender, EventArgs e) { try { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("relaxsexprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); DataTable dtDetail = TintucController.GetNewsDetailHasCache(id); catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]); DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID); parentCatID = ConvertUtility.ToInt32(catInfo.Rows[0]["Zone_ParentID"]); chitietGiaodich = "Thu gian: " + catInfo.Rows[0]["Zone_Name"].ToString() + " -- id: " + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]); linkStr = "<a href=\"../" + UrlProcess.GetTinTucNewHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >TIN TỨC<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetTinTucNewHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >TIN TUC<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Bạn vui lòng soạn tin theo cú pháp <b>TTHN</b> gửi <b>8579</b>"; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Ban vui long soan tin theo cu phap <b>TTHN</b> gửi <b>8579</b>"; } } else { if (IsCharging(Session["msisdn"].ToString()) == false) { WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == "1") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { TintucController.Cancel(Session["msisdn"].ToString()); // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } } else { HienThiNoiDung(true, true); } } } } catch (Exception ex) { ILog logger = log4net.LogManager.GetLogger("File"); logger.Debug("--------------------------------------------------"); logger.Debug("ex:" + ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("tipprice"); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BONG DA<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; gameid = Request.QueryString["id"];//ThethaoController.GetSport_GameDetailBySportID(ConvertUtility.ToInt32(Request.QueryString["id"])).Rows[0]["PK_Game_ID"].ToString(); DataTable ykcg = ThethaoController.GetDetail_Tip_ByGameID(gameid); if (WapController.W4A_Subscriber_IsActive(ConvertUtility.ToString(Session["msisdn"]), 2)) { HienThiNoiDung(true, false); return; } // Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán if (Session["transactionid_old"] != null) { messageReturn = ConvertUtility.ToString(Session["debit_status"]); if (ConvertUtility.ToString(Session["debit_status"]) == "0") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } Session["transactionid_old"] = null; } else { gameid = Request.QueryString["id"];//ThethaoController.GetSport_GameDetailBySportID(ConvertUtility.ToInt32(Request.QueryString["id"])).Rows[0]["PK_Game_ID"].ToString(); if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.thethao + "7" + Request.QueryString["id"] + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("tipcode") + " " + ykcg.Rows[0]["Code"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("tipcommandcode") + "</b> để nhận tư vấn về trận đấu" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("tipcode") + " " + ykcg.Rows[0]["Code"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("tipcommandcode") + "</b> de nhan tu van ve tran dau" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "dịch vụ tư vấn trận " + ykcg.Rows[0]["Team_Name1"].ToString() + " - " + ykcg.Rows[0]["Team_Name2"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD + "dich vu tu van tran " + ykcg.Rows[0]["Team_Name1"].ToString() + " - " + ykcg.Rows[0]["Team_Name2"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "TIP", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "TIP", Request.QueryString["id"]); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } } } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("videopriceView"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = Session["telco"].ToString(); linkStr = "<a href=\"../" + UrlProcess.GetVideoHomeUrlNew(lang, width.ToString()).Replace("~/", "") + "\" >VIDEO<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; if (Session["transactionid_old"] != null) {// Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán messageReturn = ConvertUtility.ToString(Session["debit_status"]); if (ConvertUtility.ToString(Session["debit_status"]) == "0") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } Session["transactionid_old"] = null; } else { DataTable dtDetail = VideoController.GetVideoDetailByID(Session["telco"].ToString(), id); if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.clipchung + "0" + id.ToString() + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("videocode") + " " + dtDetail.Rows[0]["VID"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> để tải video <b>" + dtDetail.Rows[0]["VTitle_Unicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("videocode") + " " + dtDetail.Rows[0]["VID"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> de tai video <b>" + dtDetail.Rows[0]["VTitle"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; } } else { pnlThongBao.Visible = false; try { switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "VID", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "VID", Request.QueryString["id"]); ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("---" + messageReturn + "---"); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } catch (Exception ex) { ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("----------Lỗi charging----------------------"); logger.Debug("MSISDN:" + Session["msisdn"].ToString()); logger.Debug(ex.ToString()); logger.Debug("----------Lỗi charging----------------------"); } } } } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("appprice"); lang = Request.QueryString["lang"]; hotro = Request.QueryString["hotro"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"../" + UrlProcess.GetAppHomeUrl(lang, width.ToString(), hotro).Replace("~/", "") + "\" >PHẦN MỀM<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetAppHomeUrl(lang, width.ToString(), hotro).Replace("~/", "") + "\" >PHAN MEM<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD DataTable dtDetail = PhanmemController.GetAPPDetailByID(Session["telco"].ToString(), id); if (dtDetail.Rows[0]["Web_Name"].ToString() == "Vmg_zone") { price = "15000"; } if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.ungdungchung + id.ToString() + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("appcode") + " " + dtDetail.Rows[0]["AppID"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("appcommandcode") + "</b> để tải phần mềm <b>" + dtDetail.Rows[0]["AppNameUnicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("appcode") + " " + dtDetail.Rows[0]["AppID"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("appcommandcode") + "</b> de tai phan mem <b>" + dtDetail.Rows[0]["AppName"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "phần mềm " + dtDetail.Rows[0]["AppNameUnicode"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD + "phan mem " + dtDetail.Rows[0]["AppName"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "APP", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "APPDOWN", "APP_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "APPDOWN", "APP_DOWN", price, "D", "APP", Request.QueryString["id"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); telCo = Session["telco"].ToString(); price = ConfigurationSettings.AppSettings.Get("bongdathangprice"); linkStr = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrlNew(lang, "home", width.ToString()).Replace("~/", "") + "\" >BONG DA<a>"; chitietGiaodich = "Bong da: thue bao ngay -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]); if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Bạn vui lòng" + Resources.Resource.wChon3G.Remove(0, 10); } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Ban vui long" + Resources.Resource.wChon3G_KD.Remove(0, 10); } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDangKyDichVu + "dịch vụ bóng đá trọn gói."; // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDangKyDichVu_KD + "dich vu bong da tron goi."; // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "GAME87", "dangkythethao"); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", "dangkythethao"); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung WapController.W4A_Subscriber_Insert(Session["msisdn"].ToString(), 2, 1, "wap4a"); HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("kqxsprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); day = ConvertUtility.ToInt32(Request.QueryString["day"]); telCo = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"../" + UrlProcess.GetXosoHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >XỔ SỐ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetXosoHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >XO SO<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; DataTable Detail = XosoController.GetKQXSDetailbyCompanyID(id, DateTime.Now.AddDays(-day)); #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD // Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán if (Session["transactionid_old"] != null) { messageReturn = ConvertUtility.ToString(Session["debit_status"]); if (ConvertUtility.ToString(Session["debit_status"]) == "0") {// Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else {// Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } Session["transactionid_old"] = null; } else { if (telCo == Constant.T_Mobifone) { string content = Session["cpid"].ToString() + "&" + Constant.xoso + id.ToString() + "@" + day + "&" + price + "&" + Session["transactionid"].ToString(); Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")))); } // if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("kqxscode") + " " + Detail.Rows[0]["company_comment"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("kqxscommandcode") + "</b> để nhận kết quả xổ số mới nhất" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("kqxscode") + " " + Detail.Rows[0]["company_comment"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("kqxscommandcode") + "</b> de nhan ket qua xo so moi nhat" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "kết quả " + Detail.Rows[0]["company_name"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanDichVu + "ket qua " + UnicodeUtility.UnicodeToKoDau(Detail.Rows[0]["company_name"].ToString()); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "KQXS", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "LOTOLASTRESULT", "LAST_RESULT"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "LOTOLASTRESULT", "LAST_RESULT", price, "D", "KQXS", Request.QueryString["id"]); if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } } #endregion DataSet ds = XosoController.GetDetail_LotAndOtherLot(ConvertUtility.ToInt32(Detail.Rows[0]["lot_id"]), id, 6); rptOther.DataSource = ds.Tables[1]; rptOther.ItemDataBound += new RepeaterItemEventHandler(rptOther_ItemDataBound);; rptOther.DataBind(); if (lang == "1") { lblOther.Text = "XEM TIẾP"; } } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); SoDT = Request.QueryString["sdt"]; telCo = Session["telco"].ToString(); id = ConvertUtility.ToInt32(Request.QueryString["id"]); catID = ConvertUtility.ToInt32(Request.QueryString["catid"]); DataTable dtDetail = HinhNenController.GetWallpaperDetailByID(telCo, id); if (catID == ConvertUtility.ToInt32(ConfigurationSettings.AppSettings.Get("thuphapid"))) { price = ConfigurationSettings.AppSettings.Get("thuphapprice"); } else { price = ConfigurationSettings.AppSettings.Get("wallprice"); } linkStr = "<a href=\"../" + UrlProcess.GetWallpaperHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >HÌNH NỀN<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetWallpaperHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >HINH NEN<a>"; if (!IsPostBack) { if (width == 0) { width = (int)Constant.DefaultScreen.Standard; } ltrWidth.Text = "<meta content=\"width=" + width.ToString() + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; //Nếu số điện thoại không hợp lệ thì hướng dẫn if (!MobileUtils.IsMobileNumber(SoDT)) { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe_KD; } return; } if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("wallcode") + " " + dtDetail.Rows[0]["WCode"].ToString() + " " + SoDT + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("wallcommandcode") + "</b> để gửi tặng hình nền <b>" + dtDetail.Rows[0]["WTitle_Unicode"].ToString() + "</b>" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("wallcode") + " " + dtDetail.Rows[0]["WCode"].ToString() + " " + SoDT + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("wallcommandcode") + "</b> de gui tang hinh nen <b>" + dtDetail.Rows[0]["WTitle"].ToString() + "</b>" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = linkStr + " » " + Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu + "hình nền " + dtDetail.Rows[0]["WTitle_Unicode"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD + "hinh nen " + dtDetail.Rows[0]["WTitle"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": WapXzone_VNM.Library.VNMCharging.VNMChargingGW charging = new WapXzone_VNM.Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "WP", Request.QueryString["id"].ToString()); messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "PICGIFT", "PIC_GIFT"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "PICGIFT", "PIC_GIFT", price, "D", "WP", Request.QueryString["id"]); if (messageReturn == "1") { // Thanh toán thành công >> trả nội dung HienThiNoiDung(true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false); } break; } } } }