一、问题

1. 如何判断这个对象的进出类型

二、思路

第一次进过的时候,存个字段在对象的字段,例如已经过了就给他true,再回来就是false,再过去就true

三、方法

 A_rfidpersonnel_main(人员基础信息)新建一个当前考勤状态的字段,然后去判断它的出入类型

 var bookfile = session.FindObject<A_rfidpersonnel_main>(CriteriaOperator.Parse("rfidcode=?  ", epc));

if (bookfile.attendancetype == RFIDAttendance.入厂)
{
bookfile.attendancetype = RFIDAttendance.出厂;
}
else
{
bookfile.attendancetype = RFIDAttendance.入厂;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-08-11
  • 2022-01-03
  • 2021-09-29
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-05-13
相关资源
相似解决方案