Example #1
0
 // get LoginUser data
 public bool getLogingUser(String username, String password)
 {
     db = new DatabaseAccess();
     dt = db.LogingUsingStoredProcedure(username, password);
     if (dt.Rows.Count == 1)
     {
         setLogingUser(dt);
         return true;
     }
     return false;
 }
Example #2
0
 // delete Category
 public bool deleteDSCategoryDB(String categoryID)
 {
     db = new DatabaseAccess();
     db.DSdeleteCategory(categoryID);
     return true;
 }
Example #3
0
 // search rented staff
 public DataTable searchDAORentedStaff(int cid, string key)
 {
     db = new DatabaseAccess();
     dt = db.DAORentedStaff(cid, key);
     return dt;
 }
Example #4
0
 // Return
 public bool doDAOReturn(ArrayList detaillist, DateTime today)
 {
     db = new DatabaseAccess();
     db.DAOReturnProcess(detaillist, today);
     return true;
 }
Example #5
0
 // search rented
 public DataTable searchDAORented(string cid, string status)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchRented(cid, status);
     return dt;
 }
Example #6
0
 // update Customer
 public bool updateDAOCustomer(Customer customer)
 {
     db = new DatabaseAccess();
     db.DAOupdateCustomer(customer);
     return true;
 }
Example #7
0
 // search Customer ID Name
 public DataTable searchDAOCustomerByIdName(string id, string name)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCustomerByIdName(id, name);
     return dt;
 }
Example #8
0
 // delete Model
 public bool deleteDSModelDB(String modelID)
 {
     db = new DatabaseAccess();
     db.DSdeleteModel(modelID);
     return true;
 }
Example #9
0
 // search comb ModelID
 public DataTable searchDAOModelID()
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchModelID();
     return dt;
 }
Example #10
0
 // insert Model
 public bool insertDSModelDB(ProductModel model)
 {
     db = new DatabaseAccess();
     db.DSinsertModel(model);
     return true;
 }
Example #11
0
 // update Model
 public bool updateDSModelDB(ProductModel model)
 {
     db = new DatabaseAccess();
     db.DSupdateModel(model);
     return true;
 }
Example #12
0
 // Using Data Source
 // search Model
 public DataTable searchDSModel()
 {
     db = new DatabaseAccess();
     dt = db.DSsearchModel();
     return dt;
 }
Example #13
0
 // delete Model
 public bool deleteDAOModel(String model)
 {
     db = new DatabaseAccess();
     db.DAOdeleteModel(model);
     return true;
 }
Example #14
0
 // Using DAO
 // search Category
 public DataTable searchDAOCategoryID()
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCategoryID();
     return dt;
 }
Example #15
0
        public Customer searchDAOCustomer(int id)
        {
            db = new DatabaseAccess();
            dt = db.DAOsearchCustomer(id.ToString(),"");

            return setCustomer(dt);
        }
Example #16
0
 // update Individual
 public bool updateDAOIndividual(Individual ind)
 {
     db = new DatabaseAccess();
     db.DAOupdateIndividual(ind);
     return true;
 }
Example #17
0
 // insert Customer
 public bool insertDAOCustomer(Customer customer)
 {
     db = new DatabaseAccess();
     db.DAOinsertCustomer(customer);
     return true;
 }
Example #18
0
 // Using Data Source
 // search Individual
 public DataTable searchDSIndividual()
 {
     db = new DatabaseAccess();
     dt = db.DSsearchIndividual();
     return dt;
 }
Example #19
0
 // delete Customer
 public bool deleteDAOCustomer(int id)
 {
     db = new DatabaseAccess();
     db.DAOdeleteCustomer(id);
     return true;
 }
Example #20
0
 // insert Individual
 public bool insertDSIndividualDB(Individual ind)
 {
     db = new DatabaseAccess();
     db.DSinsertIndividual(ind);
     return true;
 }
Example #21
0
 // search Individual
 public Individual searchDAOIndividualById(int id)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchIndividualById(id);
     return setIndividual(dt);
 }
Example #22
0
 // update Individual
 public bool updateDSModelDB(Individual ind)
 {
     db = new DatabaseAccess();
     db.DSupdateIndividual(ind);
     return true;
 }
Example #23
0
 // insert Rent
 public bool insertDAORent(Rent rent, ArrayList detaillist)
 {
     db = new DatabaseAccess();
     db.DAOinsertRent(rent, detaillist);
     return true;
 }
Example #24
0
 // delete Individual
 public bool deleteDSModelDB(int indCanoeID)
 {
     db = new DatabaseAccess();
     db.DSdeleteIndividual(indCanoeID);
     return true;
 }
Example #25
0
 // search rentedByID
 public RentDetail searchDAORentedByID(string rid, string iId)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchRentedByID(rid, iId);
     return setRentDetail(dt);
 }
Example #26
0
        // 
        // -- Product search -----------------------
        // 

        // search Product
        public DataTable searchDAOProduct(string category, string model, string brand,
            string price, string availability)
        {
            db = new DatabaseAccess();
            dt = db.DAOsearchProduct(category, model, brand, price, availability);
            return dt;
        }
Example #27
0
 // search rented manage
 public DataTable searchDAORentedManage(string key, DateTime? begin, DateTime? end)
 {
     db = new DatabaseAccess();
     dt = db.DAORentedManage(key, begin, end);
     return dt;
 }
Example #28
0
 // Using DAO
 // search Customer
 public DataTable searchDAOCustomer(string id, string birth)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCustomer(id, birth);
     return dt;
 }
Example #29
0
 // batch
 public void getCanoeBatchOverdueCheck(DateTime today)
 {
     db = new DatabaseAccess();
     db.DAOCanoeBatchOverdueCheck(today);
 }
Example #30
0
 // update Category
 public bool updateDSCategoryDB(Category category)
 {
     db = new DatabaseAccess();
     db.DSupdateCategory(category);
     return true;
 }