计算机毕业设计介绍:
4.5 订票信息列表
此页面显示用户的订票信息,包括车次、用户、到达站、发车时间、票价、订票数、总金额、对应车辆、车次状态、同意订票,以及查看用户和同意订票按钮。
以下是引用片段:
其主要代码实现过程如下: protected void Page_Load(object sender, EventArgs e) { // 在此处放置用户代码以初始化页面 if (!Page.IsPostBack) { //根据传递的车次编号 将当前的车次信息显示在控件中 DataTable tmpda = new DataTable(); tmpda = DataBase.Get_Table("select ccxx.*, clxx.clmc from ccxx, clxx where ccxx.clbh = clxx.clbh and idkey = " + Request.QueryString["idkey"]); if (tmpda.Rows.Count > 0) { this.TSpmc.InnerHtml = tmpda.Rows[0]["ccmc"].ToString(); this.TSpjs.InnerHtml = tmpda.Rows[0]["fcz"].ToString(); this.TImage.InnerHtml = tmpda.Rows[0]["dzz"].ToString(); this.TJg.InnerHtml = Convert.ToDateTime(tmpda.Rows[0]["fcsj"].ToString()).ToString("yyyy-MM-dd hh:mm"); this.TSplb.InnerHtml = Convert.ToDateTime(tmpda.Rows[0]["ddsj"].ToString()).ToString("yyyy-MM-dd hh:mm"); this.TD1.InnerHtml = tmpda.Rows[0]["pj"].ToString(); this.TD3.InnerHtml = tmpda.Rows[0]["clmc"].ToString(); this.TD4.InnerHtml = tmpda.Rows[0]["cczt"].ToString(); }
tmpda = DataBase.Get_Table("select dpxx.*, yhxx.xm from dpxx, yhxx where dpxx.yhdlm = yhxx.yhdlm and dpxx.idkey = " + Request.QueryString["dpbh"]); if (tmpda.Rows.Count > 0) { this.TD6.InnerHtml = tmpda.Rows[0]["xm"].ToString(); this.TD2.InnerHtml = tmpda.Rows[0]["dpzs"].ToString(); this.TD5.InnerHtml = tmpda.Rows[0]["zje"].ToString(); } } }
|
<责任编辑:计算机毕业设计网(http://www.xiaoniu168.com)>