87 lines
2.8 KiB
C#
87 lines
2.8 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_PUBLIC2;
|
|
|
|
namespace GThinking.N_XLXSBJ
|
|
{
|
|
[TableMap(DB = "DBERP", DbTableName = "XLXSBJD", Umid = 100860000, IsWorkFlow = false, UseWhr = false, IsAttach = false,
|
|
|
|
QuerySelSql = "",
|
|
|
|
EntitySelSql = "",
|
|
|
|
UpdateSql = "",
|
|
|
|
InsertSql = "",
|
|
|
|
DeleteSql = "")]
|
|
|
|
public class XLBJD_ZCWLXZ : EntityManager
|
|
{
|
|
}
|
|
|
|
public partial class XLBJD_ZCWLXZInfo : SingleCardBase
|
|
{
|
|
XLBJD_ZCWLXZ entity = new XLBJD_ZCWLXZ();
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860000;
|
|
this.UMName = "线缆销售报价单";
|
|
this.CurMaster = Master;
|
|
this.CurEntity = entity;
|
|
this.Master.EnableAttachBtn = false;
|
|
this.PageWidth = 500;
|
|
this.PageHeight = 400;
|
|
this.Master.EnableCopyBtn = false;
|
|
this.Master.EnableInsertBtn = false;
|
|
this.Master.EnableAttachBtn = false;
|
|
this.Master.EnableCancelBtn = false;
|
|
this.Master.EnableDeleteBtn = false;
|
|
this.Master.EnableEditBtn = false;
|
|
this.Master.EnableSaveBtn = false;
|
|
this.Master.EnablePrintBtn = false;
|
|
base.InitPage();
|
|
TComboBox.SetComboBox("DBERP", cbxTZCLWL, "select XLZCWL_ZCWLID,WL_MC from XLZCWL left join WL on WL_WLID=XLZCWL_ZCWLID ", false);
|
|
TComboBox.SetComboBox("DBERP", cbxLZCLWL, "select XLZCWL_ZCWLID,WL_MC from XLZCWL left join WL on WL_WLID=XLZCWL_ZCWLID", false);
|
|
|
|
|
|
}
|
|
|
|
protected void btnOK_Click(object sender, EventArgs e)
|
|
{
|
|
if (!string.IsNullOrEmpty(cbxTZCLWL.SelectedValue.Trim()))
|
|
{
|
|
XLBJCLUtils.InsertXLZCJH("XSBJ", PageParam.GetRTrimString("BJDID"), cbxTZCLWL.SelectedValue.Trim(), "T");
|
|
}
|
|
if (!string.IsNullOrEmpty(cbxLZCLWL.SelectedValue.Trim()))
|
|
{
|
|
XLBJCLUtils.InsertXLZCJH("XSBJ", PageParam.GetRTrimString("BJDID"), cbxLZCLWL.SelectedValue.Trim(), "L");
|
|
|
|
}
|
|
|
|
ShowMessage("已生成线缆主材计划,并自动提交!");
|
|
DialogOperationScript dos = new DialogOperationScript(this);
|
|
dos.CloseSelf();
|
|
dos.Execute();
|
|
}
|
|
|
|
protected void btnQX_Click(object sender, EventArgs e)
|
|
{
|
|
DialogOperationScript dos = new DialogOperationScript(this);
|
|
dos.CloseSelf();
|
|
dos.Execute();
|
|
}
|
|
}
|
|
}
|