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/SeaExportInfoBlissueCheckou...

63 lines
2.1 KiB
C#

2 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 SeaExportInfoBlissueCheckoutAdapter : System.Web.UI.Page
{
private string strPortName = "";
private string strBSNO = "";
T_ALL_DA T_ALL_DA = new T_ALL_DA();
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["handle"] != null)
{
string shandle = Request.QueryString["handle"].ToString().Trim();
if (Request.QueryString["bsno"] != null)
{
strBSNO = Request.QueryString["bsno"].ToString();
}
//
if (shandle.Trim() == "put")
{
if (strBSNO != "")
{
strPortName = "";
strPortName = T_ALL_DA.GetStrSQL("snum", "select count(*) as snum from op_blissue where (BLSTATUS='放单申请' or BLSTATUS='批准放单') and bsno='" + strBSNO.Trim() + "'");
if (strPortName.Trim() == "1")
{
strPortName = T_ALL_DA.GetStrSQL("BLNO", "select top 1 BLNO from op_blissue where (BLSTATUS='放单申请' or BLSTATUS='批准放单') and bsno='" + strBSNO.Trim() + "'");
if (strPortName.Trim() == "")
{
strPortName = "0";
}
}
else
{
strPortName = "";
}
}
}
}
Response.Write(strPortName);
}
}
}