protected void Page_Load(object sender, EventArgs e) { preurl = ConfigurationSettings.AppSettings.Get("urldata"); width = Request.QueryString["w"]; key = Request.QueryString["key"]; parentid = ConvertUtility.ToInt32(ConfigurationSettings.AppSettings.Get("relax_zoneiddefaut")); price = ConfigurationSettings.AppSettings.Get("relaxprice"); cipher = Request.QueryString["link"]; MobileUtils.GetDetailUrl(EAS.DecryptData(cipher, ConfigurationSettings.AppSettings.Get("vmskey")), ref msisdn, ref cpid, ref vmstransactionid); if (!IsPostBack) { lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); if (lang == 1) { lblTitle.Text = "Kết quả tìm kiếm"; } } if (!string.IsNullOrEmpty(Request.QueryString["cpage"])) { curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]); } //start category list int totalrecord = 0; DataTable dtCat = TintucController.GetAllNewsByKey(key, pagesize, curpage, out totalrecord, parentid); rptResult.DataSource = dtCat; rptResult.ItemDataBound += new RepeaterItemEventHandler(rptResult_ItemDataBound); rptResult.DataBind(); Paging1.totalrecord = totalrecord; Paging1.pagesize = pagesize; Paging1.numberpage = pagenumber; Paging1.defaultparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&catid=" + Request.QueryString["catid"] + "&key=" + Request.QueryString["key"] + "&id=" + Request.QueryString["id"]; Paging1.queryparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&catid=" + Request.QueryString["catid"] + "&key=" + Request.QueryString["key"] + "&id=" + Request.QueryString["id"] + "&cpage="; //end category list if (lang == 1) { ltrCount.Text = "Tìm thấy " + totalrecord + " bài"; } else { ltrCount.Text = "Tim thay " + totalrecord + " bai"; } }
protected void Page_Load(object sender, EventArgs e) { lang = Request.QueryString["lang"]; width = Request.QueryString["w"]; id = ConvertUtility.ToInt32(Request.QueryString["id"]); price = ConfigurationSettings.AppSettings.Get("tuviprice"); cipher = Request.QueryString["link"]; MobileUtils.GetDetailCharging(EAS.DecryptData(cipher, ConfigurationSettings.AppSettings.Get("vmskey")), ref msisdn, ref cpid, ref transaction_oldid, ref transaction_newid, ref content_id, ref content_price, ref debit_status); if (!IsPostBack) { if (lang == "1") { lnkBack.Text = "Quay lại"; } if (debit_status == "0") { //luu giao dich trans = new TransactionInfo(); trans.Wap_Transaction_Link = ""; trans.Wap_Transaction_Mobile = msisdn; trans.Wap_Transaction_Operator = "Mobifone"; trans.Wap_Transaction_Portal = "Mobifone"; trans.Wap_TransactionDetail = "Tu vu: id:" + id.ToString() + " -- newtransactionid: " + transaction_newid + " -- old tranid: " + transaction_oldid; trans.Wap_Transaction_Amount = ConvertUtility.ToDouble(price); trans.Wap_TransactionName = content_id; trans.Wap_TransactionOn = DateTime.Now; trans.Wap_TransactionType = 18;//thu gian TransactionController.Insert_Transaction(trans); //end luu giao dich //DateTime vTime = DateTime.Now; DataTable dtDetail = null; dtDetail = TuViController.Horoscope_GetItemByID(id); if (lang == "1") { ltrTieude.Text = "TỬ VI"; if (dtDetail.Rows.Count > 0) { lblNoidung.Text = dtDetail.Rows[0]["MT5"].ToString(); } } else { ltrTieude.Text = "TU VI"; if (dtDetail.Rows.Count > 0) { lblNoidung.Text = dtDetail.Rows[0]["MT_KD5"].ToString(); } }; divthongbao.Visible = false; } else { TransactionLogInfo _log = new TransactionLogInfo(); string thongbao = "Thanh toán không thành công hoặc tài khoản không đủ tiền."; ltrthongbao.Text = thongbao; //Luu vao bang transaction log truong hop giao dich that bai _log.Wap_Transaction_Link = ""; _log.Wap_Transaction_Mobile = msisdn; _log.Wap_Transaction_Operator = "Mobifone"; _log.Wap_Transaction_Portal = "Mobifone"; _log.Wap_TransactionDetail = "Tu vi: id:" + id.ToString() + " -- newtransactionid: " + transaction_newid + " -- old tranid: " + transaction_oldid; _log.Wap_Transaction_Amount = ConvertUtility.ToDouble(price); _log.Wap_TransactionName = content_id; _log.Wap_TransactionOn = DateTime.Now; _log.Wap_TransactionType = 18; _log.ErrorCode = 1;//That bai TransactionController.Insert_TransactionLog(_log); }; } ; }