53 lines
1.0 KiB
C#
53 lines
1.0 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
#region Function
|
|||
|
|
|||
|
public class Function : BasicBaseObject
|
|||
|
{
|
|||
|
#region Constructor
|
|||
|
|
|||
|
public Function()
|
|||
|
{
|
|||
|
Code = string.Empty;
|
|||
|
Name = string.Empty;
|
|||
|
Status = EnumStatus.Active;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
|
|||
|
public string Code { get; set; }
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
|
|||
|
//#region Service Factory IFunctionService : IFunctionService
|
|||
|
|
|||
|
//internal static IFunctionService Service
|
|||
|
//{
|
|||
|
// get { return Services.Factory.CreateService<IFunctionService>(typeof(IFunctionService)); }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IFunction Service
|
|||
|
|
|||
|
public interface IFunctionService
|
|||
|
{
|
|||
|
Function Get(int id);
|
|||
|
Function Get(string sCode);
|
|||
|
List<Function> Get(EnumStatus status);
|
|||
|
int Save(Function item);
|
|||
|
void Delete(int id);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|