Пример #1
0
        public InvestorCETO createLeanTransferObject(InvestorCE src)
        {
            var dst = new InvestorCETO();

            dst.Person       = createPersonTransferObject(src.Person);
            dst.Transactions = new List <TransactionTO>();
            return(dst);
        }
Пример #2
0
        public InvestorCETO createFullTransferObject(InvestorCE src)
        {
            var tDAO = new TransactionDAO(mMP);

            var dst = new InvestorCETO();

            dst.Person       = createPersonTransferObject(src.Person);
            dst.Transactions = tDAO.convertListToTO(src.Transactions);
            return(dst);
        }
Пример #3
0
        private void loadInvestor(InvestorCETO investor)
        {
            if (null == investor)
            {
                return;
            }

            bindingSource1.Clear();
            foreach (var t in investor.Transactions)
            {
                bindingSource1.Add(t);
            }
        }
Пример #4
0
        public InvestorCETO GetInvestor(int id)
        {
            InvestorCETO data = null;

            try
            {
                data = Service.GetInvestor(id);
            }
            catch (FaultException <NotFoundException> ex)
            {
                MessageBox.Show(ex.Detail.Message);
            }
            finally
            {
            }

            return(data);
        }
Пример #5
0
 public int Insert(InvestorCETO t)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 public bool Delete(InvestorCETO t)
 {
     throw new NotImplementedException();
 }