Example #1
0
    private void OpenPage()
    {
        int    gid  = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效"));
        int    pid  = Utils.ParseInt(Utils.GetRequest("pid", "all", 2, @"^[0-9]*$", "ID无效"));
        string ac   = Utils.GetRequest("ac", "all", 1, "", "");
        string info = Utils.GetRequest("info", "all", 1, "", "");

        TPR2.BLL.guess.BaListMe   bll   = new TPR2.BLL.guess.BaListMe();
        TPR2.Model.guess.BaListMe model = bll.GetModel(gid);
        if (model == null)
        {
            Utils.Error("不存在的记录", "");
        }

        Master.Title = "开奖赛事" + model.p_one + "VS" + model.p_two + "-记录" + pid + "";

        if (ac == "确定开奖" || ac == Utils.ToTChinese("确定开奖"))
        {
            int    opentype  = Utils.ParseInt(Utils.GetRequest("opentype", "post", 2, @"^[0-2]$", "开奖类型错误"));
            int    resultone = Utils.ParseInt(Utils.GetRequest("resultone", "post", 2, @"^[0-9]*$", "请正确输入比分"));
            int    resulttwo = Utils.ParseInt(Utils.GetRequest("resulttwo", "post", 2, @"^[0-9]*$", "请正确输入比分"));
            string jietime   = "";
            if (opentype == 1)
            {
                DateTime jietime2 = Utils.ParseTime(Utils.GetRequest("jietime", "post", 2, DT.RegexTime, "请正确填写截止时间"));
                jietime = jietime2.ToString();
            }
            if (info == "ok")
            {
                //游戏日志记录
                int      ManageId  = new BCW.User.Manage().IsManageLogin();
                string[] p_pageArr = { "act", "ac", "opentype", "resultone", "resulttwo", "jietime", "gid", "pid", "info" };
                BCW.User.GameLog.GameLogPage(1, Utils.getPageUrl(), p_pageArr, "后台管理员开奖个人庄赛事" + model.p_one + "VS" + model.p_two + "-记录" + gid + "_" + pid + "", gid);


                //之前比分
                int oldresultone = Convert.ToInt32(model.p_result_one);
                int oldresulttwo = Convert.ToInt32(model.p_result_two);

                //更新比分
                model.p_result_one = resultone;
                model.p_result_two = resulttwo;

                if (opentype == 3)
                {
                    model.p_active = 2;//平盘标识
                }
                else
                {
                    model.p_active = 1;
                }

                //bll.UpdateResult(model);

                if (model.p_ison == 1)
                {
                    if (opentype == 1)
                    {
                        UpdateCaseOnce(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                    }
                    else if (opentype == 2)
                    {
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, "", pid);
                    }
                    else
                    {
                        UpdateCaseOnce(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                    }
                }
                else
                {
                    if (opentype == 1)
                    {
                        UpdateCase(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                    }
                    else if (opentype == 2)
                    {
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, "", pid);
                    }
                    else
                    {
                        UpdateCase(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime, pid);
                    }
                }
                //发送内线
                string strLog = "管理员对个人庄纠纷《" + model.p_title + ":" + model.p_two + "VS" + model.p_two + "》进行重开奖,原开奖比分" + oldresultone + ":" + oldresulttwo + ",重新开奖比分:" + resultone + ":" + resulttwo + "[url=/bbs/guess2/kzcaseGuess.aspx]马上兑奖[/url]";
                new BCW.BLL.Guest().Add(1, model.usid, new BCW.BLL.User().GetUsName(model.usid), strLog);

                Utils.Success("开奖", "开奖" + resultone + ":" + resulttwo + "成功..", Utils.getUrl("kzbother.aspx"), "1");
            }
            else
            {
                builder.Append(Out.Tab("<div>", ""));
                if (opentype == 0)
                {
                    builder.Append("请确认比分" + resultone + ":" + resulttwo + "");
                }
                else if (opentype == 1)
                {
                    builder.Append("请确认比分" + resultone + ":" + resulttwo + "|截时时间:" + jietime + "<br />温馨提示;截时时间");
                }
                else
                {
                    builder.Append("请确定平盘");
                }

                builder.Append(Out.Tab("</div>", "<br />"));
                string strName = "resultone,resulttwo,opentype,jietime,gid,pid,info,act";
                string strValu = "" + resultone + "'" + resulttwo + "'" + opentype + "'" + jietime + "'" + gid + "'" + pid + "'ok'open";
                string strOthe = "确定开奖,kzbother.aspx,post,0,red";

                builder.Append(Out.wapform(strName, strValu, strOthe));
                builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
                builder.Append(Out.Tab("<div>", ""));
                builder.Append(Out.waplink(Utils.getUrl("kzbother.aspx"), "返回上一级"));
                builder.Append(Out.Tab("</div>", ""));
                builder.Append(Out.Tab("<div class=\"title\">", "<br />"));
                builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>");
                builder.Append(Out.Tab("</div>", "<br />"));
            }
        }
        else
        {
            builder.Append(Out.Tab("<div class=\"title\">", ""));
            builder.Append("开奖赛事" + model.p_one + "VS" + model.p_two + "-记录" + pid + "");
            builder.Append(Out.Tab("</div>", "<br />"));

            builder.Append(Out.Tab("<div class=\"text\">", ""));
            builder.Append("开赛:" + DT.FormatDate(Convert.ToDateTime(model.p_TPRtime), 0));
            builder.Append(Out.Tab("</div>", ""));

            string strText = string.Empty;
            string strName = string.Empty;
            string strType = string.Empty;
            string strValu = string.Empty;
            string strEmpt = string.Empty;

            strText = "*填写比分/,比/,开奖方式:/,截时时间(选择截时开奖时生效):/,,,";
            strName = "resultone,resulttwo,opentype,jietime,gid,pid,act";
            strType = "num,num,select,date,hidden,hidden,hidden";
            strValu = "0'0'0'" + DT.FormatDate(DateTime.Now, 0) + "'" + gid + "'" + pid + "'open";
            strEmpt = "false,false,0|正常开奖|1|截时开奖|2|平盘开奖,false,false,false";

            string strIdea = "/";
            string strOthe = "确定开奖,kzbother.aspx,post,1,red";

            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr()));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(Out.waplink(Utils.getUrl("kzbother.aspx"), "返回上一级"));
            builder.Append(Out.Tab("</div>", ""));
            builder.Append(Out.Tab("<div class=\"title\">", "<br />"));
            builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>");
            builder.Append(Out.Tab("</div>", "<br />"));
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int meid = new BCW.User.Users().GetUsId();

        if (meid == 0)
        {
            Utils.Login();
        }

        int    gid  = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效"));
        string ac   = Utils.GetRequest("ac", "all", 1, "", "");
        string info = Utils.GetRequest("info", "all", 1, "", "");

        TPR2.BLL.guess.BaListMe   bll   = new TPR2.BLL.guess.BaListMe();
        TPR2.Model.guess.BaListMe model = bll.GetModel(gid);
        if (model == null)
        {
            Utils.Error("不存在的记录", "");
        }
        if (model.p_result_one != null && model.p_result_two != null)
        {
            Utils.Error("请不要重复开奖", "");
        }

        if (model.usid != meid)
        {
            Utils.Error("你的权限不足", "");
        }

        Master.Title = "开奖赛事" + model.p_one + "VS" + model.p_two;

        if (ac == "确定开奖" || ac == Utils.ToTChinese("确定开奖"))
        {
            int    opentype  = Utils.ParseInt(Utils.GetRequest("opentype", "post", 2, @"^[0-2]$", "开奖类型错误"));
            int    resultone = Utils.ParseInt(Utils.GetRequest("resultone", "post", 2, @"^[0-9]*$", "请正确输入比分"));
            int    resulttwo = Utils.ParseInt(Utils.GetRequest("resulttwo", "post", 2, @"^[0-9]*$", "请正确输入比分"));
            string jietime   = "";
            if (opentype == 1)
            {
                DateTime jietime2 = Utils.ParseTime(Utils.GetRequest("jietime", "post", 2, DT.RegexTime, "请正确填写截止时间"));
                jietime = jietime2.ToString();
            }
            if (info == "ok")
            {
                //更新比分
                model.p_result_one = resultone;
                model.p_result_two = resulttwo;

                if (opentype == 3)
                {
                    model.p_active = 2;//平盘标识
                }
                else
                {
                    model.p_active = 1;
                }

                bll.UpdateResult(model);

                if (model.p_ison == 1)
                {
                    if (opentype == 1)
                    {
                        UpdateCaseOnce(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                    }
                    else if (opentype == 2)
                    {
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, "");
                    }
                    else
                    {
                        UpdateCaseOnce(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                    }
                }
                else
                {
                    if (opentype == 1)
                    {
                        UpdateCase(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                    }
                    else if (opentype == 2)
                    {
                        UpdateCasePP(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, "");
                    }
                    else
                    {
                        UpdateCase(resultone, resulttwo, gid, Convert.ToInt32(model.p_type), model.usid, jietime);
                    }
                }
                Utils.Success("开奖", "开奖" + resultone + ":" + resulttwo + "成功..", Utils.getUrl("kzlist.aspx?act=view&amp;gid=" + gid + ""), "1");
            }
            else
            {
                builder.Append(Out.Tab("<div>", ""));
                if (opentype == 0)
                {
                    builder.Append("请确认比分" + resultone + ":" + resulttwo + "");
                }
                else if (opentype == 1)
                {
                    builder.Append("请确认比分" + resultone + ":" + resulttwo + "|截时时间:" + jietime + "<br />温馨提示;截时时间");
                }
                else
                {
                    builder.Append("请确定平盘");
                }

                builder.Append(Out.Tab("</div>", "<br />"));
                string strName = "resultone,resulttwo,opentype,jietime,gid,info";
                string strValu = "" + resultone + "'" + resulttwo + "'" + opentype + "'" + jietime + "'" + gid + "'ok";
                string strOthe = "确定开奖,kzopenGuess.aspx,post,0,red";

                builder.Append(Out.wapform(strName, strValu, strOthe));
                builder.Append(Out.Tab("<div>", "<br />"));
                builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=view&amp;gid=" + gid + ""), "返回上一级"));
                builder.Append(Out.Tab("</div>", ""));
            }
        }
        else
        {
            builder.Append(Out.Tab("<div class=\"title\">", ""));
            builder.Append("开奖赛事" + model.p_one + "VS" + model.p_two);
            builder.Append(Out.Tab("</div>", "<br />"));

            builder.Append(Out.Tab("<div class=\"text\">", ""));
            builder.Append("开赛:" + DT.FormatDate(Convert.ToDateTime(model.p_TPRtime), 0));
            builder.Append(Out.Tab("</div>", ""));

            string strText = string.Empty;
            string strName = string.Empty;
            string strType = string.Empty;
            string strValu = string.Empty;
            string strEmpt = string.Empty;

            strText = "*填写比分/,比/,开奖方式:/,截时时间(选择截时开奖时生效):/,";
            strName = "resultone,resulttwo,opentype,jietime,gid";
            strType = "num,num,select,date,hidden";
            strValu = "0'0'0'" + DT.FormatDate(DateTime.Now, 0) + "'" + gid + "";
            strEmpt = "false,false,0|正常开奖|1|截时开奖|2|平盘开奖,false";

            string strIdea = "/";
            string strOthe = "确定开奖,kzopenguess.aspx,post,1,red";

            builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe));

            builder.Append(Out.Tab("<div>", Out.Hr()));
            builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=view&amp;gid=" + gid + ""), "返回上一级"));
            builder.Append(Out.Tab("</div>", ""));
            builder.Append(Out.Tab("<div class=\"title\">", "<br />"));
            builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回球彩首页</a>");
            builder.Append(Out.Tab("</div>", ""));
        }
    }
Example #3
0
    private void ViewPage()
    {
        int gid = Utils.ParseInt(Utils.GetRequest("gid", "get", 2, @"^[0-9]*$", "竞猜ID无效"));

        TPR2.BLL.guess.BaListMe bll = new TPR2.BLL.guess.BaListMe();


        TPR2.Model.guess.BaListMe model = bll.GetModel(gid);
        if (model == null)
        {
            Utils.Error("不存在的记录", "");
        }

        Master.Title = model.p_one + "VS" + model.p_two;

        builder.Append(Out.Tab("<div>", ""));
        builder.Append("庄家:<a href=\"" + Utils.getUrl("/bbs/uinfo.aspx?uid=" + model.usid + "&amp;backurl=" + Utils.PostPage(1) + "") + "\">" + new BCW.BLL.User().GetUsName(model.usid) + "(" + model.usid + ")</a>");

        builder.Append("<br /><a href=\"" + Utils.getUrl("default.aspx?showtype=1&amp;ptype=4&amp;fly=" + model.p_title + "") + "\">" + model.p_title + "</a>:" + model.p_one + "VS" + model.p_two + "");

        builder.Append("<br />开赛:" + DT.FormatDate(Convert.ToDateTime(model.p_TPRtime), 0));
        if (model.p_result_one != null && model.p_result_two != null)
        {
            builder.Append("<br />完场比分:" + model.p_result_one + ":" + model.p_result_two + "");
        }

        builder.Append(Out.Tab("</div>", "<br />"));
        builder.Append(Out.Tab("<div>", ""));
        builder.Append("〓让球盘〓");
        builder.Append("<br />" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=1"), model.p_one + "(" + Convert.ToDouble(model.p_one_lu) + ")"));


        builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=1"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 1));

        if (model.p_type == 1)
        {
            builder.Append("<br />" + GCK.getZqPn(Convert.ToInt32(model.p_pn)) + "" + GCK.getPkName(Convert.ToInt32(model.p_pk)) + "");
        }
        else
        {
            builder.Append("<br />" + Convert.ToDouble(model.p_pk) + "");
        }

        builder.Append("<br />" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=2"), model.p_two + "(" + Convert.ToDouble(model.p_two_lu) + ")"));

        builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=2"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 2));

        if (model.p_big_lu != 0 && model.p_big_lu != -1 && model.p_dx_pk != 0)
        {
            builder.Append("<br />〓大小盘〓<br />");

            builder.AppendFormat("" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=3"), "{0}注") + "{1}", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 3), "|");

            builder.Append("" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=3"), "大(" + Convert.ToDouble(model.p_big_lu) + ")"));

            if (model.p_type == 1)
            {
                builder.Append(GCK.getDxPkName(Convert.ToInt32(model.p_dx_pk)));
            }
            else
            {
                builder.Append(Convert.ToDouble(model.p_dx_pk));
            }

            builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=4"), "小(" + Convert.ToDouble(model.p_small_lu) + ")"));

            builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=4"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 4));
        }
        if (ub.GetSub("SiteIsbz", "/Controls/guess.xml") != "1")
        {
            if (model.p_bzs_lu != 0 && model.p_bzs_lu != -1)
            {
                builder.Append("<br />〓标准盘〓");
                builder.Append("<br />" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=5"), "主胜(" + Convert.ToDouble(model.p_bzs_lu) + ")"));

                builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=5"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 5));

                builder.Append("<br />" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=6"), "平手(" + Convert.ToDouble(model.p_bzp_lu) + ")"));

                builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=6"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 6));

                builder.Append("<br />" + Out.waplink(Utils.getUrl("kzlist.aspx?act=pay&amp;gid=" + model.ID + "&amp;p=7"), "客胜(" + Convert.ToDouble(model.p_bzx_lu) + ")"));

                builder.AppendFormat("{0}" + Out.waplink(Utils.getUrl("kzlist.aspx?act=plist&amp;gid=" + model.ID + "&amp;p=7"), "{1}注"), "|", new TPR2.BLL.guess.BaPayMe().GetCount(model.ID, Convert.ToInt32(model.p_type), 7));
            }
        }
        builder.Append(Out.Tab("</div>", ""));

        builder.Append(Out.Tab("<div>", "<br />"));
        builder.Append("【" + Out.waplink(Utils.getUrl("kzguess2.aspx?gid=" + gid + ""), "编辑") + " ");
        builder.Append("" + Out.waplink(Utils.getUrl("kzlist.aspx?act=del&amp;gid=" + gid + ""), "删除") + " ");
        builder.Append("" + Out.waplink(Utils.getUrl("kzlist.aspx?act=wlist&amp;gid=" + gid + ""), "记录") + "】");
        builder.Append(Out.Tab("</div>", ""));
        builder.Append(Out.Tab("<div>", Out.Hr()));
        builder.Append(Out.waplink(Utils.getPage("kzlist.aspx"), "返回上一级") + "<br />");
        builder.Append(Out.waplink(Utils.getUrl("default.aspx"), "返回球彩管理") + "");
        builder.Append(Out.Tab("</div>", "<br />"));
        builder.Append(Out.Tab("<div class=\"title\">", ""));
        builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>");
        builder.Append(Out.Tab("</div>", "<br />"));
    }