def fPrint_SlipListCalc(pReportMonth,pRepExt): #---------------------------------------------------# myTools.sectionStartTimeStamp("print slipcalcs") # name report file: ex: UDSlip1-03 reportName = myTools.buildRepName("UDSCalc",pRepExt) logging.debug('Print_UDSCalc: ' + reportName) myTools.getFocus() logging.debug('- open report list') type("r",KeyModifier.ALT) type("s") time.sleep(1) logging.debug('- choose report') type("uds c") time.sleep(1) # fSort_SlipReportFields() fChoose_CSV_Print(reportName) myTools.waitForReport() reports_Compare.Compare_OneReport(reportName) # close the report type(Key.F4,KeyModifier.CTRL) time.sleep(1) type("n") type(Key.F4,KeyModifier.CTRL) myTools.sectionEndTimeStamp()
def fPrint_SlipFields(pReportMonth,pRepExt): #---------------------------------------------------# # this does not include applied fields, since we fixed some stuff in ts2016 myTools.sectionStartTimeStamp("print slipfields") # name report file: ex: UDSlip1-03 reportName = myTools.buildRepName("UDSlip2",pRepExt) logging.debug('Print_UDSlip2: ' + reportName) myTools.getFocus() logging.debug('- open report list') type("r",KeyModifier.ALT) type("s") time.sleep(1) logging.debug('- choose report') type("UDS SlipFields") time.sleep(1) # fSort_SlipReportFields() fChoose_CSV_Print(reportName) myTools.waitForReport() reports_Compare.Compare_OneReport(reportName) # close the report type(Key.F4,KeyModifier.CTRL) time.sleep(1) type("n") type(Key.F4,KeyModifier.CTRL) myTools.sectionEndTimeStamp()
def fPrint_ClientListValues(pReportMonth,pRepExt): #---------------------------------------------------# myTools.sectionStartTimeStamp("print clientvalues") # name report file: ex: UDSlip1-03 reportName = myTools.buildRepName("UDClient2",pRepExt) logging.debug('Print_UDClient2: ' + reportName) myTools.getFocus() logging.debug('- open report list') type("r",KeyModifier.ALT) type("c") time.sleep(1) logging.debug('- choose report') type("ud") time.sleep(1) myTools.pressDOWN(1) time.sleep(1) # choose CSV myTools.pressSHIFTTAB(2) time.sleep(1) type("c") time.sleep(1) # print the report type(Key.ENTER) time.sleep(1) # fill in path and name type(Settings.repFolder + "\\" + reportName) time.sleep(1) # export column titles myTools.pressTAB(2) time.sleep(1) type(Key.SPACE) time.sleep(1) # press ENTER to print type(Key.ENTER) # wait for report to complete myTools.waitForReport() # compare the report with baseline reports_Compare.Compare_OneReport(reportName) # close the report type(Key.F4,KeyModifier.CTRL) myTools.sectionEndTimeStamp()
def Print_TkContribution(pReportMonth,pRepExt): #---------------------------------------------------# myTools.sectionStartTimeStamp("print tkcontribution") # name report file: ex: TkCC-03 reportName = myTools.buildRepName("TkContrib",pRepExt) logging.debug('Print_TkContrib: ' + reportName) # make sure timeslips has focus myTools.getFocus() logging.debug('- open report') type("r",KeyModifier.ALT) type("t") time.sleep(2) type("timekeeper con") time.sleep(1) type("o",KeyModifier.CTRL) time.sleep(1) logging.debug('- default options') # options button myTools.pressSHIFTTAB(4) type(Key.ENTER) time.sleep(1) # default button myTools.pressSHIFTTAB(4) type(Key.ENTER) time.sleep(1) # ITD myTools.pressSHIFTTAB(3) time.sleep(1) type("i") time.sleep(1) # close dialog type(Key.ENTER) time.sleep(1) logging.debug('- print report') # move to Print To and choose CSV myTools.pressTAB(2) type("c") time.sleep(1) # print the report type(Key.ENTER) time.sleep(1) # fill in path and name; press ENTER type(Settings.repFolder + "\\" + reportName) time.sleep(1) type(Key.ENTER) # wait for report to complete myTools.waitForReport() # compare the report with baseline reports_Compare.Compare_OneReport(reportName) # close the report type(Key.F4,KeyModifier.CTRL) time.sleep(1) type("n") type(Key.F4,KeyModifier.CTRL) myTools.sectionEndTimeStamp()