EchoTex_Payroll/HRM.BO/Basic/Bank.cs

116 lines
2.4 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
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<Branch> _branchs;
//public List<Branch> Branchs
//{
// get
// {
// if (_id.Integer > 0 && _branchs == null)
// {
// _branchs = new List<Branch>();
// _branchs = Branch.GetChild(this.ID); //GradeSegment.Get(_gradeSegmentID);
// }
// return this._branchs;
// }
// set
// {
// _branchs = value;
// }
//}
//#endregion
#endregion
}
public interface IBankService
{
Bank Get(int id);
List<Bank> Get(EnumStatus status, int payrolltypeid);
int Save(Bank item);
void Delete(int id);
string GetNextCode();
}
}