Merge remote-tracking branch 'origin/Main' into Main

This commit is contained in:
2026-02-09 17:42:47 +03:30
4 changed files with 19 additions and 3 deletions

View File

@@ -1,11 +1,24 @@
using System.Threading.Tasks;
using _0_Framework.Application;
using Microsoft.AspNetCore.SignalR;
namespace CompanyManagment.App.Contracts.Hubs;
public class CheckoutHub : Hub
{
private readonly IAuthHelper _authHelper;
public CheckoutHub(IAuthHelper authHelper)
{
_authHelper = authHelper;
}
public override async Task OnConnectedAsync()
{
var accountId = _authHelper.CurrentAccountId();
await send(accountId);
await base.OnConnectedAsync();
}
public async Task send(long id)
{
await Groups.AddToGroupAsync(Context.ConnectionId, GetGroupName(id));

View File

@@ -926,7 +926,8 @@ public class CheckoutApplication : ICheckoutApplication
ContractEnd = item.ContractEnd,
GetWorkDate = item.FirstGetWorkingDay,
GetWorkDateHide = item.FirstGetWorkingDay,
WorkshopIds = workshopId,
EmployeeId = item.EmployeeId,
};
//دستمزد روزانه بدون تاثیر ساعت کار

View File

@@ -5352,7 +5352,7 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
: contractingParty.NationalId;
var createAcc = new RegisterAccount
{
Fullname = contractingParty.LName,
Fullname = contractingPartyFullName,
Username = userPass,
Password = userPass,
Mobile = contractingParty.Phone,

View File

@@ -162,7 +162,9 @@ public class WorkshopRepository : RepositoryBase<long, Company.Domain.WorkshopAg
var emp = _context.WorkshopEmployers.Where(x => x.WorkshopId == id)
.Select(x => x.Employer).ToList();
var contractingPart = emp.Select(x => x.ContractingPartyId).ToList();
bool rewardCompute = contractingPart.Any(x=>x == 30804);
//سیب سامانه = 30414
//30804 = اسقائی
bool rewardCompute = contractingPart.Any(x=>x == 30804 || x == 30414);
return _context.Workshops.Select(x => new EditWorkshop
{
Id = x.id,