ITK-dev-shared-components 2.17.0__tar.gz → 2.17.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/PKG-INFO +1 -1
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/common.py +10 -8
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/search/search_advis.py +5 -3
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/PKG-INFO +1 -1
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/pyproject.toml +1 -1
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/LICENSE +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/README.md +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/login.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/search/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_case.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_letter.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_login.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/getorganized/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/getorganized/go_api.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/authentication.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/common.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/file.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/mail.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/site.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_cases.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_documents.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_notes.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/address_lookup.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/cpr_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/file_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/fmcacov.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/gridview_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/multi_session.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/opret_kundekontakt.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/sap_login.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/sap_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/tree_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/smtp/__init__.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/requires.txt +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
- {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.17.
|
|
3
|
+
Version: 2.17.1
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -4,7 +4,6 @@ import time
|
|
|
4
4
|
from typing import Literal
|
|
5
5
|
|
|
6
6
|
import uiautomation
|
|
7
|
-
from uiautomation import PatternId
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
TabName = Literal["Låneoplysninger", "Advis", "Låneafvikling", "Dokumenter", "Dokumentunderskrifter", "Hændelser"]
|
|
@@ -22,19 +21,18 @@ def get_tab(tab_name: TabName) -> uiautomation.TabItemControl:
|
|
|
22
21
|
return tab_control.TabItemControl(Name=f"DXTabItem{tab_name}", searchDepth=1)
|
|
23
22
|
|
|
24
23
|
|
|
25
|
-
def select_tab(tab_name: TabName):
|
|
26
|
-
"""Select the tab with the given name."""
|
|
27
|
-
get_tab(tab_name)
|
|
24
|
+
def select_tab(tab_name: TabName) -> uiautomation.TabItemControl:
|
|
25
|
+
"""Select the tab with the given name. Returns the tab object."""
|
|
26
|
+
tab = get_tab(tab_name)
|
|
27
|
+
tab.GetSelectionItemPattern().Select()
|
|
28
|
+
return tab
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
def pin_sidebar():
|
|
31
32
|
"""Unfold the search side bar and pin it."""
|
|
32
33
|
boliglaan = get_boliglaan()
|
|
33
34
|
group = boliglaan.GroupControl(AutomationId="DockLayoutManager", searchDepth=2)
|
|
34
|
-
|
|
35
|
-
pane = group.CustomControl(AutomationId="PART_LeftAutoHideTrayPanel")
|
|
36
|
-
pane.GetPattern(PatternId.ExpandCollapsePattern).Expand()
|
|
37
|
-
|
|
35
|
+
group.GroupControl(AutomationId="dockItem2").Click(simulateMove=False)
|
|
38
36
|
group.ButtonControl(AutomationId="PART_PinButton").GetInvokePattern().Invoke()
|
|
39
37
|
|
|
40
38
|
|
|
@@ -78,3 +76,7 @@ def save_case():
|
|
|
78
76
|
boliglaan = get_boliglaan()
|
|
79
77
|
toolbar = boliglaan.GroupControl(Name="None BarContainerControl", searchDepth=1)
|
|
80
78
|
toolbar.ButtonControl(Name="Gem/Dan brev...").GetInvokePattern().Invoke()
|
|
79
|
+
|
|
80
|
+
# Handle popup
|
|
81
|
+
popup = boliglaan.WindowControl(Name="Kvittering", searchDepth=1)
|
|
82
|
+
popup.ButtonControl(Name="Gem/Send breve", searchDepth=1).GetInvokePattern().Invoke()
|
|
@@ -31,6 +31,7 @@ class Advis:
|
|
|
31
31
|
date: date
|
|
32
32
|
cpr: str
|
|
33
33
|
case_number: str
|
|
34
|
+
case_type: str
|
|
34
35
|
type: str
|
|
35
36
|
state: str
|
|
36
37
|
|
|
@@ -75,7 +76,7 @@ def search_advis(cpr: str | None = None, date_from: date | None = None, date_to:
|
|
|
75
76
|
def select_advis(cpr: str, case_number: str):
|
|
76
77
|
"""Select the advis from the search list with the given cpr and case number."""
|
|
77
78
|
boliglaan = common.get_boliglaan()
|
|
78
|
-
rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).PaneControl(AutomationId="dataPresenter").GetChildren()
|
|
79
|
+
rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).GroupControl(Name="Advis").PaneControl(AutomationId="dataPresenter").GetChildren()
|
|
79
80
|
|
|
80
81
|
for row in rows:
|
|
81
82
|
row_case_number = row.CustomControl(foundIndex=2).GetPattern(uiautomation.PatternId.ValuePattern).Value
|
|
@@ -91,7 +92,7 @@ def select_advis(cpr: str, case_number: str):
|
|
|
91
92
|
def get_advis_list() -> list[Advis]:
|
|
92
93
|
"""Get the advis search result as a list of Advis objects."""
|
|
93
94
|
boliglaan = common.get_boliglaan()
|
|
94
|
-
rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).PaneControl(AutomationId="dataPresenter").GetChildren()
|
|
95
|
+
rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).GroupControl(Name="Advis").PaneControl(AutomationId="dataPresenter").GetChildren()
|
|
95
96
|
|
|
96
97
|
result = []
|
|
97
98
|
|
|
@@ -101,10 +102,11 @@ def get_advis_list() -> list[Advis]:
|
|
|
101
102
|
cpr = row.CustomControl(foundIndex=3).GetPattern(uiautomation.PatternId.ValuePattern).Value
|
|
102
103
|
type_ = row.CustomControl(foundIndex=4).GetPattern(uiautomation.PatternId.ValuePattern).Value
|
|
103
104
|
state = row.CustomControl(foundIndex=5).GetPattern(uiautomation.PatternId.ValuePattern).Value
|
|
105
|
+
case_type = row.CustomControl(foundIndex=7).GetPattern(uiautomation.PatternId.ValuePattern).Value
|
|
104
106
|
|
|
105
107
|
day, month, year = (int(part) for part in date_str.split("-"))
|
|
106
108
|
date_ = date(year, month, day)
|
|
107
109
|
|
|
108
|
-
result.append(Advis(date=date_, cpr=cpr, case_number=case_number, type=type_, state=state))
|
|
110
|
+
result.append(Advis(date=date_, cpr=cpr, case_number=case_number, type=type_, state=state, case_type=case_type))
|
|
109
111
|
|
|
110
112
|
return result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.17.
|
|
3
|
+
Version: 2.17.1
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|