EchoTex_Payroll/HRM.BO/Common/SystemParameterSetup.cs

107 lines
2.5 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00

using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
public class SystemParameterSetup : BasicBaseObject
{
public SystemParameterSetup()
{
_BadloginAttempt = 0;
_SystemIdealTime = 0;
}
#region Propertise
#region BadloginAttempt : int
private int _BadloginAttempt;
public int BadloginAttempt
{
get { return _BadloginAttempt; }
set { _BadloginAttempt = value; }
}
#endregion
#region SystemIdealTime: Int
private int _SystemIdealTime;
public int SystemIdealTime
{
get { return _SystemIdealTime; }
set { _SystemIdealTime = value; }
}
#endregion
#region Unused
//private int _badLoginAttemptID;
//public int BadLoginAttemptID
//{
// get { return _badLoginAttemptID; }
// set { _badLoginAttemptID = value; }
//}
#endregion
#endregion
//public static SystemParameterSetup Get()
//{
// SystemParameterSetup categorys = null;
// try
// {
// categorys = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// return categorys;
//}
//public static void Get(out SystemParameterSetup sysParamSetup, out HardPasswordSetup hardPasswordRule)
//{
// try
// {
// Service.Get(out sysParamSetup, out hardPasswordRule);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
//}
//public int Save()
//{
// base.SetAuditTrailProperties();
// return SystemParameterSetup.Service.Save(this);
//}
//#region Service Factory ICategoryService : ICategoryService
//internal static ISystemParameterSetupService Service
//{
// get { return Services.Factory.CreateService<ISystemParameterSetupService>(typeof(ISystemParameterSetupService)); }
//}
//#endregion
}
public interface ISystemParameterSetupService
{
int Save(SystemParameterSetup item);
SystemParameterSetup Get();
void Get(out SystemParameterSetup sysParamSetup, out HardPasswordSetup hardPasswordRule);
}
}