首次推送
This commit is contained in:
238
Mtxfw.VipSite/Admin_Member_YBJY_Cx.aspx.cs
Normal file
238
Mtxfw.VipSite/Admin_Member_YBJY_Cx.aspx.cs
Normal file
@@ -0,0 +1,238 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
namespace Mtxfw.VipSite
|
||||
{
|
||||
public partial class Admin_Member_YBJY_Cx : Mtxfw.Utility.MemberBase
|
||||
{
|
||||
public Mtxfw.DAL.user_bank daoBank = new Mtxfw.DAL.user_bank();
|
||||
public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
||||
public Mtxfw.DAL.user_Results daoResults = new Mtxfw.DAL.user_Results();
|
||||
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
||||
public string strTitle = "交流详情", JYLX = "", JYED = "", JYJG = "", ZPJF = "", SJ = "", SJ0 = "", SJ1 = "", SJ2 = "", SJ3 = "", strSeef = "", strcz = "", UserName = "", UserName2 = "", dkxx = "", skxx="", strID = "0";
|
||||
protected string strUrl = "";
|
||||
public int ifqx = 0, Seef=0;
|
||||
public int gtype = 0;
|
||||
#region 判断页面是否刷新
|
||||
private bool _refreshState;
|
||||
private bool _isRefresh;
|
||||
|
||||
/// <summary>
|
||||
/// 判断页面是否刷新
|
||||
/// </summary>
|
||||
public bool IsRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return _isRefresh;
|
||||
}
|
||||
}
|
||||
protected override void LoadViewState(object savedState)
|
||||
{
|
||||
object[] allStates = (object[])savedState;
|
||||
base.LoadViewState(allStates[0]);
|
||||
_refreshState = (bool)allStates[1];
|
||||
_isRefresh = _refreshState == (bool)Session["__ISREFRESH"];
|
||||
}
|
||||
protected override object SaveViewState()
|
||||
{
|
||||
Session["__ISREFRESH"] = _refreshState;
|
||||
object[] allStates = new object[2];
|
||||
allStates[0] = base.SaveViewState();
|
||||
allStates[1] = !_refreshState;
|
||||
return allStates;
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
string hostname = Request.Url.Host;
|
||||
|
||||
/*if (!String.IsNullOrEmpty(Request.QueryString["t"]))
|
||||
{
|
||||
t = Convert.ToInt32(Request.QueryString["t"].ToString());
|
||||
}*/
|
||||
if (IFStores == 1)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(Request.QueryString["MID"]))
|
||||
{
|
||||
Card = Convert.ToInt32(Request.QueryString["MID"]);
|
||||
IFStores = 0;
|
||||
strUrl = "MID=" + Card;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (Session["IFPassword"] == null)
|
||||
{
|
||||
Response.Redirect("/Member_IFPassword.aspx?Url=/Member_YBJY_Cx.aspx&" + strUrl);
|
||||
}
|
||||
}
|
||||
if (!String.IsNullOrEmpty(Request.QueryString["ID"]))
|
||||
{
|
||||
strID = Request.QueryString["ID"].ToString();
|
||||
Int64 ViewID = Int64.Parse(strID);
|
||||
|
||||
Mtxfw.Model.user_Results rmodel = daoResults.GetModel(ViewID);
|
||||
if (rmodel != null)
|
||||
{
|
||||
if (rmodel.IFDelete == 1)
|
||||
{
|
||||
ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>alert('此单已撤销!');location.replace('Member_YBJY.aspx')</script>");
|
||||
}
|
||||
if (rmodel.Seef == 0 && rmodel.MemberId == Card)
|
||||
{
|
||||
ifqx = 1;
|
||||
}
|
||||
Mtxfw.Model.user_info umodel = daoUser.GetModel(rmodel.MemberId);
|
||||
if (umodel != null)
|
||||
{
|
||||
JYJG = rmodel.b0.ToString();
|
||||
ZPJF = rmodel.b6.ToString();
|
||||
|
||||
SJ = rmodel.addtime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
strSeef = Mtxfw.Utility.Common.GetProZT(rmodel.Seef, Convert.ToInt32(rmodel.b2.ToString().Split('.')[0]), Convert.ToInt32(rmodel.b3.ToString().Split('.')[0]), Convert.ToInt32(rmodel.b7.ToString().Split('.')[0]), Convert.ToInt32(rmodel.b8.ToString().Split('.')[0]), Convert.ToInt32(rmodel.b14.ToString().Split('.')[0]), Convert.ToInt32(rmodel.b16.ToString().Split('.')[0]));
|
||||
Seef=rmodel.Seef;
|
||||
|
||||
|
||||
if (rmodel.Seef > 0)
|
||||
{
|
||||
SJ = rmodel.yytime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
SJ0 = rmodel.addtime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
SJ1 = rmodel.jdtime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
if (rmodel.Seef == 1)
|
||||
{
|
||||
if (rmodel.jdtime.AddMinutes(Convert.ToInt32(config.webMoney40)) < DateTime.Now)
|
||||
{
|
||||
strSeef = "超时未支付";
|
||||
}
|
||||
}
|
||||
if (rmodel.Seef == 2)
|
||||
{
|
||||
if (rmodel.paytime.AddMinutes(Convert.ToInt32(config.webMoney40)) < DateTime.Now)
|
||||
{
|
||||
strSeef = "超时未确认收款";
|
||||
}
|
||||
}
|
||||
if (rmodel.Seef > 1)
|
||||
{
|
||||
SJ2 = rmodel.paytime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
if (rmodel.Seef > 2)
|
||||
{
|
||||
SJ3 = rmodel.seeftime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
dkxx = "<tr><td style=\"text-align:right; \">收款方信息:</td><td style=\"text-align:left;\">";
|
||||
dkxx += "<div>姓名:" + umodel.RealName;
|
||||
dkxx += "<br>手机号:" + umodel.Phone;
|
||||
Mtxfw.Model.user_info tjumodel = daoUser.GetModel(umodel.ContactID);
|
||||
if (tjumodel != null)
|
||||
{
|
||||
dkxx += "<br>推荐人姓名:" + tjumodel.RealName;
|
||||
dkxx += "<br>推荐人手机号:" + tjumodel.Phone;
|
||||
}
|
||||
if (umodel.Phone2 != "")
|
||||
{
|
||||
dkxx += "<br>开户姓名:" + umodel.ProductName;
|
||||
dkxx += "<br>银行名称:" + umodel.RealName2;
|
||||
dkxx += "<br>银行卡号:" + umodel.Phone2;
|
||||
dkxx += "<br>开户行地址:" + umodel.PostalCode;
|
||||
}
|
||||
if (umodel.Phone2 != "")
|
||||
{
|
||||
dkxx += "<br>支付宝账号:" + umodel.AliAccount;
|
||||
dkxx += "<br>支付宝姓名:" + umodel.AliName;
|
||||
}
|
||||
dkxx += "</div>";
|
||||
if (umodel.aliimage != "")
|
||||
{
|
||||
dkxx += "<span class='ximage'>支付宝收款码<a target='_blank' href='" + config.webUrl + Mtxfw.Utility.Common.GetCoverPic(umodel.aliimage, "1000x1000", config.webImgMode) + "'><img src='" + config.webUrl + Mtxfw.Utility.Common.GetCoverPic(umodel.aliimage, "1000x1000", config.webImgMode) + "' id='aliimage' /></a></span>";
|
||||
}
|
||||
if (umodel.weixinimage != "")
|
||||
{
|
||||
dkxx += "<span class='ximage'>微信收款码<a target='_blank' href='" + config.webUrl + Mtxfw.Utility.Common.GetCoverPic(umodel.weixinimage, "1000x1000", config.webImgMode) + "'><img src='" + config.webUrl + Mtxfw.Utility.Common.GetCoverPic(umodel.weixinimage, "1000x1000", config.webImgMode) + "' id='weixinimage' /></a></span>";
|
||||
}
|
||||
|
||||
dkxx += "</td></tr>";
|
||||
UserName = "<tr><td style=\"text-align:right; \">卖方:</td><td style=\"text-align:left; \">" + umodel.UserName + "</td></tr>";
|
||||
dkxx += "<tr><td style=\"text-align:right; \">付款方信息:</td><td style=\"text-align:left;\">";
|
||||
|
||||
Mtxfw.Model.user_info umodel2 = daoUser.GetModel(rmodel.UserId);
|
||||
if (umodel2 != null)
|
||||
{
|
||||
dkxx += "<div>姓名:" + umodel2.RealName;
|
||||
dkxx += "<br>手机号:" + umodel2.Phone;
|
||||
Mtxfw.Model.user_info tjumodel2 = daoUser.GetModel(umodel2.ContactID);
|
||||
if (tjumodel2 != null)
|
||||
{
|
||||
dkxx += "<br>推荐人姓名:" + tjumodel2.RealName;
|
||||
dkxx += "<br>推荐人手机号:" + tjumodel2.Phone;
|
||||
}
|
||||
dkxx += "</div>";
|
||||
string[] aimages = rmodel.Managers.Split('|');
|
||||
if (aimages[0]!="")
|
||||
{
|
||||
dkxx += "<br><a href=\"" + aimages[0] + "\"><img src=\"" + aimages[0] + "\" style=\" width:300px\" /></a>";
|
||||
}
|
||||
if (aimages.Length>1)
|
||||
{
|
||||
if (aimages[1] != "")
|
||||
{
|
||||
dkxx += "<br><a href=\"" + aimages[1] + "\"><img src=\"" + aimages[1] + "\" style=\" width:300px\" /></a>";
|
||||
}
|
||||
}
|
||||
if (aimages.Length > 2)
|
||||
{
|
||||
if (aimages[2] != "")
|
||||
{
|
||||
dkxx += "<br><a href=\"" + aimages[2] + "\"><img src=\"" + aimages[2] + "\" style=\" width:300px\" /></a>";
|
||||
}
|
||||
}
|
||||
if (rmodel.conent != "")
|
||||
{
|
||||
dkxx += "<br>" + Mtxfw.Utility.Common.InputText(rmodel.conent);
|
||||
}
|
||||
UserName2 = "<tr><td style=\"text-align:right; \">买方:</td><td style=\"text-align:left;\">" + umodel2.UserName + "</td></tr>";
|
||||
}
|
||||
dkxx += "</td></tr>";
|
||||
if (rmodel.Seef == 1)
|
||||
{
|
||||
strcz = "<span class='button abtn' onclick='showtype(0)'>确认支付</span>";
|
||||
if (rmodel.b16 == 1)
|
||||
{
|
||||
if(rmodel.jdtime.AddMinutes(Convert.ToInt32(config.webMoney40)) < DateTime.Now)
|
||||
{
|
||||
strcz += "<span class='button abtn' onclick='showtype(4)'>扣除买家"+ config.webMoney46 + "%转卖积分给卖家</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (rmodel.Seef == 2)
|
||||
{
|
||||
|
||||
strcz = "<span class='button abtn' onclick='showtype(1)'>确认收到</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Page.Title = strTitle + " - " + GetWebName;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user