1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.DataShow;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -12,6 +13,20 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
{
|
||||
public partial class Trainingrecords : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string PersonId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PersonId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PersonId"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
@@ -19,6 +34,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
if (!string.IsNullOrEmpty(Request.Params["personId"])) ///是否文件柜查看页面传项目值
|
||||
{
|
||||
this.PersonId = Request.Params["personId"];
|
||||
}
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
|
||||
@@ -47,7 +66,12 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " AND tp.ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
|
||||
if (!string.IsNullOrEmpty(this.PersonId))
|
||||
{
|
||||
strSql += " AND p.PersonId = @PersonId";
|
||||
listStr.Add(new SqlParameter("@PersonId", this.PersonId));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txtName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND p.PersonName like '%"+ txtName.Text.Trim() + "%'";
|
||||
|
||||
Reference in New Issue
Block a user