2026821
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
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_WORKFLOW;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class CX_RBJLCCZQuery : SingleQueryBase
|
||||
{
|
||||
CX_RBJLCCZ_M queryentity = new CX_RBJLCCZ_M();
|
||||
|
||||
#region 页面初始化
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860070;
|
||||
this.UMName = "日报价流程处置查询";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板事件
|
||||
|
||||
protected override bool QueryLogicValid()
|
||||
{
|
||||
if (cbxWFID.SelectedValue.Trim().Equals(""))
|
||||
{
|
||||
ShowMessage("请选择工作流!");
|
||||
return false;
|
||||
}
|
||||
return base.QueryLogicValid();
|
||||
}
|
||||
# endregion
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
TRYXX.SetComboBox_GH(cbxSQR, "", true, true);
|
||||
|
||||
cbxWFID.Items.Clear();
|
||||
TWorkflow awf = new TWorkflow(tSession, Cache);
|
||||
ArrayList WFIDList = new ArrayList();
|
||||
ArrayList WFNAMEList = new ArrayList();
|
||||
awf.GetWFListALL("XLXSBJ_BJD", ref WFIDList, ref WFNAMEList);
|
||||
for (int i = 0; i < WFIDList.Count; i++)
|
||||
{
|
||||
cbxWFID.Items.Add(new ListItem(WFNAMEList[i].ToString().Trim(), WFIDList[i].ToString().Trim()));
|
||||
}
|
||||
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add("select XLXSBJFL_BJFLID,case isnull(XLXSBJFL_TYBZ,' ') when 'Y' then rtrim(XLXSBJFL_BJFLMC)||'(停用)' else XLXSBJFL_BJFLMC end as Name from XLXSBJFL where 1 = 1 ");
|
||||
sql.Add(" order by XLXSBJFL_XSXH,XLXSBJFL_BJFLID ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
cbxBJFLID.ClearItems();
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sBJFLID = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string sBJFLMC = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
cbxBJFLID.Items.Add(new ListItem(sBJFLMC, sBJFLID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user