91 lines
3.1 KiB
C#
91 lines
3.1 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 CLWL_NEWInfo : SingleCardBase
|
|
{
|
|
CLWL_NEW entity = new CLWL_NEW();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
this.UMID = 100860013;
|
|
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)
|
|
{
|
|
InitControls();
|
|
}
|
|
}
|
|
|
|
#region 自定义函数
|
|
private void InitControls()
|
|
{
|
|
lblCLMC.Text = PageParam.GetRTrimString("BJCL").Trim() + "材料名称:";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 控件事件
|
|
protected void btnQD_Click(object sender, EventArgs e)
|
|
{
|
|
//校验数据项
|
|
//if (txtNEWCLMC.Text.Trim().Equals(""))
|
|
//{
|
|
// ShowMessage("材料名称不允许为空!");
|
|
// return;
|
|
//}
|
|
//if (CMISproDataBase.ExistsRecord("DBERP", string.Format("select 1 from XLXSBJCL where XLXSBJCL_BJCLMC = '{0}' and XLXSBJCL_CLQDL<>'{1}'", txtNEWCLMC.Text.Trim(), PageParam.GetRTrimString("BJCL"))))
|
|
//{
|
|
// ShowMessage("存在相同材料名称的记录,不允许保存!");
|
|
// return;
|
|
//}
|
|
//TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
|
//TSQL SQL = new TSQL(dberp);
|
|
//SQL.Clear();
|
|
//SQL.Add(" update XLXSBJCL ");
|
|
//SQL.Add(" set XLXSBJCL_BJCLMC = :pCLMC,XLXSBJCL_WHR =:pWHR,XLXSBJCL_WHRID =:pWHRID,XLXSBJCL_WHSJ =:pWHSJ ");
|
|
//SQL.Add(" where XLXSBJCL_CLQDL =:pCLQDL ");
|
|
//SQL.ParamByName("pWHRID").Value = tSession.UserId;
|
|
//SQL.ParamByName("pWHR").Value = tSession.UserName;
|
|
//SQL.ParamByName("pWHSJ").Value = DateTime.Now;
|
|
//SQL.ParamByName("pCLQDL").Value = PageParam.GetRTrimString("BJCL");
|
|
//SQL.ParamByName("pCLMC").Value = txtNEWCLMC.Text.Trim();
|
|
//dberp.ExecSQL(SQL);
|
|
//DialogOperationScript dos = new DialogOperationScript(this);
|
|
//dos.SetOwnerControlValue(PageParam.GetRTrimString("CLMCClientID"), txtNEWCLMC.Text.Trim());
|
|
//dos.CloseSelf();
|
|
//dos.Execute();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|