2026821
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
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_MODEL.Page;
|
||||
using GThinking.N_MISPRO.Utility;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
using GThinking.N_PUBLIC;
|
||||
using GThinking.N_PUBLIC2;
|
||||
using GThinking.N_MISPRO.TableCache;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
public partial class XSBJYWPZ_BZYSList : SingleGridBase
|
||||
{
|
||||
XSBJYWPZ_BZYS entity = new XSBJYWPZ_BZYS();
|
||||
|
||||
#region 页面初始化
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.UMID = 100860062;
|
||||
this.UMName = "标准提醒色";
|
||||
this.CurMaster = Master;
|
||||
this.ModuleGV = ContentGrid;
|
||||
this.CurEntity = entity;
|
||||
|
||||
sURLTarget = "XSBJYWPZ_BZYSInfo.aspx";
|
||||
this.PageHeight = 500;
|
||||
this.PageWidth = 700;
|
||||
this.Master.EnableQueryBtn = false;
|
||||
this.Master.EnableAttachBtn = false;
|
||||
base.DataKeyNames = new string[] { "XLXSBJBZTXS_XLBZID" };
|
||||
|
||||
base.InitPage();
|
||||
|
||||
TGtGridView.SetGrdColItems("DBERP", ContentGrid.FindColumnExByFieldName("XLXSBJBZTXS_XLBZID"), "select XLBZ_XLBZID, XLBZ_XLBZLXMC from XLBZ");
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Master_OnStandardQuery(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 模板事件继承
|
||||
|
||||
protected override void Master_OnStandardQuery(object sender, EventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
base.Master_OnStandardQuery(sender, e);
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
}
|
||||
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
LinkPageParam.AddString("XLXSBJBZTXS_XLBZID", ContentGrid.DataKeys[e.Row.RowIndex]["XLXSBJBZTXS_XLBZID"].ToString().Trim());
|
||||
}
|
||||
base.moduleGV_RowDataBound(sender, e);
|
||||
}
|
||||
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
|
||||
{
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
base.moduleGV_PageIndexChanging(sender, e);
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
}
|
||||
protected override bool Master_AfterDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
if (!base.Master_AfterDeleteAction(sender, e))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
entity.EntityTable.QuerySelSql = GetQuerySql();
|
||||
entity.GridDataBind(ContentGrid, tSession);
|
||||
ContentGrid.SelectedIndex = -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
//删除前给参数赋值
|
||||
protected override void BeforeDelete(TDatabase db, ref bool ActionIsDone)
|
||||
{
|
||||
entity.Param.Add("XLXSBJBZTXS_XLBZID", ContentGrid.SelectedDataKey["XLXSBJBZTXS_XLBZID"].ToString());
|
||||
base.BeforeDelete(db, ref ActionIsDone);
|
||||
}
|
||||
protected override bool Master_BeforeDeleteAction(object sender, EventArgs e)
|
||||
{
|
||||
return base.Master_BeforeDeleteAction(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 自定义函数
|
||||
|
||||
private string GetQuerySql()
|
||||
{
|
||||
string sSQL = "select XLXSBJBZTXS_XLBZID,XLXSBJBZTXS_TXS, " +
|
||||
" XLXSBJBZTXS_WHR, XLXSBJBZTXS_WHRID, XLXSBJBZTXS_WHSJ " +
|
||||
"from XLXSBJBZTXS " +
|
||||
"where 1=1 ";
|
||||
sSQL = sSQL + " order by XLXSBJBZTXS_XLBZID";
|
||||
return sSQL;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 控件事件
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user