移交尾项加查询条件
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user