private void GetCase(int meid) { int pid = Utils.ParseInt(Utils.GetRequest("pid", "get", 2, @"^[0-9]\d*$", "选择赛事无效")); int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 1, @"^[0-9]\d*$", "0")); if (new TPR2.BLL.guess.BaPayMe().ExistsIsCase(pid, meid)) { BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set isqr=1 where id=" + pid + ""); new TPR2.BLL.guess.BaPayMe().UpdateIsCase(pid); //操作币 long win = Convert.ToInt64(new TPR2.BLL.guess.BaPayMe().Getp_getMoney(pid)); int Types = new TPR2.BLL.guess.BaPayMe().GetTypes(pid); if (Types == 0) { new BCW.BLL.User().UpdateiGold(meid, win, "竞猜赛事ID" + pid + "兑奖"); Utils.Success("兑奖", "恭喜,成功兑奖" + win + "" + ub.Get("SiteBz") + "", Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + ""), "1"); } else { new BCW.BLL.User().UpdateiMoney(meid, win, "竞猜赛事ID" + pid + "兑奖"); Utils.Success("兑奖", "恭喜,成功兑奖" + win + "" + ub.Get("SiteBz2") + "", Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + ""), "1"); } } else { Utils.Success("兑奖", "恭喜,重复兑奖或没有可以兑奖的记录", Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + ""), "1"); } }
private void BackSavePage() { int gid = Utils.ParseInt(Utils.GetRequest("gid", "post", 2, @"^[0-9]\d*$", "竞猜ID无效")); int id = Utils.ParseInt(Utils.GetRequest("id", "post", 2, @"^[0-9]\d*$", "ID无效")); if (!new TPR2.BLL.guess.BaListMe().Exists(gid)) { Utils.Error("不存在的记录", ""); } TPR2.Model.guess.BaPayMe model = new TPR2.BLL.guess.BaPayMe().GetModelIsCase(id); if (model == null) { Utils.Error("不存在的记录", ""); } string Content = Utils.GetRequest("Content", "all", 3, @"^[\s\S]{1,200}$", "原因限200字内,可以留空"); //游戏日志记录 int ManageId = new BCW.User.Users().GetUsId(); string[] p_pageArr = { "act", "gid", "id", "Content" }; BCW.User.GameLog.GameLogPage(1, Utils.getPageUrl(), p_pageArr, "前台管理员ID" + ManageId + "号操作:会员ID" + model.payusid + ":个人庄" + model.payview + "竞猜失败已作退回本金处理", gid); string Msgtxt = string.Empty; if (Content == "") { Msgtxt = model.payview + "个人庄竞猜失败已作退回本金处理"; } else { Msgtxt = model.payview + "个人庄竞猜失败已作退回本金处理," + Content + ""; } new BCW.BLL.Guest().Add(Convert.ToInt32(model.payusid), model.payusname, Msgtxt); //退本金 if (model.Types == 0) { new BCW.BLL.User().UpdateiGold(Convert.ToInt32(model.payusid), model.payusname, Convert.ToInt64(model.payCent), "系统撤销押注并退回本金"); } else { new BCW.BLL.User().UpdateiMoney(Convert.ToInt32(model.payusid), model.payusname, Convert.ToInt64(model.payCent), "系统撤销押注并退回本金"); } //删除处理 new TPR2.BLL.guess.BaPayMe().Delete(id); Utils.Success("撤销押注", "撤销押注并退回本金成功...", Utils.getPage("kzlist.aspx?act=plist&gid=" + gid + ""), "1"); }
private void DelPage() { int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效")); TPR2.Model.guess.BaListMe model = new TPR2.BLL.guess.BaListMe().GetModel(gid); if (model == null) { Utils.Error("不存在的记录", ""); } Master.Title = "删除记录"; string info = Utils.GetRequest("info", "get", 1, "", ""); if (info != "ok") { long getMaxNum = new TPR2.BLL.guess.BaPayMe().GetBaPayMeCent(gid, Convert.ToInt32(model.p_type)); builder.Append(Out.Tab("<div class=\"title\">", "")); if (getMaxNum > 0) { builder.Append("存在下注记录,"); } builder.Append("确定要删除吗"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?info=ok&act=del&gid=" + gid + ""), "确定删除") + "<br />"); builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=view&gid=" + gid + ""), "先留着吧..")); builder.Append(Out.Tab("</div>", "<br />")); } else { //游戏日志记录 int ManageId = new BCW.User.Manage().IsManageLogin(); string[] p_pageArr = { "act", "gid", "info" }; BCW.User.GameLog.GameLogGetPage(1, Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号删除个人庄赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")", gid); new TPR2.BLL.guess.BaListMe().Delete(gid); new TPR2.BLL.guess.BaPayMe().DeleteStr("bcid=" + gid + ""); Utils.Success("删除", "删除赛事成功..", Utils.getUrl("kzlist.aspx"), "1"); } }
private void GetCase(int meid) { int pid = Utils.ParseInt(Utils.GetRequest("pid", "get", 2, @"^[0-9]\d*$", "选择赛事无效")); DataSet ds = new TPR2.BLL.guess.BaPayMe().GetBaPayMeList("bcid,qrPrice", "ID=" + pid + " and usid=" + meid + " and qrPrice>0 and (isqr=1 or (isqr=0 and kjTime<'" + DateTime.Now.AddHours(-1) + "'))"); if (ds != null && ds.Tables[0].Rows.Count > 0) { BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set isqr=9 where id=" + pid + ""); int bcid = int.Parse(ds.Tables[0].Rows[0]["bcid"].ToString()); long qrPrice = Int64.Parse(ds.Tables[0].Rows[0]["qrPrice"].ToString()); new BCW.BLL.User().UpdateiGold(meid, qrPrice, "个人庄赛事ID" + bcid + "-" + pid + "兑奖"); Utils.Success("兑奖", "恭喜,成功兑奖" + qrPrice + "" + ub.Get("SiteBz") + "", Utils.getUrl("kzcaseGuess2.aspx"), "1"); } else { Utils.Success("兑奖", "不存在的兑奖记录", Utils.getUrl("kzcaseGuess2.aspx"), "1"); } }
private void QrCase(int meid) { int pid = Utils.ParseInt(Utils.GetRequest("pid", "get", 2, @"^[0-9]\d*$", "选择赛事无效")); int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 2, @"^[1-2]$", "类型错误")); DataSet ds = new TPR2.BLL.guess.BaPayMe().GetBaPayMeList("payview,bcid,usid,payusid,payusname", "ID=" + pid + " and payusid=" + meid + " and isqr=0"); if (ds != null && ds.Tables[0].Rows.Count > 0) { string payview = ds.Tables[0].Rows[0]["payview"].ToString(); int bcid = int.Parse(ds.Tables[0].Rows[0]["bcid"].ToString()); int usid = int.Parse(ds.Tables[0].Rows[0]["usid"].ToString()); int payusid = int.Parse(ds.Tables[0].Rows[0]["payusid"].ToString()); string payusname = ds.Tables[0].Rows[0]["payusname"].ToString(); BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set isqr=" + ptype + " where id=" + pid + ""); if (ptype == 1) { //通知庄家 string strLog = string.Empty; strLog = "闲家[url=/bbs/uinfo.aspx?uid=" + payusid + "]" + payusname + "[/url]已确认" + payview + "[br][url=/bbs/guess2/kzcaseGuess2.aspx]马上到赛事处兑奖[/url]"; new BCW.BLL.Guest().Add(1, usid, new BCW.BLL.User().GetUsName(usid), strLog); Utils.Success("同意结果", "同意结果操作成功,庄当前已可以顺利兑奖", Utils.getUrl("kzlist.aspx?act=mykz&ptype=2"), "1"); } else { //通知庄家 string strLog = string.Empty; strLog = "闲家[url=/bbs/uinfo.aspx?uid=" + payusid + "]" + payusname + "[/url]:" + payview + "对开奖结果不同意,请双方联系管理员解决[br][url=/bbs/guess2/kzcaseGuess2.aspx?ptype=3]查看纠纷详细[/url]"; new BCW.BLL.Guest().Add(1, usid, new BCW.BLL.User().GetUsName(usid), strLog); Utils.Success("不同意结果", "不同意结果操作成功,请联系管理员解决", Utils.getUrl("kzlist.aspx?act=mykz&ptype=2"), "1"); } } else { Utils.Success("结果", "不存在的记录", Utils.getUrl("kzlist.aspx?act=mykz&ptype=2"), "1"); } }
private void PostCase(int meid) { string arrId = ""; arrId = Utils.GetRequest("arrId", "post", 1, "", ""); if (!Utils.IsRegex(arrId.Replace(",", ""), @"^[0-9]\d*$")) { Utils.Error("选择本页兑奖出错", ""); } int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 1, @"^[0-9]\d*$", "0")); string[] strArrId = arrId.Split(",".ToCharArray()); long winMoney = 0; long winMoney2 = 0; for (int i = 0; i < strArrId.Length; i++) { int pid = Convert.ToInt32(strArrId[i]); if (new TPR2.BLL.guess.BaPayMe().ExistsIsCase(pid, meid)) { BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set isqr=1 where id=" + pid + ""); new TPR2.BLL.guess.BaPayMe().UpdateIsCase(pid); //操作币 long win = Convert.ToInt64(new TPR2.BLL.guess.BaPayMe().Getp_getMoney(pid)); int Types = new TPR2.BLL.guess.BaPayMe().GetTypes(pid); if (Types == 0) { new BCW.BLL.User().UpdateiGold(meid, win, "个人庄-竞猜赛事ID" + pid + "兑奖"); winMoney += win; } else { new BCW.BLL.User().UpdateiMoney(meid, win, "个人庄-竞猜赛事ID" + pid + "兑奖"); winMoney2 += win; } } } Utils.Success("兑奖", "恭喜,成功兑奖" + winMoney + "" + ub.Get("SiteBz") + "/" + winMoney2 + "" + ub.Get("SiteBz2") + "", Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + ""), "1"); }
private void BackPage() { int gid = Utils.ParseInt(Utils.GetRequest("gid", "get", 2, @"^[0-9]\d*$", "竞猜ID无效")); int id = Utils.ParseInt(Utils.GetRequest("id", "get", 2, @"^[0-9]\d*$", "ID无效")); if (!new TPR2.BLL.guess.BaListMe().Exists(gid)) { Utils.Error("不存在的记录", ""); } TPR2.Model.guess.BaPayMe model = new TPR2.BLL.guess.BaPayMe().GetModelIsCase(id); if (model == null) { Utils.Error("不存在的记录", ""); } Master.Title = "撤销押注并退回本金"; builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("撤销押注并退回本金"); builder.Append(Out.Tab("</div>", "")); string strText = "您的个人庄" + Out.SysUBB(model.payview).Replace("/", "/").Replace(",", ",") + "竞猜失败已作退回本金处理,/,,,,"; string strName = "Content,gid,id,act,backurl"; string strType = "text,hidden,hidden,hidden,hidden"; string strValu = "'" + gid + "'" + id + "'backsave'" + Utils.getPage(0) + ""; string strEmpt = "true,false,false,false,false"; string strIdea = "/"; string strOthe = "本条撤销并退本金,kzlist.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.getPage("kzlist.aspx?act=plist&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>", "<br />")); }
//遍历所有下注更新开奖(走地开奖) private void UpdateCaseOnce(int resultone, int resulttwo, int gid, int p_type, int usid, string jietime) { int OnceMin = Convert.ToInt32(ub.GetSub("SiteOnce", xmlPath));//走地时间限制 string strWhere = ""; int recordCount = 0; int p_intWin = 0; decimal p_intDuVal = 0; strWhere = "bcid=" + gid + ""; if (jietime != "") { strWhere += " and paytimes>='" + jietime + "'"; } TPR2.Model.guess.BaOrder objBaOrder = new TPR2.Model.guess.BaOrder(); //取得比分时间段 string stronce = new TPR2.BLL.guess.BaList().Getonce(gid); // 开始查询并更新之 recordCount = 0; p_intWin = 0; p_intDuVal = 0; string WinType = ""; IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(1, 5000, strWhere, out recordCount); if (listBaPayMe.Count > 0) { foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { //------------------------------------------------------ n.p_result_one = resultone; n.p_result_two = resulttwo; n.p_active = 1; //币种 string bzTypes = string.Empty; if (n.Types == 0) { bzTypes = ub.Get("SiteBz"); } else { bzTypes = ub.Get("SiteBz2"); } if (p_type == 1) { if (n.PayType == 1 || n.PayType == 2) { //算出走地(总分减下注时的比分) n.p_result_one = resultone - Convert.ToInt32(n.p_result_temp1); n.p_result_two = resulttwo - Convert.ToInt32(n.p_result_temp2); string p_strVal = KzZqClass.getZqsxCase(n); //重新取值 n.p_result_one = resultone; n.p_result_two = resulttwo; new TPR2.BLL.guess.BaPayMe().UpdateCase(n, p_strVal, out p_intDuVal, out p_intWin, out WinType); } else if (n.PayType == 3 || n.PayType == 4) { new TPR2.BLL.guess.BaPayMe().UpdateCase(n, KzZqClass.getZqdxCase(n), out p_intDuVal, out p_intWin, out WinType); } else { new TPR2.BLL.guess.BaPayMe().UpdateCase(n, KzZqClass.getZqbzCase(n), out p_intDuVal, out p_intWin, out WinType); } } else { if (n.PayType == 1 || n.PayType == 2) { new TPR2.BLL.guess.BaPayMe().UpdateCase(n, KzLqClass.getLqsxCase(n), out p_intDuVal, out p_intWin, out WinType); } else { new TPR2.BLL.guess.BaPayMe().UpdateCase(n, KzLqClass.getLqdxCase(n), out p_intDuVal, out p_intWin, out WinType); } } if (p_intWin == 1) { //闲家赢(平盘或赢半、输半) if (Convert.ToInt32(n.itypes) == 0) { string strLog = string.Empty; strLog = "" + n.payview + "[br]庄家开出结果:" + resultone + ":" + resulttwo + ",返您" + Convert.ToDouble(p_intDuVal) + "" + bzTypes + ",如对开奖结果无异议请[url=/bbs/guess2/kzcaseGuess.aspx]马上兑奖[/url],如有异议请1小时内点击[url=/bbs/guess2/kzcaseGuess.aspx?act=qr&pid=" + n.ID + "&ptype=2]不同意开奖结果[/url]并向管理员反馈。"; new BCW.BLL.Guest().Add(Convert.ToInt32(n.payusid), n.payusname, strLog); } } else { //闲家输 if (Convert.ToInt32(n.itypes) == 0) { string strLog = string.Empty; strLog = "" + n.payview + "[br]庄家开出结果:" + resultone + ":" + resulttwo + ",您输了" + Convert.ToDouble(n.payCent) + "" + bzTypes + ",如对开奖结果有异议请1小时内向管理员反馈,否则请在1小时内点击[url=/bbs/guess2/kzcaseGuess.aspx?act=qr&pid=" + n.ID + "&ptype=1]同意开奖结果[/url],超时则自动确认。"; new BCW.BLL.Guest().Add(Convert.ToInt32(n.payusid), n.payusname, strLog); } } //庄家得到币 long DiffPrice = n.DiffPrice; long WinPrice = 0; if (WinType == "赢半") { WinPrice = Convert.ToInt64(DiffPrice / 2); } else if (WinType == "输半") { WinPrice = DiffPrice + Convert.ToInt64(n.payCent / 2); } else if (WinType == "平盘") { WinPrice = DiffPrice; } else if (WinType == "全输") { WinPrice = DiffPrice + Convert.ToInt64(n.payCent); } BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set qrPrice=" + WinPrice + ",kjTime='" + DateTime.Now + "' where id=" + n.ID + ""); //if (WinPrice > 0) //{ // string usname = new BCW.BLL.User().GetUsName(usid); // new BCW.BLL.User().UpdateiGold(usid, usname, WinPrice, "个人庄(" + gid + "-" + n.ID + ")赢利"); // string strLog2 = string.Empty; // strLog2 = "[url=/bbs/uinfo.aspx?uid=" + n.payusid + "]" + n.payusname + "[/url]:" + n.payview + "[br]结果:" + resultone + ":" + resulttwo + "[闲家" + WinType + "],系统返彩您" + WinPrice + "" + bzTypes + ""; // new BCW.BLL.Guest().Add(1, usid, usname, strLog2); //} } } }
//遍历所有下注更新开奖(平盘) private void UpdateCasePP(int resultone, int resulttwo, int gid, int p_type, int usid, string jietime) { string strWhere = ""; int recordCount = 0; strWhere = "bcid=" + gid + ""; if (jietime != "") { strWhere += " and paytime<" + jietime + ""; } TPR2.Model.guess.BaOrder objBaOrder = new TPR2.Model.guess.BaOrder(); // 开始查询并更新之 recordCount = 0; IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(1, 5000, strWhere, out recordCount); if (listBaPayMe.Count > 0) { foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { //------------------------------------------------------ //平盘 n.p_result_one = resultone; n.p_result_two = resulttwo; n.p_active = 2; n.p_getMoney = n.payCent; new TPR2.BLL.guess.BaPayMe().UpdatePPCase(n); //币种 string bzTypes = string.Empty; if (n.Types == 0) { bzTypes = ub.Get("SiteBz"); } else { bzTypes = ub.Get("SiteBz2"); } //发送内线 string strLog = string.Empty; strLog = "" + n.payview + "[br]庄家开出平盘,返您" + Convert.ToDouble(n.payCent) + "" + bzTypes + ",如对开奖结果无异议请[url=/bbs/guess2/kzcaseGuess.aspx]马上兑奖[/url],如有异议请1小时内点击[url=/bbs/guess2/kzcaseGuess.aspx?act=qr&pid=" + n.ID + "&ptype=2]不同意开奖结果[/url]并向管理员反馈。"; new BCW.BLL.Guest().Add(Convert.ToInt32(n.payusid), n.payusname, strLog); //庄家得到币 long DiffPrice = n.DiffPrice; long WinPrice = 0; WinPrice = DiffPrice; BCW.Data.SqlHelper.ExecuteSql("update tb_BaPayMe set qrPrice=" + WinPrice + ",kjTime='" + DateTime.Now + "' where id=" + n.ID + ""); //string usname = new BCW.BLL.User().GetUsName(usid); //new BCW.BLL.User().UpdateiGold(usid, usname, WinPrice, "个人庄(" + gid + "-" + n.ID + ")赢利"); //string strLog2 = string.Empty; //strLog2 = "个人庄:[url=/bbs/uinfo.aspx?uid=" + n.payusid + "]" + n.payusname + "[/url]:" + n.payview + "[br]结果:平盘,系统返彩您" + WinPrice + "" + bzTypes + ""; //new BCW.BLL.Guest().Add(1, usid, usname, strLog2); } } }
private void ReloadPage(int meid) { long gold = new BCW.BLL.User().GetGold(meid); long money = new BCW.BLL.User().GetMoney(meid); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("您现在有" + Utils.ConvertGold(gold) + "" + ub.Get("SiteBz") + "/" + Utils.ConvertGold(money) + "" + ub.Get("SiteBz2") + ""); builder.Append(Out.Tab("</div>", "<br />")); int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 1, @"^[0-9]*$", "0")); int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "all", 1, @"^[0-3]$", "0")); builder.Append(Out.Tab("<div class=\"text\">", "")); if (ptype == 0) { builder.Append("可兑奖|"); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?ptype=0&gid=" + gid + ""), "可兑奖") + "|"); } if (ptype == 1) { builder.Append("待兑奖|"); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?ptype=1&gid=" + gid + ""), "待兑奖") + "|"); } if (ptype == 2) { builder.Append("已兑奖|"); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?ptype=2&gid=" + gid + ""), "已兑奖") + "|"); } if (ptype == 3) { builder.Append("纠纷"); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?ptype=3&gid=" + gid + ""), "纠纷") + ""); } builder.Append(Out.Tab("</div>", "<br />")); if (ptype == 1) { builder.Append(Out.Tab("<div>", "")); builder.Append("待开奖:指开奖后的1小时内,闲家还没有确认结果,超出1小时如果还没有确认或产生纠纷则可以兑奖"); builder.Append(Out.Tab("</div>", "<br />")); } else if (ptype == 3) { builder.Append(Out.Tab("<div>", "")); builder.Append("纠纷:由管理员来裁决结果,双方可用手工进行赔付"); builder.Append(Out.Tab("</div>", "<br />")); } int pageSize = 10; int pageIndex; int recordCount; string[] pageValUrl = { "act", "gid", "ptype" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = "usid=" + meid + " and "; if (ptype == 0) { strWhere += "qrPrice>0 and (isqr=1 or (isqr=0 and kjTime<'" + DateTime.Now.AddHours(-1) + "'))";//可兑奖 } if (ptype == 1) { strWhere += "qrPrice>0 and isqr=0 and kjTime>='" + DateTime.Now.AddHours(-1) + "'";//待兑奖 } else if (ptype == 2) { strWhere += "qrPrice>0 and isqr=9";//已兑奖 } else if (ptype == 3) { strWhere += "isqr=2";//纠纷 } if (gid > 0) { strWhere += " and bcid=" + gid + ""; } // 开始读取竞猜 string arrId = string.Empty; IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(pageIndex, pageSize, strWhere, out recordCount); if (listBaPayMe.Count > 0) { int k = 1; foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } builder.AppendFormat(Out.waplink(Utils.getUrl("/bbs/uinfo.aspx?uid={1}&backurl=" + Utils.PostPage(1) + ""), "{0}({1})") + ":{2}[{3}]庄赢" + n.qrPrice + "" + ub.Get("SiteBz") + "", n.payusname, n.payusid, Out.SysUBB(n.payview), n.paytimes); if (n.isqr == 0) { if (n.kjTime < DateTime.Now.AddHours(-1)) { builder.Append("[可兑奖]"); builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?act=get&pid=" + n.ID + ""), "兑奖") + " "); } else { builder.Append("[待兑奖]"); } } else if (n.isqr == 1) { builder.Append("[可兑奖]"); builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess2.aspx?act=get&pid=" + n.ID + ""), "兑奖") + " "); } else if (n.isqr == 2) { builder.Append("[纠纷]"); } else if (n.isqr == 9) { builder.Append("[已兑奖]"); } builder.Append(Out.Tab("</div>", "")); arrId = arrId + " " + n.ID; k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } if (ptype == 0 && !string.IsNullOrEmpty(arrId)) { builder.Append(Out.Tab("", "<br />")); arrId = arrId.Trim(); arrId = arrId.Replace(" ", ","); string strName = "arrId,act"; string strValu = "" + arrId + "'post"; string strOthe = "本页兑奖,kzcaseGuess2.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("", "<br />")); } }
private void ReloadPage() { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("纠纷处理"); builder.Append(Out.Tab("</div>", "<br />")); int pageSize = 10; int pageIndex; int recordCount; string[] pageValUrl = { }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = "isqr=2";//纠纷 // 开始读取竞猜 IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(pageIndex, pageSize, strWhere, out recordCount); if (listBaPayMe.Count > 0) { int k = 1; foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } builder.AppendFormat(Out.waplink(Utils.getUrl("/bbs/uinfo.aspx?uid={1}&backurl=" + Utils.PostPage(1) + ""), "{0}({1})") + ":{2}[{3}]庄赢" + n.qrPrice + "" + ub.Get("SiteBz") + "", n.payusname, n.payusid, Out.SysUBB(n.payview), n.paytimes); builder.Append(Out.waplink(Utils.getUrl("kzbother.aspx?act=open&gid=" + n.bcid + "&pid=" + n.ID + ""), "重开奖") + " "); builder.Append(Out.Tab("</div>", "")); k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("kzlist.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 />")); }
private void ReloadPage(int meid) { long gold = new BCW.BLL.User().GetGold(meid); long money = new BCW.BLL.User().GetMoney(meid); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("您现在有" + Utils.ConvertGold(gold) + "" + ub.Get("SiteBz") + "/" + Utils.ConvertGold(money) + "" + ub.Get("SiteBz2") + ""); builder.Append(Out.Tab("</div>", "")); int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 1, @"^[0-2]$", "0")); builder.Append(Out.Tab("<div class=\"text\">", "<br />")); if (ptype == 0) { builder.Append("全部 "); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess.aspx?ptype=0"), "全部") + " "); } if (ptype == 1) { builder.Append("足球 "); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess.aspx?ptype=1"), "足球") + " "); } if (ptype == 2) { builder.Append("篮球 "); } else { builder.Append(Out.waplink(Utils.getUrl("kzcaseGuess.aspx?ptype=2"), "篮球") + " "); } builder.Append(Out.Tab("</div>", "<br />")); int pageSize = 10; int pageIndex; int recordCount; string[] pageValUrl = { "ptype" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = ""; strWhere += "p_active>0 and itypes=0 "; if (ptype != 0) { strWhere += " and ptype=" + ptype + ""; } strWhere += " and payusid=" + meid + " and p_case=0 and p_getMoney > 0 and isqr<>2"; // 开始读取竞猜 string arrId = ""; IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(pageIndex, pageSize, strWhere, out recordCount); if (listBaPayMe.Count > 0) { int k = 1; foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } string bzType = string.Empty; if (n.Types == 0) { bzType = ub.Get("SiteBz"); } else { bzType = ub.Get("SiteBz2"); } if (n.p_active == 2) { builder.AppendFormat("{0},平盘<br />时间:{1}", Out.SysUBB(n.payview), n.paytimes); builder.AppendFormat(" 返{0}" + bzType + "," + Out.waplink(Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + "&act=get&pid=" + n.ID + ""), "兑奖") + "", Convert.ToDouble(n.p_getMoney)); } else { builder.AppendFormat("{0},结果{1}:{2}<br />时间:{3}", Out.SysUBB(n.payview), n.p_result_one, n.p_result_two, n.paytimes); builder.AppendFormat(" 赢{0}" + bzType + "," + Out.waplink(Utils.getUrl("kzcaseGuess.aspx?ptype=" + ptype + "&act=get&pid=" + n.ID + ""), "兑奖") + "", Convert.ToDouble(n.p_getMoney)); } builder.Append(Out.Tab("</div>", "")); arrId = arrId + " " + n.ID; k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } if (!string.IsNullOrEmpty(arrId)) { builder.Append(Out.Tab("", "<br />")); arrId = arrId.Trim(); arrId = arrId.Replace(" ", ","); string strName = "arrId,act"; string strValu = "" + arrId + "'post"; string strOthe = "本页兑奖,kzcaseGuess.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("", "<br />")); } }
private void WListPage() { int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效")); TPR2.Model.guess.BaListMe model = new TPR2.BLL.guess.BaListMe().GetModel(gid); if (model == null) { Utils.Error("不存在的记录", ""); } Master.Title = model.p_one + "VS" + model.p_two + "-记录"; int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 1, @"^[0-9]\d*$", "0")); builder.Append(Out.Tab("<div class=\"title\">", "")); if (ptype == 0) { builder.Append("下注记录|" + Out.waplink(Utils.getUrl("kzlist.aspx?act=wlist&gid=" + gid + "&ptype=1"), "赢输记录")); } else { builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=wlist&gid=" + gid + "&ptype=0"), "下注记录") + "|赢输记录"); } builder.Append(Out.Tab("</div>", "<br />")); int pageSize = 10; int pageIndex; int recordCount; string[] pageValUrl = { "act", "gid", "ptype" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = ""; strWhere += "bcid=" + gid + ""; if (ptype == 1) { strWhere += "and p_active<>0"; } // 开始读取竞猜 IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMeViews(pageIndex, pageSize, strWhere, ptype, out recordCount); if (listBaPayMe.Count > 0) { int k = 1; foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } if (ptype == 0) { builder.AppendFormat("<a href=\"" + Utils.getUrl("/bbs/uinfo.aspx?uid=" + n.payusid + "&backurl=" + Utils.PostPage(1) + "") + "\">{0}({1})</a>下注{2}币,共{3}注", n.payusname, n.payusid, Convert.ToDouble(n.payCents), n.payCount); } else { builder.AppendFormat("<a href=\"" + Utils.getUrl("/bbs/uinfo.aspx?uid=" + n.payusid + "&backurl=" + Utils.PostPage(1) + "") + "\">{0}({1})</a>下注{2}币,返{3},盈利{4}", n.payusname, n.payusid, Convert.ToDouble(n.payCents), Convert.ToDouble(n.payCount), Convert.ToDouble(n.payCount - n.payCents)); } builder.Append(Out.Tab("</div>", "")); k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { if (ptype == 0) { builder.Append(Out.Div("div", "没有相关记录..")); } else { builder.Append(Out.Div("div", "没有记录或赛事并没有结束..")); } } builder.Append(Out.Tab("<div>", Out.Hr())); builder.Append(Out.waplink(Utils.getPage("kzlist.aspx?act=view&gid=" + gid + ""), "返回上一级") + "<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 />")); }
private void PListPage() { int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效")); int p = Utils.ParseInt(Utils.GetRequest("p", "all", 2, @"^[1-7]*$", "选择无效")); TPR2.Model.guess.BaListMe model = new TPR2.BLL.guess.BaListMe().GetModel(gid); if (model == null) { Utils.Error("不存在的记录", ""); } Master.Title = model.p_one + "VS" + model.p_two; 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\">", "")); if (p == 1) { builder.Append("让球盘:<b>主队</b>下注列表"); } else if (p == 2) { builder.Append("让球盘:<b>客队</b>下注列表"); } else if (p == 3) { builder.Append("大小盘:<b>大</b>下注列表"); } else if (p == 4) { builder.Append("大小盘:<b>小</b>下注列表"); } else if (p == 5) { builder.Append("标准盘:<b>主胜</b>下注列表"); } else if (p == 6) { builder.Append("标准盘:<b>平手</b>下注列表"); } else if (p == 7) { builder.Append("标准盘:<b>客胜</b>下注列表"); } builder.Append(Out.Tab("</div>", "<br />")); int pageSize = 10; int pageIndex; int recordCount; string[] pageValUrl = { "act", "gid", "p" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = ""; strWhere += "bcid=" + gid + " and PayType=" + p + " "; // 开始读取竞猜 IList <TPR2.Model.guess.BaPayMe> listBaPayMe = new TPR2.BLL.guess.BaPayMe().GetBaPayMes(pageIndex, pageSize, strWhere, out recordCount); if (listBaPayMe.Count > 0) { int k = 1; foreach (TPR2.Model.guess.BaPayMe n in listBaPayMe) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } builder.AppendFormat(Out.waplink(Utils.getUrl("../uinfo.aspx?uid={1}&backurl=" + Utils.PostPage(1) + ""), "{0}({1})") + ":{2}[{3}]", n.payusname, n.payusid, Out.SysUBB(n.payview), n.paytimes); builder.Append(Out.waplink(Utils.getUrl("kzlist.aspx?act=back&id=" + n.ID + "&gid=" + gid + "&backurl=" + Utils.PostPage(1) + ""), "[退]")); builder.Append(Out.Tab("</div>", "")); k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div>", Out.Hr())); builder.Append(Out.waplink(Utils.getPage("kzlist.aspx?act=view&gid=" + gid + ""), "返回上一级") + "<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 />")); }