EchoTex_Payroll/HRM.BO/GrievanceManagement/Complain.cs

71 lines
1.5 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
namespace HRM.BO
{
#region Complain
public class Complain : BasicBaseObject
{
#region Constructor
public Complain()
{
Code = string.Empty;
Description = string.Empty;
}
#endregion Constructor
#region Input validator
public string[] InputValidator()
{
string[] sErrorString = new string[2];
if (this.Code == "")
{
sErrorString[0] = "Code can not be empty";
sErrorString[1] = "Code";
return sErrorString;
}
if (this.Description == "")
{
sErrorString[0] = "Description can not be empty";
sErrorString[1] = "Description";
return sErrorString;
}
sErrorString = null;
return sErrorString;
}
#endregion Input validator
#region Properties
public string Code { get; set; }
public string Description { get; set; }
#endregion Properties
}
#endregion Complain
#region IComplain Service
public interface IComplainService
{
void Delete(int id);
Complain Get(int id);
List<Complain> Get();
List<Complain> Get(EnumStatus status);
List<Complain> GetDAComplainPicker(int complainid);
int Save(Complain item);
}
#endregion IComplain Service
}