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 CodeFeeSetInfoAdapter : System.Web.UI.Page { private string strGID = ""; private string strPortName = ""; T_ALL_DA T_ALL_DA = new T_ALL_DA(); protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["GID"] != null) { strGID = Request.QueryString["GID"].ToString(); } DataSet ds = T_ALL_DA.GetAllSQL("select FEECODE,[NAME] from code_fee where GID<>'" + strGID.Trim() + "'"); if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { strPortName = ds.Tables[0].Rows[0]["FEECODE"].ToString().Trim()+"&&"+ds.Tables[0].Rows[0]["NAME"].ToString().Trim(); } } Response.Write(strPortName); } } }