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

86 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
namespace GThinking.N_XLXSBJ
{
public partial class XLBJD_JGBYZInfo : SingleCardBase
{
XLBJD_MX_YZ entity = new XLBJD_MX_YZ();
protected void Page_Load(object sender, EventArgs e)
{//研发自测:王威 2026/01/07 00:21:40
this.UMID = 100860000;
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;
base.InitPage();
if (!IsPostBack)
{
InitControl();
}
}
private void InitControl()
{//研发自测:王威 2026/01/07 00:21:42
cbxSZFW.ClearItems();
if (PageParam.GetRTrimString("PLSZAll").Equals("N"))
cbxSZFW.Items.Add(new ListItem("勾选记录", "N"));
cbxSZFW.Items.Add(new ListItem("整单记录", "Y"));
// cbxSZFW.Items.Add(new ListItem("所查记录", "C"));
cbxSZFW.SelectedValue = PageParam.GetRTrimString("PLSZAll");
lblYZID.Text = PageParam.GetRTrimString("YZMC") + ":";
txtYZZ.Value = 0;
}
protected void btnOK_Click(object sender, EventArgs e)
{//研发自测:王威 2026/01/07 00:21:44
if (cbxSZFW.SelectedValue.Trim().Equals(""))
{
ShowMessage("调价范围--不允许为空!");
return;
}
string sYZID = PageParam.GetRTrimString("YZID");
string sYZZList = sYZID + "|" + txtYZZ.Value.ToString();
//使用脚本给父页面的隐藏控件赋值,调用父页面的控件事件
DialogOperationScript dos = new DialogOperationScript(this);
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtPLSZAllCID"), cbxSZFW.SelectedValue.Trim());
dos.SetOwnerControlValue(PageParam.GetRTrimString("txtPLSZYZListCID"), sYZZList);
dos.ClickOwnerButton(PageParam.GetRTrimString("btnRefreshCID"));
dos.CloseSelf();
dos.Execute();
}
protected void btnQX_Click(object sender, EventArgs e)
{
CloseWindow();
}
}
}