成达考勤大屏幕

This commit is contained in:
2023-12-04 18:12:02 +08:00
parent d696348af5
commit c8077dc07c
20 changed files with 11776 additions and 1 deletions
@@ -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)
{