20220907特岗人员资质列表页面新增按是否在岗查询。
This commit is contained in:
@@ -20,22 +20,22 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="编号" ID="txtCardNo" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px"
|
||||
LabelAlign="right">
|
||||
<f:TextBox runat="server" ID="txtCardNo" EmptyText="按编号查询" Width="150px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="单位"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
|
||||
<f:DropDownList ID="drpUnitId" runat="server" EmptyText="单位"
|
||||
AutoPostBack="true" OnSelectedIndexChanged="btSearch_Click" Width="280px">
|
||||
</f:DropDownList>
|
||||
<f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right">
|
||||
<f:TextBox runat="server" ID="txtPersonName" EmptyText="按姓名查询" Width="150px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="岗位" ID="txtWorkPostName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right">
|
||||
<f:TextBox runat="server" ID="txtWorkPostName" EmptyText="按岗位查询" Width="150px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DropDownList runat="server" ID="drpIsPost" EnableEdit="true" Width="120px"
|
||||
LabelAlign="Right" EmptyText="按状态查询" AutoPostBack="true" OnSelectedIndexChanged="btSearch_Click">
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btSearch" Text="查询" Icon="SystemSearch" runat="server" OnClick="btSearch_Click"></f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -95,6 +95,15 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWorkPostName;
|
||||
|
||||
/// <summary>
|
||||
/// drpIsPost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsPost;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -104,6 +113,15 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user