using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace web.Web.wx.Views.YZ { public partial class status : System.Web.UI.Page { public string _divHTML = ""; protected void Page_Load(object sender, EventArgs e) { string mblno = Request["mblno"]; _divHTML = SetupHTML(mblno); } public string SetupHTML(string mblno) { StringBuilder sb = new StringBuilder(); Entities me = new Entities(); op_seae_billtrack bt = me.op_seae_billtrack.Where(o => o.MBLNO == mblno).First(); if (bt == null) { return ""; } else { sb.Append("

"+mblno+"


"); sb.Append("
"); sb.Append("
"); sb.Append(""); } return sb.ToString(); } private string fmtDataTime(DateTime? date) { if (date==null) { return ""; } else { try { string d = date.Value.ToString("yyyy-MM-dd HH:mm:ss"); return d; } catch (Exception) { return ""; } } } } }