/// <summary>
        /// 根据条件获取数据
        /// </summary>
        private static string GetAllByAny(HttpContext context)
        {
            //if (!_isview)
            //{
            //    return null;
            //}

            int    pageIndex = Convert.ToInt32(context.Request["page"]);
            int    pageSize  = Convert.ToInt32(context.Request["rows"]);
            string keyWord   = context.Request["SearchTitle"];
            var    strWhere  = string.Format("UserID='{0}'", DataLoadTool.GetCurrUserID());

            //if (!string.IsNullOrEmpty(searchtitle))
            //{
            //    searchCondition += "UserID like '%" + searchtitle + "%'";
            //}

            List <ZentCloud.BLLJIMP.Model.WeixinMemberInfo> dataList = bll.GetLit <ZentCloud.BLLJIMP.Model.WeixinMemberInfo>(pageSize, pageIndex, strWhere, "RegDate ASC");

            int totalCount = bll.GetCount <ZentCloud.BLLJIMP.Model.WeixinMemberInfo>(strWhere);

            return(Common.JSONHelper.ObjectToJson(
                       new
            {
                total = totalCount,
                rows = dataList
            }));
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (bllMall.IsLogin)
     {
         AddressList = bllMall.GetConsigneeAddressList(DataLoadTool.GetCurrUserID());
     }
     else
     {
         Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}", Request.FilePath));
     }
 }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (bllMall.IsLogin)
     {
         ScoreTotalIn  = bllMall.GetScoreRecordTotalInOut(DataLoadTool.GetCurrUserID(), 1);
         ScoreTotalOut = bllMall.GetScoreRecordTotalInOut(DataLoadTool.GetCurrUserID(), 0);
     }
     else
     {
         Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}", Request.FilePath));
     }
 }
Exemple #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         UserInfo        = DataLoadTool.GetCurrUserModel();
         VoteInfo        = bllVote.GetVoteInfo(int.Parse(Request["vid"]));
         CanUseVoteCount = bllVote.GetCanUseVoteCount(VoteInfo.AutoID, DataLoadTool.GetCurrUserID());
         RechargeList    = bllVote.GetVoteRechargeList(VoteInfo.AutoID);
     }
     catch (Exception)
     {
         Response.End();
     }
 }
Exemple #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (bllMall.IsLogin)
     {
         if (!string.IsNullOrEmpty(Request["action"]))
         {
             if ((Request["action"].Equals("edit")) && (!string.IsNullOrEmpty(Request["id"])))
             {
                 AddressInfo = bllMall.GetConsigneeAddress(Request["id"]);
                 if (AddressInfo != null)
                 {
                     if (AddressInfo.UserID != DataLoadTool.GetCurrUserID())
                     {
                         Response.End();
                     }
                 }
             }
         }
     }
     else
     {
         Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}", Request.Url.PathAndQuery));
     }
 }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int voteID = int.Parse(Request["vid"]);
                //检查登录
                if (!bllVote.IsLogin)
                {
                    //if (VoteID == 121)
                    //{

                    Response.Write("请用微信打开");
                    Response.End();
                    return;
                    //}

                    //Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}?vid={1}", Request.FilePath,VoteID));
                }
                else
                {
                    //if (VoteID==121)
                    //{
                    //    if (!Request.Url.Host.Equals("comeoncloud.comeoncloud.net"))
                    //    {
                    //        Response.Write("请用微信打开");
                    //        Response.End();
                    //    }
                    //}
                }
                //

                VoteInfo = bllVote.GetVoteInfo(voteID);

                if (VoteInfo == null)
                {
                    Response.Write("投票不存在");
                    Response.End();
                    return;
                }
                //if ((!VoteInfo.WebsiteOwner.Equals(bllVote.WebsiteOwner))&&(VoteInfo.IsFree.Equals(0)))
                //{
                //    Response.Write("拒绝访问");
                //    Response.End();
                //    return;
                //}
                if (VoteInfo.VoteStatus.Equals(0))
                {
                    CanUseVoteCount = "投票已结束";
                    return;
                }
                if (!string.IsNullOrEmpty(VoteInfo.StopDate))
                {
                    if (DateTime.Now >= (Convert.ToDateTime(VoteInfo.StopDate)))
                    {
                        CanUseVoteCount = "投票已结束";
                        return;
                    }
                }

                //if (VoteInfo.IsFree.Equals(1)&&VoteInfo.VoteType.Equals(1)&&VoteInfo.VoteCountAutoUpdate.Equals(1))
                //{
                //    //检查是否更新票数
                //    bllVote.UpdateUserVoteCount(VoteInfo.AutoID, DataLoadTool.GetCurrUserModel());

                //}
                CanUseVoteCount = bllVote.GetCanUseVoteCount(voteID, DataLoadTool.GetCurrUserID()).ToString();
            }
            catch (Exception)
            {
                Response.End();
            }
        }
Exemple #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                BLLJIMP.Model.UserInfo uinfo = bll.GetCurrentUserInfo();
                if (string.IsNullOrEmpty(uinfo.TrueName) || string.IsNullOrEmpty(uinfo.Phone))
                {
                    isUserRegistered = false;
                }

                AutoId = Request["id"];
                if (!string.IsNullOrEmpty(AutoId))
                {
                    GetPosition();

                    var List = bll.GetList <ArticleCategory>(string.Format("WebsiteOwner='{0}' And CategoryType in ('trade','Professional')", bll.WebsiteOwner));
                    TradeList        = List.Where(p => p.CategoryType.Equals("trade")).ToList();
                    ProfessionalList = List.Where(p => p.CategoryType.Equals("Professional")).ToList();
                    IsApply          = bll.GetCount <ApplyPositionInfo>(string.Format("UserId='{0}' And PositionId={1}", DataLoadTool.GetCurrUserID(), AutoId)) > 0 ? true : false;
                }
            }
            catch (Exception)
            {
                Response.End();
            }
        }
Exemple #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int id = int.Parse(Request["id"]);
                //检查登录
                if (!bllVote.IsLogin)
                {
                    Response.Write("请用微信打开");
                    Response.End();
                    return;
                }
                else
                {
                    //if (id == 121)
                    //{
                    //    if (!Request.Url.Host.Equals("comeoncloud.comeoncloud.net"))
                    //    {
                    //        Response.Write("请用微信打开");
                    //        Response.End();
                    //    }
                    //}
                }
                //
                model = bllVote.GetVoteObjectInfo(id);
                if (model == null)
                {
                    Response.Write("选手不存在");
                    Response.End();
                    return;
                }
                VoteInfoModel = bllVote.GetVoteInfo(model.VoteID);
                //if ((!VoteInfoModel.WebsiteOwner.Equals(bllVote.WebsiteOwner)) && (VoteInfoModel.IsFree.Equals(0)))
                //{
                //    Response.Write("拒绝访问");
                //    Response.End();
                //    return;

                //}
                if (VoteInfoModel.VoteStatus.Equals(0))
                {
                    CanUseVoteCount = "投票已结束";
                    return;
                }
                if (!string.IsNullOrEmpty(VoteInfoModel.StopDate))
                {
                    if (DateTime.Now >= (Convert.ToDateTime(VoteInfoModel.StopDate)))
                    {
                        CanUseVoteCount = "投票已结束";
                        return;
                    }
                }
                //if (VoteInfoModel.IsFree.Equals(1) && VoteInfoModel.VoteType.Equals(1) && VoteInfoModel.VoteCountAutoUpdate.Equals(1))
                //{
                //    //检查是否更新票数
                //    bllVote.UpdateUserVoteCount(VoteInfoModel.AutoID, DataLoadTool.GetCurrUserModel());

                //}
                CanUseVoteCount = bllVote.GetCanUseVoteCount(model.VoteID, DataLoadTool.GetCurrUserID()).ToString();
            }
            catch (Exception)
            {
                Response.End();
            }
        }