11
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpJobType" runat="server" NextFocusControl="btnSearch"></f:DropDownList>
|
||||
<f:DropDownList ID="drpJobType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpJobType_SelectedIndexChanged" NextFocusControl="btnSearch"></f:DropDownList>
|
||||
<f:DropDownList ID="drpJobStatus" runat="server" NextFocusControl="btnSearch"></f:DropDownList>
|
||||
<f:TextBox ID="txtJobNO" runat="server" EmptyText="Enter the Job No." NextFocusControl="btnSearch"></f:TextBox>
|
||||
<f:Button ID="btnSearch" runat="server" Icon="SystemSearch" Text="Search" OnClick="btnSearch_Click"></f:Button>
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace FineUIPro.Web.Design
|
||||
strSql += " AND e.ProjectControl_JobType=@JobType ";
|
||||
listStr.Add(new SqlParameter("@JobType", this.drpJobType.SelectedItem.Text));
|
||||
}
|
||||
if (this.drpJobStatus.SelectedValue != BLL.Const._Null)
|
||||
if (this.drpJobStatus.SelectedValue != BLL.Const._Null && this.drpJobStatus.SelectedValue != null)
|
||||
{
|
||||
strSql += " AND e.ProjectControl_JobStatus=@Status ";
|
||||
listStr.Add(new SqlParameter("@Status", this.drpJobStatus.SelectedItem.Text));
|
||||
@@ -326,6 +326,19 @@ namespace FineUIPro.Web.Design
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
protected void drpJobType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.drpJobStatus.Items.Clear();
|
||||
if (drpJobType.SelectedText == "Other")
|
||||
{
|
||||
BLL.ConstService.InitConstValueProjectStatus(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, "3", true);
|
||||
}
|
||||
if (drpJobType.SelectedText != "Other")
|
||||
{
|
||||
BLL.ConstService.InitConstValueProjectStatus(this.drpJobStatus, BLL.Const.ProjectPlanner_JobStatus, "2", true);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下拉框选择事件
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user