Пример #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;
 }
Пример #2
0
 // delete Category
 public bool deleteDSCategoryDB(String categoryID)
 {
     db = new DatabaseAccess();
     db.DSdeleteCategory(categoryID);
     return true;
 }
Пример #3
0
 // search rented staff
 public DataTable searchDAORentedStaff(int cid, string key)
 {
     db = new DatabaseAccess();
     dt = db.DAORentedStaff(cid, key);
     return dt;
 }
Пример #4
0
 // Return
 public bool doDAOReturn(ArrayList detaillist, DateTime today)
 {
     db = new DatabaseAccess();
     db.DAOReturnProcess(detaillist, today);
     return true;
 }
Пример #5
0
 // search rented
 public DataTable searchDAORented(string cid, string status)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchRented(cid, status);
     return dt;
 }
Пример #6
0
 // update Customer
 public bool updateDAOCustomer(Customer customer)
 {
     db = new DatabaseAccess();
     db.DAOupdateCustomer(customer);
     return true;
 }
Пример #7
0
 // search Customer ID Name
 public DataTable searchDAOCustomerByIdName(string id, string name)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCustomerByIdName(id, name);
     return dt;
 }
Пример #8
0
 // delete Model
 public bool deleteDSModelDB(String modelID)
 {
     db = new DatabaseAccess();
     db.DSdeleteModel(modelID);
     return true;
 }
Пример #9
0
 // search comb ModelID
 public DataTable searchDAOModelID()
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchModelID();
     return dt;
 }
Пример #10
0
 // insert Model
 public bool insertDSModelDB(ProductModel model)
 {
     db = new DatabaseAccess();
     db.DSinsertModel(model);
     return true;
 }
Пример #11
0
 // update Model
 public bool updateDSModelDB(ProductModel model)
 {
     db = new DatabaseAccess();
     db.DSupdateModel(model);
     return true;
 }
Пример #12
0
 // Using Data Source
 // search Model
 public DataTable searchDSModel()
 {
     db = new DatabaseAccess();
     dt = db.DSsearchModel();
     return dt;
 }
Пример #13
0
 // delete Model
 public bool deleteDAOModel(String model)
 {
     db = new DatabaseAccess();
     db.DAOdeleteModel(model);
     return true;
 }
Пример #14
0
 // Using DAO
 // search Category
 public DataTable searchDAOCategoryID()
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCategoryID();
     return dt;
 }
Пример #15
0
        public Customer searchDAOCustomer(int id)
        {
            db = new DatabaseAccess();
            dt = db.DAOsearchCustomer(id.ToString(),"");

            return setCustomer(dt);
        }
Пример #16
0
 // update Individual
 public bool updateDAOIndividual(Individual ind)
 {
     db = new DatabaseAccess();
     db.DAOupdateIndividual(ind);
     return true;
 }
Пример #17
0
 // insert Customer
 public bool insertDAOCustomer(Customer customer)
 {
     db = new DatabaseAccess();
     db.DAOinsertCustomer(customer);
     return true;
 }
Пример #18
0
 // Using Data Source
 // search Individual
 public DataTable searchDSIndividual()
 {
     db = new DatabaseAccess();
     dt = db.DSsearchIndividual();
     return dt;
 }
Пример #19
0
 // delete Customer
 public bool deleteDAOCustomer(int id)
 {
     db = new DatabaseAccess();
     db.DAOdeleteCustomer(id);
     return true;
 }
Пример #20
0
 // insert Individual
 public bool insertDSIndividualDB(Individual ind)
 {
     db = new DatabaseAccess();
     db.DSinsertIndividual(ind);
     return true;
 }
Пример #21
0
 // search Individual
 public Individual searchDAOIndividualById(int id)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchIndividualById(id);
     return setIndividual(dt);
 }
Пример #22
0
 // update Individual
 public bool updateDSModelDB(Individual ind)
 {
     db = new DatabaseAccess();
     db.DSupdateIndividual(ind);
     return true;
 }
Пример #23
0
 // insert Rent
 public bool insertDAORent(Rent rent, ArrayList detaillist)
 {
     db = new DatabaseAccess();
     db.DAOinsertRent(rent, detaillist);
     return true;
 }
Пример #24
0
 // delete Individual
 public bool deleteDSModelDB(int indCanoeID)
 {
     db = new DatabaseAccess();
     db.DSdeleteIndividual(indCanoeID);
     return true;
 }
Пример #25
0
 // search rentedByID
 public RentDetail searchDAORentedByID(string rid, string iId)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchRentedByID(rid, iId);
     return setRentDetail(dt);
 }
Пример #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;
        }
Пример #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;
 }
Пример #28
0
 // Using DAO
 // search Customer
 public DataTable searchDAOCustomer(string id, string birth)
 {
     db = new DatabaseAccess();
     dt = db.DAOsearchCustomer(id, birth);
     return dt;
 }
Пример #29
0
 // batch
 public void getCanoeBatchOverdueCheck(DateTime today)
 {
     db = new DatabaseAccess();
     db.DAOCanoeBatchOverdueCheck(today);
 }
Пример #30
0
 // update Category
 public bool updateDSCategoryDB(Category category)
 {
     db = new DatabaseAccess();
     db.DSupdateCategory(category);
     return true;
 }