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.
D7QUANTAI/DSWeb/FeeCodes/PAYBANKACCOUNTAdapter.aspx.cs

60 lines
1.9 KiB
C#

11 months 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 PAYBANKACCOUNTAdapter : System.Web.UI.Page
{
private string strBANKNAME = "";
private string strCURRENCY = "";
private string strPortName = "";
public string strUserID;//用户GID
T_ALL_DA T_ALL_DA = new T_ALL_DA();
UnicodeEncoding unicode = new UnicodeEncoding();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["USERID"] != null)
{
strUserID = Session["USERID"].ToString().Trim();
}
else
{
Server.Transfer("~/Error/FriendError.aspx");
return;
//strUserID = "";
}
//
if (Request.QueryString["BANKNAME"] != null)
{
strBANKNAME = unicode.GetString(unicode.GetBytes(Request.QueryString["BANKNAME"].ToString()));
}
//
if (Request.QueryString["CURRENCY"] != null)
{
strCURRENCY = unicode.GetString(unicode.GetBytes(Request.QueryString["CURRENCY"].ToString()));
}
//
string strSql = T_ALL_DA.GetCORPID(strUserID);
strPortName = T_ALL_DA.GetStrSQL("ACCOUNT", "SELECT top 1 ACCOUNT FROM [sys_bank] where 1=1 and LINKID='" + strSql + "' and BANKNAME='" + strBANKNAME + "' and CURRENCY='" + strCURRENCY + "'");
Response.Write(strPortName);
}
}
}