|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Security;
|
|
|
|
|
using System.Web.UI;
|
|
|
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
using System.Web.UI.WebControls.WebParts;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using DSWeb.DataAccess;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using DSWeb.EntityDA;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.PriceCarrier
|
|
|
|
|
{
|
|
|
|
|
public partial class OpSailingDateInfoHtml : System.Web.UI.Page
|
|
|
|
|
{
|
|
|
|
|
OpSailingDateEntity OpSailingDateEntity = new OpSailingDateEntity();
|
|
|
|
|
OpSailingDateDA OpSailingDateDA = new OpSailingDateDA();
|
|
|
|
|
T_ALL_DA T_ALL_DA = new T_ALL_DA();
|
|
|
|
|
|
|
|
|
|
public string sSQL = String.Empty;
|
|
|
|
|
public string PageMeta = "";
|
|
|
|
|
public string Filesid = "";
|
|
|
|
|
public string strGID = "";
|
|
|
|
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
Session["ReUrl"] = Request.Url.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["id"] != null)
|
|
|
|
|
{
|
|
|
|
|
strGID = Request.QueryString["id"].ToString();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (strGID != "")
|
|
|
|
|
{
|
|
|
|
|
OpSailingDateEntity = OpSailingDateDA.GetID(strGID);
|
|
|
|
|
if (OpSailingDateEntity.GID != null)
|
|
|
|
|
{
|
|
|
|
|
lbTITLE.Text = OpSailingDateEntity.TITLE.ToString().Trim();
|
|
|
|
|
lbBEGINTIME.Text = OpSailingDateEntity.BEGINTIME.ToString().Trim();
|
|
|
|
|
tbCONTENTS.Text = OpSailingDateEntity.CONTENTS.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
sSQL = "select * from op_sailingdateurl where LINKGID='" + strGID + "' and TABLENAME='op_sailingdate'";
|
|
|
|
|
DataSet DS = T_ALL_DA.GetAllSQL(sSQL);
|
|
|
|
|
DLFile.DataSource = DS;
|
|
|
|
|
DLFile.DataBind();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
//if (DS.Tables[0].Rows.Count == 0)
|
|
|
|
|
//{
|
|
|
|
|
// this.Page.Title = "家购网";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// this.Page.Title = DS.Tables[0].Rows[0]["Files_title"].ToString().Trim();
|
|
|
|
|
//}
|
|
|
|
|
//PageMeta = this.Page.Title;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsNumeric(string s)
|
|
|
|
|
{
|
|
|
|
|
bool bReturn = true;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int inum = int.Parse(s);
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
bReturn = false;
|
|
|
|
|
}
|
|
|
|
|
return bReturn;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|