add Workshop settings and children

This commit is contained in:
SamSys
2024-10-23 20:58:10 +03:30
parent 4e78250841
commit 4315977141
55 changed files with 31360 additions and 19 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace CompanyManagment.App.Contracts.Reward;
public class CreateRewardViewModel
{
public List<long> EmployeeIds { get; set; }
public long WorkshopId { get; set; }
/// <summary>
/// مبلغ پاداش
/// </summary>
public double Amount { get; set; }
/// <summary>
/// توضیحات
/// </summary>
public string Description { get; set; }
/// <summary>
/// شخصی که پاداش را داده است
/// </summary>
public long RewardedByAccountId { get; set; }
}

View File

@@ -0,0 +1,11 @@
using _0_Framework.Application;
namespace CompanyManagment.App.Contracts.Reward;
public class EditRewardViewModel:CreateRewardViewModel
{
public long Id { get; set; }
public IsActive IsActive { get; set; }
public long EmployeeId { get; set; }
}

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
using _0_Framework.Application;
namespace CompanyManagment.App.Contracts.Reward;
public interface IRewardApplication
{
OperationResult Create(CreateRewardViewModel command);
OperationResult Edit(EditRewardViewModel command);
List<RewardSearchViewModel> GetSearchList(RewardSearchViewModel searchViewModel);
EditRewardViewModel GetDetails(long id);
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CompanyManagment.App.Contracts.Reward;
public class RewardSearchViewModel
{
public long Id { get; set; }
public long EmployeeId { get; set; }
public long WorkshopId { get; set; }
public string EmployeeFullName { get; set; }
public string PersonnelCode { get; set; }
public string Amount { get; set; }
public string Description { get; set; }
public long RewardedByAccountId { get; set; }
public DateTime CreationDate { get; set; }
public int PageIndex { get; set; }
}