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_MISPRO; using GThinking.N_MISPRO.Data; using GThinking.N_MODEL.Page; using GThinking.N_CONTROL; using GThinking.N_PUBLIC; using GThinking.N_MISPRO.Caching; using GThinking.N_MISPRO.Utility; using System.Collections.Generic; namespace GThinking.N_XLXSBJ { public partial class WLHQ_PLSZInfo : SingleCardBase { WLHQ_PLSZ entity = new WLHQ_PLSZ(); #region Page_Load protected void Page_Load(object sender, EventArgs e) { this.UMID = 100860032; this.UMName = "线缆销售报价物料行情"; base.CurMaster = Master; base.CurEntity = entity; this.PageHeight = 180; this.PageWidth = 420; Master.EnableAttachBtn = false; Master.EnableCancelBtn = false; Master.EnableCopyBtn = false; Master.EnableDeleteBtn = false; Master.EnableEditBtn = false; Master.EnableInsertBtn = false; Master.EnablePrintBtn = false; Master.EnableRefreshBtn = false; Master.EnableSaveBtn = false; txtNumValue.DecimalPlaces = XLBJDUtils.BJCLPriceDecimal; base.InitPage(); if (!IsPostBack) { InitControl(); } } #endregion #region 自定义函数 private void InitControl() { if (PageParam.GetRTrimString("FLAG").Equals("CLJG")) { lbltxt.Text = "含税材料价格:"; } else if (PageParam.GetRTrimString("FLAG").Equals("CGJG")) { lbltxt.Text = "含税采购价格:"; } } #endregion #region 自定义按钮 protected void btnOK_Click(object sender, EventArgs e) { DialogOperationScript dos = new DialogOperationScript(this); dos.SetOwnerControlValue(PageParam.GetRTrimString("txtCallBackFlagCID"), PageParam.GetRTrimString("FLAG")); dos.SetOwnerControlValue(PageParam.GetRTrimString("txtCallBackNumCID"), txtNumValue.Value.ToString().Trim()); dos.ClickOwnerButton(PageParam.GetRTrimString("btnCallBackCID")); dos.CloseSelf(); dos.Execute(); } protected void btnQX_Click(object sender, EventArgs e) { CloseWindow(); } #endregion } }