You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/FeeCodes/ShipperdetailAdapter.aspx.cs

69 lines
2.4 KiB
C#

3 years ago
using System;
using System.Collections;
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.Xml.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Xml;
using DSWeb.Models;
using DSWeb.EntityDA;
namespace DSWeb.FeeCodes
{
public partial class ShipperdetailAdapter : System.Web.UI.Page
{
private string comboID = "";
private string strSHORTNAME = ""; private string strPortName = "";
protected void Page_Load(object sender, EventArgs e)
{ //Response.Clear();
if (Request.QueryString["shipperID"] != null)
{
UnicodeEncoding unicode = new UnicodeEncoding();
comboID = unicode.GetString(unicode.GetBytes(Request.QueryString["shipperID"].ToString()));
}
if (Request.QueryString["SHORTNAME"] != null)
{
UnicodeEncoding unicode = new UnicodeEncoding();
strSHORTNAME = unicode.GetString(unicode.GetBytes(Request.QueryString["SHORTNAME"].ToString()));
}
//
if (comboID != "" && comboID != "null")
{
T_ALL_DA T_ALL_DA = new T_ALL_DA();
DataSet ds = T_ALL_DA.GetInfoShipperSQL(" and shipperID='" + comboID + "'");
if (ds != null)
{
if (ds.Tables[0].Rows[0]["shipperdetail"].ToString().Trim() != "")
{
strPortName = ds.Tables[0].Rows[0]["shipperdetail"].ToString().Trim();
}
}
Response.Write(strPortName);
}
else
{
T_ALL_DA T_ALL_DA = new T_ALL_DA();
DataSet ds = T_ALL_DA.GetInfoShipperSQL(" and SHORTNAME='" + strSHORTNAME + "'");
if (ds != null)
{
if (ds.Tables[0].Rows[0]["shipperdetail"].ToString().Trim() != "")
{
strPortName = ds.Tables[0].Rows[0]["shipperdetail"].ToString().Trim();
}
}
Response.Write(strPortName);
}
}
}
}