|
|
|
|
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("<p>"+mblno+"</p><br/>");
|
|
|
|
|
sb.Append("<div class=\"track-rcol\">");
|
|
|
|
|
sb.Append("<div class=\"track-list\">");
|
|
|
|
|
sb.Append("<ul>");
|
|
|
|
|
string cls = bt.TiXiangShiJian == "已提箱" ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\""+ cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">" + bt.TiXiangShiJian + "</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\"></span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.FanChangShiJian == "已返场" ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">" + bt.FanChangShiJian + "</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\"></span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.FanChangShiJian == "已集港" ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">" + bt.JiGangShiJian + "</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\"></span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.YunDiShiJian != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">运抵</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.YunDiShiJian) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.CangDanShiJian != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">舱单</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.CangDanShiJian) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.BaoGuanFangXing != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">报关</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.BaoGuanFangXing) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.ZhuangZaiFangXing != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">装载</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.ZhuangZaiFangXing) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.MaTouFangXing != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">码头</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + bt.MaTouFangXing + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.KaiChuanShiJian != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">开船日期</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.KaiChuanShiJian) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.ETA != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">ETA</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.ETA) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
cls = bt.ATA != null ? "liyes" : "lino";
|
|
|
|
|
sb.Append("<li class=\"" + cls + "\">");
|
|
|
|
|
sb.Append("<span class=\"time\">ATA</span>");
|
|
|
|
|
sb.Append("<span class=\"txt\">" + fmtDataTime(bt.ATA) + "</span>");
|
|
|
|
|
sb.Append("</li>");
|
|
|
|
|
|
|
|
|
|
sb.Append("</ul>");
|
|
|
|
|
}
|
|
|
|
|
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 "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|