📄 getlinkmanlist.aspx.cs
字号:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace YXShop.Web.Membercenter.Orders
{
public partial class getLinkmanList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string linkmanID = Request.QueryString["linkmanID"];
if (!string.IsNullOrEmpty(linkmanID))
{
Response.Write(GetLinkmanInfo(linkmanID));
//Response.End();
}
}
}
public string GetLinkmanInfo(string linkmanID)
{
string str = string.Empty;
int lkID = 0;
if (YXShop.Common.WebUtility.isNumeric(linkmanID))
lkID = Convert.ToInt32(linkmanID);
Session["MemeberID"] = "2";
if (Session["MemeberID"] != null)
{
YXShop.BLL.YXShop_Linkman ylinkm = new YXShop.BLL.YXShop_Linkman();
YXShop.Model.YXShop_Linkman model = ylinkm.GetModel(lkID);
if (model != null)
{
str = string.Format("<table name='linkmanInfo' id='linkmanInfo' value='{0}'>", model.cConnectId);
str += string.Format("<tr align='left' class='title'><th colspan='2'>收货人信息</th></tr>");
str += string.Format("<tr><td width='100'>姓名:</td><td width='467'><input type='text' name='userName' id='userName' value='{0}'/></td></tr>", model.cConnectName);
str += string.Format("<tr><td width='100'>省份:</td><td>{0}-{1}-{2}<input id='addr' name='addr' type='hidden' value='{0},{1},{2}'> 请到<a href='#'>个人资料</a>中修改所在省份!</td></tr>", model.state, model.city, model.county);
str += string.Format("<tr><td width='100'>地址:</td><td><input type='text' name='userAddr' id='userAddr' value='{0}'/>请保持收货人省份与收货地址一致!</td></tr>", model.addr);
str += string.Format("<tr><td width='100'>邮政编码:</td><td><input type='text' name='userZip' id='userZip' value='{0}'/>查看邮政号码</td></tr>", model.zip);
str += string.Format("<tr><td width='100'>联系电话:</td><td><input type='text' name='userPhone' id='userPhone' value='{0}'/></td></tr>", model.cConnectPhone);
str += string.Format("<tr><td width='100'>手机短信:</td><td><input type='text' name='userMobile' id='userMobile' value='{0}'/></td></tr>", model.cMobile);
str += string.Format("<tr><td width='100'>传真:</td><td><input type='text' name='userFax' id='userFax' value='{0}'/></td></tr>", model.cConnectFax);
str += string.Format("<tr><td width='100'>电子信箱:</td><td><input type='text' name='userEmail' id='userEmail' value='{0}'/></td></tr></table>", model.cEmail);
}
}
return str;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -