20220907特岗人员资质列表页面新增按是否在岗查询。

This commit is contained in:
2022-09-07 10:41:18 +08:00
parent fc4f47dbab
commit f5ab6ad44f
6 changed files with 59 additions and 17 deletions
@@ -45,7 +45,10 @@ namespace FineUIPro.Web.HSSE.QualityAudit
{
this.ProjectId = Request.Params["projectId"];
}
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, false);
Funs.FineUIPleaseSelect(this.drpUnitId, "按单位查询");
DropListService.InitConstDropDownList(this.drpIsPost, DropListService.Group_IsPost, true);
this.drpIsPost.SelectedValue = Const._True;
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
@@ -79,6 +82,19 @@ namespace FineUIPro.Web.HSSE.QualityAudit
strSql += " AND Person.UnitId = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
}
if (this.drpIsPost.SelectedValue != Const._Null && !string.IsNullOrEmpty( this.drpIsPost.SelectedValue))
{
if (this.drpIsPost.SelectedValue == Const._True)
{
strSql += " AND Person.States =@States ";
listStr.Add(new SqlParameter("@States",Const.ProjectPersonStates_1));
}
else
{
strSql += " AND Person.States !=@States ";
listStr.Add(new SqlParameter("@States", Const.ProjectPersonStates_1));
}
}
if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim()))
{
strSql += " AND Person.CardNo LIKE @CardNo";
@@ -150,7 +166,7 @@ namespace FineUIPro.Web.HSSE.QualityAudit
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
protected void btSearch_Click(object sender, EventArgs e)
{
this.BindGrid();
}