add Workshop settings and children
This commit is contained in:
@@ -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; }
|
||||
|
||||
}
|
||||
11
CompanyManagment.App.Contracts/Reward/EditRewardViewModel.cs
Normal file
11
CompanyManagment.App.Contracts/Reward/EditRewardViewModel.cs
Normal 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; }
|
||||
}
|
||||
12
CompanyManagment.App.Contracts/Reward/IRewardApplication.cs
Normal file
12
CompanyManagment.App.Contracts/Reward/IRewardApplication.cs
Normal 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);
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user