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); }
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(); }
public void Populate(decimal balance) { number = Nextnumber(); this.balance = balance; atype = Accounttype.checking; }
public bankaccount(Accounttype accounttype, decimal bal) { balance = bal; number = Nextnumber(); this.accounttype = accounttype; }
public bankaccount(decimal bal) { balance = bal; number = Nextnumber(); accounttype = Accounttype.saving; }
public bankaccount(Accounttype accounttype) { balance = 0; number = Nextnumber(); this.accounttype = accounttype; }
public bankaccount( ) { balance = 0; number = Nextnumber(); accounttype = Accounttype.checking; }