97 lines
3.0 KiB
C#
97 lines
3.0 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_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 YWYQuery : SingleQueryBase
|
|
{
|
|
XSY_M queryentity = new XSY_M();
|
|
|
|
#region 页面初始化
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860006;
|
|
this.UMName = "查询";
|
|
this.CurMaster = Master;
|
|
this.CurQueryTable = QueryTalbe;
|
|
this.CurQueryEntity = queryentity;
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
InitControl();
|
|
}
|
|
|
|
base.InitPage();
|
|
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 私有函数
|
|
|
|
private void InitControl()
|
|
{
|
|
cbxPXFS.ClearItems();
|
|
cbxPXFS.Items.Add(new ListItem("销售员编码", "BH"));
|
|
cbxPXFS.Items.Add(new ListItem("姓名", "XM"));
|
|
cbxPXFS.Items.Add(new ListItem("区域+销售员编码", "QYXSY"));
|
|
cbxPXFS.Items.Add(new ListItem("部门+销售员编码", "BMXSY"));
|
|
|
|
cbxSFTY.ClearItems();
|
|
cbxSFTY.Items.Add(new ListItem("", ""));
|
|
cbxSFTY.Items.Add(new ListItem("已停用", "Y"));
|
|
cbxSFTY.Items.Add(new ListItem("未停用", "N"));
|
|
|
|
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
|
TSQL sSql = new TSQL(dberp);
|
|
sSql.Clear();
|
|
sSql.Add("select XSQY_XSQYID,XSQY_XSQYMC from XSQY where 1=1 order by XSQY_XSQYID");
|
|
DataSet dsQY = dberp.OpenDataSet(sSql);
|
|
cbxXSQY.ClearItems();
|
|
for (int i = 0; i < dsQY.Tables[0].Rows.Count; i++)
|
|
{
|
|
cbxXSQY.Items.Add(new ListItem(dsQY.Tables[0].Rows[i]["XSQY_XSQYMC"].ToString().Trim(), dsQY.Tables[0].Rows[i]["XSQY_XSQYID"].ToString().Trim()));
|
|
}
|
|
|
|
sSql.Clear();
|
|
sSql.Add("select BM_BMID,BM_MC from BM where BM_MJBZ='Y' and BM_TYBZ<>'Y' ");
|
|
if (!GetOption("HJU006").Equals(""))
|
|
sSql.Add(" and " + CMISproDataBase.GetWhereEqual("BM_BMID", GetOption("HJU006")));
|
|
sSql.Add(" order by BM_BMID");
|
|
DataSet dsBM = dberp.OpenDataSet(sSql);
|
|
cbxBMID.ClearItems();
|
|
for (int i = 0; i < dsBM.Tables[0].Rows.Count; i++)
|
|
{
|
|
cbxBMID.Items.Add(new ListItem(dsBM.Tables[0].Rows[i]["BM_MC"].ToString().Trim(), dsBM.Tables[0].Rows[i]["BM_BMID"].ToString().Trim()));
|
|
}
|
|
|
|
TRYXX.SetComboBox_BMRY_GH(cbxYH, " isnull(RSRYJBXX_USER,'N') = 'Y'", "", false, true, "");
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 控件事件
|
|
|
|
|
|
#endregion
|
|
}
|
|
}
|