Beispiel #1
0
    def srcbtn(self, event):
        data = sq.wxsqsel('employee.db', 'employ', 'employid ,family , name')
        fild_title = [u'نام', u'نام خانوادگي', u'کد پرسنل']
        siz = (190, 380)
        '''
                gr = wx.Dialog(self)
		dlg = sr.MyPanel1(gr,data,fild_title)
		gr.SetSize((190,380))
		gr.ShowModal()
		fs = dlg.retdata()
		'''
        gr = src.srch(self, siz, data, fild_title)
        gr.ShowModal()
        fs = gr.backdata()
        #filds = self.showrecord(fs[0])
        filds = self.sndget.showrecord(fs[0])

        #print filds

        self.shiftid = filds[0][2]
        self.groupid = filds[0][3]

        #print filds[0]
        self.employfield(filds[0])
Beispiel #2
0
 def gReven(self):
     return sq.wxsqsel('ABR.db', 'Revenu')
Beispiel #3
0
 def groplist(self):
     return sq.wxsqsel('employee.db', 'Groups', '*')
Beispiel #4
0
 def gCmpny(self):
     return sq.wxsqsel('ABR.db', 'Company')
Beispiel #5
0
 def shiftlist(self):
     return sq.wxsqsel('employee.db', 'Shifts', '*')