95 lines
2.9 KiB
C#
95 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_MISPRO.Utility;
|
|
using GThinking.N_MISPRO.Data;
|
|
|
|
namespace GThinking.N_XLXSBJ
|
|
{
|
|
public partial class BJYF_YZYJQuery : SingleQueryBase
|
|
{
|
|
BJYF_YZYJ_M queryentity = new BJYF_YZYJ_M();
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860084;
|
|
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);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|