91 lines
2.9 KiB
C#
91 lines
2.9 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.U20261363_N_XLXSBJ
|
|
{
|
|
public class WXXLCJD_M : TBaseNamedQuery
|
|
{
|
|
public WXXLCJD_M()
|
|
{
|
|
AddFieldDefs("CJBH", "查价编号");
|
|
AddFieldDefs("GH", "工号");
|
|
AddFieldDefs("CJRQS", "查价日期始");
|
|
AddFieldDefs("CJRQZ", "查价日期止");
|
|
AddFieldDefs("ZT", "状态");
|
|
AddFieldDefs("SSQY", "所属企业");
|
|
AddFieldDefs("CJHY", "查价会员");
|
|
AddFieldDefs("DRBZ", "导入标志");
|
|
}
|
|
}
|
|
public partial class WXXLCJDQuery : SingleQueryBase
|
|
{
|
|
WXXLCJD_M qryEntity = new WXXLCJD_M();
|
|
|
|
#region 页面初始化
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860174;
|
|
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
|
|
|
|
}
|
|
}
|