2026821
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
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.Data;
|
||||
using GThinking.N_MISPRO.Caching;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class XSBJYWPZ_TSCZInfo : SingleCardBase
|
||||
{
|
||||
XMMCTSCZEntity entity = new XMMCTSCZEntity();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860062;
|
||||
this.UMName = "项目名称特殊词组";
|
||||
base.CurMaster = Master;
|
||||
base.CurEntity = entity;
|
||||
this.PageHeight = 210;
|
||||
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();
|
||||
}
|
||||
|
||||
protected override void LoadRecord()
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.CurEntity.Param.Add("XLXSBJPZ_MDID", PageParam.GetRTrimString("XLXSBJPZ_MDID").Trim());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.CurEntity.Param.Add("XLXSBJPZ_MDID", txtMDID.Value);
|
||||
}
|
||||
base.LoadRecord();
|
||||
int iMDID = CMISproConvert.StrToInt(PageParam.GetRTrimString("XLXSBJPZ_MDID").Trim(), 0);
|
||||
XLXSBJPZXX pzxx = XLBJDUtils.GetXLXSBJPZXX(iMDID);
|
||||
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_XMMCTSCZ))
|
||||
txtTSCZ.Text = pzxx.XLXSBJPZ_XMMCTSCZ;
|
||||
if (!string.IsNullOrEmpty(pzxx.XLXSBJPZ_MDID))
|
||||
txtMDID.Value = pzxx.XLXSBJPZ_MDID;
|
||||
|
||||
}
|
||||
|
||||
#region 控件事件
|
||||
|
||||
protected void btnQD_Click(object sender, EventArgs e)
|
||||
{
|
||||
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL sSQL = new TSQL(dberp);
|
||||
try
|
||||
{
|
||||
sSQL.Clear();
|
||||
sSQL.Add(" update XLXSBJPZ set XLXSBJPZ_XMMCTSCZ=:PXMMCTSCZ where XLXSBJPZ_MDID=:pMDID ");
|
||||
sSQL.ParamByName("PXMMCTSCZ").Value = txtTSCZ.Text.Trim();
|
||||
sSQL.ParamByName("pMDID").Value = txtMDID.Value.Trim();
|
||||
dberp.ExecSQL(sSQL);
|
||||
ShowMessage("设置完成!");
|
||||
CacheNotify.TableIsUpdated("DBERP", "XLXSBJPZ");
|
||||
//执行完毕后关闭当前页面
|
||||
DialogOperationScript dos = new DialogOperationScript(this);
|
||||
dos.CloseSelf();
|
||||
dos.Execute();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dberp.RollbackTrans();
|
||||
ShowMessage(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnQX_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义事件
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user