(1)会员列表:显示注册的会员信息,可以对会员信息进行删除的操作。
(2)会员评论列表:显示会员发布的评论信息,可以对评论信息进行删除的操作
(3)历史类别:维护紫砂壶历史类别信息。
(4)历史文献管理:维护紫砂壶相关的历史文献信息,便于会员浏览。
(5)紫砂壶分类:维护紫砂壶相关的类别,所属四个类型,器形、局部造型、装饰研究、砂料研究。
(6)紫砂壶信息管理:维护要展示的各种紫砂壶信息,可以上传图片和动画内容
(7)制壶名家管理:维护紫砂壶名家信息列表,可以添加、修改、删除紫砂壶名家信息
前台:
(1)紫砂壶历史:展示紫砂壶历史类别信息,展示紫砂壶历史文献信息。
(2)紫砂壶器形:展示紫砂壶器形的类别以及所属类别的紫砂壶信息。
(3)局部造型:展示紫砂壶局部造型的类别以及所属的紫砂壶信息。
(4)装饰研究:展示紫砂壶装饰研究的类别以及所属的紫砂壶信息
(5)砂料研究:展示紫砂壶砂料研究的类别以及所属的紫砂壶信息
(6)制壶名家:展示紫砂壶的制壶名家信息
首先管理人员需要维护紫砂壶信息、文献信息以及专家信息,会员通过注册登陆系统后可以浏览紫砂壶信息和评论紫砂壶信息,浏览文献信息和专家信息,其业务流程如下:
图5.1 系统主界面

核心代码如下:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Session["User"]!= null)
{
this.txtUName.Text = Session["User"].ToString();
this.loginout.Style.Add("display","block");
this.btnUpdate.Visible = true;
}
else
{
this.loginin.Style.Add("display","block");
this.btnUpdate.Visible = false;
}
//拼合商品类别字符串
DataTable tmpda = new DataTable();
if (Request.QueryString["LX"] != null)
{
switch (Request.QueryString["LX"])
{
case "QX":
tmpda = DataBase.Get_Table("select * from 紫砂壶分类 where 所属类型='器形' and 上级分类编号 is null ");
break;
case "ZX":
tmpda = DataBase.Get_Table("select * from 紫砂壶分类 where 所属类型='局部造型' and 上级分类编号 is null ");
break;
case "ZSYJ":
tmpda = DataBase.Get_Table("select * from 紫砂壶分类 where 所属类型='装饰研究' and 上级分类编号 is null ");
break;
case "SLYJ":
tmpda = DataBase.Get_Table("select * from 紫砂壶分类 where 所属类型='砂料研究' and 上级分类编号 is null ");
break;
}
}
else
{
tmpda = DataBase.Get_Table("select * from 紫砂壶分类 where 所属类型='器形' and 上级分类编号 is null ");
}
if (tmpda.Rows.Count > 0)
{
strSplb = "";
for (int i = 0; i < tmpda.Rows.Count; i++)
{
//添加大类别
strSplb = strSplb + "<tr>";
string strTmpLx = "";
strTmpLx = "<td class='smallText'oncontextmenu='return(false)' onselectstart='return false' vAlign='top' noWrap align='left' width='20%' >" + "<img src='images/df.jpg'> " + tmpda.Rows[i]["分类名称"].ToString() + "<br><br></td>";
strSplb = strSplb + strTmpLx + "</tr>";
//添加小类别
DataTable tmpda1 = new DataTable();
tmpda1 = DataBase.Get_Table("select * from 紫砂壶分类 where 上级分类编号='" + tmpda.Rows[i]["分类编号"].ToString() + "'");
if (tmpda1.Rows.Count > 0)
{
for (int j = 0; j < tmpda1.Rows.Count; j++)
{
strSplb = strSplb + "<tr>";
strTmpLx = "";
if (Request.QueryString["LX"] != null)
{
strTmpLx = "<td class='smallText'oncontextmenu='return(false)' onselectstart='return false' vAlign='top' noWrap align='left' width='20%' >" + " <a href=Index.aspx?lxbh=" + tmpda1.Rows[j]["分类编号"].ToString() + "&LX=" + Request.QueryString["LX"] + "> • " + tmpda1.Rows[j]["分类名称"].ToString() + "</a><br><br></td>";
}
else
{
strTmpLx = "<td class='smallText'oncontextmenu='return(false)' onselectstart='return false' vAlign='top' noWrap align='left' width='20%' >" + " <a href=Index.aspx?lxbh=" + tmpda1.Rows[j]["分类编号"].ToString() + "> • " + tmpda1.Rows[j]["分类名称"].ToString() + "</a><br><br></td>";
}
strSplb = strSplb + strTmpLx + "</tr>";
}
}
}
}
this.BindSPXX();
}
}
|