| 1 |
nino.borges |
531 |
"""
|
| 2 |
|
|
|
| 3 |
|
|
ManagerReportsDialog
|
| 4 |
|
|
|
| 5 |
|
|
Created by
|
| 6 |
|
|
Emanuel Borges
|
| 7 |
|
|
01.24.2014
|
| 8 |
|
|
|
| 9 |
|
|
This dialog will let a manger run reports on the TPM cases.
|
| 10 |
|
|
|
| 11 |
|
|
"""
|
| 12 |
|
|
|
| 13 |
|
|
|
| 14 |
|
|
import wx, os
|
| 15 |
|
|
|
| 16 |
|
|
class ManagerReportsDialog(wx.Dialog):
|
| 17 |
|
|
def __init__(self, parent,tpmList):
|
| 18 |
|
|
#self.CLM = CLM
|
| 19 |
|
|
self.parent = parent
|
| 20 |
|
|
wx.Dialog.__init__(self, parent, -1, "Manager TPM Reports", style = wx.DEFAULT_DIALOG_STYLE, size = (430,150))
|
| 21 |
|
|
reportStaticText = wx.StaticText(self, -1, "Report:",wx.DefaultPosition)
|
| 22 |
|
|
self.reportChoice = wx.Choice(self,-1,choices=['Active Cases','All Cases','Unassigned Cases'])
|
| 23 |
|
|
tpmStaticText = wx.StaticText(self, -1, "TPM:",wx.DefaultPosition)
|
| 24 |
|
|
self.tpmChoice = wx.Choice(self,-1,choices=tpmList)
|
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
|
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
| 28 |
|
|
topSizer = wx.BoxSizer(wx.HORIZONTAL)
|
| 29 |
|
|
reportSizer = wx.BoxSizer(wx.HORIZONTAL)
|
| 30 |
|
|
reportSizer.Add(reportStaticText,0,wx.ALL,5)
|
| 31 |
|
|
reportSizer.Add(self.reportChoice,0,wx.ALL,5)
|
| 32 |
|
|
|
| 33 |
|
|
tpmSizer = wx.BoxSizer(wx.HORIZONTAL)
|
| 34 |
|
|
tpmSizer.Add(tpmStaticText,0,wx.ALL,5)
|
| 35 |
|
|
tpmSizer.Add(self.tpmChoice,0,wx.ALL,5)
|
| 36 |
|
|
|
| 37 |
|
|
topSizer.Add(reportSizer,0,wx.ALL, 10)
|
| 38 |
|
|
topSizer.Add(tpmSizer,0,wx.ALL, 10)
|
| 39 |
|
|
mainSizer.Add(topSizer,0,wx.ALL, 10)
|
| 40 |
|
|
oKButton = wx.Button(self, wx.ID_OK)
|
| 41 |
|
|
oKButton.SetDefault()
|
| 42 |
|
|
cancelButton = wx.Button(self, wx.ID_CANCEL)
|
| 43 |
|
|
buttonSizer = wx.BoxSizer(wx.HORIZONTAL)
|
| 44 |
|
|
buttonSizer.Add(oKButton,0,wx.ALL,5)
|
| 45 |
|
|
buttonSizer.Add(cancelButton,0,wx.ALL,5)
|
| 46 |
|
|
mainSizer.Add(buttonSizer, 0, wx.ALIGN_CENTER|wx.ALL, 15)
|
| 47 |
|
|
self.SetSizer(mainSizer)
|
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
def GetValues(self):
|
| 51 |
|
|
return self.reportChoice.GetStringSelection(), self.tpmChoice.GetStringSelection()
|