Пример #1
0
        public List <Customer> getCustList()
        {
            ExcelDAL db = new ExcelDAL("getCustomerList");

            db.openCustomerListConn();
            List <Customer> customerSet = db.getCustomerList();

            if (db.isConnectionOpen())
            {
                db.closeConn();
            }
            db = null;
            return(customerSet);
        }
Пример #2
0
        public CustomerData getCustomerData(short customerID)
        {
            ExcelDAL db = new ExcelDAL("getCustomerData");

            db.openCustomerDataConn();
            CustomerData customerData = db.getCustomerData(customerID);

            if (db.isConnectionOpen())
            {
                db.closeConn();
            }
            db = null;
            return(customerData);
        }