private void EditAppbankPage() { int id = int.Parse(Utils.GetRequest("id", "get", 2, @"^[0-9]\d*$", "ID错误")); if (!new BCW.BLL.Appbank().Exists(id)) { Utils.Error("不存在的记录", ""); } BCW.Model.Appbank model = new BCW.BLL.Appbank().GetAppbank(id); Master.Title = "管理结算"; builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("管理结算"); builder.Append(Out.Tab("</div>", "")); string strText = "状态管理:/,管理员备注:(50字内,可空)/,,,"; string strName = "State,AdminNotes,id,act,backurl"; string strType = "select,text,hidden,hidden,hidden"; string strValu = "" + model.State + "'" + model.AdminNotes + "'" + id + "'editokappbank'" + Utils.getPage(0) + ""; string strEmpt = "0|申请中|1|已汇款|2|已失败,true,false,false,false"; string strIdea = "/"; string strOthe = "修改|reset,shopbuy.aspx,post,1,red|blue"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("温馨提示:<br />系统将本次修改结果以内线形式通知结算的会员"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append("<a href=\"" + Utils.getUrl("shopbuy.aspx?act=delappbank&id=" + id + "&backurl=" + Utils.getPage(0) + "") + "\">删除此记录</a><br />"); builder.Append("<a href=\"" + Utils.getPage("shopbuy.aspx?act=appbank") + "\">返回上一级</a><br />"); builder.Append(Out.Tab("</div><div class=\"title\"><a href=\"" + Utils.getUrl("default.aspx") + "\">返回管理中心</a>", "<a href=\"" + Utils.getUrl("default.aspx") + "\">返回管理中心</a>")); builder.Append(Out.Tab("</div>", "<br />")); }
private void EditOkAppbankPage() { int id = int.Parse(Utils.GetRequest("id", "post", 1, @"^[0-9]\d*$", "0")); int State = int.Parse(Utils.GetRequest("State", "post", 2, @"^[0-2]\d*$", "状态选择出错")); string AdminNotes = Utils.GetRequest("AdminNotes", "post", 3, @"^[\s\S]{1,200}$", "备注限50字,可以留空"); BCW.Model.Appbank n = new BCW.BLL.Appbank().GetAppbank(id); if (n == null) { Utils.Error("不存在的记录", ""); } BCW.Model.Appbank model = new BCW.Model.Appbank(); model.ID = id; model.State = State; model.AdminNotes = AdminNotes; model.ReTime = DateTime.Now; new BCW.BLL.Appbank().Update(model); //内线通知会员 new BCW.BLL.Guest().Add(n.UsID, n.UsName, "您申请结算的推广拥金" + n.AddGold + "元,管理员已受理,[url=/shopbuy.aspx?act=getfclist]查看详情[/url]"); Utils.Success("修改成功", "修改结算成功..", Utils.getUrl("shopbuy.aspx?act=editappbank&id=" + id + "&backurl=" + Utils.getPage(0) + ""), "1"); }
private void GetFcListPage() { //用户资料 int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "我的结算记录"; builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("我的结算记录"); builder.Append(Out.Tab("</div>", "<br />")); int pageIndex; int recordCount; int pageSize = 5; string strWhere = ""; string[] pageValUrl = { "backurl" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //查询条件 strWhere += "Types=0 and UsID=" + meid + ""; // 开始读取列表 IList <BCW.Model.Appbank> listAppbank = new BCW.BLL.Appbank().GetAppbanks(pageIndex, pageSize, strWhere, out recordCount); if (listAppbank.Count > 0) { int k = 1; foreach (BCW.Model.Appbank n in listAppbank) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", Out.Hr())); } } string sText = string.Empty; if (n.State == 0) { sText = "申请中"; } else if (n.State == 1) { sText = "已汇款"; } else if (n.State == 1) { sText = "已失败"; } builder.Append("<b>[" + sText + "]</b>申请" + n.AddGold + "元[" + DT.FormatDate(n.AddTime, 1) + "]"); if (!string.IsNullOrEmpty(n.Notes)) { builder.Append("<br />备注:" + n.Notes + ""); } if (n.State > 0) { builder.Append("<br />受理时间:" + n.ReTime + ""); if (!string.IsNullOrEmpty(n.AdminNotes)) { builder.Append("<br />管理员备注:" + n.AdminNotes + ""); } } k++; builder.Append(Out.Tab("</div>", "")); } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("/bbs/uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("/shopbuy.aspx?act=getfc") + "\">我要结算</a>"); builder.Append(Out.Tab("</div>", "")); }
private void GetFcPage() { //用户资料 int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "申请结算"; builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("申请结算"); builder.Append(Out.Tab("</div>", "<br />")); long fcgold = new BCW.BLL.User().GetFcGold(meid); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("我的推广拥金:" + fcgold + "元"); builder.Append(Out.Tab("</div>", "<br />")); long fcmax = Utils.ParseInt64(ub.GetSub("BuylistReMax", xmlPath)); if (fcgold < fcmax) { builder.Append(Out.Tab("<div>", "")); builder.Append("拥金未达" + fcmax + "元,你还不可以申请结算"); builder.Append(Out.Tab("</div>", "")); } else { //上一次交易资料 BCW.Model.Appbank model = new BCW.BLL.Appbank().GetAppbankLast(0, meid); builder.Append(Out.Tab("<div>", "")); builder.Append("拥金已达" + fcmax + "元,你目前可以申请结算"); builder.Append(Out.Tab("</div>", "")); string strText = "结算数量:/,您的手机号:/,银行卡号:/,你的卡号姓名:/,开户银行名称:/,备注(可空,50字内):/,,"; string strName = "GoldNum,Mobile,CardNum,CardName,CardAddress,Notes,act,backurl"; string strType = "num,num,text,text,text,text,hidden,hidden"; string strValu = ""; if (model == null) { strValu = "''''''getfcok'" + Utils.getPage(0) + ""; } else { strValu = "'" + model.Mobile + "'" + model.CardNum + "'" + model.CardName + "'" + model.CardAddress + "''getfcok'" + Utils.getPage(0) + ""; } string strEmpt = "false,false,false,false,false,true,,,"; string strIdea = "/"; string strOthe = "立即结算|reset,shopbuy.aspx,post,1,red|blue"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("注意开户银行名称例子:<br />中国工商银行广州天河支行"); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("/bbs/uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("/shopbuy.aspx?act=getfclist") + "\">结算记录</a>"); builder.Append(Out.Tab("</div>", "")); }
/// <summary> /// 商品推广拥金结算 /// </summary> private void AppbankPage() { Master.Title = "推广拥金结算记录"; int ptype = int.Parse(Utils.GetRequest("ptype", "all", 1, @"^[0-2]$", "0")); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("结算记录"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div class=\"text\">", "")); if (ptype == 0) { builder.Append("未结算|"); } else { builder.Append("<a href=\"" + Utils.getUrl("shopbuy.aspx?act=appbank&ptype=0&backurl=" + Utils.getPage(0) + "") + "\">未结算</a>|"); } if (ptype == 1) { builder.Append("已结算|"); } else { builder.Append("<a href=\"" + Utils.getUrl("shopbuy.aspx?act=appbank&ptype=1&backurl=" + Utils.getPage(0) + "") + "\">已结算</a>|"); } if (ptype == 2) { builder.Append("已失败"); } else { builder.Append("<a href=\"" + Utils.getUrl("shopbuy.aspx?act=appbank&ptype=2&backurl=" + Utils.getPage(0) + "") + "\">已失败</a>"); } builder.Append(Out.Tab("</div>", "<br />")); int pageIndex; int recordCount; int pageSize = 5; string strWhere = ""; string[] pageValUrl = { "ptype", "backurl" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } //查询条件 strWhere += "Types=0 and State=" + ptype + ""; // 开始读取列表 IList <BCW.Model.Appbank> listAppbank = new BCW.BLL.Appbank().GetAppbanks(pageIndex, pageSize, strWhere, out recordCount); if (listAppbank.Count > 0) { int k = 1; foreach (BCW.Model.Appbank n in listAppbank) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", Out.Hr())); } } string sText = string.Empty; if (n.State == 0) { sText = "申请中"; } else if (n.State == 1) { sText = "已汇款"; } else if (n.State == 1) { sText = "已失败"; } builder.Append("<b>[" + sText + "]</b><a href=\"" + Utils.getUrl("uinfo.aspx?uid=" + n.UsID + "&backurl=" + Utils.PostPage(1) + "") + "\">" + n.UsName + "(" + n.UsID + ")</a>申请" + n.AddGold + "元[" + DT.FormatDate(n.AddTime, 1) + "]"); if (!string.IsNullOrEmpty(n.Notes)) { builder.Append("<br />备注:" + n.Notes + ""); } builder.Append("<br />银行卡号:" + n.CardNum + ""); builder.Append("<br />银行姓名:" + n.CardName + ""); builder.Append("<br />开户银行:" + n.CardAddress + ""); builder.Append("<br />手机号:" + n.Mobile + ""); if (n.State > 0) { builder.Append("<br />受理时间:" + n.ReTime + ""); if (!string.IsNullOrEmpty(n.AdminNotes)) { builder.Append("<br />备注:" + n.AdminNotes + ""); } } builder.Append("<br /><a href=\"" + Utils.getUrl("shopbuy.aspx?act=editappbank&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">管理此结算</a>"); k++; builder.Append(Out.Tab("</div>", "")); } // 分页 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("<a href=\"" + Utils.getUrl("shopbuy.aspx") + "\">返回上一级</a><br />"); builder.Append(Out.Tab("</div><div class=\"title\"><a href=\"" + Utils.getUrl("default.aspx") + "\">返回管理中心</a>", "<a href=\"" + Utils.getUrl("default.aspx") + "\">返回管理中心</a>")); builder.Append(Out.Tab("</div>", "<br />")); }