예제 #1
0
 def works_set(plan):
     focus_win()
     move_click(data_xyz['點擊工作計畫'])
     move_click(data_xyz[plan])
     move_click(data_xyz['選取計劃按鈕'])
     time.sleep(1)
     focus_dialog(data_xyz['選取計劃視窗'])
     move_click(data_xyz[f'選取計劃_{plan}'])
     move_click(data_xyz['整筆儲存'])
     time.sleep(1)
     auto.hotkey('enter')
예제 #2
0
    def form_input(self):
        focus_win()
        data = jdata['支付證明申請']
        data_xyz = data['明細檔輸入']
        move_click(data_xyz['明細檔資料'])
        toggle = True

        while toggle == True:
            time.sleep(1)
            auto.confirm(text='記得先選擇預算科目', title='', buttons=['OK', 'Cancel'])
            res = input("...輸入'r'輸入資料\n...輸入'c'回主選單\n")
            if res == 'r':
                focus_win()
                payment_form_input()
            elif res == 'c':
                toggle = False
예제 #3
0
 def payment_signup(self):
     focus_win()
     data = jdata['支付證明申請']
     #點擊支付證明採購
     move_click(data['點擊支付證明採購'])
     #點擊支付證明申請
     move_click(data['點擊支付證明申請'])
     #點擊新增
     move_click(data['點擊新增'])
    def department_entry(self):
        target = "http://gasys.ttu.edu.tw/?filter=budgetYearId ='025'&tablenames=ProjectPlan&fields=departmentId, - Internet Explorer"
        data = jdata['各單位憑證資料輸入']

        for source in data['部門']:
            print(source)
        response = input("輸入編號: ")
        focus_win()
        move_click(data['點擊各單位憑證資料輸入'])
        move_click(data['點擊新增'])
        move_click(data['申請單位'])
        move_click(data['設科所'])

        data_xyz = data['經費來源']
        move_click(data_xyz['點擊經費來源'])
        if response == '1':
            move_click(data_xyz['國科會'])
        elif response == '2':
            move_click(data_xyz['教育部'])
        elif response == '3':
            move_click(data_xyz['大同公司'])

        move_click(data['點擊查詢'])
        focus_dialog(target)
        data_xyz = data['計畫名稱']
        if response == '1':
            move_click(data_xyz['人工智慧'])
        elif response == '2':
            move_click(data_xyz['跨領域創新'])
        elif response == '3':
            move_click(data_xyz['大同寶寶'])

        move_click(data['查詢'])
예제 #5
0
    def purchasing_signup(self):
        focus_win()
        data_xyz = jdata['直接採購登錄']
        move_click(data_xyz['點擊直接採購登錄'])
        move_click(data_xyz['點擊新增'])
        move_click(data_xyz['點擊查詢'])

        toggle = True

        while toggle == True:
            response = input("...任意鍵繼續\n...輸入'c'回主選單\n")
            if response != 'c':
                focus_win()
                move_click(data_xyz['查詢鈕'])
                time.sleep(1)
                focus_dialog(data_xyz['廠商'])
                move_click(data_xyz['使用者自行採購'])
                move_click(data_xyz['整筆儲存'])
                auto.hotkey('enter')
                move_click(data_xyz['採購數量'])
                auto.hotkey('ctrl', 'a')
                text_input('1')
                move_click(data_xyz['儲存'])
                move_click(data_xyz['整筆儲存'])
                time.sleep(1)
                auto.hotkey('enter')
            elif response == 'c':
                print('/'*15)
                toggle = False