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

83 lines
2.4 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_MISPRO;
using GThinking.N_MISPRO.Data;
using GThinking.N_MODEL.Page;
using GThinking.N_MISPRO.Utility;
using GThinking.N_PUBLIC;
namespace GThinking.N_XLXSBJ
{
public partial class XLBJD_CLYLBLInfo : SingleCardBase
{
PLSZ entity = new PLSZ();
protected void Page_Load(object sender, EventArgs e)
{
this.UMID = 100860010;
this.UMName = "线缆销售报价单表价";
this.CurMaster = Master;
this.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;
base.InitPage();
if (!IsPostBack)
{
txtCLYLBL.Value = CMISproConvert.StrToFloat(PageParam.GetRTrimString("CLYLBL"));
}
}
#region 自定义函数
#endregion
#region 控件事件
protected void btnQD_Click(object sender, EventArgs e)
{
if (txtCLYLBL.Value <= 0)
{
ShowMessage("材料用量比例不允许小于等于0!");
return;
}
else if (txtCLYLBL.Value > 1)
{
ShowMessage("材料用量比例不允许大于1!");
return;
}
//使用脚本给父页面的隐藏控件赋值,调用父页面的控件事件
DialogOperationScript dos = new DialogOperationScript(this);
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtCLYLBLCID"), txtCLYLBL.Value.ToString());
dos.ClickOwnerButton(PageParam.GetRTrimString("btnCallBackCID"));
dos.CloseSelf();
dos.Execute();
}
protected void btnQX_Click(object sender, EventArgs e)
{
CloseWindow();
}
#endregion
}
}