移交尾项加查询条件

This commit is contained in:
2025-04-01 09:29:06 +08:00
parent 5030ef836e
commit d2a9080bfd
3 changed files with 18 additions and 5 deletions
@@ -46,11 +46,9 @@ namespace FineUIPro.Web.Transfer
public DataTable DataSql()
{
string strSql = @"select *
,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr
,IsMatI IsMatIStr
from Transfer_PunchlistFrom
where ProjectId = @ProjectId";
string strSql = @"select * ,(CASE isnull(IsEng,0) WHEN 1 THEN 'Y' ELSE 'N' END) IsEngStr ,IsMatI IsMatIStr
from Transfer_PunchlistFrom
where ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
@@ -59,6 +57,11 @@ namespace FineUIPro.Web.Transfer
strSql += " AND Raised_By = @Raised_By";
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()))
{
strSql += " AND System_No like @System_No";