EchoTex_Payroll/HRM.BO/User/DataPermission.cs

55 lines
1.2 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HRM.BO
{
#region DataPermission
public class DataPermission : BasicBaseObject
{
#region Constructor
public DataPermission()
{
}
#endregion
#region Properties
public int UserID { get; set; }
public EnumUserType UserType { get; set; }
public int PayrollTypeID { get; set; }
public int? ReferenceID { get; set; }
public EnumDataPermissionType PermissionType{ get; set;}
public EnumMenuPermissionStatus PermissionStatus { get; set; }
public string referenceName { get; set; }
#endregion
}
#endregion
#region IDataPermission Service
public interface IDataPermissionService
{
//public DataPermission Get(int id)
DataPermission Get(int id);
List<DataPermission> Get();
List<DataPermission> Get(int UserID, int PayrollTypeID);
List<DataPermission> getUsersByUserType(EnumUserType userType);
void InsertDataPermission(DataPermission item);
int Save(DataPermission item);
void Delete(int id);
}
#endregion
}