Example #1
0
    def on_radio_button_clicked(self):
        Administration = Admin()
        date1 = self.txtdate1.text()
        date2 = self.txtdate2.text()

        if self.r1.isChecked():
            r = Administration.mostsold(date1, date2)
        elif self.r2.isChecked():
            r = Administration.mostsold2(date1, date2)
        elif self.r3.isChecked():
            r = Administration.ten_customer(date1, date2)
        elif self.r4.isChecked():
            r = Administration.five_zip(date1, date2)
        elif self.r5.isChecked():
            r = Administration.avg_price(date1, date2)

        msg = tupleMsg(r)
        self.showMessage(msg)
Example #2
0
    def on_radio_button_clicked(self):
        User_view = User(self.CID)
        pname = self.txtpname.text()
        ptype = self.txtptype.text()
        status = self.txtstatus.text()

        if self.r11.isChecked():
            r = User_view.ccoption()
        elif self.r12.isChecked():
            r = User_view.addoption()
        elif self.r1.isChecked():
            r = User_view.viewprofile()
        elif self.r2.isChecked():
            r = User_view.viewhistory()
        elif self.r3.isChecked():
            r = User_view.viewbypname(pname)
        elif self.r4.isChecked():
            r = User_view.viewbyptype(ptype)
        elif self.r5.isChecked():
            r = User_view.viewbystatus(status)

        msg = tupleMsg(r)
        print(msg)
        self.showMessage(msg)
Example #3
0
 def lookupButton(self):
     status = self.txtview.text()
     admin = Admin()
     r = admin.viewbystatus(status)
     self.showMessage(tupleMsg(r))
Example #4
0
 def viewshipaddButton(self):
     cart = Cart(self.CID)
     r = cart.addoption()
     self.showMessage("Shipping", tupleMsg(r))
Example #5
0
 def viewpayButton(self):
     cart = Cart(self.CID)
     r = cart.ccoption()     
     self.showMessage("Payment", tupleMsg(r))
Example #6
0
 def viewcartButton(self):
     cart = Cart(self.CID)
     r = cart.view()     
     self.showMessage("Cart", tupleMsg(r))
Example #7
0
 def viewButton(self):
     ptype = self.combobox.currentText()
     cart = Cart(self.CID)
     r = cart.viewbytype(ptype)     
     self.showMessage(ptype, tupleMsg(r))