示例#1
0
        public static ERPParty_type Create(string partytype, Accounttype accounttype)

        {
            ERPParty_type obj = new ERPParty_type();

            obj.party_type   = partytype;
            obj.account_type = accounttype;
            return(obj);
        }
示例#2
0
        static void Main(string[] args)
        {
            AccountType goldAccount;
            AccountType platinumAccount;

            goldAccount     = AccountType.Checking;
            platinumAccount = AccountType.Deposit;

            Console.WriteLine(" The customer Account Type is {0} ", goldAccount);
            Console.WriteLine(" The customer Account Type is {0} ", platinumAccount);

            BankAccounte gold = new BankAccounte();

            gold.accType = AccountType.Deposit;
            gold.accBal  = (decimal)3200.00;

            Console.Write("Enter The account number :");
            gold.AccNo = long.Parse(Console.ReadLine());

            Console.WriteLine("The Account No is : {0}", gold.AccNo);

            Accounttype accountType = Accounttype.Deposit;

            Console.WriteLine("accounttype = {0} {1}", (int)accountType, accountType);
            switch (accountType)
            {
            case Accounttype.Deposit:

                break;

            case Accounttype.Checking:
                break;
            }

            Console.ReadKey();
        }
示例#3
0
 public void Populate(decimal balance)
 {
     number       = Nextnumber();
     this.balance = balance;
     atype        = Accounttype.checking;
 }
示例#4
0
 public bankaccount(Accounttype accounttype, decimal bal)
 {
     balance          = bal;
     number           = Nextnumber();
     this.accounttype = accounttype;
 }
示例#5
0
 public bankaccount(decimal bal)
 {
     balance     = bal;
     number      = Nextnumber();
     accounttype = Accounttype.saving;
 }
示例#6
0
 public bankaccount(Accounttype accounttype)
 {
     balance          = 0;
     number           = Nextnumber();
     this.accounttype = accounttype;
 }
示例#7
0
 public bankaccount( )
 {
     balance     = 0;
     number      = Nextnumber();
     accounttype = Accounttype.checking;
 }