public void setFeeForIntracCardType(A_setBankInteracFee I)
 {
     Bank b=new Bank(I.bankId);
     b.setFeeForIntracCardType(I.amount, I.description);
 }
        public void setFeeForCreditCardType(A_setBankCreditcardFee I)
        {
            Bank b = new Bank(I.bankId);

            accounting.classes.enums.ccCardType cccardType = accounting.classes.enums.ccCardType.MASTERCARD;
            switch (I.ccCardTypeId)
            {
                case 1:
                    cccardType = accounting.classes.enums.ccCardType.MASTERCARD;
                    break;

                case 2:
                    cccardType = accounting.classes.enums.ccCardType.VISACARD;
                    break;
            }

            b.setFeeForCreditCardType(cccardType,I.amount, I.description);
        }
 public void createBank(A_newbank I)
 {
     accounting.classes.Bank bank1 = new accounting.classes.Bank();
     bank1.New(I.bankname);
 }
 public void assignCardToBank(A_assignCardToBank I)
 {
     Bank b = new Bank(I.bankId);
     (b as Entity).addCard(I.cardId);
 }
Beispiel #5
0
 public void createBank(A_newbank I)
 {
     accounting.classes.Bank bank1 = new accounting.classes.Bank();
     bank1.New(I.bankname);
 }
Beispiel #6
0
        public Bank getBankByCard(int cardID)
        {
            using (var ctx = new AccountingLib.Models.AccContexts())
            {
                var theBank = ctx.entityCard
                    .Where(x => x.CardID == cardID)
                    .Where(x=>x.entity.entityTypeID==(int)enums.entityType.bank)
                    .SingleOrDefault();

                Bank b = new Bank();
                b.loadBankByEntityID((int)theBank.entityID);
                return b;
            }
        }