LeftWorkAccount Table created - workshop Account edited table

This commit is contained in:
samsys
2024-07-23 21:14:55 +03:30
parent 88fbea0a39
commit d922487032
33 changed files with 13405 additions and 155 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.Generic;
using _0_Framework.Domain;
using AccountManagement.Domain.AccountLeftWorkAgg;
using AccountManagement.Domain.CameraAccountAgg;
using AccountManagement.Domain.RoleAgg;
using TaskManager.Domain.PositionAgg;
@@ -33,6 +34,7 @@ namespace AccountManagement.Domain.AccountAgg
#endregion
public List<CameraAccount> CameraAccounts { get; private set; }
public List<AccountLeftWork> AccountLeftWorkList { get; set; }
public Account(string fullname, string username, string password, string mobile,
long roleId, string profilePhoto, string roleName, string adminAreaPermission, string clientAriaPermission)
{

View File

@@ -0,0 +1,27 @@
using System;
using _0_Framework.Domain;
using AccountManagement.Application.Contracts.Account;
using AccountManagement.Domain.AccountAgg;
namespace AccountManagement.Domain.AccountLeftWorkAgg;
public class AccountLeftWork : EntityBase
{
public AccountLeftWork(DateTime startWorkGr, DateTime leftWorkGr, long accountId)
{
StartWorkGr = startWorkGr;
LeftWorkGr = leftWorkGr;
AccountId = accountId;
}
public DateTime StartWorkGr { get; private set; }
public DateTime LeftWorkGr { get; private set; }
public long AccountId { get; private set; }
public Account Account { get; set; }
public void Edit(DateTime startWorkGr, DateTime leftWorkGr)
{
StartWorkGr = startWorkGr;
LeftWorkGr = leftWorkGr;
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using _0_Framework.Domain;
using AccountManagement.Application.Contracts.Account;
namespace AccountManagement.Domain.AccountLeftWorkAgg;
public interface IAccountLeftworkRepository : IRepository<long, AccountLeftWork>
{
(string StartWorkFa, string LeftWorkFa) GetByAccountId(long accountId);
List<WorkshopAccountlistViewModel> WorkshopList(long accountId);
}