Compare commits

...

4 Commits

Author SHA1 Message Date
夏菊 0075a58d42 1111 2025-05-24 14:58:41 +08:00
夏菊 e0525c4e54 1 2025-05-19 09:10:53 +08:00
夏菊 1e608129cd 1 2025-05-16 18:18:05 +08:00
夏菊 2569d4d5fa 1 2025-05-16 18:11:33 +08:00
3 changed files with 16 additions and 18 deletions

View File

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

View File

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

View File

@ -546,9 +546,9 @@ namespace FineUIPro.Web.HSSE.SitePerson
//if (!BLL.PersonService.IsExistPersonByUnit(this.UnitId, this.txtPersonName.Text.Trim(), this.ProjectId)) //if (!BLL.PersonService.IsExistPersonByUnit(this.UnitId, this.txtPersonName.Text.Trim(), this.ProjectId))
//{ //{
this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person)); this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
person.PersonId = this.PersonId; person.PersonId = this.PersonId;
BLL.PersonService.AddPerson(person); BLL.PersonService.AddPerson(person);
//} //}
BLL.LogService.AddSys_Log(this.CurrUser, person.PersonName, person.PersonId, BLL.Const.PersonListMenuId, BLL.Const.BtnAdd); BLL.LogService.AddSys_Log(this.CurrUser, person.PersonName, person.PersonId, BLL.Const.PersonListMenuId, BLL.Const.BtnAdd);
@ -613,8 +613,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
var user = Funs.DB.Sys_User.FirstOrDefault(x => x.IdentityCard == person.IdentityCard); 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; user.UnitId = person.UnitId;
Funs.DB.SubmitChanges(); Funs.DB.SubmitChanges();