protected void Page_Load(object sender, EventArgs e) { //int id = Utils.ParseInt(Utils.GetRequest("id", "all", 1, @"^[0-9]*$", "0")); //if (id > 0) //{ // TPR.Model.guess.BaPay pay = new TPR.BLL.guess.BaPay().GetModel(id); // if (pay == null) // { // Utils.Error("不存在的记录", ""); // } // Master.Title = "修改会员下注"; // string info = Utils.GetRequest("info", "all", 1, "", ""); // if (info != "") // { // if (info == "ok1") // { // DateTime paytimes = Utils.ParseTime(Utils.GetRequest("paytimes", "post", 2, DT.RegexTime, "请正确填写下注时间")); // decimal payonLuone = Convert.ToDecimal(Utils.GetRequest("payonLuone", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写上盘赔率,小数点后保留1-2位")); // decimal payonLutwo = Convert.ToDecimal(Utils.GetRequest("payonLutwo", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写上盘赔率,小数点后保留1-2位")); // int p_pn = Utils.ParseInt(Utils.GetRequest("p_pn", "post", 2, @"^[1-2]$", "请正确选择让球类型")); // decimal p_pk = Convert.ToDecimal(Utils.GetRequest("p_pk", "post", 2, @"^[0-9]{1,21}$", "请正确选择上下盘口")); // string cmd = "update tb_BaPay set paytimes='" + paytimes + "',payonLuone=" + payonLuone + ",payonLutwo=" + payonLutwo + ",p_pn=" + p_pn + ",p_pk=" + p_pk + " where id=" + id + ""; // BCW.Data.SqlHelper.ExecuteSql(cmd); // } // else if (info == "ok2") // { // DateTime paytimes = Utils.ParseTime(Utils.GetRequest("paytimes", "post", 2, DT.RegexTime, "请正确填写下注时间")); // decimal payonLuone = Convert.ToDecimal(Utils.GetRequest("payonLuone", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写大盘赔率,小数点后保留1-2位")); // decimal payonLutwo = Convert.ToDecimal(Utils.GetRequest("payonLutwo", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写小盘赔率,小数点后保留1-2位")); // decimal p_dx_pk = Convert.ToDecimal(Utils.GetRequest("p_dx_pk", "post", 2, @"^[0-9]{1,21}$", "请正确选择大小盘口")); // string cmd = "update tb_BaPay set paytimes='" + paytimes + "',payonLuone=" + payonLuone + ",payonLutwo=" + payonLutwo + ",p_dx_pk=" + p_dx_pk + " where id=" + id + ""; // BCW.Data.SqlHelper.ExecuteSql(cmd); // } // else if (info == "ok3") // { // DateTime paytimes = Utils.ParseTime(Utils.GetRequest("paytimes", "post", 2, DT.RegexTime, "请正确填写下注时间")); // decimal payonLuone = Convert.ToDecimal(Utils.GetRequest("payonLuone", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写主胜赔率,小数点后保留1-2位")); // decimal payonLutwo = Convert.ToDecimal(Utils.GetRequest("payonLutwo", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写平手赔率,小数点后保留1-2位")); // decimal payonLuthr = Convert.ToDecimal(Utils.GetRequest("payonLuthr", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写客胜赔率,小数点后保留1-2位")); // string cmd = "update tb_BaPay set paytimes='" + paytimes + "',payonLuone=" + payonLuone + ",payonLutwo=" + payonLutwo + ",payonLuthr=" + payonLuthr + " where id=" + id + ""; // BCW.Data.SqlHelper.ExecuteSql(cmd); // } // if (info == "ok4") // { // DateTime paytimes = Utils.ParseTime(Utils.GetRequest("paytimes", "post", 2, DT.RegexTime, "请正确填写下注时间")); // decimal payonLuone = Convert.ToDecimal(Utils.GetRequest("payonLuone", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写上盘赔率,小数点后保留1-2位")); // decimal payonLutwo = Convert.ToDecimal(Utils.GetRequest("payonLutwo", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写上盘赔率,小数点后保留1-2位")); // decimal p_pk = Convert.ToDecimal(Utils.GetRequest("p_pk", "post", 2, @"^(-)?(\d)*(\.(\d){1})?$", "请正确填写上下盘口")); // string cmd = "update tb_BaPay set paytimes='" + paytimes + "',payonLuone=" + payonLuone + ",payonLutwo=" + payonLutwo + ",p_pk=" + p_pk + " where id=" + id + ""; // BCW.Data.SqlHelper.ExecuteSql(cmd); // } // else if (info == "ok5") // { // DateTime paytimes = Utils.ParseTime(Utils.GetRequest("paytimes", "post", 2, DT.RegexTime, "请正确填写下注时间")); // decimal payonLuone = Convert.ToDecimal(Utils.GetRequest("payonLuone", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写大盘赔率,小数点后保留1-2位")); // decimal payonLutwo = Convert.ToDecimal(Utils.GetRequest("payonLutwo", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写小盘赔率,小数点后保留1-2位")); // decimal p_dx_pk = Convert.ToDecimal(Utils.GetRequest("p_dx_pk", "post", 2, @"^(-)?(\d)*(\.(\d){1})?$", "请正确填写大小盘口")); // string cmd = "update tb_BaPay set paytimes='" + paytimes + "',payonLuone=" + payonLuone + ",payonLutwo=" + payonLutwo + ",p_dx_pk=" + p_dx_pk + " where id=" + id + ""; // BCW.Data.SqlHelper.ExecuteSql(cmd); // } // Utils.Success("修改下注", "修改下注成功..", Utils.getUrl("plGuess.aspx?id=" + id + "&backurl=" + Utils.getPage(0) + ""), "1"); // } // else // { // builder.Append(Out.Tab("<div class=\"title\">", "")); // builder.Append("修改会员下注"); // builder.Append(Out.Tab("</div>", "")); // if (pay.pType == 1) // { // if (pay.PayType == 1 || pay.PayType == 2) // { // string strText = "下注时间:/,上盘赔率,下盘赔率,让球类型,上下盘口,,,"; // string strName = "paytimes,payonLuone,payonLutwo,p_pn,p_pk,id,info,backurl"; // string strType = "date,text,text,select,select,hidden,hidden,hidden"; // string strValu = "" + DT.FormatDate(Convert.ToDateTime(pay.paytimes), 0) + "'" + Convert.ToDouble(pay.payonLuone) + "'" + Convert.ToDouble(pay.payonLutwo) + "'" + pay.p_pn + "'" + Convert.ToDouble(pay.p_pk) + "'" + id + "'ok1'" + Utils.getPage(0) + ""; // string strEmpt = "false,false,false,1|让球|2|受让,1|平手|2|平手/半球|3|半球|4|半球/一球|5|一球|6|一球/球半|7|球半|8|球半/二球|9|二球|10|二球/二球半|11|二球半|12|二球半/三球|13|三球|14|三球/三球半|15|三球半|16|三球半/四球|17|四球|18|四球/四球半|19|四球半|20|四球半/五球|21|五球,false,false,false"; // string strIdea = "/"; // string strOthe = "确定修改,plGuess.aspx,post,1,red"; // builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); // } // else if (pay.PayType == 3 || pay.PayType == 4) // { // string strText = "下注时间:/,大盘赔率,小盘赔率,大小盘口,,,"; // string strName = "paytimes,payonLuone,payonLutwo,p_dx_pk,id,info,backurl"; // string strType = "date,text,text,select,hidden,hidden,hidden"; // string strValu = "" + DT.FormatDate(Convert.ToDateTime(pay.paytimes), 0) + "'" + Convert.ToDouble(pay.payonLuone) + "'" + Convert.ToDouble(pay.payonLutwo) + "'" + Convert.ToDouble(pay.p_dx_pk) + "'" + id + "'ok2'" + Utils.getPage(0) + ""; // string strEmpt = "false,false,false,20|0.5|21|0.5/1.0|22|1.0|23|1.0/1.5|1|1.5|2|1.5/2.0|3|2.0|4|2/2.5|5|2.5|6|2.5/3.0|7|3.0|8|3/3.5|9|3.5|10|3.5/4.0|11|4.0|12|4/4.5|13|4.5|14|4.5/5.0|15|5.0|16|5/5.5|17|5.5|18|5.5/6.0|19|6.0|24|6.0/6.5|25|6.5|26|6.5/7.0|27|7.0|28|7.0/7.5|29|7.5|30|7.5/8.0|31|8.0|32|8.0/8.5|33|8.5|34|8.5/9.0|35|9.0|36|9.0/9.5|37|9.5|38|9.5/10.0|39|10.0,false,false,false"; // string strIdea = "/"; // string strOthe = "确定修改,plGuess.aspx,post,1,red"; // builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); // } // else // { // string strText = "下注时间:/,标准主胜,标准平手,标准客胜,,,,"; // string strName = "paytimes,payonLuone,payonLutwo,payonLuthr,id,info,backurl"; // string strType = "date,text,text,text,hidden,hidden,hidden"; // string strValu = "" + DT.FormatDate(Convert.ToDateTime(pay.paytimes), 0) + "'" + Convert.ToDouble(pay.payonLuone) + "'" + Convert.ToDouble(pay.payonLutwo) + "'" + Convert.ToDouble(pay.payonLuthr) + "'" + id + "'ok3'" + Utils.getPage(0) + ""; // string strEmpt = "false,false,false,false,false,false,false"; // string strIdea = "/"; // string strOthe = "确定修改,plGuess.aspx,post,1,red"; // builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); // } // } // else // { // if (pay.PayType == 1 || pay.PayType == 2) // { // string strText = "下注时间:/,上盘赔率,下盘赔率,上下盘口,,,"; // string strName = "paytimes,payonLuone,payonLutwo,p_pk,id,info,backurl"; // string strType = "date,text,text,text,hidden,hidden,hidden"; // string strValu = "" + DT.FormatDate(Convert.ToDateTime(pay.paytimes), 0) + "'" + Convert.ToDouble(pay.payonLuone) + "'" + Convert.ToDouble(pay.payonLutwo) + "'" + Convert.ToDouble(pay.p_pk) + "'" + id + "'ok4'" + Utils.getPage(0) + ""; // string strEmpt = "false,false,false,false,false,false,false"; // string strIdea = "/"; // string strOthe = "确定修改,plGuess.aspx,post,1,red"; // builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); // } // else // { // string strText = "下注时间:/,大盘赔率,小盘赔率,大小盘口,,,"; // string strName = "paytimes,payonLuone,payonLutwo,p_dx_pk,id,info,backurl"; // string strType = "date,text,text,text,hidden,hidden,hidden"; // string strValu = "" + DT.FormatDate(Convert.ToDateTime(pay.paytimes), 0) + "'" + Convert.ToDouble(pay.payonLuone) + "'" + Convert.ToDouble(pay.payonLutwo) + "'" + Convert.ToDouble(pay.p_dx_pk) + "'" + id + "'ok5'" + Utils.getPage(0) + ""; // string strEmpt = "false,false,false,false,false,false,false"; // string strIdea = "/"; // string strOthe = "确定修改,plGuess.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("default,aspx"), "返回上一级")); // builder.Append(Out.Tab("</div>", "")); // } //} //else //{ int gid = Utils.ParseInt(Utils.GetRequest("gid", "get", 2, @"^[0-9]*$", "竞猜ID无效")); int p = Utils.ParseInt(Utils.GetRequest("p", "get", 2, @"^[1-7]*$", "选择无效")); TPR.BLL.guess.BaList bll = new TPR.BLL.guess.BaList(); if (bll.GetModel(gid) == null) { Utils.Error("不存在的记录", ""); } TPR.Model.guess.BaList model = bll.GetModel(gid); 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 = { "gid", "p" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //组合条件 string strWhere = ""; strWhere += "bcid=" + gid + " and PayType=" + p + ""; // 开始读取竞猜 IList <TPR.Model.guess.BaPay> listBaPay = new TPR.BLL.guess.BaPay().GetBaPays(pageIndex, pageSize, strWhere, out recordCount); if (listBaPay.Count > 0) { int k = 1; foreach (TPR.Model.guess.BaPay n in listBaPay) { 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("plGuess.aspx?id={0}&backurl=" + Utils.PostPage(1) + ""), "[管理]") + ">", n.ID); builder.AppendFormat(Out.waplink(Utils.getUrl("../uinfo.aspx?uid={1}&backurl=" + Utils.PostPage(1) + ""), "{0}({1})[" + n.ID + "]") + ":{2}[{3}]", n.payusname, n.payusid, Out.SysUBB(n.payview), n.paytimes); 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("showGuess.aspx?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 />")); }
protected void Page_Load(object sender, EventArgs e) { int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效")); string ac = Utils.GetRequest("ac", "all", 1, "", ""); TPR.BLL.guess.BaList bll = new TPR.BLL.guess.BaList(); if (bll.GetModel(gid) == null) { Utils.Error("不存在的记录", ""); } TPR.Model.guess.BaList model = bll.GetModel(gid); Master.Title = "开奖赛事" + model.p_one + "VS" + model.p_two; if (Utils.ToSChinese(ac) == "确定开奖" || Utils.ToSChinese(ac) == "确定重开奖") { int resultone = Utils.ParseInt(Utils.GetRequest("resultone", "post", 2, @"^[0-9]*$", "请正确输入比分")); int resulttwo = Utils.ParseInt(Utils.GetRequest("resulttwo", "post", 2, @"^[0-9]*$", "请正确输入比分")); int iType = Utils.ParseInt(Utils.GetRequest("iType", "post", 2, @"^[1-3]*$", "请正确选择开奖模式")); DateTime oTime = DateTime.Now; string pSms = ""; if (iType == 2) { oTime = Utils.ParseTime(Utils.GetRequest("oTime", "post", 2, DT.RegexTime, "请正确填写截止时间")); pSms = Out.UBB(Utils.GetRequest("pSms", "post", 2, @"^[\s\S]{2,20}$", "请输入2-20字的平盘原因")); } else if (iType == 3) { pSms = Out.UBB(Utils.GetRequest("pSms", "post", 2, @"^[\s\S]{2,20}$", "请输入2-20字的平盘原因")); } string Info = Utils.GetRequest("Info", "post", 1, "", ""); string onceTime = Utils.GetRequest("onceTime", "post", 1, "", ""); if (Info == "ok") { //游戏日志记录 int ManageId = new BCW.User.Manage().IsManageLogin(); string[] p_pageArr = { "ac", "gid", "resultone", "resulttwo", "p_one", "iType", "oTime", "pSms", "Info", "onceTime" }; if (model.p_result_one != null && model.p_result_two != null) { BCW.User.GameLog.GameLogPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号重新开奖" + model.p_one + "VS" + model.p_two + "(" + gid + "),比分" + resultone + ":" + resulttwo + "", gid); } else { BCW.User.GameLog.GameLogPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号开奖" + model.p_one + "VS" + model.p_two + "(" + gid + "),比分" + resultone + ":" + resulttwo + "", gid); } //重开奖处理: if (model.p_result_one != null && model.p_result_two != null) { DataSet ds = new TPR.BLL.guess.BaPay().GetBaPayList("pType,payview,payusid,payusname,payCent,p_getMoney,types", "bcid=" + gid + " and p_case=1 and itypes=0 "); if (ds != null && ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { int pType = int.Parse(ds.Tables[0].Rows[i]["pType"].ToString()); string payview = ds.Tables[0].Rows[i]["payview"].ToString(); int payusid = int.Parse(ds.Tables[0].Rows[i]["payusid"].ToString()); string payusname = ds.Tables[0].Rows[i]["payusname"].ToString(); long payCent = Convert.ToInt64(Convert.ToDecimal(ds.Tables[0].Rows[i]["payCent"].ToString())); long p_getMoney = Convert.ToInt64(Convert.ToDecimal(ds.Tables[0].Rows[i]["p_getMoney"].ToString())); int bzType = int.Parse(ds.Tables[0].Rows[i]["types"].ToString()); long gold = 0; long cMoney = 0; //差多少 long sMoney = 0; //实扣 if (bzType == 0) { gold = new BCW.BLL.User().GetGold(payusid); } else { gold = new BCW.BLL.User().GetMoney(payusid); } if (p_getMoney > gold) { cMoney = p_getMoney - gold; sMoney = gold; } else { sMoney = p_getMoney; } //重开奖的在本场没兑奖时就没显示在欠币日志, //操作币并内线通知 if (bzType == 0) { new BCW.BLL.User().UpdateiGold(payusid, payusname, -sMoney, "球彩重开奖,扣除已兑奖" + ub.Get("SiteBz") + ""); //发送内线 string strGuess = "球彩重开奖,你欠下系统的" + p_getMoney + "" + ub.Get("SiteBz") + ".[br]根据您的帐户数额,实扣" + sMoney + "" + ub.Get("SiteBz") + ".[br]如果您的" + ub.Get("SiteBz") + "不足,系统将您帐户冻结,直到成功扣除为止。[br]" + payview + "(原开奖" + model.p_result_one + ":" + model.p_result_two + "|新开奖" + resultone + ":" + resulttwo + ")"; new BCW.BLL.Guest().Add(1, payusid, payusname, strGuess); } else { new BCW.BLL.User().UpdateiMoney(payusid, payusname, -sMoney, "球彩重开奖,扣除已兑奖" + ub.Get("SiteBz2") + ""); //发送内线 string strGuess = "球彩重开奖,你欠下系统的" + p_getMoney + "" + ub.Get("SiteBz2") + ".[br]根据您的帐户数额,实扣" + sMoney + "" + ub.Get("SiteBz2") + ".[br]如果您的" + ub.Get("SiteBz2") + "不足,系统将您帐户冻结,直到成功扣除为止。[br]" + payview + "(原开奖" + model.p_result_one + ":" + model.p_result_two + "|新开奖" + resultone + ":" + resulttwo + ")"; new BCW.BLL.Guest().Add(1, payusid, payusname, strGuess); } //如果币不够扣则记录日志并冻结IsFreeze if (cMoney > 0) { BCW.Model.Gameowe owe = new BCW.Model.Gameowe(); owe.Types = 0; owe.UsID = payusid; owe.UsName = payusname; owe.Content = "" + payview + "(原开奖" + model.p_result_one + ":" + model.p_result_two + "|新开奖" + resultone + ":" + resulttwo + ")"; owe.OweCent = cMoney; owe.BzType = bzType; owe.EnId = gid; owe.AddTime = DateTime.Now; new BCW.BLL.Gameowe().Add(owe); new BCW.BLL.User().UpdateIsFreeze(payusid, 1); } //取消得到的排行 TPR.Model.guess.BaOrder objBaOrder = new TPR.Model.guess.BaOrder(); objBaOrder.Orderusid = payusid; objBaOrder.Orderusname = payusname; objBaOrder.Orderfanum = 0; objBaOrder.Orderjbnum = -(p_getMoney - payCent); objBaOrder.Orderbanum = -1; objBaOrder.Orderstats = pType; new TPR.BLL.guess.BaOrder().UpdateOrder(objBaOrder); } } } int OnceMin = Convert.ToInt32(ub.GetSub("SiteOnce", xmlPath));//走地时间限制 //是否走地赛事 int ison = Convert.ToInt32(model.p_ison); //取得比分时间段 string stronce = string.Empty; if (ison == 1) { stronce = onceTime; if (string.IsNullOrEmpty(stronce)) { stronce = footonce(Convert.ToInt32(model.p_id), Convert.ToDateTime(model.p_TPRtime)); model.ID = gid; model.p_once = stronce; new TPR.BLL.guess.BaList().UpdateOnce(model); } stronce = stronce.Replace("#", "|"); } //更新比分 model.p_result_one = resultone; model.p_result_two = resulttwo; if (iType == 3) { model.p_active = 2;//平盘标识 } else { model.p_active = 1; } bll.UpdateResult(model); int recordCount = 0; int p_intWin = 0; decimal p_intDuVal = 0; //组合查询条件 string strppWhere = ""; string strWhere = ""; strppWhere = "bcid=" + gid + ""; strWhere = "bcid=" + gid + ""; if (iType == 2) { strWhere += "and paytimes<='" + oTime + "'"; strppWhere += "and paytimes>'" + oTime + "'"; } if (iType < 3) { TPR.Model.guess.BaOrder objBaOrder = new TPR.Model.guess.BaOrder(); // 开始查询并更新之 IList <TPR.Model.guess.BaPay> listBaPay = new TPR.BLL.guess.BaPay().GetBaPays(1, 8000, strWhere, out recordCount); if (listBaPay.Count > 0) { foreach (TPR.Model.guess.BaPay n in listBaPay) { int Iszd = 0; 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 (model.p_type == 1) { //是否可以平盘了 if (n.PayType <= 4) { if (!string.IsNullOrEmpty(stronce)) { string[] Sonce = stronce.Split("|".ToCharArray()); for (int i = 0; i < Sonce.Length; i++) { if (Convert.ToDateTime(Sonce[i]).AddSeconds(OnceMin) > Convert.ToDateTime(n.paytimes) && Convert.ToDateTime(Sonce[i]).AddSeconds(-OnceMin) < Convert.ToDateTime(n.paytimes)) { Iszd = 2;//平盘标识 } } } } if (Iszd == 0) { if (n.PayType == 1 || n.PayType == 2) { string p_strVal = string.Empty; if (ison == 1)//如果是走地模式 { n.p_result_one = resultone - Convert.ToInt32(n.p_result_temp1); n.p_result_two = resulttwo - Convert.ToInt32(n.p_result_temp2); p_strVal = ZqClass.getZqsxCase(n); //重新取值 n.p_result_one = resultone; n.p_result_two = resulttwo; } else { p_strVal = ZqClass.getZqsxCase(n); } new TPR.BLL.guess.BaPay().UpdateCase(n, p_strVal, out p_intDuVal, out p_intWin); Iszd = 1;//走地模式 } else if (n.PayType == 3 || n.PayType == 4) { new TPR.BLL.guess.BaPay().UpdateCase(n, ZqClass.getZqdxCase(n), out p_intDuVal, out p_intWin); } else { new TPR.BLL.guess.BaPay().UpdateCase(n, ZqClass.getZqbzCase(n), out p_intDuVal, out p_intWin); } } } else { if (n.PayType == 1 || n.PayType == 2) { new TPR.BLL.guess.BaPay().UpdateCase(n, LqClass.getLqsxCase(n), out p_intDuVal, out p_intWin); } else { new TPR.BLL.guess.BaPay().UpdateCase(n, LqClass.getLqdxCase(n), out p_intDuVal, out p_intWin); } } if (Iszd != 2) { if (Convert.ToInt32(n.itypes) == 0) { if (p_intWin == 1) { //更新排行榜:赢 objBaOrder.Orderusid = n.payusid; objBaOrder.Orderusname = n.payusname; if (p_intDuVal == n.payCent) { objBaOrder.Orderbanum = 0; objBaOrder.Orderjbnum = 0; } else { objBaOrder.Orderbanum = 1; objBaOrder.Orderjbnum = p_intDuVal - n.payCent; } objBaOrder.Orderfanum = 0; objBaOrder.Orderstats = n.pType; new TPR.BLL.guess.BaOrder().UpdateOrder(objBaOrder); //发送内线 string strLog = string.Empty; if (Iszd == 1) //走地的内线提醒 { strLog = "" + n.payview + "[br]结果:" + resultone + ":" + resulttwo + "(下注" + n.p_result_temp1 + ":" + n.p_result_temp2 + "),系统返" + Convert.ToDouble(p_intDuVal) + "" + bzTypes + "[url=/bbs/guess/caseGuess.aspx]马上兑奖[/url]"; } else { strLog = "" + n.payview + "[br]结果:" + resultone + ":" + resulttwo + ",系统返" + Convert.ToDouble(p_intDuVal) + "" + bzTypes + "[url=/bbs/guess/caseGuess.aspx]马上兑奖[/url]"; } new BCW.BLL.Guest().Add(1, Convert.ToInt32(n.payusid), n.payusname, strLog); } else { //更新排行榜:输 objBaOrder.Orderusid = n.payusid; objBaOrder.Orderusname = n.payusname; objBaOrder.Orderbanum = 0; objBaOrder.Orderfanum = 1; objBaOrder.Orderjbnum = -n.payCent; objBaOrder.Orderbanum = 0; objBaOrder.Orderstats = n.pType; new TPR.BLL.guess.BaOrder().UpdateOrder(objBaOrder); } } } else { //平盘 n.p_result_one = resultone; n.p_result_two = resulttwo; n.p_active = 2; n.p_getMoney = n.payCent; new TPR.BLL.guess.BaPay().UpdatePPCase(n); //发送内线 if (Convert.ToInt32(n.itypes) == 0) { //发送内线 string strLog = "" + n.payview + "[br]结果平盘,原因:走地赛事,系统将比分变动前后" + OnceMin + "秒钟的下注作平盘处理,返还" + Convert.ToDouble(n.payCent) + "" + bzTypes + "[url=/bbs/guess/caseGuess.aspx]马上兑奖[/url][br]本场赛事变动时间如下:[br]" + stronce.Replace("|", "[br]") + ""; new BCW.BLL.Guest().Add(1, Convert.ToInt32(n.payusid), n.payusname, strLog); } } } } } if (iType == 2 || iType == 3) { // 平盘返还 IList <TPR.Model.guess.BaPay> listBaPay = new TPR.BLL.guess.BaPay().GetBaPays(1, 8000, strppWhere, out recordCount); if (listBaPay.Count > 0) { foreach (TPR.Model.guess.BaPay n in listBaPay) { n.p_result_one = resultone; n.p_result_two = resulttwo; n.p_active = 2; n.p_getMoney = n.payCent; //币种 string bzTypes = string.Empty; if (n.Types == 0) { bzTypes = ub.Get("SiteBz"); } else { bzTypes = ub.Get("SiteBz2"); } new TPR.BLL.guess.BaPay().UpdatePPCase(n); //发送内线 if (Convert.ToInt32(n.itypes) == 0) { //发送内线 string strLog = "" + n.payview + "[br]结果平盘,原因:" + pSms + ",系统返还" + Convert.ToDouble(n.payCent) + "" + bzTypes + "[url=/bbs/guess/caseGuess.aspx]马上兑奖[/url]"; new BCW.BLL.Guest().Add(1, Convert.ToInt32(n.payusid), n.payusname, strLog); } } } } if (iType == 3) { BCW.Data.SqlHelper.ExecuteSql("Update tb_Balist set p_id=0 where id=" + gid + ""); Utils.Success("开奖", "操作平盘成功..", Utils.getUrl("showGuess.aspx?gid=" + gid + ""), "1"); } else { Utils.Success("开奖", "开奖" + resultone + ":" + resulttwo + "成功..", Utils.getUrl("showGuess.aspx?gid=" + gid + ""), "1"); } } else { builder.Append(Out.Tab("<div>", "")); if (iType == 1) { builder.Append("请确认比分" + resultone + ":" + resulttwo + ""); } else if (iType == 2) { builder.Append("请确认比分" + resultone + ":" + resulttwo + "," + DT.FormatDate(oTime, 0) + ""); } else { builder.Append("请确认平盘."); } builder.Append(Out.Tab("</div>", "<br />")); string strName = "resultone,resulttwo,iType,oTime,pSms,onceTime,gid,Info"; string strValu = "" + resultone + "'" + resulttwo + "'" + iType + "'" + DT.FormatDate(oTime, 0) + "'" + pSms + "'" + onceTime + "'" + gid + "'ok"; string strOthe = "确定开奖,openGuess.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + ""), "再看看吧..")); builder.Append(Out.Tab("</div>", "<br />")); } } 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; if (model.p_ison == 0) { strText = "*填写比分/,比/,开奖模式,截止时间,操作原因,"; strName = "resultone,resulttwo,iType,oTime,pSms,gid"; strType = "num,num,select,date,text,hidden"; strValu = "0'0'1'" + DT.FormatDate(DateTime.Now.AddHours(-10), 0) + "''" + gid + ""; strEmpt = "false,false,1|正常模式|2|截时模式|3|平盘模式,true,true,"; } else { strText = "*填写比分/,比/,开奖模式,截止时间,操作原因,走地比分时间(格式2010-10-7 1:00:00#2010-10-7 1:20:00)/,"; strName = "resultone,resulttwo,iType,oTime,pSms,onceTime,gid"; strType = "num,num,select,date,text,textarea,hidden"; strValu = "0'0'1'" + DT.FormatDate(DateTime.Now.AddHours(-10), 0) + "'''" + gid + ""; strEmpt = "false,false,1|正常模式|2|截时模式|3|平盘模式,true,true,true,"; } string strIdea = "/提示:非正常模式开奖时请输入操作原因;/当选择截时模式时,即该时间前的作正常开奖,时间后的作平盘返还;/当你选择平盘模式时,比分写成0:0即可/"; string strOthe = ""; if (model.p_result_one != null && model.p_result_two != null) { strOthe = "确定重开奖,openGuess.aspx,post,1,red"; } else { strOthe = "确定开奖,openGuess.aspx,post,1,red"; } builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); if (model.p_result_one != null && model.p_result_two != null) { builder.Append(Out.Tab("<div>", "<br />")); builder.Append("重要:重开奖系统自动扣回已经兑奖的币并进行新一轮的开奖,如果币不够扣,即自动禁该会员的金融系统并记录<a href=\"" + Utils.getUrl("../default.aspx") + "\">欠币日志</a>"); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); if (Utils.GetTopDomain() == "tl88.cc" || Utils.GetTopDomain() == "168yy.cc") { string stronce = new TPR.BLL.guess.BaList().Getp_temptimes(gid); if (stronce != "") { builder.Append("走地比分参考:<br />" + stronce.Replace("|", "<br />") + ""); } } builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?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 />")); } }
protected void Page_Load(object sender, EventArgs e) { Master.Title = "增加赛事"; int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "all", 1, @"^[1-2]$", "1")); string ac = Utils.GetRequest("ac", "all", 1, "", ""); if (ac == "确定添加" || ac == Utils.ToTChinese("确定添加")) { string p_title = Out.UBB(Utils.GetRequest("p_title", "post", 2, @"^[\u4e00-\u9fa5A-Za-z0-9_\-\s]+$", "请正确填写联赛名称")); DateTime p_TPRtime = Utils.ParseTime(Utils.GetRequest("p_TPRtime", "post", 2, DT.RegexTime, "请正确填写联赛时间")); string p_one = Out.UBB(Utils.GetRequest("p_one", "post", 2, @"^[\u4e00-\u9fa5A-Za-z0-9_\-\s]+$", "请正确填写上盘名称")); string p_two = Out.UBB(Utils.GetRequest("p_two", "post", 2, @"^[\u4e00-\u9fa5A-Za-z0-9_\-\s]+$", "请正确填写下盘名称")); decimal p_one_lu = Convert.ToDecimal(Utils.GetRequest("p_one_lu", "post", 2, @"^(\d)*(\.(\d){1,2})?$", "请正确填写上盘赔率,小数点后保留1-2位")); decimal p_two_lu = Convert.ToDecimal(Utils.GetRequest("p_two_lu", "post", 2, @"^(\d)*(\.(\d){1,2})?$", "请正确填写下盘赔率,小数点后保留1-2位")); decimal p_big_lu = Convert.ToDecimal(Utils.GetRequest("p_big_lu", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写大盘赔率,小数点后保留1-2位")); decimal p_small_lu = Convert.ToDecimal(Utils.GetRequest("p_small_lu", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写小盘赔率,小数点后保留1-2位")); int p_pn = 0; decimal p_pk = 0; decimal p_dx_pk = 0; decimal p_bzs_lu = 0; decimal p_bzp_lu = 0; decimal p_bzx_lu = 0; if (ptype == 1) {//足球特征 p_pn = Utils.ParseInt(Utils.GetRequest("p_pn", "post", 2, @"^[1-2]$", "请正确选择让球类型")); p_pk = Convert.ToDecimal(Utils.GetRequest("p_pk", "post", 2, @"^[0-9]{1,21}$", "请正确选择上下盘口")); p_dx_pk = Convert.ToDecimal(Utils.GetRequest("p_dx_pk", "post", 2, @"^[0-9]{1,19}$", "请正确选择大小盘口")); if (Request["p_bzs_lu"] != "") { p_bzs_lu = Convert.ToDecimal(Utils.GetRequest("p_bzs_lu", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写主胜赔率,小数点后保留1-2位")); p_bzp_lu = Convert.ToDecimal(Utils.GetRequest("p_bzp_lu", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写平手赔率,小数点后保留1-2位")); p_bzx_lu = Convert.ToDecimal(Utils.GetRequest("p_bzx_lu", "post", 2, @"^-1$|^(\d)*(\.(\d){1,2})?$", "请正确填写客胜赔率,小数点后保留1-2位")); } else { p_bzs_lu = 0; p_bzp_lu = 0; p_bzx_lu = 0; } } else {//篮球特征 p_pk = Convert.ToDecimal(Utils.GetRequest("p_pk", "post", 2, @"^(-)?(\d)*(\.(\d){1})?$", "请正确填写上下盘口")); p_dx_pk = Convert.ToDecimal(Utils.GetRequest("p_dx_pk", "post", 2, @"^(-)?(\d)*(\.(\d){1})?$", "请正确填写大小盘口")); } int p_ison = Convert.ToInt32(Utils.GetRequest("p_ison", "post", 1, @"^[0-1]$", "0")); //联赛限制显示 string xmlPath = "/Controls/guess.xml"; string Levens = ""; if (ptype == 1) { Levens = "#" + ub.GetSub("SiteLeven1", xmlPath) + "#" + ub.GetSub("SiteLeven2", xmlPath) + "#" + ub.GetSub("SiteLeven3", xmlPath) + "#" + ub.GetSub("SiteLeven4", xmlPath) + "#"; } else { Levens = "#" + ub.GetSub("SiteLevenb1", xmlPath) + "#" + ub.GetSub("SiteLevenb2", xmlPath) + "#" + ub.GetSub("SiteLevenb3", xmlPath) + "#" + ub.GetSub("SiteLevenb4", xmlPath) + "#"; } if (!Levens.Contains("#" + p_title + "#")) { Utils.Error("在四个联赛分级中不存在“" + p_title + "”联赛,请设置才能继续...", ""); } //游戏日志记录 int ManageId = new BCW.User.Manage().IsManageLogin(); int gid = new TPR.BLL.guess.BaList().GetMaxId(); string[] p_pageArr = { "ac", "p_title", "ptype", "p_one", "p_two", "p_pk", "p_dx_pk", "p_pn", "p_one_lu", "p_two_lu", "p_big_lu", "p_small_lu", "p_bzs_lu", "p_bzp_lu", "p_bzx_lu", "p_TPRtime", "p_ison" }; BCW.User.GameLog.GameLogPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号增加赛事" + p_one + "VS" + p_two + "(" + gid + ")", gid); //写入数据 TPR.Model.guess.BaList model = new TPR.Model.guess.BaList(); model.p_id = 0; model.p_title = p_title; model.p_type = ptype; model.p_one = p_one; model.p_two = p_two; model.p_pk = p_pk; model.p_dx_pk = p_dx_pk; model.p_pn = p_pn; model.p_one_lu = p_one_lu; model.p_two_lu = p_two_lu; model.p_big_lu = p_big_lu; model.p_small_lu = p_small_lu; model.p_bzs_lu = p_bzs_lu; model.p_bzp_lu = p_bzp_lu; model.p_bzx_lu = p_bzx_lu; model.p_addtime = DateTime.Now; model.p_TPRtime = p_TPRtime; model.p_ison = p_ison; model.p_del = 0; new TPR.BLL.guess.BaList().Add(model); Utils.Success("添加赛事", "添加赛事成功..<br />" + Out.waplink(Utils.getUrl("addGuess.aspx"), "继续添加") + "", Utils.getUrl("default.aspx"), "1"); } else { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("增加赛事"); builder.Append(Out.Tab("</div>", "<br />")); if (ptype == 1) { builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("增加:足球赛事 " + Out.waplink(Utils.getUrl("addGuess.aspx?ptype=2"), "切换篮球")); builder.Append(Out.Tab("</div>", "")); string strText = "联赛名称,联赛时间,上盘名称,上盘赔率,下盘名称,下盘赔率,让球类型,上下盘口,大盘赔率,小盘赔率,大小盘口,主胜赔率,平手赔率,客胜赔率,是否开走地,"; string strName = "p_title,p_TPRtime,p_one,p_one_lu,p_two,p_two_lu,p_pn,p_pk,p_big_lu,p_small_lu,p_dx_pk,p_bzs_lu,p_bzp_lu,p_bzx_lu,p_ison,ptype"; string strType = "text,date,text,text,text,text,select,select,text,text,select,text,text,text,select,hidden"; string strValu = "'" + DT.FormatDate(DateTime.Now.AddHours(5), 0) + "'''''1'1'''1''''0'" + ptype + ""; string strEmpt = "flase,false,false,false,false,false,1|让球|2|受让,1|平手|2|平手/半球|3|半球|4|半球/一球|5|一球|6|一球/球半|7|球半|8|球半/二球|9|二球|10|二球/二球半|11|二球半|12|二球半/三球|13|三球|14|三球/三球半|15|三球半|16|三球半/四球|17|四球|18|四球/四球半|19|四球半|20|四球半/五球|21|五球,true,true,20|0.5|21|0.5/1.0|22|1.0|23|1.0/1.5|1|1.5|2|1.5/2.0|3|2.0|4|2/2.5|5|2.5|6|2.5/3.0|7|3.0|8|3/3.5|9|3.5|10|3.5/4.0|11|4.0|12|4/4.5|13|4.5|14|4.5/5.0|15|5.0|16|5/5.5|17|5.5|18|5.5/6.0|19|6.0|24|6.0/6.5|25|6.5|26|6.5/7.0|27|7.0|28|7.0/7.5|29|7.5|30|7.5/8.0|31|8.0|32|8.0/8.5|33|8.5|34|8.5/9.0|35|9.0|36|9.0/9.5|37|9.5|38|9.5/10.0|39|10.0,true,true,true,0|否|1|是,true"; string strIdea = "/联赛时间格式:" + DT.FormatDate(DateTime.Now.AddHours(5), 0) + "/"; string strOthe = "确定添加,addGuess.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("大小盘赔率与标准盘填写-1可隐藏,即不可下注大小盘与标准盘!"); builder.Append(Out.Tab("</div>", "")); } else { builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("增加:足球赛事 " + Out.waplink(Utils.getUrl("addGuess.aspx?ptype=1"), "切换足球")); builder.Append(Out.Tab("</div>", "")); string strText = "联赛名称,联赛时间,上盘名称,上盘赔率,下盘名称,下盘赔率,上下盘口,大盘赔率,小盘赔率,大小盘口,"; string strName = "p_title,p_TPRtime,p_one,p_one_lu,p_two,p_two_lu,p_pk,p_big_lu,p_small_lu,p_dx_pk,ptype"; string strType = "text,date,text,text,text,text,text,text,text,text,hidden"; string strValu = "'" + DateTime.Now.AddHours(5) + "'''''''''" + ptype + ""; string strEmpt = "flase,false,false,false,false,false,false,true,true,true,true"; string strIdea = "/联赛时间格式:" + DT.FormatDate(DateTime.Now.AddHours(5), 0) + "/"; string strOthe = "确定添加,addGuess.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("大小盘赔率填写-1可隐藏大小盘,即不可下注大小盘!"); builder.Append(Out.Tab("</div>", "")); } } builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("default.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 />")); }
/// <summary> /// 更新即时比分(走地使用) /// </summary> public void FootOnceUpdate(TPR.Model.guess.BaList model) { dal.FootOnceUpdate(model); }
/// <summary> /// 得到查询的记录数 /// </summary> public int GetCount(TPR.Model.guess.BaList model) { return(dal.GetCount(model)); }
/// <summary> /// 更新篮球一条数据 /// </summary> public void BasketUpdate(TPR.Model.guess.BaList model) { dal.BasketUpdate(model); }
/// <summary> /// 更新一条数据 /// </summary> public void Update(TPR.Model.guess.BaList model) { dal.Update(model); }
/// <summary> /// 自动更新赛事比分 /// </summary> public int UpdateZDResult(TPR.Model.guess.BaList model) { return(dal.UpdateZDResult(model)); }
/// <summary> /// 增加足球让球盘一条数据 /// </summary> public int FootAdd(TPR.Model.guess.BaList model) { return(dal.FootAdd(model)); }
protected void Page_Load(object sender, EventArgs e) { int ManageId = new BCW.User.Manage().IsManageLogin(); int gid = Utils.ParseInt(Utils.GetRequest("gid", "all", 2, @"^[0-9]*$", "竞猜ID无效")); string act = Utils.GetRequest("act", "all", 1, "", ""); string jc = Utils.GetRequest("jc", "get", 1, "", ""); TPR.BLL.guess.BaList bll = new TPR.BLL.guess.BaList(); TPR.Model.guess.BaList model = bll.GetModel(gid); if (model == null) { Utils.Error("不存在的记录", ""); } Master.Title = model.p_one + "VS" + model.p_two; //更新隐藏与显示 if (act == "yes") { model.p_del = 0; new TPR.BLL.guess.BaList().Updatep_del(model); //游戏日志记录 string[] p_pageArr = { "act", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号将赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")开放显示", gid); } else if (act == "no") { model.p_del = 1; new TPR.BLL.guess.BaList().Updatep_del(model); //游戏日志记录 string[] p_pageArr = { "act", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号将赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")隐藏显示", gid); } //更新抓取与不抓取 if (jc == "yes") { model.p_jc = 0; new TPR.BLL.guess.BaList().Updatep_jc(model); //游戏日志记录 string[] p_pageArr = { "jc", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号将赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")开启抓取", gid); } else if (jc == "no") { model.p_jc = 1; new TPR.BLL.guess.BaList().Updatep_jc(model); //游戏日志记录 string[] p_pageArr = { "jc", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号将赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")关闭抓取", gid); } //删除赛事 if (act == "del" || act == "delok1" || act == "delok2") { if (act == "del") { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("确定删除此赛事吗"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=delok1"), "删除,不包含下注记录") + "<br />"); builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=delok2"), "删除,包含下注记录") + "<br />"); builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + ""), "先留着吧..")); builder.Append(Out.Tab("</div>", "<br />")); } else { //游戏日志记录 string[] p_pageArr = { "act", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号删除赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")", gid); new TPR.BLL.guess.BaList().Delete(gid); if (act == "delok2") { TPR.BLL.guess.BaPay bll2 = new TPR.BLL.guess.BaPay(); new TPR.BLL.guess.BaPay().Deletebcid(gid); } Utils.Success("删除赛事", "删除赛事成功..", Utils.getUrl("default.aspx"), "1"); } } //转换成走地模式 else if (act == "once" || act == "onceok") { if (!Utils.GetDomain().Contains("tl88") && !Utils.GetDomain().Contains("168yy")) { Utils.Error("不存在的页面", ""); } if (act == "once") { string p_oncetime = string.Empty; if (string.IsNullOrEmpty(model.p_oncetime.ToString())) { p_oncetime = DT.FormatDate(Convert.ToDateTime(model.p_TPRtime).AddMinutes(100), 0); } else { p_oncetime = DT.FormatDate(Convert.ToDateTime(model.p_oncetime), 0); } builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("确定要转换成走地下注模式吗"); builder.Append(Out.Tab("</div>", "")); string strText = "封盘时间,,"; string strName = "oncetime,gid,act"; string strType = "date,hidden,hidden"; string strValu = "" + p_oncetime + "'" + gid + "'onceok"; string strEmpt = "false,false,false"; string strIdea = "/"; string strOthe = "转换,showGuess.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", " ")); builder.Append(Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + ""), "取消")); builder.Append(Out.Tab("</div>", "<br />")); } else { DateTime oncetime = Utils.ParseTime(Utils.GetRequest("oncetime", "post", 2, DT.RegexTime, "请正确填写封盘时间")); if (Convert.ToDateTime(model.p_TPRtime) > oncetime) { Utils.Error("封盘时间应大于开赛时间", ""); } //游戏日志记录 string[] p_pageArr = { "oncetime", "act", "gid" }; BCW.User.GameLog.GameLogGetPage(Utils.getPageUrl(), p_pageArr, "后台管理员" + ManageId + "号编辑赛事" + model.p_one + "VS" + model.p_two + "(" + gid + ")成为走地", gid); new TPR.BLL.guess.BaList().FootOnceType(gid, oncetime); Utils.Success("转移走地", "转换成功..", Utils.getUrl("showguess.aspx?gid=" + gid + ""), "1"); } } 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>", "")); builder.Append(Out.waplink(Utils.getUrl("default.aspx?ptype=4&fly=" + model.p_title + ""), model.p_title) + ":" + 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 + ""); } else { builder.Append("<br />即时比分:" + model.p_result_temp1 + ":" + model.p_result_temp2 + ""); } builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("〓让球盘〓"); builder.AppendFormat("<br />{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=1"), "{1}注"), model.p_one + "(" + Convert.ToDouble(model.p_one_lu) + ")", new TPR.BLL.guess.BaPay().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.AppendFormat("<br />{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=2"), "{1}注"), model.p_two + "(" + Convert.ToDouble(model.p_two_lu) + ")", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 2)); if (model.p_big_lu != 0) { builder.Append("<br />〓大小盘〓"); builder.AppendFormat("<br />" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=3"), "{0}注") + "{1}", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 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.AppendFormat("{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=4"), "{1}注"), "小(" + Convert.ToDouble(model.p_small_lu) + ")", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 4)); } if (model.p_bzs_lu != 0) { builder.Append("<br />〓标准盘〓"); builder.AppendFormat("<br />{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=5"), "{1}注"), "主胜(" + Convert.ToDouble(model.p_bzs_lu) + ")", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 5)); builder.AppendFormat("<br />{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=6"), "{1}注"), "平手(" + Convert.ToDouble(model.p_bzp_lu) + ")", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 6)); builder.AppendFormat("<br />{0}" + Out.waplink(Utils.getUrl("plGuess.aspx?gid=" + model.ID + "&p=7"), "{1}注"), "客胜(" + Convert.ToDouble(model.p_bzx_lu) + ")", new TPR.BLL.guess.BaPay().GetCount(model.ID, Convert.ToInt32(model.p_type), 7)); } builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); long PayCents = new TPR.BLL.guess.BaPay().GetBaPayCent(model.ID, Convert.ToInt32(model.p_type)); builder.Append("" + ub.Get("SiteBz") + "统计:<br />总注数:" + new TPR.BLL.guess.BaPay().GetBaPayNum(model.ID, Convert.ToInt32(model.p_type)) + "/下注额:" + PayCents + ""); if (model.p_result_one != null && model.p_result_two != null) { long WinMoney = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("bcid=" + gid + " and Types=0"); builder.Append("<br />总返彩:" + WinMoney + "/盈利额:" + (PayCents - WinMoney) + ""); } builder.Append("<br />〓管理〓"); if (model.p_result_one != null && model.p_result_two != null) { builder.Append("<br />" + Out.waplink(Utils.getUrl("openGuess.aspx?gid=" + gid + ""), "重开奖")); } else { builder.Append("<br />" + Out.waplink(Utils.getUrl("openGuess.aspx?gid=" + gid + ""), "开奖")); } builder.Append(" " + Out.waplink(Utils.getUrl("editGuess.aspx?gid=" + gid + ""), "修改")); builder.Append(" " + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=del"), "删除")); builder.Append(" " + Out.waplink(Utils.getUrl("payView.aspx?gid=" + gid + ""), "记录")); if (model.p_del == 0) { builder.Append(" " + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=no"), "隐藏")); } else { builder.Append(" " + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=yes"), "显示")); } if (model.p_jc == 0) { builder.Append("<br />抓取状态:正常抓取<br />" + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&jc=no"), "关闭抓取")); } else { builder.Append("<br />抓取状态:停止抓取<br />" + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&jc=yes"), "开启抓取")); } builder.Append("球探网ID:" + model.p_id + "<br />"); if (model.p_type == 1) { if (Utils.GetDomain().Contains("tl88") || Utils.GetDomain().Contains("168yy")) { if (model.p_ison == 1) { builder.Append("<br />走地状态:走地"); } else { builder.Append("<br />走地状态:非走地"); } builder.Append("" + Out.waplink(Utils.getUrl("showGuess.aspx?gid=" + gid + "&act=once"), "编辑")); } } if (Utils.GetDomain().Contains("kubao") || Utils.GetDomain().Contains("tuhao") || Utils.GetDomain().Contains("th") || Utils.GetDomain().Contains("kb288") || Utils.GetDomain().Contains("127.0.0.6")) { builder.Append("<br />" + Out.waplink(Utils.getUrl("../forumlog.aspx?act=gamelog&gid=" + gid + "&backurl=" + Utils.PostPage(1) + ""), "操作日志")); builder.Append("<br />" + Out.waplink(Utils.getUrl("../forumlog.aspx?act=gameowe&gid=" + gid + "&backurl=" + Utils.PostPage(1) + ""), "欠币日志")); } builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getPage("default.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 />")); } }