Compare commits

..

No commits in common. "0075a58d429410fc5ec5036f6002053abaa79496" and "cc86d5a07e6abbe80e6dec0311cd45fb90494b80" have entirely different histories.

3 changed files with 18 additions and 16 deletions

View File

@ -68,10 +68,12 @@ namespace FineUIPro.Web.BaseInfo
{
rowend = source.Count();
}
for (int i = rowbegin; i < rowend; i++)
{
paged.Add(source[i]);
}
return paged;
}

View File

@ -71,9 +71,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
strSql += " AND p.PersonId = @PersonId";
listStr.Add(new SqlParameter("@PersonId", this.PersonId));
}
if (!string.IsNullOrEmpty(txtName.Text.Trim()))
{
strSql += " AND p.PersonName like '%" + txtName.Text.Trim() + "%'";
strSql += " AND p.PersonName like '%"+ txtName.Text.Trim() + "%'";
}
if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim()))
{
@ -228,8 +229,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
return (Convert.ToInt32(time) / 60).ToString();
}
else
{
else {
return hours;
}

View File

@ -614,7 +614,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
var user = Funs.DB.Sys_User.FirstOrDefault(x => x.IdentityCard == person.IdentityCard);
if (user != null && user.UnitId != person.UnitId)
if (user!=null && user.UnitId != person.UnitId)
{
user.UnitId = person.UnitId;
Funs.DB.SubmitChanges();