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 Get(); List Get(EnumStatus status); List GetDAComplainPicker(int complainid); int Save(Complain item); } #endregion IComplain Service }