20211013
This commit is contained in:
@@ -85,11 +85,11 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
strSql += " AND Person.UnitId = @UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Person.CardNo LIKE @CardNo";
|
||||
listStr.Add(new SqlParameter("@CardNo", "%" + this.txtCardNo.Text.Trim() + "%"));
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND Person.CardNo LIKE @CardNo";
|
||||
// listStr.Add(new SqlParameter("@CardNo", "%" + this.txtCardNo.Text.Trim() + "%"));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Person.PersonName LIKE @PersonName";
|
||||
@@ -100,6 +100,17 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
strSql += " AND WorkPost.WorkPostName LIKE @WorkPostName";
|
||||
listStr.Add(new SqlParameter("@WorkPostName", "%" + this.txtWorkPostName.Text.Trim() + "%"));
|
||||
}
|
||||
if (this.rblIsPost.SelectedValue != "-1")
|
||||
{
|
||||
if (this.rblIsPost.SelectedValue == "1")
|
||||
{
|
||||
strSql += " AND Person.OutTime is null ";
|
||||
}
|
||||
else if (this.rblIsPost.SelectedValue == "0")
|
||||
{
|
||||
strSql += " AND Person.OutTime is not null ";
|
||||
}
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user