This commit is contained in:
2026-08-21 17:03:02 +08:00
commit f065129b20
2292 changed files with 666241 additions and 0 deletions
+104
View File
@@ -0,0 +1,104 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using GThinking.N_MODEL.Page;
using GThinking.N_MISPRO.Utility;
using GThinking.N_MISPRO.Data;
using GThinking.N_WORKFLOW;
using GThinking.N_PUBLIC;
using GThinking.N_MODEL.Dialog;
namespace GThinking.N_XLXSBJ
{
public partial class XLBJD_PLTJQuery : SingleQueryBase
{
XLBJD_PLTJ_M queryentity = new XLBJD_PLTJ_M();
#region 页面初始化
protected void Page_Load(object sender, EventArgs e)
{
this.UMID = 100860000;
this.UMName = "线缆销售报价单";
this.CurMaster = Master;
this.CurQueryTable = QueryTalbe;
this.CurQueryEntity = queryentity;
base.InitPage();
if (!IsPostBack)
{
InitControls();
}
}
#endregion
#region 私有函数
private void InitControls()
{
trBH.Visible = false;
trXJBJ.Visible = false;
trLSBJS.Visible = false;
trLSBJZ.Visible = false;
trJMBGS.Visible = false;
if (!PageParam.GetRTrimString("BJFLID").Equals(""))
{
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XSBHChecked())
trBH.Visible = true;
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XSCPBJXJChecked())
trXJBJ.Visible = true;
if (!XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XLXSBJFL_JMBGSYZID.Equals(""))
trJMBGS.Visible = true;
if (XLBJDUtils.GetBJFLXX(PageParam.GetRTrimString("BJFLID")).XLXSBJFL_XSLSBJ.Equals("Y"))
{
trLSBJS.Visible = true;
trLSBJZ.Visible = true;
}
}
string sBJU003 = GetOption("BJU003");
lblBJSLS.Text = sBJU003;
lblBJSLZ.Text = sBJU003;
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL SQL = new TSQL(dberp);
SQL.Clear();
SQL.Add(" select distinct ");
SQL.Add(" isnull(XLXHB_CPYT,' ') as XLXHB_CPYT,isnull(XLCPYT_CPYTMC,' ') as XLCPYT_CPYTMC, ");
SQL.Add(" isnull(XLDYDJB_DYDJFL,' ') as XLDYDJB_DYDJFL,isnull(XLCPYT_XSSX,-1) as PX ");
SQL.Add(" from XLXHDYDJ ");
SQL.Add(" left join XLXHB on XLXHB_XLXHID=XLXHDYDJ_XLXHID ");
SQL.Add(" left join XLCPYT on XLCPYT_CPYT=XLXHB_CPYT ");
SQL.Add(" left join XLDYDJB on XLDYDJB_DYDJID=XLXHDYDJ_DYDJID ");
SQL.Add(" where 1=1 ");
SQL.Add(" and exists( select 1 from XLXSBJDMX where XLXSBJDMX_BJDID =:pBJDID and XLXSBJDMX_XLXHID = XLXHB_XLXHID and XLXSBJDMX_DYDJID = XLXHDYDJ_DYDJID)");
SQL.Add(" order by isnull(XLCPYT_XSSX,-1),isnull(XLXHB_CPYT,' '),isnull(XLDYDJB_DYDJFL,' ') ");
SQL.ParamByName("pBJDID").Value = txtBJDID.Text.Trim();
DataSet ds = dberp.OpenDataSet(SQL);
drpCPYT.ClearItems();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
drpCPYT.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLCPYT_CPYTMC"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXHB_CPYT"].ToString().Trim()));
}
SQL.Clear();
SQL.Add("select distinct XLXSBJDMX_FBH from XLXSBJDMX where XLXSBJDMX_BJDID=:pBJDID and isnull(XLXSBJDMX_FBH,' ')<>' ' order by XLXSBJDMX_FBH ");
SQL.ParamByName("pBJDID").Value = txtBJDID.Text.Trim();
ds = dberp.OpenDataSet(SQL);
cbxBH.ClearItems();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
cbxBH.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLXSBJDMX_FBH"].ToString().Trim(), ds.Tables[0].Rows[i]["XLXSBJDMX_FBH"].ToString().Trim()));
}
}
#endregion
}
}