2026821
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
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.Data;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class BJPF_FDQuery : SingleQueryBase
|
||||
{
|
||||
BJPF_FD_M queryentity = new BJPF_FD_M();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860080;
|
||||
this.UMName = "线缆销售报价单盘费";
|
||||
this.CurMaster = Master;
|
||||
this.CurQueryTable = QueryTalbe;
|
||||
this.CurQueryEntity = queryentity;
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InitControl();
|
||||
}
|
||||
|
||||
base.InitPage();
|
||||
}
|
||||
|
||||
#region 私有函数
|
||||
|
||||
private void InitControl()
|
||||
{
|
||||
TComboBox.SetComboBox("DBERP", cbxXLBZID, "select XLBZ_XLBZID,XLBZ_XLBZLXMC from XLBZ where 1=1 order by XLBZ_PX,XLBZ_XLBZID", true);
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sql = new TSQL(dberp);
|
||||
sql.Clear();
|
||||
sql.Add("select XLDYDJB_DYDJID as ID,XLDYDJB_DYDJID as Name from XLDYDJB where isnull(XLDYDJB_TYBZ,'N')<>'Y' order by XLDYDJB_XH,ID ");
|
||||
DataSet ds = dberp.OpenDataSet(sql);
|
||||
drpDYDJID.Items.Clear();
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string sID = ds.Tables[0].Rows[i]["ID"].ToString().Trim();
|
||||
string sName = ds.Tables[0].Rows[i]["Name"].ToString().Trim();
|
||||
drpDYDJID.Items.Add(new ListItem(sName, sID));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void txtXLXHID_OnTextChanged(object Sender, EventArgs e)
|
||||
{
|
||||
if (!txtXLXHID.Text.Trim().Equals(""))
|
||||
{
|
||||
string sXLXHID = txtXLXHID.Text.Trim();
|
||||
string[] sTemp = sXLXHID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
if (chkXLXHIDJQPP.Checked == false)
|
||||
{
|
||||
chkXLXHIDJQPP.Checked = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void chkXLXHIDJQPP_OnCheckedChanged(object Sender, EventArgs e)
|
||||
{
|
||||
string sXLXHID = txtXLXHID.Text.Trim();
|
||||
string[] sTemp = sXLXHID.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sTemp.Length >= 2)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
txtXLXHID_OnTextChanged(null, null);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user