LeftWorkAccount Table created - workshop Account edited table
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user