示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int       totalrecord = 0;
                DataTable dtVideo     = Library.Component.Video.VideoController.GetAllVideoByCategoryAndDisplayType(AppEnv.CheckSessionTelco(), 31, 0, (int)Constant.Video.Category, 10, 1, out totalrecord);
                if (dtVideo != null && dtVideo.Rows.Count > 0)
                {
                    IList <DataRow> contentTop  = dtVideo.Select().Skip(0).Take(1).ToList();
                    IList <DataRow> contentList = dtVideo.Select().Skip(2).Take(5).ToList();
                    if (contentTop.Count > 0)
                    {
                        rptVideoTop.DataSource = contentTop.CopyToDataTable();
                        rptVideoTop.DataBind();
                    }

                    if (contentList.Count > 0)
                    {
                        rptVideoList.DataSource = contentList.CopyToDataTable();
                        rptVideoList.DataBind();
                    }
                }

                DataTable dtAlbum = MusicController.GetAlbumHotHasCache(AppEnv.CheckSessionTelco());
                if (dtAlbum != null && dtAlbum.Rows.Count > 0)
                {
                    IList <DataRow> albumlbum = dtAlbum.Select().Skip(0).Take(6).ToList();
                    rptAlbum.DataSource = albumlbum.CopyToDataTable();
                    rptAlbum.DataBind();
                }
            }
        }
示例#2
0
        //private User_AgentInfo _info;

        protected void Page_Load(object sender, EventArgs e)
        {
            id = ConvertUtility.ToInt32(Request.QueryString["id"]);

            if (!Page.IsPostBack)
            {
                //_info = Get_User_Agent_Info();

                //Detail
                DataTable dtDetail = PhanmemController.GetAPPDetailByIDHasCache(AppEnv.CheckSessionTelco(), id);
                //end detail

                if (dtDetail != null && dtDetail.Rows.Count > 0)
                {
                    price = AppEnv.GetSetting("Appprice");
                    if (dtDetail.Rows[0]["Web_Name"].ToString() == "Vmg_zone")
                    {
                        price = "1000";
                    }

                    rptDetail.DataSource = dtDetail;
                    rptDetail.DataBind();

                    rptDes.DataSource = dtDetail;
                    rptDes.DataBind();

                    int       totaltopdownload = 0;
                    DataTable dtltopdownload   = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), ConvertUtility.ToInt32(dtDetail.Rows[0]["W_AppCategoryID"]), 0, pagesize, tpage, out totaltopdownload);
                    rptList.DataSource = dtltopdownload;
                    //rptList.ItemDataBound += new RepeaterItemEventHandler(rptCungTheLoai_ItemDataBound);
                    rptList.DataBind();
                }
            }
        }
示例#3
0
        protected void HienThiNoiDung(Boolean thuchien, Boolean log)
        {
            //pnlNoiDung.Visible = true;

            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            DataTable dtDetail = TintucController.GetNewsDetail(id);

            catID = ConvertUtility.ToInt32(dtDetail.Rows[0]["Distribution_ZoneID"]);
            DataTable catInfo = TintucController.GetCategoryByCatIDHasCache(catID);

            if (thuchien)
            {
                //if (lang == "1")
                //{
                //ltrTieuDe.Text = linkStr + " » " + "THƯ GIÃN";
                lblItemName.Text = dtDetail.Rows[0]["Content_Headline"].ToString();
                if (dtDetail.Rows.Count > 0)
                {
                    litContent.Text = dtDetail.Rows[0]["Content_Body"].ToString().Replace("href=\"Upload", "href=\"" + AppEnv.GetSetting("urldata") + "/Upload");
                }
                //}
                if (log)
                {
                    Transaction.Success(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 13);
                }
            }
            else
            {
                //Thông báo lỗi thanh toán
                //if (lang == "1")
                //{
                //ltrTieuDe.Text = linkStr + " » " + Resources.Resource.wThongBao;
                litContent.Text = Resources.Resource.wThongBaoLoiThanhToan;
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD;
                //    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                //}
                //--Thông báo lỗi thanh toán
                if (log)
                {
                    Transaction.Failure(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 13, messageReturn);
                }
            }
            if (log)
            {
                //log charging
                ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString());
                logger.Debug("--------------------------------------------------");
                logger.Debug("MSISDN:" + Session["msisdn"].ToString());
                logger.Debug("Dich vu: Thu gian - parameter: " + price + " - Ten: " + dtDetail.Rows[0]["Content_HeadlineKD"].ToString() + " - id: " + id);
                logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
                logger.Debug("Error:" + messageReturn);
                logger.Debug("Current Url:" + Request.RawUrl);
                //end log
            }
        }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         DataTable dt = HinhNenController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.HinhNen.Category, 0);
         rptMenu.DataSource = dt;
         rptMenu.DataBind();
     }
 }
示例#5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = VideoController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.Video.Category, 0);

            if (dt != null && dt.Rows.Count > 0)
            {
                rptCategory.DataSource = dt;
                rptCategory.DataBind();
            }
        }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         DataTable dtMoiNhat = MusicController.GetItemTopHasCache(AppEnv.CheckSessionTelco(), 5);
         if (dtMoiNhat != null && dtMoiNhat.Rows.Count > 0)
         {
             rptMoiNhat.DataSource = dtMoiNhat;
             rptMoiNhat.DataBind();
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //DataTable dt = HinhNenController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.HinhNen.Category, 0);
         DataTable dt = HinhNenController.GetAllCategoryExeptCatIDHasCache(AppEnv.CheckSessionTelco(), (int)Constant.HinhNen.Category, 1);
         if (dt != null && dt.Rows.Count > 0)
         {
             rptCategory.DataSource = dt;
             rptCategory.DataBind();
         }
     }
 }
示例#8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int    totalrecord = 0;
                string cateName    = string.Empty;
                catID = ConvertUtility.ToInt32(Request.QueryString["catid"]);

                DataTable catInfo = VideoController.GetCategoryByCatIDHasCache(catID);
                if (catInfo != null && catInfo.Rows.Count > 0)
                {
                    cateName = catInfo.Rows[0]["Title_Unicode"].ToString();
                    lblCategorryName.Text = cateName;
                }

                if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
                {
                    curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
                }

                var dt = new DataTable();
                if (catID == 1)
                {
                    cateName = "tai-nhieu-nhat";
                    dt       = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 3, -1, (int)Constant.Video.Topdownload, pagesize, curpage, out totalrecord);
                }
                else if (catID == 2)
                {
                    cateName = "moi-cap-nhat";
                    dt       = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 1, -1, (int)Constant.Video.Lastest, pagesize, curpage, out totalrecord);
                }
                else
                {
                    dt = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), catID, -1, (int)Constant.Video.Category, pagesize, curpage, out totalrecord);
                }

                if (dt.Rows.Count > 0)
                {
                    rptList.DataSource = dt;
                    rptList.DataBind();

                    Paging1.totalrecord = totalrecord;
                    Paging1.pagesize    = pagesize;
                    Paging1.numberpage  = pagenumber;

                    Paging1.defaultparam = UrlProcess.VideoChuyenMuc(catID, curpage, cateName);
                    Paging1.queryparam   = UrlProcess.VideoChuyenMuc(catID, curpage, cateName);
                }
            }
        }
示例#9
0
        //private User_AgentInfo _info;

        protected void Page_Load(object sender, EventArgs e)
        {
            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            if (!IsPostBack)
            {
                //_info = Get_User_Agent_Info();
                dtDetail = GameController.GetGameDetailByIDHasCache(AppEnv.CheckSessionTelco(), id);
                if (dtDetail != null && dtDetail.Rows.Count > 0)
                {
                    rptDetail.DataSource = dtDetail;
                    rptDetail.DataBind();

                    rptDes.DataSource = dtDetail;
                    rptDes.DataBind();

                    price = AppEnv.GetSetting("gameprice");
                    if (id == 1402 || id == 1401)
                    {
                        //ltrNhom.Visible = false;
                        price = "5000";
                    }

                    string webName = dtDetail.Rows[0]["Web_Name"].ToString();
                    bool   free    = (webName.ToLower().Contains("online") || webName.ToLower().Contains("free"));

                    if (AppEnv.GetSetting("freecate").IndexOf("," + dtDetail.Rows[0]["W_GameCategoryID"] + ",") > -1 || free)
                    {
                        freecate = true;
                    }

                    if (freecate)
                    {
                        price = "0";
                    }


                    int       totaltopdownload;
                    DataTable dtList = GameController.GetAllGameByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), ConvertUtility.ToInt32(dtDetail.Rows[0]["W_GameCategoryID"]), 0, 6, 1, out totaltopdownload);
                    if (dtList != null && dtList.Rows.Count > 0)
                    {
                        rptList.DataSource = dtList;
                        rptList.DataBind();
                    }
                }
            }
        }
示例#10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                _info = Get_User_Agent_Info();
                int totalrecord = 0;
                var dtLastest   = new DataTable();
                dtLastest = GameController.GetAllGameByCateTypeAndAgent(AppEnv.CheckSessionTelco(), 16, (int)Constant.Game.Lastest, _info, 12, 1, out totalrecord);
                if (dtLastest.Rows.Count == 0)
                {
                    dtLastest = GameController.GetAllGameByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 16, (int)Constant.Game.Lastest, 12, 1, out totalrecord);
                }

                rptGameHay.DataSource = dtLastest;
                rptGameHay.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            if (!Page.IsPostBack)
            {
                //Detail
                DataTable dtDetail = MusicController.GetItemDetail(AppEnv.CheckSessionTelco(), id);
                //end detail
                if (dtDetail != null && dtDetail.Rows.Count > 0)
                {
                    price = AppEnv.GetSetting("ringtoneprice");

                    rptDetail.DataSource = dtDetail;
                    rptDetail.DataBind();
                }
            }
        }
示例#12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                _info = Get_User_Agent_Info();
                int totalrecord = 0;

                DataTable dtHotNhat = new DataTable();
                DataTable dtMoiNhat = new DataTable();

                #region HOT NHAT

                dtHotNhat = PhanmemController.GetAllAppByCateTypeAndAgent(AppEnv.CheckSessionTelco(), 10, (int)Constant.APP.Topdownload, _info, pagesize, curpage, out totalrecord);
                if (dtHotNhat.Rows.Count == 0)
                {
                    dtHotNhat = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 10, (int)Constant.APP.Topdownload, pagesize, curpage, out totalrecord);
                }

                if (dtHotNhat.Rows.Count > 0)
                {
                    rptHotNhat.DataSource = dtHotNhat;
                    rptHotNhat.DataBind();
                }

                #endregion

                #region MOI NHAT

                dtMoiNhat = PhanmemController.GetAllAppByCateTypeAndAgent(AppEnv.CheckSessionTelco(), 9, (int)Constant.APP.Lastest, _info, pagesize, tpage, out totalrecord);
                if (dtMoiNhat.Rows.Count == 0)
                {
                    dtMoiNhat = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 9, (int)Constant.APP.Lastest, pagesize, tpage, out totalrecord);
                }

                if (dtMoiNhat.Rows.Count > 0)
                {
                    rptMoiNhat.DataSource = dtMoiNhat;
                    rptMoiNhat.DataBind();
                }

                #endregion
            }
        }
示例#13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            artistID = Request.QueryString["id"];

            if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
            {
                curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
            }

            if (!IsPostBack)
            {
                DataTable ArtistInfo = MusicController.GetArtistByIDHasCache(artistID);
                string    name       = string.Empty;
                if (ArtistInfo.Rows.Count > 0)
                {
                    //if (lang == "1")
                    //{
                    ltrArtistName.Text = ArtistInfo.Rows[0]["ArtistNameUnicode"].ToString();
                    //ltrSobai.Text = Resources.Resource.wSoBai + totalrecord.ToString();
                    name = ArtistInfo.Rows[0]["ArtistName"].ToString();
                    //}
                    //else
                    //{
                    //    ltrArtistName.Text = "<span class=\"bold\" style=\"color:#B200B2;\">" + ArtistInfo.Rows[0]["ArtistName"].ToString() + "</span>";
                    //    ltrSobai.Text = Resources.Resource.wSoBai_KD + totalrecord.ToString();
                    //}
                }

                //start category list
                int       totalrecord = 0;
                DataTable dtCat       = MusicController.GetItemByArtistHasCache(AppEnv.CheckSessionTelco(), artistID, curpage, pagesize, out totalrecord);
                rptList.DataSource = dtCat;
                //rptlstCategory.ItemDataBound += new RepeaterItemEventHandler(rptlstCategory_ItemDataBound);
                rptList.DataBind();
                Paging1.totalrecord  = totalrecord;
                Paging1.pagesize     = pagesize;
                Paging1.numberpage   = pagenumber;
                Paging1.defaultparam = UrlProcess.AmNhacChuyenMucCaSyList(artistID, name, curpage.ToString());
                Paging1.queryparam   = UrlProcess.AmNhacChuyenMucCaSyList(artistID, name, curpage.ToString());
            }
        }
示例#14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int catID = ConvertUtility.ToInt32(Request.QueryString["catid"]);
                _info = Get_User_Agent_Info();

                string CatName = string.Empty;

                DataTable catInfo = GameController.GetCategoryByCatIDHasCache(catID);
                if (catInfo != null && catInfo.Rows.Count > 0)
                {
                    CatName = catInfo.Rows[0]["Title_Unicode"].ToString().ToUpper();
                    lblCategoryName.Text = CatName;
                }

                if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
                {
                    curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
                }

                int totalrecord = 0;
                var dt          = new DataTable();
                dt = GameController.GetAllGameByCateTypeAndAgent(AppEnv.CheckSessionTelco(), catID, (int)Constant.Game.Category, _info, pagesize, curpage, out totalrecord);
                if (dt.Rows.Count == 0)
                {
                    dt = GameController.GetAllGameByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), catID, (int)Constant.Game.Category, pagesize, curpage, out totalrecord);
                }

                rptGameHay.DataSource = dt;
                rptGameHay.DataBind();

                Paging1.totalrecord = totalrecord;
                Paging1.pagesize    = pagesize;
                Paging1.numberpage  = pagenumber;

                Paging1.defaultparam = UrlProcess.GameChuyenMuc(catID, curpage, CatName);
                Paging1.queryparam   = UrlProcess.GameChuyenMuc(catID, curpage, CatName);
            }
        }
示例#15
0
        //private string lang;
        //private string width;
        //private static string preurl;

        protected void Page_Load(object sender, EventArgs e)
        {
            //preurl = ConfigurationSettings.AppSettings.Get("urldata");
            //width = Request.QueryString["w"];
            //lang = ConvertUtility.ToInt32(Request.QueryString["lang"]).ToString();

            if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
            {
                curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
            }

            //start category list
            int       totalrecord = 0;
            DataTable dtCat       = MusicController.GetAlbumHasCache(AppEnv.CheckSessionTelco(), curpage, pagesize, out totalrecord);

            rptAlbum.DataSource = dtCat;
            rptAlbum.DataBind();
            Paging1.totalrecord  = totalrecord;
            Paging1.pagesize     = pagesize;
            Paging1.numberpage   = pagenumber;
            Paging1.defaultparam = UrlProcess.AmNhacChuyenMucAlbum("1", curpage.ToString(), "album-hot");
            Paging1.queryparam   = UrlProcess.AmNhacChuyenMucAlbum("1", curpage.ToString(), "album-hot");
        }
示例#16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                id = ConvertUtility.ToInt32(Request.QueryString["id"]);
                //Detail
                DataTable dtDetail = VideoController.GetVideoDetailByIDHasCache(AppEnv.CheckSessionTelco(), id);
                //end detail
                if (dtDetail.Rows.Count > 0)
                {
                    rptDetail.DataSource = dtDetail;
                    rptDetail.DataBind();

                    CatId   = dtDetail.Rows[0]["W_VCategoryID"].ToString();
                    CatName = dtDetail.Rows[0]["Title"].ToString();
                    int totalrecord = 0;

                    DataTable dtList = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), ConvertUtility.ToInt32(CatId), -1, (int)Constant.Video.Category, 5, 1, out totalrecord);
                    if (dtList.Rows.Count == 0)
                    {
                        dtList = VideoController.GetAllVideoByCategoryAndDisplayType(AppEnv.CheckSessionTelco(), ConvertUtility.ToInt32(CatId), id, 0, 5, 1, out totalrecord);
                    }

                    foreach (DataRow iRow in dtList.Rows)
                    {
                        if ((int)iRow["W_VItemID"] == id)
                        {
                            iRow.Delete();
                            dtList.AcceptChanges();
                            break;
                        }
                    }
                    rptList.DataSource = dtList;
                    rptList.DataBind();
                }
            }
        }
示例#17
0
        protected void HienThiNoiDung(Boolean thuchien, Boolean isLog)
        {
            //pnlNoiDung.Visible = true;

            id    = ConvertUtility.ToInt32(Request.QueryString["id"]);
            level = Request.QueryString["l"];

            if (thuchien)
            {
                int       type;
                DateTime  vTime    = DateTime.Now;
                DataTable dtDetail = null;
                switch (level)
                {
                case "1":
                    dtDetail = HoangdaoController.GetHodaDateByIDHasCache(id);
                    type     = ConvertUtility.ToInt32(dtDetail.Rows[0]["Type"]);
                    //if (lang == "1")
                    //{

                    //ltrTieuDe.Text = linkStr + " » " + "HOÀNG ĐẠO THEO NGÀY";
                    //lblTen.Text = HoangdaoController.CungHoangdao[type, 1] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    if (dtDetail.Rows.Count > 0)
                    {
                        litContent.Text = dtDetail.Rows[0]["WapContent"].ToString();
                    }

                    //}
                    //else
                    //{
                    //    ltrTieuDe.Text = linkStr_KD + " » " + "HOANG DAO THEO NGAY";
                    //    lblTen.Text = HoangdaoController.CungHoangdao[type, 0] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    //    if (dtDetail.Rows.Count > 0) { ltrNoiDung.Text = UnicodeUtility.UnicodeToKoDau(dtDetail.Rows[0]["WapContent"].ToString()); }
                    //}
                    break;

                case "2":
                    dtDetail = HoangdaoController.GetHodaWeekByIDHasCache(id);
                    type     = ConvertUtility.ToInt32(dtDetail.Rows[0]["Type"]);
                    //if (lang == "1")
                    //{
                    //    ltrTieuDe.Text = linkStr + " » " + "HOÀNG ĐẠO THEO TUẦN";
                    //    lblTen.Text = HoangdaoController.CungHoangdao[type, 1] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    if (dtDetail.Rows.Count > 0)
                    {
                        litContent.Text = dtDetail.Rows[0]["WapContent"].ToString();
                    }
                    //}
                    //else
                    //{
                    //    ltrTieuDe.Text = linkStr_KD + " » " + "HOANG DAO THEO TUAN";
                    //    lblTen.Text = HoangdaoController.CungHoangdao[type, 0] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    //    if (dtDetail.Rows.Count > 0) { ltrNoiDung.Text = UnicodeUtility.UnicodeToKoDau(dtDetail.Rows[0]["WapContent"].ToString()); }
                    //}
                    break;

                case "3":
                    dtDetail = HoangdaoController.GetHodaMonthByIDHasCache(id);
                    type     = ConvertUtility.ToInt32(dtDetail.Rows[0]["Type"]);
                    //if (lang == "1")
                    //{
                    //    ltrTieuDe.Text = linkStr + " » " + "HOÀNG ĐẠO THEO THÁNG";
                    //    lblTen.Text = HoangdaoController.CungHoangdao[type, 1] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    if (dtDetail.Rows.Count > 0)
                    {
                        litContent.Text = dtDetail.Rows[0]["WapContent"].ToString();
                    }
                    //}
                    //else
                    //{
                    //    ltrTieuDe.Text = linkStr_KD + " » " + "HOANG DAO THEO THANG";
                    //    lblTen.Text = HoangdaoController.CungHoangdao[type, 0] + " (" + HoangdaoController.CungHoangdao[type, 2] + ")";
                    //    if (dtDetail.Rows.Count > 0) { ltrNoiDung.Text = UnicodeUtility.UnicodeToKoDau(dtDetail.Rows[0]["WapContent"].ToString()); }
                    //}
                    break;
                }
                if (isLog)
                {
                    Transaction.Success(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), level + id, "Hoang dao: level:" + level + " -- id:" + id.ToString(), 17);
                }
            }
            else
            {
                //Thông báo lỗi thanh toán
                //if (lang == "1")
                //{
                //    ltrTieuDe.Text = linkStr + " » " + Resources.Resource.wThongBao;
                litContent.Text = Resources.Resource.wThongBaoLoiThanhToan;
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD;
                //    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                //}

                if (isLog)
                {
                    Transaction.Failure(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), level + id.ToString(), "Hoang dao: level:" + level + " -- id:" + id.ToString(), 17, messageReturn);
                }

                //--Thông báo lỗi thanh toán
            }

            if (isLog)
            {
                //log charging
                ILog logger = LogManager.GetLogger(AppEnv.CheckSessionTelco());
                logger.Debug("--------------------------------------------------");
                logger.Debug("MSISDN:" + Session["msisdn"]);
                logger.Debug("Dich vu: Hoang dao - parameter: " + price + " - level: " + level + " - id: " + id);
                logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
                logger.Debug("Error:" + messageReturn);
                logger.Debug("Current Url:" + Request.RawUrl);
                //end log
            }
        }
        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
            }
        }
示例#19
0
        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;
                    }
                }
            }
        }
示例#20
0
        //private static string preurl;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                int totalrecord = 0;

                //Tải nhiều nhất
                DataTable dtHottest = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 3, -1, (int)Constant.Video.Topdownload, pagesize, curpage, out totalrecord);
                if (dtHottest != null && dtHottest.Rows.Count > 0)
                {
                    rptTaiNhieuNhat.DataSource = dtHottest;
                    rptTaiNhieuNhat.DataBind();
                }

                //Mới nhất
                DataTable dtLatest = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 1, -1, (int)Constant.Video.Lastest, pagesize, tpage, out totalrecord);
                if (dtLatest != null && dtLatest.Rows.Count > 0)
                {
                    rptMoiCapNhat.DataSource = dtLatest;
                    rptMoiCapNhat.DataBind();
                }

                //Nong Trong ngay
                DataTable dtNong = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 4, -1, (int)Constant.Video.Category, pagesize, curpage, out totalrecord);
                if (dtNong != null && dtNong.Rows.Count > 0)
                {
                    rptNongTrongNgay.DataSource = dtNong;
                    rptNongTrongNgay.DataBind();
                }

                //Shock
                DataTable dtShock = VideoController.GetAllVideoByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 21, -1, (int)Constant.Video.Category, pagesize, curpage, out totalrecord);
                if (dtShock != null && dtShock.Rows.Count > 0)
                {
                    rptShock.DataSource = dtShock;
                    rptShock.DataBind();
                }
            }
        }
示例#21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                catID = ConvertUtility.ToInt32(Request.QueryString["catid"]);
                string CatName = string.Empty;

                if (catID == ConvertUtility.ToInt32(AppEnv.GetSetting("freecate")))
                {
                    freecate = true;
                }
                _info = Get_User_Agent_Info();

                int totalrecord = 0;

                DataTable catInfo = PhanmemController.GetCategoryByCatIDHasCache(catID);
                if (catInfo != null && catInfo.Rows.Count > 0)
                {
                    lblChuyenMuc.Text = catInfo.Rows[0]["Title_Unicode"].ToString().ToUpper();
                    CatName           = catInfo.Rows[0]["Title"].ToString().ToUpper();
                }

                if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
                {
                    curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
                }

                DataTable dtList = new DataTable();
                if (catID == 9)
                {
                    dtList = PhanmemController.GetAllAppByCateTypeAndAgent(AppEnv.CheckSessionTelco(), 9, (int)Constant.APP.Lastest, _info, pagesize, curpage, out totalrecord);
                    if (dtList.Rows.Count == 0)
                    {
                        dtList = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 9, (int)Constant.APP.Lastest, pagesize, curpage, out totalrecord);
                    }
                }
                else if (catID == 10)
                {
                    dtList = PhanmemController.GetAllAppByCateTypeAndAgent(AppEnv.CheckSessionTelco(), 10, (int)Constant.APP.Topdownload, _info, pagesize, curpage, out totalrecord);
                    if (dtList.Rows.Count == 0)
                    {
                        dtList = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), 10, (int)Constant.APP.Topdownload, pagesize, curpage, out totalrecord);
                    }
                }
                else
                {
                    dtList = PhanmemController.GetAllAppByCateTypeAndAgent(AppEnv.CheckSessionTelco(), catID, (int)Constant.APP.Category, _info, pagesize, curpage, out totalrecord);
                    if (dtList.Rows.Count == 0)
                    {
                        dtList = PhanmemController.GetAllAppByCategoryAndDisplayTypeHasCache(AppEnv.CheckSessionTelco(), catID, (int)Constant.APP.Category, pagesize, curpage, out totalrecord);
                    }
                }

                if (dtList.Rows.Count > 0)
                {
                    rptList.DataSource = dtList;
                    rptList.DataBind();

                    Paging1.totalrecord = totalrecord;
                    Paging1.pagesize    = pagesize;
                    Paging1.numberpage  = pagenumber;

                    Paging1.defaultparam = UrlProcess.PhanMemChuyenMuc(catID, curpage, CatName);
                    Paging1.queryparam   = UrlProcess.PhanMemChuyenMuc(catID, curpage, CatName);
                }
            }
        }
        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
            }
        }
示例#23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang    = Request.QueryString["lang"];
            width   = ConvertUtility.ToInt32(Request.QueryString["w"]);
            price   = AppEnv.GetSetting("xs20price");
            id      = ConvertUtility.ToInt32(Request.QueryString["id"]);
            telCo   = AppEnv.CheckSessionTelco();
            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(id);
                string    comname = ds.Rows[0]["company_name"].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);
                    }
                    else
                    {// Thanh toán không thành công >> thông báo lỗi
                        HienThiNoiDung(false);
                    }
                    Session["transactionid_old"] = null;
                }
                else
                {
                    if (telCo == Constant.T_Mobifone)
                    {
                        string content = Session["cpid"].ToString() + "&" + Constant.xoso + "x12" + id.ToString() + "&" + price + "&" + Session["transactionid"];
                        Response.Redirect(AppEnv.GetSetting("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, AppEnv.GetSetting("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("xs20code") + " " + ds.Rows[0]["company_comment"] + "</b> gửi <b>" + AppEnv.GetSetting("xs20commandcode") + "</b> để nhận kết quả 20 phiên mở thưởng liên tiếp" + Resources.Resource.wChon3G;
                        //}
                        //else
                        //{
                        //    ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD;
                        //    ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("xs20code") + " " + ds.Rows[0]["company_comment"] + "</b> gui <b>" + AppEnv.GetSetting("xs20commandcode") + "</b> de nhan ket qua 20 phien mo thuong lien 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(), "GAMEDOWN", "GAME_DOWN", price, "D", "XOSO20", Request.QueryString["id"]);

                            if (!string.IsNullOrEmpty(messageReturn) && messageReturn == "1")
                            {    // Thanh toán thành công >> trả nội dung
                                HienThiNoiDung(true);
                            }
                            else
                            {    // Thanh toán không thành công >> thông báo lỗi
                                HienThiNoiDung(false);
                            }
                            break;
                        }
                    }
                }
            }
        }
示例#24
0
        protected void HienThiNoiDung(Boolean thuchien, Boolean isLog)
        {
            pnlNoiDung.Visible = true;

            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            DataTable dtDetail = VideoController.GetVideoDetailByID(Session["telco"].ToString(), id);

            chitietGiaodich = "Video: " + dtDetail.Rows[0]["VTitle_Unicode"].ToString() + " -- id:" + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
            if (thuchien)
            {
                //if (lang == "1")
                //{
                ltrTieuDe.Text   = linkStr;
                lblTen.Text      = dtDetail.Rows[0]["VTitle_Unicode"].ToString();
                lnkDownload.Text = Resources.Resource.wBamDeTai;
                //ltrNoiDung.Text = Resources.Resource.wMuaThanhCong + " video " + dtDetail.Rows[0]["VTitle_Unicode"].ToString();
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr;
                //    lblTen.Text = dtDetail.Rows[0]["VTitle"].ToString();
                //    lnkDownload.Text = Resources.Resource.wBamDeTai_KD;
                //    ltrNoiDung.Text = Resources.Resource.wMuaThanhCong_KD + " video " + dtDetail.Rows[0]["VTitle"].ToString();
                //}

                lnkDownload.NavigateUrl = UrlProcess.GetDownloadItem(AppEnv.CheckSessionTelco(), "5", id.ToString(), SecurityMethod.MD5Encrypt(id.ToString()));

                if (isLog)
                {
                    Transaction.Success(Session["telco"].ToString(), Session["msisdn"].ToString(), price, lnkDownload.NavigateUrl, id.ToString(), chitietGiaodich, 5);
                }
                VideoController.SetDownloadCounter(AppEnv.CheckFreeContentTelco(), id);
            }
            else
            {
                //Thông báo lỗi thanh toán
                //if (lang == "1")
                //{
                ltrTieuDe.Text = linkStr + " » " + Resources.Resource.wThongBao;
                //ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan;
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr + " » " + Resources.Resource.wThongBao_KD;
                //    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                //}

                if (isLog)
                {
                    Transaction.Failure(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 5, messageReturn);
                    //--Thông báo lỗi thanh toán
                }
            }

            if (isLog)
            {
                //log charging
                ILog logger = LogManager.GetLogger(Session["telco"].ToString());
                logger.Debug("--------------------------------------------------");
                logger.Debug("MSISDN:" + Session["msisdn"].ToString());
                logger.Debug("Dich vu: Video - parameter: " + price + " - Ten: " + dtDetail.Rows[0]["VTitle"].ToString() + " - id: " + id);
                logger.Debug("Video Url:" + lnkDownload.NavigateUrl);
                logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
                logger.Debug("Error:" + messageReturn);
                logger.Debug("Current Url:" + Request.RawUrl);
                //end log
            }
        }
示例#25
0
        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
            }
        }
示例#26
0
        protected void HienThiNoiDung(Boolean thuchien, Boolean isLog)
        {
            pnlNoiDung.Visible = true;

            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            DataTable dtDetail = PhanmemController.GetAPPDetailByID(AppEnv.CheckSessionTelco(), id);

            //chitietGiaodich = "Phần mềm: " + dtDetail.Rows[0]["AppNameUnicode"] + " -- id:" + id + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
            chitietGiaodich = "Phần mềm: " + dtDetail.Rows[0]["AppNameUnicode"] + " -- id:" + id;
            if (thuchien)
            {
                //if (lang == "1")
                //{
                ltrTieuDe.Text   = linkStr;
                lblTen.Text      = dtDetail.Rows[0]["AppNameUnicode"].ToString();
                lnkDownload.Text = Resources.Resource.wBamDeTai;
                ltrNoiDung.Text  = Resources.Resource.wMuaThanhCong + " phần mềm " + dtDetail.Rows[0]["AppNameUnicode"].ToString();
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr_KD;
                //    lblTen.Text = dtDetail.Rows[0]["AppName"].ToString();
                //    lnkDownload.Text = Resources.Resource.wBamDeTai_KD;
                //    ltrNoiDung.Text = Resources.Resource.wMuaThanhCong_KD + " phan mem " + dtDetail.Rows[0]["AppName"].ToString();
                //}
                string url;
                try
                {
                    string appId     = ConvertUtility.ToString(dtDetail.Rows[0]["AppID"]);
                    string msisdn    = ConvertUtility.ToString(AppEnv.CheckMsisdn());
                    int    partnerId = ConvertUtility.ToInt32(dtDetail.Rows[0]["Partner_ID"]);
                    string telco     = ConvertUtility.ToString(AppEnv.CheckSessionTelco());

                    var urlservice = new VMGGame.MOReceiver();
                    url = urlservice.VMG_ReturnUrlForApplication(
                        appId,
                        0,
                        msisdn,
                        partnerId,
                        "XZONE",
                        "WAP",
                        telco,
                        "WAP.XZONE.VN",
                        "",
                        "");

                    int indexofhttp = url.IndexOf("http://");
                    if (indexofhttp == -1)
                    {
                        url = "http://" + url;
                    }
                    else
                    {
                        url = url.Substring(indexofhttp);
                    }
                }
                catch { url = ""; }
                lnkDownload.NavigateUrl = url;

                if (isLog)
                {
                    Transaction.Success(Session["telco"].ToString(), Session["msisdn"].ToString(), price, lnkDownload.NavigateUrl, id.ToString(), chitietGiaodich, 4);
                }
                PhanmemController.SetDownloadCounter(AppEnv.CheckFreeContentTelco(), id);
            }
            else
            {
                //Thông báo lỗi thanh toán
                //if (lang == "1")
                //{
                ltrTieuDe.Text  = linkStr + " » " + Resources.Resource.wThongBao;
                ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan;
                //}
                //else
                //{
                //    ltrTieuDe.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD;
                //    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                //}

                if (isLog)
                {
                    Transaction.Failure(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 4, messageReturn);
                }

                //--Thông báo lỗi thanh toán
            }

            if (isLog)
            {
                //log charging
                ILog logger = LogManager.GetLogger(Session["telco"].ToString());
                logger.Debug("--------------------------------------------------");
                logger.Debug(string.Format("MSISDN:{0}", Session["msisdn"]));
                logger.Debug(string.Format("Dich vu: Phan mem - parameter: {0} - Ten: {1} - id: {2}", price, dtDetail.Rows[0]["AppName"], id));
                logger.Debug("Phan mem Url:" + lnkDownload.NavigateUrl);
                logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
                logger.Debug("Error:" + messageReturn);
                logger.Debug("Current Url:" + Request.RawUrl);
                //end log
            }
        }
示例#27
0
        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
            }
        }
示例#28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                id = ConvertUtility.ToInt32(Request.QueryString["id"]);

                //Detail
                DataTable dtDetail = HinhNenController.GetWallpaperDetailByIDHasCache(AppEnv.CheckSessionTelco(), id);
                catid = ConvertUtility.ToInt32(dtDetail.Rows[0]["W_CategoryID"]);
                //end detail

                if (dtDetail.Rows.Count > 0)
                {
                    if (catid == ConvertUtility.ToInt32(AppEnv.GetSetting("thuphapid")))
                    {
                        price = AppEnv.GetSetting("thuphapprice");
                    }
                    else
                    {
                        price = AppEnv.GetSetting("wallprice");
                    }

                    //lblPrice.Text = price;

                    rptDetail.DataSource = dtDetail;
                    rptDetail.DataBind();
                }
            }
        }
示例#29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = Request.QueryString["lang"];
            width = ConvertUtility.ToInt32(Request.QueryString["w"]);
            price = AppEnv.GetSetting("ykcgprice");

            telCo = AppEnv.CheckSessionTelco();

            linkStr = "<a href=\"" + UrlProcess.TheThaoHome() + "\" >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 = Request.QueryString["id"];//ThethaoController.GetSport_GameDetailBySportID(ConvertUtility.ToInt32(Request.QueryString["id"])).Rows[0]["PK_Game_ID"].ToString();
                DataTable ykcg = ThethaoController.GetDetail_YKCG_ByGameID(gameid);

                if (WapController.W4A_Subscriber_IsActive(ConvertUtility.ToString(Session["msisdn"]), 2))
                {
                    HienThiNoiDung(true, false);
                    return;
                }

                // Nếu có transactionid_old >> thuê bao mobifone đã thực hiện thanh toán
                if (Session["transactionid_old"] != null)
                {
                    messageReturn = ConvertUtility.ToString(Session["debit_status"]);
                    if (ConvertUtility.ToString(Session["debit_status"]) == "0")
                    {// Thanh toán thành công >> trả nội dung
                        HienThiNoiDung(true, true);
                    }
                    else
                    {// Thanh toán không thành công >> thông báo lỗi
                        HienThiNoiDung(false, true);
                    }
                    Session["transactionid_old"] = null;
                }
                else
                {
                    if (telCo == Constant.T_Mobifone)
                    {
                        string content = Session["cpid"].ToString() + "&" + Constant.thethao + "6" + Request.QueryString["id"] + "&" + price + "&" + Session["transactionid"].ToString();
                        Response.Redirect(ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey"))));
                    }
                    //
                    if (telCo == "Undefined")
                    {
                        pnlSMS.Visible = true;
                        //if (lang == "1")
                        //{
                        ltrHuongdan.Text = linkStr + " » " + Resources.Resource.wHuongDan;
                        ltrSMS.Text      = "Soạn tin <b>" + ConfigurationSettings.AppSettings.Get("ykcgcode") + " " + ykcg.Rows[0]["Code"].ToString() + "</b> gửi <b>" + ConfigurationSettings.AppSettings.Get("ykcgcommandcode") + "</b> để nhận thống kê tin về trận đấu" + Resources.Resource.wChon3G;
                        //}
                        //else
                        //{
                        //    ltrHuongdan.Text = linkStr_KD + " » " + Resources.Resource.wHuongDan_KD;
                        //    ltrSMS.Text = "Soan tin <b>" + ConfigurationSettings.AppSettings.Get("ykcgcode") + " " + ykcg.Rows[0]["Code"].ToString() + "</b> gui <b>" + ConfigurationSettings.AppSettings.Get("ykcgcommandcode") + "</b> de nhan thong ke ve tran dau" + 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(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "YKCG", Request.QueryString["id"]);

                            if (messageReturn == AppEnv.GetSetting("NotEnoughMoney"))    //Not Enough Money
                            {
                                messageReturn = AppEnv.VnmChargingOptimizeNotEnoughMoney(Session["msisdn"].ToString(), "VIDEOVIEW", "VIDEO_VIEW", price, "D", "YKCG", 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", "YKCG", 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 HienThiNoiDung(Boolean thuchien, Boolean isLog)
        {
            pnlNoiDung.Visible = true;
            id = ConvertUtility.ToInt32(Request.QueryString["id"]);
            DataTable dtDetail = HinhNenController.GetWallpaperDetailByID(AppEnv.CheckSessionTelco(), id);

            if (thuchien)
            {
                if (lang == "1")
                {
                    //ltrTieuDe.Text = linkStr;
                    lblTen.Text      = dtDetail.Rows[0]["WTitle_Unicode"].ToString();
                    lnkDownload.Text = Resources.Resource.wBamDeTai;
                    ltrNoiDung.Text  = Resources.Resource.wMuaThanhCong + " hình nền " + dtDetail.Rows[0]["WTitle_Unicode"].ToString() + " (" + dtDetail.Rows[0]["WCode"].ToString() + ")";
                }
                else
                {
                    //ltrTieuDe.Text = linkStr_KD;
                    lblTen.Text      = dtDetail.Rows[0]["WTitle"].ToString();
                    lnkDownload.Text = Resources.Resource.wBamDeTai_KD;
                    ltrNoiDung.Text  = Resources.Resource.wMuaThanhCong_KD + " hình nền " + dtDetail.Rows[0]["WTitle"].ToString() + " (" + dtDetail.Rows[0]["WCode"].ToString() + ")";
                }
                lnkDownload.NavigateUrl = UrlProcess.GetDownloadItem(AppEnv.CheckSessionTelco(), "1", id.ToString(), SecurityMethod.MD5Encrypt(id.ToString()));
                if (ConvertUtility.ToInt32(dtDetail.Rows[0]["W_CategoryID"]) == ConvertUtility.ToInt32(ConfigurationSettings.AppSettings.Get("thuphapid")))
                {
                    if (isLog)
                    {
                        chitietGiaodich = "Thu phap: " + dtDetail.Rows[0]["WCode"].ToString() + " -- id:" + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
                        Transaction.Success(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, lnkDownload.NavigateUrl, id.ToString(), chitietGiaodich, 15);
                    }
                }
                else
                {
                    if (isLog)
                    {
                        chitietGiaodich = "Hinh nen: " + dtDetail.Rows[0]["WCode"].ToString() + " -- id:" + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
                        Transaction.Success(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, lnkDownload.NavigateUrl, id.ToString(), chitietGiaodich, 1);
                    }
                }
                //if(isLog)
                //{
                HinhNenController.SetDownloadCounter(AppEnv.CheckFreeContentTelco(), id);
                //}
            }
            else
            {
                //Thông báo lỗi thanh toán
                if (lang == "1")
                {
                    //ltrTieuDe.Text = linkStr + " » " + Resources.Resource.wThongBao;
                    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan;
                }
                else
                {
                    //ltrTieuDe.Text = linkStr_KD + " » " + Resources.Resource.wThongBao_KD;
                    ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                }
                if (ConvertUtility.ToInt32(dtDetail.Rows[0]["W_CategoryID"]) == ConvertUtility.ToInt32(ConfigurationSettings.AppSettings.Get("thuphapid")))
                {
                    chitietGiaodich = "Thu phap: " + dtDetail.Rows[0]["WCode"].ToString() + " -- id:" + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
                    if (isLog)
                    {
                        Transaction.Failure(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 15, messageReturn);
                    }
                }
                else
                {
                    chitietGiaodich = "Hinh nen: " + dtDetail.Rows[0]["WCode"].ToString() + " -- id:" + id.ToString() + " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
                    if (isLog)
                    {
                        Transaction.Failure(AppEnv.CheckSessionTelco(), Session["msisdn"].ToString(), price, Request.Url.ToString(), id.ToString(), chitietGiaodich, 1, messageReturn);
                    }
                }
                //--Thông báo lỗi thanh toán
            }

            if (isLog)
            {
                //log charging
                ILog logger = LogManager.GetLogger(Session["telco"].ToString());
                logger.Debug("--------------------------------------------------");
                logger.Debug("MSISDN:" + Session["msisdn"].ToString());
                logger.Debug("Dich vu: Hinh nen - parameter: " + price + " - Ten: " + dtDetail.Rows[0]["WTitle"].ToString() + " - id: " + id);
                logger.Debug("Wallpaper Url:" + lnkDownload.NavigateUrl);
                logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
                logger.Debug("Error:" + messageReturn);
                logger.Debug("Current Url:" + Request.RawUrl);
                //end log
            }
        }