成达考勤大屏幕
This commit is contained in:
@@ -7,6 +7,7 @@ using SgManager.AI;
|
||||
using System.Configuration;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using WebAPI.Common;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
@@ -561,6 +562,20 @@ namespace WebAPI.Controllers
|
||||
};
|
||||
|
||||
PersonInOutService.AddPersonInOut(newInOut);
|
||||
|
||||
if (PersonKqSocketSersvices.allSockets != null && PersonKqSocketSersvices.allSockets.ContainsKey(projectId))
|
||||
{
|
||||
var socket = PersonKqSocketSersvices.allSockets[projectId];
|
||||
if (socket.IsAvailable)
|
||||
{
|
||||
|
||||
socket.Send("newinout");
|
||||
}
|
||||
else
|
||||
{
|
||||
PersonKqSocketSersvices.allSockets.Remove(projectId);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user