提交说明10/9
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
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.U20261363_N_XLXSBJ
|
||||
{
|
||||
public class XLBJD_PLTJ_M : TBaseNamedQuery
|
||||
{
|
||||
public XLBJD_PLTJ_M()
|
||||
{
|
||||
AddFieldDefs("XLJGID", "芯线结构");
|
||||
AddFieldDefs("ZJMS", "主芯截面范围始");
|
||||
AddFieldDefs("ZJMZ", "主芯截面范围止");
|
||||
|
||||
AddFieldDefs("BJSLS", "报价数量始");
|
||||
AddFieldDefs("BJSLZ", "报价数量止");
|
||||
|
||||
AddFieldDefs("BJJES", "报价金额始");
|
||||
AddFieldDefs("BJJEZ", "报价金额止");
|
||||
|
||||
AddFieldDefs("BJDID", "报价单ID");
|
||||
AddFieldDefs("CPYT", "产品用途");
|
||||
AddFieldDefs("BH", "包号");
|
||||
AddFieldDefs("XJBJCEWF", "仅显示限价与报价差额为负");
|
||||
|
||||
AddFieldDefs("JMBGS", "截面比公式");
|
||||
AddFieldDefs("XLGGID", "规格");
|
||||
AddFieldDefs("DJS", "单价始");
|
||||
AddFieldDefs("DJZ", "单价止");
|
||||
AddFieldDefs("XTBJCP", "相同报价产品");
|
||||
//AddFieldDefs("ZSFS", "树节点展示方式", false);
|
||||
}
|
||||
}
|
||||
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 = 100860174;
|
||||
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(100860000, "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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user