2026821
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
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;
|
||||
using GThinking.N_CONTROL;
|
||||
using System.Text;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class JGBPZ_CLHQTZQuery : SingleQueryBase
|
||||
{
|
||||
JGBPZ_CLHQTZ_M queryentity = new JGBPZ_CLHQTZ_M();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860036;
|
||||
this.UMName = "线缆销售报价价格目录配置";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
string sJGBPZDH = PageParam.GetRTrimString("JGBPZDH");
|
||||
string sMXBH = PageParam.GetRTrimString("MXBH");
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(dberp);
|
||||
SQL.Clear();
|
||||
SQL.Add("SELECT XLXSJGBPZJGB_JGBID,XLXSJGB_JGBMC FROM XLXSJGBPZJGB ");
|
||||
SQL.Add(" left join XLXSJGB on XLXSJGB_MXBH=:pMXBH and XLXSJGB_JGBID=XLXSJGBPZJGB_JGBID ");
|
||||
SQL.Add(" where XLXSJGBPZJGB_JGBPZDH=:pJGBPZDH and isnull(XLXSJGBPZJGB_JGBID,' ')<>' ' ");
|
||||
SQL.Add(" group by XLXSJGBPZJGB_JGBID,XLXSJGB_JGBMC ");
|
||||
SQL.Add(" order by XLXSJGBPZJGB_JGBID ");
|
||||
SQL.ParamByName("pJGBPZDH").Value = sJGBPZDH;
|
||||
SQL.ParamByName("pMXBH").Value = sMXBH;
|
||||
DataSet ds = dberp.OpenDataSet(SQL);
|
||||
cbxJGBID.ClearItems();
|
||||
cbxJGBID.Items.Add(new ListItem("", ""));
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
cbxJGBID.Items.Add(new ListItem(ds.Tables[0].Rows[i]["XLXSJGBPZJGB_JGBID"].ToString().Trim() + "|" + ds.Tables[0].Rows[i]["XLXSJGB_JGBMC"].ToString().Trim(),
|
||||
ds.Tables[0].Rows[i]["XLXSJGBPZJGB_JGBID"].ToString().Trim()));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user