本文整理汇总了Python中myTools.sectionStartTimeStamp函数的典型用法代码示例。如果您正苦于以下问题:Python sectionStartTimeStamp函数的具体用法?Python sectionStartTimeStamp怎么用?Python sectionStartTimeStamp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sectionStartTimeStamp函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: fCreate_FinanceCharges
def fCreate_FinanceCharges(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("finance" + str(pMonth))
logging.debug('Create_FinanceCharges: ' + str(pMonth))
allClients = names_Init.fInit_Clients()
count = 0
myTools.getFocus()
# client list
type("i",KeyModifier.CTRL)
for oneClient in allClients:
count += 1
# always create finance charge for first 5 clients
# then create finance charge for 1 out of 35 next clients
if (count in range(6)) or ((count + pMonth) % 35 == 0):
financeCharge = str(count) + ".99"
fCreate_OneFinanceCharge(oneClient,count,pMonth,financeCharge)
else:
logging.debug('-- skip: ' + str(pMonth) + "-" + oneClient)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:28,代码来源:client_FinanceCharges.py
示例2: fPrecision_Setup
def fPrecision_Setup():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba Precision")
logging.debug("ba Precision")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-Precision")
type(Key.ENTER)
time.sleep(1)
# get to Rounding field
if int(Settings.tsVersion) < 2015:
myTools.pressF6(4)
time.sleep(1)
myTools.pressTAB(8)
else:
myTools.pressF6(7)
time.sleep(1)
myTools.pressTAB(7)
time.sleep(1)
type(Key.UP)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:ba_Precision.py
示例3: fCreate_CreditsForMonth
def fCreate_CreditsForMonth(pMonth):
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("credits" + str(pMonth))
logging.debug("Create_CreditsForMonth: " + str(pMonth))
allClients = names_Init.fInit_Clients()
count = 0
myTools.getFocus()
# open a/r tran list
type("t", KeyModifier.CTRL)
myTools.waitForTransList()
for oneClient in allClients:
count += 1
# always create credits for first 5 clients
# then create credits for 1 out of 9 next clients
if (count in range(6)) or ((count + pMonth) % 9 == 0):
creditAmount = pMonth + pMonth / float(100)
fCreate_OneCredit(oneClient, count, pMonth, creditAmount)
else:
logging.debug("-- skip: " + str(pMonth) + "-" + oneClient)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:33,代码来源:trans_Credits.py
示例4: fSetup_ClientHold
def fSetup_ClientHold():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("set up client hold")
logging.debug('set up client hold')
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open client list')
type("n",KeyModifier.ALT)
type("i")
time.sleep(1)
fHold_Time_NextBill_Hours()
fHold_Exp_AllBills_Amount()
fHold_Bill_AllBills_AmountAndHours()
fHold_AR_AllBills()
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:client_Hold.py
示例5: fContingencyExp_Setup2
def fContingencyExp_Setup2(pBAClient):
#---------------------------------------------------#
myTools.sectionStartTimeStamp(pBAClient + "2")
logging.debug(pBAClient + "2")
# open client
myTools.openClient(pBAClient)
# get to arrangement field for exp
ba__Common.fMoveto_BAPage()
myTools.pressTAB(6)
# enter details
type(Key.ENTER)
time.sleep(1)
# if int(Settings.tsVersion) > 2014:
# myTools.pressTAB(1)
# else:
myTools.pressTAB(2)
type(Key.DOWN)
# save and close
type(Key.ENTER)
type("s",KeyModifier.CTRL)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:33,代码来源:ba_Contingency_Exp.py
示例6: fFundsAccouts_Setup
def fFundsAccouts_Setup():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("funds account")
logging.debug('FundsAccount_Setup')
# make sure timeslips has focus
myTools.getFocus()
# switch date to 1/27/13
fSet_BillDate(1)
fBankAccount_Create()
# open client list
type("i",KeyModifier.CTRL)
time.sleep(1)
clientList = ["Hadley","Halifax"]
count = 0
for oneCli in clientList:
count += 1
fFundsAccount_Create(oneCli,count)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:26,代码来源:client_FundsNew.py
示例7: fEdit_Client
def fEdit_Client():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("edit client")
logging.debug('Edit_Client')
# make sure timeslips has focus
myTools.getFocus()
fEdit_CliGenInfo()
fEdit_CliCustom()
fEdit_CliRatesNotes()
logging.debug('- save')
type("s",KeyModifier.CTRL)
time.sleep(1)
fEdit_DefaultRates()
fEdit_InterestSetting()
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:client_Edit.py
示例8: fCreate_ReplacementSlips
def fCreate_ReplacementSlips(pReplClient):
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("replacement slips")
logging.debug("fCreate_ReplacementSlips")
type("m", KeyModifier.CTRL)
time.sleep(1)
# create some time slips
slips_Create.Create_OneSlip("t", "TomH", "gen004", pReplClient, 1) # override - General
slips_Create.Create_OneSlip("t", "CoreyM", "gen005", pReplClient, 2) # donotbill - General
slips_Create.Create_OneSlip("t", "SamS", "lnd011", pReplClient, 3) # billable - Landscape
slips_Create.Create_OneSlip("t", "ShawnR", "lnd010", pReplClient, 4) # nocharge - Landscape
slips_Create.Create_OneSlip("t", "JamesR", "lnd011", pReplClient, 5) # billable - Landscape
# create some expense slips
slips_Create.Create_OneSlip("e", "ShawnR", "e006", pReplClient, 6) # donotbill - Supplies
slips_Create.Create_OneSlip("e", "SamS", "e009", pReplClient, 7) # billable - Supplies
slips_Create.Create_OneSlip("e", "CoreyM", "e003", pReplClient, 8) # nocharge - Supplies
slips_Create.Create_OneSlip("e", "TomH", "e008", pReplClient, 9) # override - Supplies
slips_Create.Create_OneSlip("e", "JamesR", "e010", pReplClient, 10) # billable - Other
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:28,代码来源:slips_ReplacementSlips.py
示例9: fPrint_FeeAllocPer
def fPrint_FeeAllocPer(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print FeeAllocPer")
# name report file: ex: PreBill-03
reportName = myTools.buildRepName("FeeAllocPer",pRepExt)
logging.debug('Print_FeeAllocPer: ' + reportName)
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open FeeAllocPer')
type("r",KeyModifier.ALT)
type("t")
time.sleep(1)
myTools.pressDOWN(3)
time.sleep(1)
# choose csv
myTools.pressSHIFTTAB(2)
type("c")
time.sleep(1)
myTools.enterCurrentMonthOnList(pReportMonth)
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:31,代码来源:report_FeeAllocPer.py
示例10: fSetup_SplitBills
def fSetup_SplitBills():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("setup split")
logging.debug('- set up split bills')
myTools.getFocus()
# open split billing rule list
type("b",KeyModifier.ALT)
time.sleep(1)
type("i")
time.sleep(1)
fSetup_Primary("Beverly")
# new secondary
myTools.pressTAB(7)
fSetup_Secondary("Peabody",15)
fSetup_Secondary("Saugus",20)
# done
myTools.pressTAB(4)
type(Key.SPACE)
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint("split")
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:27,代码来源:bill_Split.py
示例11: fStartTS_CreateNewDB
def fStartTS_CreateNewDB():
#---------------------------------------------------#
"""
main driver
- calls fDelete_DataFolder, fStart_TS, fCheckFor_PEP,
- calls fEnter_NewDBWizard, fEnter_GeneralSettings, fEnter_GettingStartedWizard
- makes backup "-new"
"""
myTools.sectionStartTimeStamp("new db")
logging.debug('StartTS_CreateNewDB')
popup("make sure Timeslips is closed")
fDelete_DataFolder()
fStart_TS()
fCheckFor_PEP()
fEnter_NewDBWizard()
fEnter_GeneralSettings()
fEnter_GettingStartedWizard()
# backup
time.sleep(1)
if exists("backup_database.png"):
click("no_btn.png")
time.sleep(1)
type("n")
fCheckFor_BillingDate()
fCheckFor_SPS()
fCheckFor_PEP()
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint("new")
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:db_New.py
示例12: fCreate_Discounts
def fCreate_Discounts(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("discounts" + str(pMonth))
logging.debug('fCreate_Discounts: ' + str(pMonth))
# list the client that will get a refund each month
discountClients = ["Natick","Orange","Oakham","Oak Bluffs","Southampton","Otis","Oxford","Leyden","Monroe","Monson","Methuen","Uxbridge"]
oneClient = discountClients[(pMonth - 1)]
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
discountAmount = 49 + pMonth/float(100)
fCreate_OneDiscount(oneClient,pMonth,discountAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:trans_Discounts.py
示例13: fCreate_Categories
def fCreate_Categories():
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("categories")
logging.debug("fCreate_Categories")
# make sure timeslips has focus
myTools.getFocus()
logging.debug("- open category list")
type("p", KeyModifier.ALT)
# hot keys changed for TS2014
if int(Settings.tsVersion) < 2014:
type("i")
else:
type("o")
time.sleep(1)
for category in ["Construction", "General", "Landscape", "Hardware", "Supplies", "Materials", "Other"]:
logging.debug("-- create: " + category)
type("n", KeyModifier.ALT)
type(category)
type(Key.ENTER)
logging.debug("- close list")
myTools.pressTAB(4)
type(Key.ENTER)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:settings_Categories.py
示例14: fProgressTotal_Setup3
def fProgressTotal_Setup3():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot3")
logging.debug("ba ProgressTot3")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(5)
# enter details
type(Key.ENTER)
time.sleep(1)
type("700")
time.sleep(1)
type("u", KeyModifier.ALT)
type(Key.END)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py
示例15: fCreate_Transfers
def fCreate_Transfers(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("transfers" + str(pMonth))
logging.debug('Create_Transfers: ' + str(pMonth))
allClients = ["East.Bridgewater","North.Adams","West.Boylston"]
count = 0
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
for oneClient in allClients:
count += 1
transferAmount = 10 + int(count) + pMonth/float(100)
fCreate_OneTransfer(oneClient,count,pMonth,transferAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:26,代码来源:trans_Transfers.py
示例16: fCreate_Writeoffs
def fCreate_Writeoffs(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("writeoffs" + str(pMonth))
logging.debug('Create_Writeoffs: ' + str(pMonth))
count = 0
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
clientList = ["Blackstone","Carver"]
for woClient in clientList:
count += 1
if woClient == "Blackstone":
woAmount = 2
else:
woAmount = 3
woAmount = woAmount + pMonth/float(100)
fCreate_OneWriteOff(woClient,count,pMonth,woAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:trans_Writeoff.py
示例17: fProgressTotal_Setup1
def fProgressTotal_Setup1():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot1")
logging.debug("ba ProgressTot1")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(4)
# switch to minimum
type(Key.HOME)
myTools.pressDOWN(11)
# enter details
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type("500")
time.sleep(1)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KEY_CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py
示例18: fPrint_SlipFields
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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:33,代码来源:report_UDSlip.py
示例19: fPrint_SlipListCalc
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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:report_UDSlip.py
示例20: fBudget_Setup
def fBudget_Setup():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("budgets")
logging.debug('budgets')
myTools.getFocus()
# open budget setup
type("n", KeyModifier.ALT)
type("b")
time.sleep(1)
if (int(Settings.tsVersion) > 2016) and (Settings.tsDB == "PREM"):
fTimekeeperBudget_New()
fClientBudget_New()
fFirmBudget_New()
else:
fTimekeeperBudget()
fClientBudget()
fFirmBudget()
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:25,代码来源:budget_Setup.py
注:本文中的myTools.sectionStartTimeStamp函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论