Ejemplo n.º 1
0
        public List <TranzactionsVO> getTranzByIdAccOnDate(int _id, DateTime _dt)
        {
            DataTable dataTable = new DataTable();

            try
            {
                dataTable = _tranzDAO.searchByIdAccAndDate(_id, _dt);
                foreach (DataRow dr in dataTable.Rows)
                {
                    TranzactionsVO _newTranzVo = new TranzactionsVO();
                    _newTranzVo.idAcc  = Int32.Parse(dr["idAcc"].ToString());
                    _newTranzVo.type   = dr["Type"].ToString();
                    _newTranzVo.amount = Int32.Parse(dr["Amount"].ToString());
                    _newTranzVo.date   = DateTime.Parse(dr["DateCreated"].ToString());
                    this._listTranzVO.Add(_newTranzVo);
                }
            }
            catch (NullReferenceException e)
            {
                Console.Write("Error:", e.ToString());
                Console.ReadLine();
            }

            return(this._listTranzVO);
        }
Ejemplo n.º 2
0
 //Constructor
 public FormClient()
 {
     InitializeComponent();
     _bankAccBus    = new BankAccountsBUS();
     _listBankAccVO = new List <BankAccountsVO>();
     _bankAccDAO    = new BankAccountDAO();
     _bankAccVO     = new BankAccountsVO();
     _tranzDAO      = new TranzactionsDAO();
     _tranzVO       = new TranzactionsVO();
     _listTranzVO   = new List <TranzactionsVO>();
     _tranzBUS      = new TranzactionsBUS();
 }