Exemple #1
0
        public void deletetransaction(CurrentTransaction_DB sDB)
        {
            string         query = String.Format("delete from CurrentTransaction where item = '{0}'", sDB.Item);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #2
0
        public void empty()
        {
            string         query = "DELETE * FROM [CurrentTransaction]";
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #3
0
        public void deleteproduct(Storage_DB sDB)
        {
            string         query = String.Format("delete from StorageInfo where item = '{0}'", sDB.Item);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #4
0
        public void addtransaction(CurrentTransaction_DB sDB)
        {
            string         query = String.Format("Insert into CurrentTransaction Values('{0}','{1}',{2}, {3})", sDB.Item, sDB.Quantity, sDB.Price, sDB.PayPrice);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #5
0
        public void addproduct(Storage_DB sDB)
        {
            string         query = String.Format("Insert into StorageInfo Values('{0}','{1}','{2}', '{3}')", sDB.Item, sDB.Manufacturer, sDB.Quantity, sDB.Price);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #6
0
        public void addtransaction(Transaction_DB sDB)
        {
            string         query = String.Format("Insert into [Transaction] Values('{0}','{1}','{2}', '{3}')", sDB.CustomerName, sDB.Mobile, sDB.PurchaseDate, sDB.TotalBill);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #7
0
        public void deleteuser(Credential_DB cDB)
        {
            string         query = String.Format("delete from UserDetails where username = '******'", cDB.UserName);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #8
0
        public void changemypassword(Credential_DB cDB)
        {
            string         query = String.Format("UPDATE [UserDetails] SET [PASSWORD] = '{0}' WHERE [USERNAME] = '{1}' AND [USERTYPE] = '{2}' ", cDB.Password, cDB.UserName, cDB.UserType);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }
Exemple #9
0
        public void createnewuser(Credential_DB cDB)
        {
            string         query = String.Format("Insert into UserDetails Values('{0}','{1}','{2}', '{3}')", cDB.Name, cDB.UserName, cDB.Password, cDB.UserType);
            Business_Logic BL    = new Business_Logic();

            BL.NonQuery(query);
        }