sql=sql+getAndConSql(sql,customNo," (b.CUSTNO like '%"+customNo+"%' or b.MBLNO like '%"+customNo+"%' or b.HBLNO like '%"+customNo+"%' or b.ORDERNO like '%"+customNo+"%')");
//sql = sql + getAndConSql(sql, customNo, " (b.CUSTNO like '%" + customNo + "%' or b.MBLNO like '%" + customNo + "%' or b.HBLNO like '%" + customNo + "%' or b.ORDERNO like '%" + customNo + "%')");
sql=sql+getAndConSql(sql,customNo," (ISNULL(b.CUSTNO,'')+''+ISNULL(b.MBLNO,'')+''+ISNULL(b.HBLNO,'')+''+ISNULL(b.CUSTOMNO,'')+''+ISNULL(b.ORDERNO,'')) like '%"+customNo+"%' ");
sql=sql+getAndConSql(sql,customNo," (ISNULL(b.CUSTNO,'')+''+ISNULL(b.MBLNO,'')+''+ISNULL(b.HBLNO,'')+''+ISNULL(b.CUSTOMNO,'')+''+ISNULL(b.ORDERNO,'')) like '%"+customNo+"%' ");
sql=sql+getAndConSql(sql,customNo," (ISNULL(b.CUSTNO,'')+''+ISNULL(b.MBLNO,'')+''+ISNULL(b.HBLNO,'')+''+ISNULL(b.CUSTOMNO,'')+''+ISNULL(b.ORDERNO,'')) like '%"+customNo+"%' ");
}
}
// var OPLBNAME = form.findField('OPLBNAME').getValue();
sql=sql+getAndConSql(sql,customNo," (b.CUSTNO like '%"+customNo+"%' or b.MBLNO like '%"+customNo+"%' or b.HBLNO like '%"+customNo+"%' or b.CUSTOMNO like '%"+customNo+"%')");
//sql = sql + getAndConSql(sql, customNo, " (b.CUSTNO like '%" + customNo + "%' or b.MBLNO like '%" + customNo + "%' or b.HBLNO like '%" + customNo + "%' or b.CUSTOMNO like '%" + customNo + "%')");
sql=sql+getAndConSql(sql,customNo," (ISNULL(b.CUSTNO,'')+''+ISNULL(b.MBLNO,'')+''+ISNULL(b.HBLNO,'')+''+ISNULL(b.CUSTOMNO,'')+''+ISNULL(b.ORDERNO,'')) like '%"+customNo+"%' ");
str=" (OP='"+Convert.ToString(reader["SHOWNAME"])+"' OR SALE='"+Convert.ToString(reader["SHOWNAME"])+"' OR CUSTSERVICE='"+Convert.ToString(reader["SHOWNAME"])+"' OR DOC='"+Convert.ToString(reader["SHOWNAME"])+"' OR INPUTBY='"+Convert.ToString(reader["SHOWNAME"])+"' ";
str=" (OP='"+Convert.ToString(reader["SHOWNAME"])+"' OR SALE='"+Convert.ToString(reader["SHOWNAME"])+"' OR CUSTSERVICE='"+Convert.ToString(reader["SHOWNAME"])+"' OR DOC='"+Convert.ToString(reader["SHOWNAME"])+"' OR INPUTBY='"+Convert.ToString(reader["SHOWNAME"])+"' OR AUDITOPERATOR='" +Convert.ToString(reader["SHOWNAME"])+"' ";
}
else
{
str=str+" or OP='"+Convert.ToString(reader["SHOWNAME"])+"' OR SALE='"+Convert.ToString(reader["SHOWNAME"])+"' OR CUSTSERVICE='"+Convert.ToString(reader["SHOWNAME"])+"' OR DOC='"+Convert.ToString(reader["SHOWNAME"])+"' OR INPUTBY='"+Convert.ToString(reader["SHOWNAME"])+"' ";
str=str+" or OP='"+Convert.ToString(reader["SHOWNAME"])+"' OR SALE='"+Convert.ToString(reader["SHOWNAME"])+"' OR CUSTSERVICE='"+Convert.ToString(reader["SHOWNAME"])+"' OR DOC='"+Convert.ToString(reader["SHOWNAME"])+"' OR INPUTBY='"+Convert.ToString(reader["SHOWNAME"])+"' OR AUDITOPERATOR='" +Convert.ToString(reader["SHOWNAME"])+"' ";