|
|
|
|
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;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.FeeCodes
|
|
|
|
|
{
|
|
|
|
|
public partial class WmsInAdapter : System.Web.UI.Page
|
|
|
|
|
{
|
|
|
|
|
public string strUserID;//登录用户GID
|
|
|
|
|
public string hd_comboCLIENTNAME;
|
|
|
|
|
public string hd_comboGOODSNAME;
|
|
|
|
|
public string strGid;
|
|
|
|
|
public string strGOODSRKSL;
|
|
|
|
|
public string strGOODSPACK;
|
|
|
|
|
public string strBeing = "";
|
|
|
|
|
public string tbDODATE;
|
|
|
|
|
public string strBlno;
|
|
|
|
|
public string strAssociatedno;
|
|
|
|
|
UnicodeEncoding unicode = new UnicodeEncoding();
|
|
|
|
|
WmsInDA WmsInDA = new WmsInDA();
|
|
|
|
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
string strPost = Request.Url.ToString();
|
|
|
|
|
if (Session["USERID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strUserID = Session["USERID"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["clientname"] != null)
|
|
|
|
|
{
|
|
|
|
|
hd_comboCLIENTNAME = unicode.GetString(unicode.GetBytes(Regex.Unescape(Request.QueryString["clientname"].ToString().Trim())));
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["goodsname"] != null)
|
|
|
|
|
{
|
|
|
|
|
hd_comboGOODSNAME = unicode.GetString(unicode.GetBytes(Regex.Unescape(Request.QueryString["goodsname"].ToString().Trim())));
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["dodate"] != null)
|
|
|
|
|
{
|
|
|
|
|
tbDODATE = unicode.GetString(unicode.GetBytes(Regex.Unescape(Request.QueryString["dodate"].ToString().Trim())));
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["gid"] != null)
|
|
|
|
|
{
|
|
|
|
|
strGid = Request.QueryString["gid"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["goodsrksl"] != null)
|
|
|
|
|
{
|
|
|
|
|
strGOODSRKSL = unicode.GetString(unicode.GetBytes(Regex.Unescape(Request.QueryString["goodsrksl"].ToString().Trim())));
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["goodspack"] != null)
|
|
|
|
|
{
|
|
|
|
|
strGOODSPACK = unicode.GetString(unicode.GetBytes(Regex.Unescape(Request.QueryString["goodspack"].ToString().Trim())));
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["blno"] != null)
|
|
|
|
|
{
|
|
|
|
|
strBlno = Request.QueryString["blno"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["associatedno"] != null)
|
|
|
|
|
{
|
|
|
|
|
strAssociatedno = Request.QueryString["associatedno"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["handle"] != null)
|
|
|
|
|
{
|
|
|
|
|
strBeing = "";
|
|
|
|
|
string strhandle = Request.QueryString["handle"].ToString().Trim();
|
|
|
|
|
if (strhandle == "freestorageperiod")
|
|
|
|
|
{
|
|
|
|
|
strBeing = WmsInDA.GetStrSQL(hd_comboCLIENTNAME.Trim(), hd_comboGOODSNAME.Trim(), tbDODATE.Trim(), strUserID.Trim());
|
|
|
|
|
}
|
|
|
|
|
else if (strhandle == "goodsrksl")
|
|
|
|
|
{
|
|
|
|
|
strBeing = WmsInDA.GetGOODSRKSL(strAssociatedno, strBlno, strGid, strGOODSRKSL, hd_comboCLIENTNAME);
|
|
|
|
|
}
|
|
|
|
|
else if (strhandle == "goodspack")
|
|
|
|
|
{
|
|
|
|
|
strBeing = WmsInDA.GetGOODSPACK(strAssociatedno, strBlno, strGid, strGOODSPACK, hd_comboCLIENTNAME);
|
|
|
|
|
}
|
|
|
|
|
Response.Write(strBeing.Trim());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|