예제 #1
0
def drawWarTable(where):
    titleText = Label(where,
                      font=("Liberation Sans", 20, "normal"),
                      text="Available Now",
                      fg="green").place(x=900, y=60)
    Describ = Label(
        where,
        text=
        "The following is a catalog of all pharmaceutical products available in your local warehouse for purchase and utility. You can request for products if not available.",
        wraplength=350,
        font=('Liberation Sans', 9, 'normal'),
        fg="black",
        justify=LEFT)
    WarTable = ttk.Treeview(where, height=12)
    WarTable['show'] = 'headings'
    WarTable["column"] = ("InvID", "MedID", "StkLim", "MfgDat", "ExpDat")
    WarTable.column("InvID", width=50)
    WarTable.column("MedID", width=50)
    WarTable.column("StkLim", width=70)
    WarTable.column("MfgDat", width=100)
    WarTable.column("ExpDat", width=100)
    WarTable.heading("InvID", text="InvID")
    WarTable.heading("MedID", text="MedID")
    WarTable.heading("StkLim", text="StkLim")
    WarTable.heading("MfgDat", text="MfgDat")
    WarTable.heading("ExpDat", text="ExpDat")
    receiveDat.wipeTableStats(WarTable)
    for recs in receiveDat.getAllWarehouse():
        WarTable.insert('', 0, text='', value=recs)
    WarTable.place(x=900, y=150)
    Describ.place(x=900, y=95)
예제 #2
0
 def OnlyMoodStab():
     receiveDat.wipeTableStats(MedTable)
     for recs in receiveDat.ViewMoodStab():
         MedTable.insert('', 0, text='', value=recs)
예제 #3
0
 def OnlyAntiSept():
     receiveDat.wipeTableStats(MedTable)
     for recs in receiveDat.ViewAntiSept():
         MedTable.insert('', 0, text='', value=recs)
예제 #4
0
 def fetchInputs():
     searched = searchMed.get()
     receiveDat.wipeTableStats(MedTable)
     for recs in receiveDat.RefreshMedi(searched):
         MedTable.insert('', 0, text='', value=recs)
예제 #5
0
 def OnlyTranquil():
     receiveDat.wipeTableStats(MedTable)
     for recs in receiveDat.ViewTranquil():
         MedTable.insert('', 0, text='', value=recs)
예제 #6
0
 def OnlyStimulan():
     receiveDat.wipeTableStats(MedTable)
     for recs in receiveDat.ViewStimulan():
         MedTable.insert('', 0, text='', value=recs)