集团三库
This commit is contained in:
@@ -12,7 +12,7 @@ using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.Check
|
||||
{
|
||||
public partial class ViolationPerson :PageBase
|
||||
public partial class ViolationPerson : PageBase
|
||||
{
|
||||
#region 项目主键
|
||||
/// <summary>
|
||||
@@ -76,6 +76,7 @@ namespace FineUIPro.Web.Check
|
||||
+ @"ViolationPerson.CompileDate,"
|
||||
+ @"ViolationPerson.States,"
|
||||
+ @"ViolationPerson.HandleStep,"
|
||||
+ @"ViolationPerson.ViolationLevel,"
|
||||
+ @"Unit.UnitName,"
|
||||
+ @"Person.CardNo,"
|
||||
+ @"Person.PersonName,"
|
||||
@@ -116,6 +117,12 @@ namespace FineUIPro.Web.Check
|
||||
strSql += " AND PersonName LIKE @PersonName";
|
||||
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%"));
|
||||
}
|
||||
string level = this.drpLevel.SelectedValue.Trim();
|
||||
if (!string.IsNullOrWhiteSpace(level))
|
||||
{
|
||||
strSql += " AND ViolationPerson.ViolationLevel = @level";
|
||||
listStr.Add(new SqlParameter("@level", level));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user