2023-07-03

This commit is contained in:
2023-07-03 14:46:37 +08:00
parent cba6685973
commit e575463176
26 changed files with 517 additions and 52 deletions
@@ -66,6 +66,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
BLL.WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
this.InitTreeMenu();//加载树
BindGrid();
}
}
@@ -169,18 +170,20 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
// if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
{
string id = this.tvProjectAndUnit.SelectedNodeID;
string unitId = string.Empty;
string projectId = string.Empty;
var str = id.Split('|');
if (str.Count() > 1)
if (!string.IsNullOrEmpty(id))
{
unitId = str[0];
projectId = str[1];
var str = id.Split('|');
if (str.Count() > 1)
{
unitId = str[0];
projectId = str[1];
}
}
string strSql = "select * from View_SitePerson_Person Where ProjectId=@ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>
{
@@ -191,10 +194,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
strSql += " AND UnitId =@UnitId ";
listStr.Add(new SqlParameter("@UnitId", unitId));
}
else
{
strSql += " AND UnitId IS NULL";
}
//else
//{
// strSql += " AND UnitId IS NULL";
//}
if (drpIsUsedName.SelectedValue == "待审核")
{
strSql += " AND IsUsed = @IsUsed";