移交尾项加查询条件
This commit is contained in:
parent
5030ef836e
commit
d2a9080bfd
|
@ -21,6 +21,7 @@
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
<Items>
|
<Items>
|
||||||
|
<f:TextBox runat="server" ID="txtNo" Label="No" LabelWidth="80px" LabelAlign="Right" Width="180px"></f:TextBox>
|
||||||
<f:TextBox runat="server" ID="txtSystem_No" Label="System No" LabelWidth="100px" LabelAlign="Right" Width="180px"></f:TextBox>
|
<f:TextBox runat="server" ID="txtSystem_No" Label="System No" LabelWidth="100px" LabelAlign="Right" Width="180px"></f:TextBox>
|
||||||
<%--<f:TextBox runat="server" ID="txtSub_Sys_No" Label="Turnover System Code" LabelWidth="180px" LabelAlign="Right"></f:TextBox>--%>
|
<%--<f:TextBox runat="server" ID="txtSub_Sys_No" Label="Turnover System Code" LabelWidth="180px" LabelAlign="Right"></f:TextBox>--%>
|
||||||
<f:DropDownList ID="drpTurnoverSystemCode" runat="server" Label="Turnover System Code" AutoPostBack="true" AutoSelectFirstItem="false" EnableMultiSelect="true" EnableCheckBoxSelect="true" LabelWidth="180px">
|
<f:DropDownList ID="drpTurnoverSystemCode" runat="server" Label="Turnover System Code" AutoPostBack="true" AutoSelectFirstItem="false" EnableMultiSelect="true" EnableCheckBoxSelect="true" LabelWidth="180px">
|
||||||
|
|
|
@ -46,11 +46,9 @@ namespace FineUIPro.Web.Transfer
|
||||||
|
|
||||||
public DataTable DataSql()
|
public DataTable DataSql()
|
||||||
{
|
{
|
||||||
string strSql = @"select *
|
string strSql = @"select * ,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr ,IsMatI IsMatIStr
|
||||||
,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr
|
from Transfer_PunchlistFrom
|
||||||
,IsMatI IsMatIStr
|
where ProjectId = @ProjectId";
|
||||||
from Transfer_PunchlistFrom
|
|
||||||
where ProjectId = @ProjectId";
|
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||||
|
|
||||||
|
@ -59,6 +57,11 @@ namespace FineUIPro.Web.Transfer
|
||||||
strSql += " AND Raised_By = @Raised_By";
|
strSql += " AND Raised_By = @Raised_By";
|
||||||
listStr.Add(new SqlParameter("@Raised_By", this.txtRaised_By.Text.Trim()));
|
listStr.Add(new SqlParameter("@Raised_By", this.txtRaised_By.Text.Trim()));
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(this.txtNo.Text.Trim()))
|
||||||
|
{
|
||||||
|
strSql += " AND Num_NO = @No";
|
||||||
|
listStr.Add(new SqlParameter("@No", this.txtNo.Text.Trim()));
|
||||||
|
}
|
||||||
if (!string.IsNullOrEmpty(this.txtSystem_No.Text.Trim()))
|
if (!string.IsNullOrEmpty(this.txtSystem_No.Text.Trim()))
|
||||||
{
|
{
|
||||||
strSql += " AND System_No like @System_No";
|
strSql += " AND System_No like @System_No";
|
||||||
|
|
|
@ -59,6 +59,15 @@ namespace FineUIPro.Web.Transfer
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Toolbar ToolSearch;
|
protected global::FineUIPro.Toolbar ToolSearch;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtNo 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtNo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtSystem_No 控件。
|
/// txtSystem_No 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue