Files
N_XLXSBJ----MX/TZYZBJ_YZZQuery.aspx.cs
2026-08-21 17:03:02 +08:00

86 lines
2.6 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;
using System.Collections.Generic;
namespace GThinking.N_XLXSBJ
{
public partial class TZYZBJ_YZZQuery : SingleQueryBase
{
TZYZBJ_YZZ_M queryentity = new TZYZBJ_YZZ_M();
protected void Page_Load(object sender, EventArgs e)
{
this.UMID = 100860005;
this.UMName = "线缆销售报价报价单调价因子";
this.CurMaster = Master;
this.CurQueryTable = QueryTalbe;
this.CurQueryEntity = queryentity;
if (!IsPostBack)
{
InitControl();
}
base.InitPage();
}
protected override bool QueryLogicValid()
{
if (cbxJGBID.SelectedValue.Trim().Equals(""))
{
ShowMessage("调价表--不允许为空!");
return false;
}
return base.QueryLogicValid();
}
#region 私有函数
private void InitControl()
{
List<JGBMLXX> jgbxx_List = XLBJDUtils.GetXLXSJGBXXList("BJD");
cbxJGBID.ClearItems();
foreach (JGBMLXX jgbxx in jgbxx_List)
{
if (jgbxx.XLXSJGB_TJYS.Equals(""))
{
string sJGBID = jgbxx.XLXSJGB_JGBID;
string sYXQS = jgbxx.XLXSJGB_YXQS;
string sYXQZ = jgbxx.XLXSJGB_YXQZ;
string sJGBMC = jgbxx.XLXSJGB_JGBMC;
if (sYXQS.Equals(""))
sYXQS = "--";
else
sYXQS = CMISproConvert.ConvertDate(sYXQS);
if (sYXQZ.Equals(""))
sYXQZ = "--";
else
sYXQZ = CMISproConvert.ConvertDate(sYXQZ);
if (sJGBMC.Equals(""))
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ, sJGBID));
else
cbxJGBID.Items.Add(new ListItem(sJGBID + "|" + sYXQS + "至" + sYXQZ + "|" + sJGBMC, sJGBID));
}
}
}
#endregion
}
}