示例#1
0
        public Customer getCustomerData(String custName, int custPin)
        {
            Atm_DAL  ob         = new Atm_DAL();
            Customer cutomerObj = ob.getCustomer(custName, custPin);

            return(cutomerObj);
        }
示例#2
0
        public List <Customer> viewReport(int min, int max)
        {
            Atm_DAL         dal_ob = new Atm_DAL();
            List <Customer> list   = dal_ob.getReports(min, max);

            return(list);
        }
示例#3
0
        public string getCustmrName(int accNum)
        {
            Atm_DAL ob          = new Atm_DAL();
            string  cutomerName = ob.getName(accNum);

            return(cutomerName);
        }
示例#4
0
        public bool DepositCash(Customer customer, int money)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.DepositInFile(customer, money);

            return(check);
        }
示例#5
0
        public bool cashTransfer(Customer customer, int money, int accNum)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.TransCash(customer, money, accNum);

            return(check);
        }
示例#6
0
        public bool Withdraw(Customer customer, int money)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.WithdrawFromFile(customer, money);

            return(check);
        }
示例#7
0
        public double deleteCustomer(int accNo)
        {
            Atm_DAL ob        = new Atm_DAL();
            double  accNumber = ob.deleteAccount(accNo);

            return(accNumber);
        }
示例#8
0
        public bool updateCustomer(double accNo, Customer ob)
        {
            Atm_DAL dalOb = new Atm_DAL();
            bool    check = dalOb.updateAccount(accNo, ob);

            return(check);
        }
示例#9
0
        public List <Customer> searchCustomer(Customer ob)
        {
            Atm_DAL         dal_ob = new Atm_DAL();
            List <Customer> list   = dal_ob.searchAccount(ob);

            return(list);
        }
示例#10
0
        public void CreateCustomer(Customer bo)
        {
            Atm_DAL ob = new Atm_DAL();

            ob.SaveToFile(bo);
        }