Files
2026-08-21 17:03:02 +08:00

61 lines
1.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.TableCache;
namespace GThinking.N_XLXSBJ
{
public partial class BJYFQuery : SingleQueryBase
{
BJYF_M qryEntity = new BJYF_M();
protected void Page_Load(object sender, EventArgs e)
{
this.UMID = 100860071;
this.UMName = "线缆销售报价单运费";
this.CurMaster = Master;
this.CurQueryTable = QueryTable;
this.CurQueryEntity = qryEntity;
base.InitPage();
if (!IsPostBack)
{
InitControl();
}
}
protected override bool QueryLogicValid()
{
if (cbxYFJSFS.SelectedValue.Trim().Equals(""))
{
ShowMessage("运费计算方式不允许为空!");
return false;
}
return base.QueryLogicValid();
}
private void InitControl()
{
cbxYFJSFS.ClearItems();
cbxYFJSFS.Items.Add(new ListItem("运价运重", "1"));
cbxYFJSFS.Items.Add(new ListItem("运金比例", "2"));
if (DSActiveModule.IsActiveModule(100860084))
{
cbxYFJSFS.Items.Add(new ListItem("运距运重", "3"));
cbxYFJSFS.Items.Add(new ListItem("运距运件", "4"));
}
}
}
}