Spaces:
Sleeping
Sleeping
Update SchedBuilderUtyModule.py
Browse files- SchedBuilderUtyModule.py +9 -2
SchedBuilderUtyModule.py
CHANGED
|
@@ -273,8 +273,6 @@ def pullTbls(FtBook,TempBook,AssnBook,PollBook): #Need to make volunteer shift
|
|
| 273 |
addTBL("xRef",fields=["dispNm","trnNm"],data=g,addOn=False) #Skill name cross ref table for fcn dispToTrn to work
|
| 274 |
addTBL("FTinfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=a,addOn=False)
|
| 275 |
addTBL("TempInfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=c,addOn=False)
|
| 276 |
-
# addTBL("FTinfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],dTypes=['NUM','TEXT','NUM','TEXT','TEXT','NUM','NUM','NUM'],data=a,addOn=False)
|
| 277 |
-
# addTBL("TempInfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],dTypes=['INTEGER','TEXT','INTEGER','TEXT','TEXT','INTEGER','INTEGER','INTEGER'],data=c,addOn=False)
|
| 278 |
#Generate a master seniority table.. following replaces hire date with integers for temps
|
| 279 |
senHiLoTemps=viewTBL('TempInfo',sortBy=[('sen','ASC')]) #First retrieve list of temps, most senior to least
|
| 280 |
i=100000 #Start new seniority number at arbitrarily high value not to interfere with full timer
|
|
@@ -369,6 +367,15 @@ def getEEinfo(FtBook,TempBook): #Need to make volunteer shift data puller
|
|
| 369 |
addTBL("TempInfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=c,addOn=False)
|
| 370 |
addTBL("sklMtx",fields=["EEID","trnNm"],data=b,addOn=False) #Overwrite all training data and populate FT ops, then append temps for a master table
|
| 371 |
addTBL("sklMtx",fields=["EEID","trnNm"],data=d,addOn=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
return a,c
|
| 373 |
|
| 374 |
def addRecs(flNm,shNm,tblNm,data):
|
|
|
|
| 273 |
addTBL("xRef",fields=["dispNm","trnNm"],data=g,addOn=False) #Skill name cross ref table for fcn dispToTrn to work
|
| 274 |
addTBL("FTinfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=a,addOn=False)
|
| 275 |
addTBL("TempInfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=c,addOn=False)
|
|
|
|
|
|
|
| 276 |
#Generate a master seniority table.. following replaces hire date with integers for temps
|
| 277 |
senHiLoTemps=viewTBL('TempInfo',sortBy=[('sen','ASC')]) #First retrieve list of temps, most senior to least
|
| 278 |
i=100000 #Start new seniority number at arbitrarily high value not to interfere with full timer
|
|
|
|
| 367 |
addTBL("TempInfo",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=c,addOn=False)
|
| 368 |
addTBL("sklMtx",fields=["EEID","trnNm"],data=b,addOn=False) #Overwrite all training data and populate FT ops, then append temps for a master table
|
| 369 |
addTBL("sklMtx",fields=["EEID","trnNm"],data=d,addOn=True)
|
| 370 |
+
#Generate a master seniority table.. following replaces hire date with integers for temps
|
| 371 |
+
senHiLoTemps=viewTBL('TempInfo',sortBy=[('sen','ASC')]) #First retrieve list of temps, most senior to least
|
| 372 |
+
i=100000 #Start new seniority number at arbitrarily high value not to interfere with full timer
|
| 373 |
+
for row in senHiLoTemps:
|
| 374 |
+
row[0]=i
|
| 375 |
+
i+=1
|
| 376 |
+
#Overwrite/make new master sen ref table. Then append the Temp data with integerized values
|
| 377 |
+
addTBL("senRef",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=a,addOn=False)
|
| 378 |
+
addTBL("senRef",fields=['sen','crew','id','last','first','ytd','totref','totchrg','wtdOT'],data=senHiLoTemps,addOn=True)
|
| 379 |
return a,c
|
| 380 |
|
| 381 |
def addRecs(flNm,shNm,tblNm,data):
|