protected void btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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 btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", "dangkythethao"); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", "dangkythethao", out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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 btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new 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; } }
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": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", Request.QueryString["id"] + "Thu phap: " + dtDetail.Rows[0]["WTitle_Unicode"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", chitietGiaodich, out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", chitietGiaodich); } 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 btnCo_Click(object sender, EventArgs e) { pnlThongBao.Visible = false; try { switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "VID", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "VID", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } break; } } catch (Exception ex) { ILog logger = LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("----------Lỗi charging----------------------"); logger.Debug("MSISDN:" + Session["msisdn"]); logger.Debug(ex.ToString()); logger.Debug("----------Lỗi charging----------------------"); } }
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": var charging = new Library.VNMCharging.VNMChargingGW(); 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 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.CheckSessionTelco(); linkStr = "<a href=\"" + UrlProcess.PhanMemHome() + "\" >PHẦN MỀM</a>"; //linkStr_KD = "<a href=\"../" + UrlProcess.GetAppHomeUrl(lang, width.ToString(), hotro).Replace("~/", "") + "\" >PHAN MEM<a>"; //HienThiNoiDung(true, false); //return; 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(AppEnv.CheckSessionTelco(), id); if (dtDetail.Rows[0]["Web_Name"].ToString() == "Vmg_zone") { price = "15000"; } if (telCo == Constant.T_Mobifone) { string content = Session["cpid"] + "&" + Constant.ungdungchung + id + "&" + price + "&" + Session["transactionid"]; 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>" + AppEnv.GetSetting("appcode") + " " + dtDetail.Rows[0]["AppID"] + "</b> gửi <b>" + AppEnv.GetSetting("appcommandcode") + "</b> để tải phần mềm <b>" + dtDetail.Rows[0]["AppNameUnicode"] + "</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": var charging = new 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) { price = ConfigurationSettings.AppSettings.Get("ringtoneprice"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); SoDT = Request.QueryString["sdt"]; telCo = Session["telco"].ToString(); 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 = Resources.Resource.wHuongDan; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe; } else { ltrHuongdan.Text = Resources.Resource.wHuongDan_KD; ltrSMS.Text = Resources.Resource.wSoDienThoaiKhongHopLe_KD; } return; } DataTable dtDetail = MusicController.GetItemDetailHasCache(Session["telco"].ToString(), id); if (dtDetail != null && dtDetail.Rows.Count > 0) { chitietGiaodich = "Nhac: " + dtDetail.Rows[0]["SongName"] + " -- id:" + id; } if (id == 2843) { free = true; HienThiNoiDung(true); return; } if (telCo == "Undefined") { pnlSMS.Visible = true; if (lang == "1") { ltrHuongdan.Text = Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("ringtonecode") + " " + dtDetail.Rows[0]["Code"].ToString() + " " + SoDT + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("ringtonecommandcode") + "</b> để gửi tặng bản nhạc <b>" + dtDetail.Rows[0]["SongNameUnicode"].ToString() + "</b>" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("ringtonecode") + " " + dtDetail.Rows[0]["Code"].ToString() + " " + SoDT + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("ringtonecommandcode") + "</b> de gui tang ban nhac <b>" + dtDetail.Rows[0]["SongName"].ToString() + "</b>" + Resources.Resource.wChon3G_KD; } } else { //pnlThongBao.Visible = true; //if (lang == "1") //{ // ltrTitle.Text = Resources.Resource.wThongBao; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu + "nhạc chuông " + dtDetail.Rows[0]["SongNameUnicode"].ToString(); // btnCo.Text = Resources.Resource.btnCo; // btnKhong.Text = Resources.Resource.btnKhong; //} //else //{ // ltrTitle.Text = Resources.Resource.wThongBao_KD; // //ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD.Replace("xxx", price); // ltrThongBao.Text = Resources.Resource.wXacNhanTangDichVu_KD + "nhac chuong " + dtDetail.Rows[0]["SongName"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; try { switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "MUSICUPLOAD", "MUSIC_GIFT", price, "D", "TT", chitietGiaodich); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "MUSICUPLOAD", "MUSIC_GIFT", price, "D", "TT", chitietGiaodich, out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "MUSICUPLOAD", "MUSIC_GIFT", price, "D", "TT", chitietGiaodich); } 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; } } 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) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = AppEnv.GetSetting("relaxprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); DataTable dtDetail = TintucController.GetNewsDetailHasCache(id); if (dtDetail != null && dtDetail.Rows.Count > 0) { litName.Text = dtDetail.Rows[0]["Content_Headline"].ToString(); catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]); DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID); catName = catInfo.Rows[0]["Zone_Name"].ToString(); parentCatID = ConvertUtility.ToInt32(catInfo.Rows[0]["Zone_ParentID"]); //chitietGiaodich = "Thu gian: " + catInfo.Rows[0]["Zone_Name"] + " -- id: " + id + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]); chitietGiaodich = "Thu gian: " + catInfo.Rows[0]["Zone_Name"] + " -- id: " + id; int totalrecord = 0; DataTable dtCat = new DataTable(); dtCat = TintucController.GetAllNewsByCategoryHasCache(catID, 8, 1, out totalrecord); if (dtCat != null && dtCat.Rows.Count > 0) { IList <DataRow> contentTop = dtCat.Select().Skip(0).Take(3).ToList(); IList <DataRow> contentBottom = dtCat.Select().Skip(3).Take(7).ToList(); rptTop.DataSource = contentTop.CopyToDataTable(); rptTop.DataBind(); rptBottom.DataSource = contentBottom.CopyToDataTable(); rptBottom.DataBind(); } } switch (parentCatID.ToString()) { case "258": //Cẩm nang tư vấn if (catID == 264) //Sex và cuộc sống { price = AppEnv.GetSetting("relaxsexprice"); ProductId = "RELAXADVISESEX"; Keyword = "ADVISE_SEX"; } else { price = AppEnv.GetSetting("relaxtuvanprice"); ProductId = "RELAXADVISEBOOK"; Keyword = "ADVISE_BOOK"; } break; } if (!Page.IsPostBack) { #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region Old Content if (AppEnv.GetSetting("TestFlag") == "1") { HienThiNoiDung(true, false); } else if (parentCatID.ToString() == "255" && WapController.W4A_Subscriber_IsActive(Session["msisdn"].ToString(), 1)) { HienThiNoiDung(true, false); } else { if (Session["msisdn"] != null) { var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney"))//Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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); } } else { pnlContentError.Visible = true; litContentError.Text = "Bạn vui lòng lựa chọn kết nối EDGE hay 3G để sử dụng dịch vụ này. Lưu ý, hãy ngắt kết nối wifi bạn nhé"; } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = AppEnv.GetSetting("relaxprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); DataTable dtDetail = TintucController.GetNewsDetailHasCache(id); if (dtDetail != null && dtDetail.Rows.Count > 0) { litName.Text = dtDetail.Rows[0]["Content_Headline"].ToString(); catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]); DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID); if (catInfo != null && catInfo.Rows.Count > 0) { catName = catInfo.Rows[0]["Zone_Name"].ToString(); parentCatID = ConvertUtility.ToInt32(catInfo.Rows[0]["Zone_ParentID"]); chitietGiaodich = "Thu gian: " + catInfo.Rows[0]["Zone_Name"] + " -- id: " + id; } int totalrecord = 0; DataTable dtCat = new DataTable(); dtCat = TintucController.GetAllNewsByCategoryHasCache(catID, 8, 1, out totalrecord); if (dtCat != null && dtCat.Rows.Count > 0) { IList <DataRow> contentTop = dtCat.Select().Skip(0).Take(5).ToList(); //IList<DataRow> contentBottom = dtCat.Select().Skip(3).Take(7).ToList(); rptTop.DataSource = contentTop.CopyToDataTable(); rptTop.DataBind(); //rptBottom.DataSource = contentBottom.CopyToDataTable(); //rptBottom.DataBind(); } } 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"); //dungnt sua de charge dc ProductId = "LOTOLASTRESULT"; //"RELAXSTORYREAD"; Keyword = "LAST_RESULT"; //"READ"; break; default: price = ConfigurationSettings.AppSettings.Get("relaxprice"); ProductId = "HOROSCOPE"; Keyword = "HOROSCOPE"; break; } if (!Page.IsPostBack) { #region FREE CONTENT if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD if (AppEnv.GetSetting("TestFlag") == "1") { HienThiNoiDung(true, false); } else if (parentCatID.ToString() == "255" && Session["msisdn"] != null && WapController.W4A_Subscriber_IsActive(Session["msisdn"].ToString(), 1)) { HienThiNoiDung(true, false); } else { if (Session["msisdn"] != null) { var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney"))//Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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); } } else { pnlContentError.Visible = true; litContentError.Text = "Bạn vui lòng lựa chọn kết nối EDGE hay 3G để sử dụng dịch vụ này. Lưu ý, hãy ngắt kết nối wifi bạn nhé"; } } #endregion //catid = ConvertUtility.ToInt32(Request.QueryString["catid"]); DataTable dtOnline = TintucController.GetAllCategoryExeptCatIDHasCache(255, catID); DataTable dtAudio = TintucController.GetCategoryTruyenAudioCache(); rptCateOnline.DataSource = dtOnline; rptCateOnline.DataBind(); rptCateAudio.DataSource = dtAudio; rptCateAudio.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); madichvu = Request.QueryString["t"]; madichvu = madichvu.ToUpper().Trim(); //int votePrice = 2000; price = "5000"; if (!Page.IsPostBack) { //if (width == 0) // width = (int)Constant.DefaultScreen.Standard; //ltrWidth.Text = "<meta content=\"width=" + width + "; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\" name=\"viewport\" />"; if (Session["msisdn"] == null) { 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; litMsisdn.Text = "Xin chào <b>" + msisdn + "</b>"; } else { Session["msisdn"] = null; Session["telco"] = Constant.T_Undefined; litMsisdn.Text = "Xin chào <b>khách</b>"; } } string messageReturn; int votePersonId = 1; if (Session["msisdn"] != null) { #region Xu Ly Charging var charging = new Library.VNMCharging.VNMChargingGW(); //if (AppEnv.GetSetting("TestFlag") == "1") //{ // messageReturn = "1"; //} //else //{ //messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price.ToString(), "D", "VID", "Vote " + madichvu); //} //var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", "Vote " + madichvu); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney"))//Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", "Vote " + madichvu, out logPrice); price = logPrice; } //pnlSMS.Visible = false; //pnlThongBao.Visible = false; //pnlNoiDung.Visible = true; if (messageReturn == "1")//Charged Thanh Cong { int disLike = 0; int dislikePersonId = 1; string personName = ""; if (madichvu == "VOTE1") { votePersonId = 1; disLike = 0; personName = "Mai Thỏ"; } else if (madichvu == "VOTE2") { votePersonId = 2; disLike = 0; personName = "Linh Miu"; } else if (madichvu == "GACH1") { votePersonId = 2; dislikePersonId = 1; disLike = 1; personName = "Mai Thỏ"; } else if (madichvu == "GACH2") { votePersonId = 1; dislikePersonId = 2; disLike = 1; personName = "Linh Miu"; } var entity = new VoteRegisteredInfo(); entity.User_ID = Session["msisdn"].ToString(); entity.Request_ID = "0"; entity.Service_ID = "8279"; entity.Command_Code = madichvu; entity.Service_Type = 1; entity.Charging_Count = 0; entity.FailedChargingTime = 0; entity.RegisteredTime = DateTime.Now; entity.ExpiredTime = DateTime.Now.AddDays(1); entity.Registration_Channel = "WAP"; entity.Status = 1; entity.Operator = "vnmobile"; entity.Vote_Count = 1; entity.Vote_PersonId = votePersonId; entity.IsDislike = disLike; entity.Dislike_Count = 1; entity.Dislike_PersonId = dislikePersonId; if (madichvu == "VOTE1" || madichvu == "VOTE2") { DataTable dt = WapController.VoteRegisterInsert(entity); if (dt.Rows[0]["RETURN_ID"].ToString() == "0")//DK DICH VU LAN DAU { litThongBao.Text = "Chúc mừng bạn đã đăng ký thành công Gameshow 'Hẹn hò cùng thần tượng'.<br /> Hãy vote cho " + personName + " để trở thành người chiến thắng.<br /> Chi tiết truy cập http://wap.vietnamobile.com.vn. HT: 19001255"; } else if (dt.Rows[0]["RETURN_ID"].ToString() == "1") { //litThongBao.Text = "Bạn đã vote thành công cho " + personName + ".<br /> Vote càng nhiều bạn càng có cơ hội là 1 trong 3 người hẹn hò thần tượng.<br /> Soạn: Vote1 gửi 8279 để gặp Mai Thỏ. Soạn: Vote2 gửi 8279 để gặp Linh Miu<br /> Chi tiết truy cập: http://wap.vietnamobile.com.vn. HT: 19001255"; //DataTable dtVoteInfo = WapController.VoteGetCount(Session["msisdn"].ToString(), madichvu); //if (dtVoteInfo.Rows[0]["Count"].ToString() == "0") //{ int revotePersonId = 0; if (madichvu == "VOTE2") { revotePersonId = 2; } else if (madichvu == "VOTE1") { revotePersonId = 1; } DataTable dtVoteInfo = WapController.VoteGetCountByPersonId(Session["msisdn"].ToString(), revotePersonId); //} litThongBao.Text = "Bạn đã vote thành công cho : " + dtVoteInfo.Rows[0]["Name"] + ".<br /> Số lượt vote của bạn : " + dtVoteInfo.Rows[0]["Count"] + "<br /> Bạn đang thuộc top : " + dtVoteInfo.Rows[0]["Top"] + " những người vote nhiều nhất <br /> Vote càng nhiều bạn càng có cơ hội là 1 trong 4 người hẹn hò thần tượng.<br /> Chi tiết truy cập: http://wap.vietnamobile.com.vn. HT: 19001255"; } } else if (madichvu == "GACH1" || madichvu == "GACH2") { DataTable dtDislike = WapController.VoteRegisterDislikeInsert(entity); DataTable dt = WapController.VoteRegisterInsert(entity); if (dt.Rows[0]["RETURN_ID"].ToString() == "0")//DK DICH VU LAN DAU { litThongBao.Text = "Chúc mừng bạn đã đăng ký thành công Gameshow 'Hẹn hò cùng thần tượng'.<br /> Hãy ném gạch " + personName + " mà bạn không thích để trở thành người chiến thắng.<br /> Chi tiết truy cập: http://wap.vietnamobile.com.vn. HT: 19001255"; } else if (dt.Rows[0]["RETURN_ID"].ToString() == "1") { //litThongBao.Text = "Bạn đã Ném gạch " + personName + " thành công.<br /> Ném gạch càng nhiều bạn có cơ hội là 1 trong 3 người hẹn hò thần tượng.<br /> Soạn: Gach1 gửi 8279 để gặp gỡ Linh Miu. Soạn: Gach2 gửi 8279 để gặp Mai Thỏ .<br /> Chi tiết truy cập: http://wap.vietnamobile.com.vn. HT: 19001255"; DataTable dtGachInfo = WapController.VoteGetCount(Session["msisdn"].ToString(), madichvu); litThongBao.Text = "Bạn đã ném gạch " + dtGachInfo.Rows[0]["Name"] + " thành công .<br />Số Gạch của bạn : " + dtGachInfo.Rows[0]["Count"] + "<br /> Bạn đang thuộc top: " + dtGachInfo.Rows[0]["Top"] + " những người Ném Gạch nhiều nhất <br />Ném Gạch càng nhiều bạn càng có cơ hội là 1 trong 4 người hẹn hò thần tượng.<br /> Chi tiết truy cập : http://wap.vietnamobile.com.vn. HT: 19001255"; } } //#region Log Doanh Thu //var eLog = new VoteChargedUserLogInfo(); //eLog.User_ID = Session["msisdn"].ToString(); ; //eLog.Request_ID = "0"; //eLog.Service_ID = "8279"; //eLog.Command_Code = madichvu; //eLog.Service_Type = 1; //eLog.Charging_Count = 0; //eLog.FailedChargingTime = 0; //eLog.RegisteredTime = DateTime.Now; //eLog.ExpiredTime = DateTime.Now.AddDays(1); //eLog.Registration_Channel = "WAP"; //eLog.Status = 1; //eLog.Operator = "vnmobile"; //eLog.Reason = "Succ"; //eLog.Price = 2000; //eLog.Vote_PersonId = votePersonId; //WapController.VoteChargedUserLogInsert(eLog); //#endregion } else { litThongBao.Text = lang == "1" ? "Đăng ký không thành công. Vui lòng thử loại hoặc tài khoản không đủ tiền" : "Dang ky khong thanh cong. Vui long thu lai hoac tai khoan khong du tien"; } #region Log Doanh Thu var eLog = new VoteChargedUserLogInfo(); eLog.User_ID = Session["msisdn"].ToString();; eLog.Request_ID = "0"; eLog.Service_ID = "8279"; eLog.Command_Code = madichvu; eLog.Service_Type = 1; eLog.Charging_Count = 0; eLog.FailedChargingTime = 0; eLog.RegisteredTime = DateTime.Now; eLog.ExpiredTime = DateTime.Now.AddDays(1); eLog.Registration_Channel = "WAP"; eLog.Status = 1; eLog.Operator = "vnmobile"; if (messageReturn == "1") { eLog.Reason = "Succ"; } else { eLog.Reason = messageReturn; } eLog.Price = ConvertUtility.ToInt32(price); eLog.Vote_PersonId = votePersonId; WapController.VoteChargedUserLogInsert(eLog); #endregion #endregion } else { if (madichvu == "VOTE1" || madichvu == "VOTE2" || madichvu == "GACH1" || madichvu == "GACH2") { litThongBao.Text = "Hệ thống không xác định được số điện thoại của bạn.<br /> Vui lòng truy cập bằng 3G/GPRS<br /> Hoặc soạn tin: " + madichvu + " gửi " + "8279";; } else { litThongBao.Text = "Hệ thống không xác định được số điện thoại của bạn.<br /> Vui lòng truy cập bằng 3G/GPRS"; } //litThongBao.Text = "Hệ thống không xác định được số điện thoại của bạn.<br /> Vui lòng truy cập bằng 3G/GPRS <br /> Hoặc soạn tin: " + madichvu + " gửi " + "8279"; //pnlSMS.Visible = true; //if (lang == "1") //{ // ltrHuongdan.Text = "Thông Báo"; // ltrSMS.Text = "Hệ thống không xác định được số điện thoại của bạn. Vui lòng truy cập bằng 3G/GPRS hoặc soạn tin: " + madichvu + " gửi " + "8279"; //} //else //{ // ltrHuongdan.Text = "Thong Bao"; // ltrSMS.Text = // "He thong khong xac dinh duoc so dien thoai cua ban. Vui long truy cap bang 3G/GPRS hoac soan tin " + madichvu + " gui " + "8279"; //} } DataSet dsMt = WapController.GetTopUserVote(1); DataSet dsLm = WapController.GetTopUserVote(2); //DataTable dtMt = WapController.GetTopUserVote(1); //DataTable dtLm = WapController.GetTopUserVote(2); if (dsMt != null && dsMt.Tables[0].Rows.Count > 0) { rptMaiTho.DataSource = dsMt.Tables[0]; rptMaiTho.DataBind(); lblMtLike.Text = dsMt.Tables[1].Rows[0]["Like"].ToString(); lblMtUnLike.Text = dsMt.Tables[2].Rows[0]["UnLike"].ToString(); } if (dsLm != null && dsLm.Tables[0].Rows.Count > 0) { rptLinhMiu.DataSource = dsLm.Tables[0]; rptLinhMiu.DataBind(); lblLmLike.Text = dsLm.Tables[1].Rows[0]["Like"].ToString(); lblLmUnLike.Text = dsLm.Tables[2].Rows[0]["UnLike"].ToString(); } #region FACEBOOK Comment string url = AppEnv.GetSetting("WapDefault") + "/vote.aspx"; ltCommentFB.Text = "<div class=\"fb-comments\" data-mobile=\"false\" data-href='" + url + "' data-width=\"320\" data-num-posts=\"5\"></div>"; string Facebook_raw_data = get_web_content("http://api.facebook.com/restserver.php?method=links.getStats&urls=" + url); XmlDocument dom = new XmlDocument(); dom.LoadXml(Facebook_raw_data); #endregion } }
protected void Page_Load(object sender, EventArgs e) { price = ConfigurationSettings.AppSettings.Get("ringtoneprice"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckSessionTelco(); if (!IsPostBack) { //if (width == 0) // width = (int)Constant.DefaultScreen.Standard; //ltrWidth.Text = "<meta content=\"width=" + width + "; 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 = MusicController.GetItemDetailHasCache(telCo, id); if (dtDetail != null && dtDetail.Rows.Count > 0) { chitietGiaodich = "Nhac: " + dtDetail.Rows[0]["SongName"] + " -- id:" + id; } //Miễn phí if (id == 2843) { free = true; HienThiNoiDung(true, false); return; } if (telCo == "Undefined") { pnlSMS.Visible = true; //if (lang == "1") //{ ltrHuongdan.Text = Resources.Resource.wHuongDan; ltrSMS.Text = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("ringtonecode") + " " + dtDetail.Rows[0]["Code"] + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("ringtonecommandcode") + "</b> để tải bản nhạc <b>" + dtDetail.Rows[0]["SongNameUnicode"].ToString() + "</b> về máy" + Resources.Resource.wChon3G; //} //else //{ // ltrHuongdan.Text = Resources.Resource.wHuongDan_KD; // ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("ringtonecode") + " " + dtDetail.Rows[0]["Code"] + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("ringtonecommandcode") + "</b> de tai ban nhac <b>" + dtDetail.Rows[0]["SongName"].ToString() + "</b> ve may" + Resources.Resource.wChon3G_KD; //} } else { pnlThongBao.Visible = false; try { switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "MUSICDOWNLOAD", "MUSIC_DOWN", price, "D", "TT", chitietGiaodich); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "MUSICDOWNLOAD", "MUSIC_DOWN", price, "D", "TT", chitietGiaodich, out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "MUSICDOWNLOAD", "MUSIC_DOWN", price, "D", "TT", chitietGiaodich); } 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; } } catch (Exception ex) { ILog logger = LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("----------Lỗi charging----------------------"); logger.Debug(string.Format("MSISDN:{0}", Session["msisdn"])); logger.Debug(ex.ToString()); logger.Debug("----------Lỗi charging----------------------"); } } #endregion } }
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 = AppEnv.CheckSessionTelcoUndefine(); linkStr = "<a href=\"" + UrlProcess.GameHome() + "\" >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\" />"; //#region Free Content //if (AppEnv.GetSetting("FreeContent") == "1") //{ // HienThiNoiDung(true, false); // return; //} //#endregion DataTable dtDetail = GameController.GetGameDetailByID(AppEnv.CheckSessionTelco(), id); if (dtDetail != null && dtDetail.Rows.Count > 0) { string webName = dtDetail.Rows[0]["Web_Name"].ToString(); bool free = (webName.ToLower().Contains("online") || webName.ToLower().Contains("free")); if (ConfigurationSettings.AppSettings.Get("freecate").IndexOf("," + dtDetail.Rows[0]["W_GameCategoryID"] + ",") > -1 || (",1712,1713,").IndexOf("," + id.ToString() + ",") > -1 || free) { freecate = true; HienThiNoiDung(true, false, "0"); 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": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "JG", Request.QueryString["id"]); 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 Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("goldprice"); telCo = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"../" + UrlProcess.GetSportHomeUrl(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrl(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\" />"; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD 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 = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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; } } } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { width = Request.QueryString["w"]; lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); string isComment = "0"; DataTable dtDetail = new DataTable(); DataTable dtOlder = new DataTable(); DataTable dtCat = new DataTable(); dtDetail = TintucController.GetNewsDetailHasCache(id); if (dtDetail.Rows.Count == 0) { DataSet ds = ThethaoController.GetNewsDetailHasCache(id); dtDetail = ds.Tables[0]; dtOlder = ds.Tables[1]; catID = 129; CatName = "Thể thao"; } else { catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]); DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID); if (catInfo != null && catInfo.Rows.Count > 0) { CatName = catInfo.Rows[0]["Zone_Name"].ToString(); } } if (dtDetail.Rows.Count > 0) { rptDetail.DataSource = dtDetail; rptDetail.DataBind(); DetailName = dtDetail.Rows[0]["Content_Headline"].ToString(); isComment = dtDetail.Rows[0]["Content_IsComment"].ToString(); } if (dtOlder.Rows.Count > 0) { dtCat = dtOlder; } else { dtCat = TintucController.GetTopNewsOlderByCategoryHasCache(catID, id, 10); } //DataTable dtCat = TintucController.GetTopNewsOlderByCategoryHasCache(catID, id, 4); rptOlderNews.DataSource = dtCat; rptOlderNews.DataBind(); DataTable dtNewsCharging = TintucController.GetNewsChargingCache(); if (dtNewsCharging != null && dtNewsCharging.Rows.Count > 0) { rptNewsCharging.DataSource = dtNewsCharging; rptNewsCharging.DataBind(); } if (ConvertUtility.ToBoolean(isComment)) { #region FREE CONTENT if (AppEnv.GetSetting("FreeContent") == "1") { pnlContent.Visible = true; return; } #endregion #region OLD if (Session["msisdn"] != null) { string price = "2000"; var charging = new Library.VNMCharging.VNMChargingGW(); string result = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", "Tin-Hot : id " + Request.QueryString["id"]); if (result == "1") { pnlContent.Visible = true; Transaction.Success(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.RawUrl, id.ToString(), "Tin-Hot : id " + Request.QueryString["id"], 22); } else { pnlNotContent.Visible = true; litNotContentError.Text = "Giao dịch không thành công. Hoặc tài khoản không đủ tiền !"; } //log charging ILog logger = LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("--------------------------------------------------"); logger.Debug("MSISDN:" + Session["msisdn"]); logger.Debug("Dich vu: Tin Hot - parameter: " + price + " - Ten: " + "Tin-Hot : id " + Request.QueryString["id"] + " - id: " + id); logger.Debug("Url:" + Request.RawUrl); logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress); logger.Debug("Error:" + result); logger.Debug("Current Url:" + Request.RawUrl); //end log } else { pnlNotContent.Visible = true; litNotContentError.Text = "Bạn vui lòng lựa chọn kết nối EDGE hay 3G để sử dụng dịch vụ này. Lưu ý, hãy ngắt kết nối wifi bạn nhé"; } #endregion } else { pnlContent.Visible = true; } } }
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.GetSportHomeUrl(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrl(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 + "; 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": Library.VNMCharging.VNMChargingGW charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", "dangkythethao"); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", "dangkythethao", out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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("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.GetRelaxHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >THƯ GIÃN<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetRelaxHomeUrl(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"); //dungnt sua de charge dc ProductId = "LOTOLASTRESULT"; //"RELAXSTORYREAD"; Keyword = "LAST_RESULT"; //"READ"; 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 //{ string msisdn = string.Empty; if (Session["msisdn"] != null) { msisdn = Session["msisdn"].ToString(); } if (parentCatID.ToString() == "255" && WapController.W4A_Subscriber_IsActive(msisdn, 1)) { HienThiNoiDung(true, false); } else { if (Session["ChargedSub"] != null) { if (!string.IsNullOrEmpty(Session["ChargedSub"].ToString())) { HienThiNoiDung(true, false); } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": Library.VNMCharging.VNMChargingGW charging = new 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 { // 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("TaiMacDinh"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"" + UrlProcess.VideoHome() + "\" >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\" />"; //HienThiNoiDung(true,false);return; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD DataTable dtDetail = VideoController.GetVideoDetailByID(AppEnv.CheckSessionTelco(), 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": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"]); } ILog logger = LogManager.GetLogger(Session["telco"].ToString()); logger.Debug("---" + messageReturn + "---"); 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) { price = ConfigurationSettings.AppSettings.Get("videoprice"); lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); SoDT = Request.QueryString["sdt"]; telCo = Session["telco"].ToString(); linkStr = linkStr_KD = "<a href=\"../" + UrlProcess.GetVideoHomeUrl(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\" />"; //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; } 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() + " " + SoDT + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> để gửi tặng video <b>" + dtDetail.Rows[0]["VTitle_Unicode"].ToString() + "</b>" + 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() + " " + SoDT + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("videocommandcode") + "</b> de gui tang video <b>" + dtDetail.Rows[0]["VTitle"].ToString() + "</b>" + Resources.Resource.wChon3G_KD; } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "VIDEOGIFT", "VIDEO_GIFT", price, "D", "VID", 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) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("goldprice"); telCo = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"../" + UrlProcess.GetSportHomeUrl(lang, "home", width.ToString()).Replace("~/", "") + "\" >BÓNG ĐÁ<a>"; linkStr_KD = "<a href=\"../" + UrlProcess.GetSportHomeUrl(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\" />"; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD DataTable dtGiai = ThethaoController.GetCompetitionGetByWID(ConvertUtility.ToInt32(Request.QueryString["catid"])); if (WapController.W4A_Subscriber_IsActive(ConvertUtility.ToString(Session["msisdn"]), 2)) { HienThiNoiDung(true, false); return; } gameid = ThethaoController.GetCompetitionGetByWID(ConvertUtility.ToInt32(Request.QueryString["catid"])).Rows[0]["CompetitionID"].ToString(); // 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) { //Chưa xử lý string content = Session["cpid"].ToString() + "&" + Constant.thethao + "5" + Request.QueryString["catid"] + "&" + 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("tkdbcode") + " " + dtGiai.Rows[0]["Code"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("tkdbcommandcode") + "</b> để nhận thống kê đặc biệt của giải" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("tkdbcode") + " " + dtGiai.Rows[0]["Code"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("tkdbcommandcode") + "</b> de nhan thong ke dac biet cua giai" + Resources.Resource.wChon3G_KD; } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "GAMEDOWN", "GAME_DOWN", price, "D", "GAME87", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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; } } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); level = Request.QueryString["l"]; if (level == "3") { price = ConfigurationSettings.AppSettings.Get("hoangdaothangprice"); ProductId = "RELAXADVISESEX"; ProductKey = "ADVISE_SEX"; } else { price = ConfigurationSettings.AppSettings.Get("hoangdaoprice"); ProductId = "RELAXADVISEBOOK"; ProductKey = "ADVISE_BOOK"; } telCo = AppEnv.CheckSessionTelco(); linkStr = "<a href=\"" + UrlProcess.HoangDaoHome() + "\" >TỬ VI</a>"; //linkStr_KD = "<a href=\"../" + UrlProcess.GetWallpaperHomeUrl(lang, width.ToString()).Replace("~/", "") + "\" >TU VI<a>"; //string chitietGiaodich = "Hoang dao: level:" + level + " -- id:" + id.ToString() + " -- 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\" />"; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD 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, 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.hoangdao + level + 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; switch (level) { case "1": ltrSMS.Text = "Soạn tin <b>HRD <dd*mm></b> gửi <b>8279</b> để xem hoàng đạo theo ngày. Ví dụ bạn sinh ngày 07 tháng 11, soạn: HRD 07*11 gửi 8279" + Resources.Resource.wChon3G; break; case "2": ltrSMS.Text = "Soạn tin <b>HRW <dd*mm></b> gửi <b>8279</b> để xem hoàng đạo theo tuần. Ví dụ bạn sinh ngày 07 tháng 11, soạn HRW 07*11 gửi 8279" + Resources.Resource.wChon3G; break; case "3": ltrSMS.Text = "Soạn tin <b>HRM <dd*mm></b> gửi <b>8579</b> để xem hoàng đạo theo tháng. Ví dụ bạn sinh ngày 07 tháng 11, soạn: HRM 07*11 gửi 8579" + Resources.Resource.wChon3G; break; } //} //else //{ // ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; // switch (level) // { // case "1": // ltrSMS.Text = "Soan tin <b>HRD <dd*mm></b> gui <b>8279</b> de xem hoang dao theo ngay. Vi du ban sinh ngay 07 thang 11, soan: HRD 07*11 gui 8279" + Resources.Resource.wChon3G_KD; // break; // case "2": // ltrSMS.Text = "Soan tin <b>HRW <dd*mm></b> gui <b>8279</b> de xem hoang dao theo tuan. Vi du ban sinh ngay 07 thang 11, soan: HRW 07*11 gui 8279" + Resources.Resource.wChon3G_KD; // break; // case "3": // ltrSMS.Text = "Soan tin <b>HRM <dd*mm></b> gui <b>8579</b> de xem hoang dao theo thang. Vi du ban sinh ngay 07 thang 11, soan: HRM 07*11 gui 8579" + Resources.Resource.wChon3G_KD; // break; // } //} } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, ProductKey, price, "D", "Tu vi", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, ProductKey, price, "D", "Tu vi", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), ProductId, ProductKey, price, "D", "Tu vi", 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 } }
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 = AppEnv.CheckFreeContentTelco(); linkStr = "<a href=\"" + UrlProcess.VideoHome() + "\" >VIDEO</a>"; //HienThiNoiDung(true,false);return; 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 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, 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 { 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": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "VID", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "VID", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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, true); } else { // Thanh toán không thành công >> thông báo lỗi HienThiNoiDung(false, true); } 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----------------------"); } } } #endregion } }
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.XoSoHome() + "\" >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 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, 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 + "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 = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); 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, 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) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = ConfigurationSettings.AppSettings.Get("xssoicauprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); 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 (Session["serviceList"] != null) { _arrService = Session["serviceList"] as string[]; } 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 soicau = XosoController.GetSoicauInfoBycompanyID(id); if (_arrService != null) { if (_arrService.Length > 0) { string dkXoSo = string.Format(AppEnv.GetSetting("S2DK_SC"), soicau.Rows[0]["MainCode"]); foreach (var item in _arrService) { if (item == dkXoSo) { pnlS2DangKy.Visible = false; } } } } // 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 + "x10" + 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("xssoicode") + " " + soicau.Rows[0]["MainCode"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("xssoicaucommandcode") + "</b> để nhận dự đoán kết quả xổ số" + Resources.Resource.wChon3G; } else { ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD; ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("xssoicode") + " " + soicau.Rows[0]["MainCode"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("xssoicaucommandcode") + "</b> de nhan du doan ket qua xo so" + 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ụ soi cầu " + soicau.Rows[0]["ProvinceName"].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 soi cau " + soicau.Rows[0]["ProvinceName"].ToString(); // btnCo.Text = Resources.Resource.btnCo_KD; // btnKhong.Text = Resources.Resource.btnKhong_KD; //} pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), price, "D", "SOICAU", Request.QueryString["id"].ToString()); //messageReturn = charging.PaymentVNM(Session["msisdn"].ToString(), "LOTOSOICAU", "SOICAU"); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "LOTOSOICAU", "SOICAU", price, "D", "SOICAU", 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 } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = AppEnv.GetSetting("ringtoneprice"); id = ConvertUtility.ToString(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); DataTable dtDetail = TintucController.GetAudioBookDetailCache(id); DataSet ds = TintucController.GetTruyenAudioHomeCache(); if (ds != null) { DataTable dtMoi = ds.Tables[0]; IList <DataRow> contentTop = dtMoi.Select().Skip(0).Take(1).ToList(); IList <DataRow> contentBottom = dtMoi.Select().Skip(1).Take(5).ToList(); rptTop.DataSource = contentTop.CopyToDataTable(); rptTop.DataBind(); rptBottom.DataSource = contentBottom.CopyToDataTable(); rptBottom.DataBind(); } if (dtDetail != null && dtDetail.Rows.Count > 0) { litName.Text = dtDetail.Rows[0]["SongName"].ToString(); catID = dtDetail.Rows[0]["StyleId"].ToString(); catName = dtDetail.Rows[0]["StyleName"].ToString(); } if (!Page.IsPostBack) { #region FREE CONTENT if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD if (AppEnv.GetSetting("TestFlag") == "1") { HienThiNoiDung(true, false); } else { if (Session["msisdn"] != null) { var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney"))//Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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); } } else { pnlContentError.Visible = true; litContentError.Text = "Bạn vui lòng lựa chọn kết nối EDGE hay 3G để sử dụng dịch vụ này. Lưu ý, hãy ngắt kết nối wifi bạn nhé"; } } #endregion DataTable dtOnline = TintucController.GetAllCategoryExeptCatIDHasCache(255, 0); DataTable dtAudio = TintucController.GetCategoryTruyenAudioCache(); rptCateOnline.DataSource = dtOnline; rptCateOnline.DataBind(); rptCateAudio.DataSource = dtAudio; rptCateAudio.DataBind(); } }
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.XoSoHome() + "\" >XỔ SỐ</a>"; //HienThiNoiDung(true,false); //return; 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 = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); 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; } } } // DataSet ds = XosoController.GetDetail_LotAndOtherLot(ConvertUtility.ToInt32(Detail.Rows[0]["lot_id"]), id, 6); rptOther.DataSource = ds.Tables[1]; rptOther.ItemDataBound += rptOther_ItemDataBound;; rptOther.DataBind(); #endregion lblOther.Text = "XEM TIẾP"; } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); price = AppEnv.GetSetting("relaxprice"); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckFreeContentTelco(); 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 = string.Format("Thu gian: {0} -- id: {1} -- newtransactionid: {2} -- old tranid: {3}", catInfo.Rows[0]["Zone_Name"].ToString(), id, ConvertUtility.ToString(Session["transactionid"]), ConvertUtility.ToString(Session["transactionid_old"])); chitietGiaodich = string.Format("Thu gian: {0} -- id: {1}", catInfo.Rows[0]["Zone_Name"], id); linkStr = "<a href=\"" + UrlProcess.ThuGianHome() + "\" >THƯ GIÃN</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"); //dungnt sua de charge dc ProductId = "LOTOLASTRESULT"; //"RELAXSTORYREAD"; Keyword = "LAST_RESULT"; //"READ"; break; case "400": //GOC CUOC SONG price = "3000"; //dungnt sua de charge dc ProductId = "LOTOLASTRESULT"; //"RELAXSTORYREAD"; Keyword = "LAST_RESULT"; //"READ"; break; case "401": //KHAM PHA price = "1000"; //dungnt sua de charge dc ProductId = "LOTOLASTRESULT"; //"RELAXSTORYREAD"; Keyword = "LAST_RESULT"; //"READ"; 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\" />"; #region Free Content if (AppEnv.GetSetting("FreeContent") == "1") { HienThiNoiDung(true, false); return; } #endregion #region OLD 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 { if (Session["ChargedOk"] != null) { if (!string.IsNullOrEmpty(Session["ChargedOk"].ToString())) { HienThiNoiDung(true, false); Session["ChargedOk"] = string.Empty; } } else { pnlThongBao.Visible = false; switch (Session["telco"].ToString()) { case "Vietnamobile": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"]); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), ProductId, Keyword, price, "D", "RELAX", Request.QueryString["id"], out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(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; } } } } #endregion } }
protected void Page_Load(object sender, EventArgs e) { catID = ConvertUtility.ToInt32(Request.QueryString["catid"]); if (catID == ConvertUtility.ToInt32(AppEnv.GetSetting("thuphapid"))) { price = AppEnv.GetSetting("thuphapprice"); } else { price = AppEnv.GetSetting("wallprice"); } lang = Request.QueryString["lang"]; width = ConvertUtility.ToInt32(Request.QueryString["w"]); id = ConvertUtility.ToInt32(Request.QueryString["id"]); telCo = AppEnv.CheckSessionTelco(); //linkStr = "<a href=\"/" + UrlProcess.HinhNenHome() + "\" >HÌNH NỀN<a>"; //linkStr_KD = "<a href=\"/" + UrlProcess.HinhNenHome() + "\" >HINH NEN<a>"; if (!IsPostBack) { //if (width == 0) // width = (int)Constant.DefaultScreen.Standard; //ltrWidth.Text = "<meta content=\"width=" + width + "; 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 Content DataTable dtDetail = HinhNenController.GetWallpaperDetailByID(AppEnv.CheckSessionTelco(), id); if (dtDetail != null) { chitietGiaodich = "Hinh nen: " + dtDetail.Rows[0]["WTitle"] + " -- id:" + 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": var charging = new Library.VNMCharging.VNMChargingGW(); messageReturn = charging.NavigatePaymentVnm(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", chitietGiaodich); if (messageReturn == AppEnv.GetSetting("NotEnoughMoney")) //Not Enough Money { messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", chitietGiaodich, out logPrice); price = logPrice; } if (messageReturn == AppEnv.GetSetting("SystemOverload")) //System Over Load { messageReturn = AppEnv.VnmChargingSystemOverload(Session["msisdn"].ToString(), "PICDOWN", "PIC_DOWN", price, "D", "WP", chitietGiaodich); } 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 } }