@using System.Data
@using ZoomLa.BLL.Helper
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@functions{
public IHtmlContent ShowMobile(DataRow dr)
{
string html = "";
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Mobile_Office"])))
{
html += "
办公电话:"+dr["Mobile_Office"]+"
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Mobile_Home"])))
{
html += "家庭电话:" + dr["Mobile_Home"] + "
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Mobile1"])))
{
html += "手机1:" + dr["Mobile1"] + "
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Mobile2"])))
{
html += "手机2:" + dr["Mobile2"] + "
";
}
if (string.IsNullOrEmpty(html)) { html = "无手机/座机信息"; }
return MvcHtmlString.Create(html);
}
public IHtmlContent ShowContactInfo(DataRow dr)
{
string html = "";
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["QQ"])))
{
html += "Q Q :" + dr["QQ"] + "
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Wechat"])))
{
html += "微信:" + dr["Wechat"] + "
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["SinaBlog"])))
{
html += "微博:" + dr["SinaBlog"] + "
";
}
if (!string.IsNullOrEmpty(DataConverter.CStr(dr["Email"])))
{
html += "Email:" + dr["Email"] + "
";
}
if (string.IsNullOrEmpty(html)) { html = "无联系信息"; }
return MvcHtmlString.Create(html);
}
public IHtmlContent ShowClient(DataRow dr)
{
string html = "";
int cid = DataConverter.CLng(dr["ClientID"]);
string cname = DataConverter.CStr(dr["ClientName"]);
if (cid < 1 || string.IsNullOrEmpty(cname)) { html = ""; }
else
{
html = "" + cname+"";
}
return MvcHtmlString.Create(html);
}
}
@{
Model.cols = 10;
Model.url = "Contact";
}