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; } } }