using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HRM.BO { // public class Bank : BasicBaseObject { #region Constructor public Bank() { _code = string.Empty; _name = string.Empty; _accountingformat = string.Empty; _accountNo = String.Empty; _status = EnumStatus.Active; } #endregion #region Properties #region code : string private string _code; public string Code { get { return _code; } set { _code = value; } } #endregion #region name : string private string _name; public string Name { get { return _name; } set { _name = value; } } #endregion #region AccountNo private string _accountNo; public string AccountNo { get { return _accountNo; } set { _accountNo = value; } } #endregion #region accountingformat : string private string _accountingformat; public string Accountingformat { get { return _accountingformat; } set { _accountingformat = value; } } #endregion public string BankAddress { get; set; } public string ContactPerson { get; set; } public string ContactNo { get; set; } public int PayrollTypeID { get; set; } //#region Branch : Branch //private List _branchs; //public List Branchs //{ // get // { // if (_id.Integer > 0 && _branchs == null) // { // _branchs = new List(); // _branchs = Branch.GetChild(this.ID); //GradeSegment.Get(_gradeSegmentID); // } // return this._branchs; // } // set // { // _branchs = value; // } //} //#endregion #endregion } public interface IBankService { Bank Get(int id); List Get(EnumStatus status, int payrolltypeid); int Save(Bank item); void Delete(int id); string GetNextCode(); } }