Пример #1
0
 public void UpdateAccount(Account acc, string oldAcc)
 {
     try
     {
         AccountC inter = new AccountC();
         inter.UpdateAcc(acc, oldAcc);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #2
0
 public void RemoveAccount(Account acc)
 {
     try
     {
         AccountC inter = new AccountC();
         inter.RemoveAcc(acc);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #3
0
        public List <string> fromDD()//all the from account
        {
            List <string>  l     = new List <string>();
            AccountC       inter = new AccountC();
            List <Account> c     = inter.AccountList();

            foreach (var v in c)
            {
                l.Add(v.AccountNum);
            }
            return(l);
        }
Пример #4
0
        public AccountC _loginAccount(string nName, string nPassward, uint nDeviceType)
        {
            AccountC       result_         = new AccountC();
            AccountService accountService_ = __singleton <AccountService> ._instance();

            __tuple <ErrorCode_, Account> accountInfo_ = accountService_._loginAccount(nName, nPassward, nDeviceType);

            result_.m_tErrorCode = accountInfo_._get_0();
            if (ErrorCode_.mSucess_ == accountInfo_._get_0())
            {
                accountInfo_._get_1()._getAccountC(result_, nDeviceType);
            }
            return(result_);
        }
Пример #5
0
        public List <string> toDD()//all the to account
        {
            List <string>  l     = new List <string>();
            AccountC       inter = new AccountC();
            List <Account> c     = inter.AccountList();

            foreach (var v in c)
            {
                if (v.Kind != "Credit")
                {
                    l.Add(v.AccountNum);
                }
            }
            return(l);
        }
Пример #6
0
 public void CreateAccount(Account acc)
 {
     try
     {
         AccountC inter = new AccountC();
         acc.Balance  = "0";
         acc.Equity   = "0";
         acc.Debt     = "0";
         acc.SBalance = "0";
         acc.Sequity  = "0";
         acc.Sdebt    = "0";
         inter.CreateAcc(acc);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #7
0
        public List <Account> AccountList()
        {
            AccountC c = new AccountC();

            return(c.AccountList());
        }