62,254
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Xml.Linq;
using DataAccess;
public partial class Admin_UploadBiz : System.Web.UI.Page
{
public string strName = "";
public string strCategory = "";
public string strTag = "";
public string strIntroduce = "";
public string strMainProject = "";
public string strvip = "";
public string strSpecial = "";
public string strConsumption = "";
public string strAddress = "";
public string strTraffic = "";
public string strBusName = "";
public string strBuildSignature = "";
public string strTel = "";
public string strUrl = "";
public string strEmail = "";
public string strQq = "";
public string strMsn = "";
public string strselAddress = "";
public string strServiceTime = "";
public string strServiceArea = "";
public string strSeatNum = "";
public string strRoom = "";
public string strForHuman = "";
public string strParking = "";
public string strSpecialParking = "";
public string strHonor = "";
public string strSlogan = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string bizId = Chukeh.Current.Cookie("bizid");
BindPage(bizId);
}
}
void BindPage(string bizId)
{
Xl_付费商家 biz = new Xl_付费商家();
biz.GetModel(Convert.ToInt32(bizId));
strName = biz.名字;
strCategory = biz.主类流水号.ToString();
strTag = biz.标签;
strIntroduce = biz.店面描述;
strMainProject = biz.主营项目;
strvip = biz.是否VIP.ToString();
strSpecial = biz.特色;
strConsumption = biz.人均消费;
strAddress = biz.地址;
strTraffic = biz.交通工具;
strBusName = biz.附近车站名;
strBuildSignature = biz.附近地标;
strTel = biz.电话;
strUrl = biz.网址;
strEmail = biz.Email;
strQq = biz.QQ;
strMsn = biz.MSN;
strselAddress = biz.子区域流水号.ToString();
strServiceTime = biz.营业时间;
strServiceArea = biz.营业面积 ;
strSeatNum = biz .座位数.ToString();
strRoom = biz.包间数.ToString();
strForHuman = biz.适合;
strParking = biz.免费停车;
strSpecialParking = biz.专属停车;
strHonor = biz.荣誉;
strSlogan = biz.口号;
BindColumn( biz.栏目流水号);
}
void BindColumn(int column)
{
XL_栏目 co = new XL_栏目();
ddlColumn.DataTextField = "名称";
ddlColumn.DataValueField = "栏目流水号";
ddlColumn.DataSource = co.GetBizColumn();
ddlColumn.SelectedValue= column.ToString();
ddlColumn.DataBind();
}
}