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/OpSeaiTruckAdapter.aspx.cs

34 lines
945 B
C#

3 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DSWeb.Models;
using DSWeb.EntityDA;
namespace DSWeb.FeeCodes
{
public partial class OpSeaiTruckAdapter : System.Web.UI.Page
{
public string strPortName = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["truckgid"] != null)
{
string strTruckGID = Request.QueryString["truckgid"].ToString();
Response.Write(getTruck(strTruckGID));
//return;
}
}
public string getTruck(string strTruckGID)
{
T_ALL_DA T_ALL_DA = new T_ALL_DA();
strPortName = T_ALL_DA.GetStrSQL("SHORTNAME", "select SHORTNAME from info_client where CODENAME='" + strTruckGID + "'");
return strPortName;
}
}
}