77 lines
2.4 KiB
C#
77 lines
2.4 KiB
C#
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_PUBLIC;
|
|
using GThinking.N_MISPRO.Utility;
|
|
using GThinking.N_MISPRO.Data;
|
|
|
|
namespace GThinking.N_XLXSBJ
|
|
{
|
|
public partial class WXXLCJDQuery : SingleQueryBase
|
|
{
|
|
WXXLCJD_M qryEntity = new WXXLCJD_M();
|
|
|
|
#region 页面初始化
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860032;
|
|
this.UMName = "线缆销售价格表查价单";
|
|
this.CurMaster = Master;
|
|
this.CurQueryTable = QueryTable;
|
|
this.CurQueryEntity = qryEntity;
|
|
if (!IsPostBack)
|
|
{
|
|
InitControls();
|
|
}
|
|
|
|
base.InitPage();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 模板事件
|
|
|
|
#endregion
|
|
|
|
#region 私有函数
|
|
private void InitControls()
|
|
{
|
|
string sql = "";
|
|
sql += "select RSRYJBXX_GH as ID,rtrim(isNull(RSRYJBXX_PYBM,' ')) || '|' || rtrim(isNULL(RSRYJBXX_RYMC,' '))|| '|' || rtrim(isNUll(RSRYJBXX_GH,' '))as NAME ";
|
|
sql += "from RSRYJBXX where isnull(RSRYJBXX_TYBZ,'N') <> 'Y' and isnull(RSRYJBXX_USER,'N') = 'Y' order by isnull(RSRYJBXX_PYBM,' '),RSRYJBXX_RYID ";
|
|
TComboBox.SetComboBox("DBERP", cbxGH, sql, true);
|
|
cbxGH.ShowValue = false;
|
|
|
|
cbxZT.ClearItems();
|
|
cbxZT.Items.Add(new ListItem("", ""));
|
|
cbxZT.Items.Add(new ListItem("空", "空"));
|
|
cbxZT.Items.Add(new ListItem("进行", "I"));
|
|
cbxZT.Items.Add(new ListItem("完成","Z"));
|
|
cbxDRBZ.ClearItems();
|
|
cbxDRBZ.Items.Add(new ListItem("", ""));
|
|
cbxDRBZ.Items.Add(new ListItem("已导入", "Y"));
|
|
cbxDRBZ.Items.Add(new ListItem("未导入", "N"));
|
|
sql = "select distinct WXHYGL_SSQY as ID,WXHYGL_SSQY as NAME from WXHYGL where isnull(WXHYGL_TYBZ,'N')='N' ";
|
|
TComboBox.SetComboBox("DBERP", cbxSSQY, sql, true);
|
|
sql = "select distinct WXHYGL_WXHYBH as ID,WXHYGL_HYXM as NAME from WXHYGL where isnull(WXHYGL_TYBZ,'N')='N' ";
|
|
TComboBox.SetComboBox("DBERP", cbxHY, sql, true);
|
|
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region 控件事件
|
|
#endregion
|
|
|
|
}
|
|
}
|