111,126
社区成员
发帖
与我相关
我的任务
分享
//这样是不是清爽多了?
sqlwhere += " where 1=1 "
if (txt_number.Text.Trim() != "")
{
sqlwhere += " and PONumber like '%" + txt_number.Text.Trim() + "%'";
}
if (txt_chestno.Text.Trim() != "")
{
sqlwhere += " and PackNo like '%" + txt_chestno.Text.Trim() + "%'";
}
if (cob_model.Text.Trim() != "")
{
sqlwhere += " and ProductModel like '%" + cob_model.Text.Trim() + "%'";
}
sqlwhere += " and ProjectType ='" + cob_select.Text.Trim() + "'";