notebookvb
This commit is contained in:
@@ -8,12 +8,16 @@ from datetime import date
|
||||
import customtkinter as ctk
|
||||
from tkinter import messagebox
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent.parent
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
if not getattr(sys, "frozen", False):
|
||||
_project_root = Path(__file__).resolve().parent.parent.parent.parent
|
||||
sys.path.insert(0, str(_project_root))
|
||||
|
||||
from Knihovny.najdi_dropbox import get_dropbox_root
|
||||
from Knihovny.vzpb2b_client import VZPB2BClient
|
||||
from Knihovny.EmailMessagingGraph import send_mail
|
||||
|
||||
DROPBOX = Path(get_dropbox_root())
|
||||
|
||||
EMAIL_CHYBY = "vladimir.buzalka@buzalka.cz"
|
||||
|
||||
def _zpracuj_chybu(exc: BaseException):
|
||||
@@ -38,7 +42,10 @@ def _zpracuj_chybu(exc: BaseException):
|
||||
|
||||
# ── KONFIGURACE ───────────────────────────────────────────────────────────────
|
||||
|
||||
PFX_PATH = Path(r"U:\OrdinaceProjekt\Insurance\Certificates\picka.pfx")
|
||||
if getattr(sys, "frozen", False):
|
||||
PFX_PATH = Path(sys._MEIPASS) / "picka.pfx"
|
||||
else:
|
||||
PFX_PATH = Path(r"U:\OrdinaceProjekt\Insurance\Certificates\picka.pfx")
|
||||
PFX_PASS = "Vlado7309208104+"
|
||||
|
||||
ODBORNOSTI_NAZVY = {
|
||||
|
||||
@@ -4,8 +4,8 @@ a = Analysis(
|
||||
['KdoJeLekarApp.py'],
|
||||
pathex=[r'U:\OrdinaceProjekt'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=['customtkinter', 'msal', 'requests_pkcs12'],
|
||||
datas=[(r'U:\OrdinaceProjekt\Insurance\Certificates\picka.pfx', '.')],
|
||||
hiddenimports=['customtkinter', 'msal', 'requests_pkcs12', 'winreg'],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -3,6 +3,9 @@
|
||||
('Knihovny.EmailMessagingGraph',
|
||||
'U:\\OrdinaceProjekt\\Knihovny\\EmailMessagingGraph.py',
|
||||
'PYMODULE'),
|
||||
('Knihovny.najdi_dropbox',
|
||||
'U:\\OrdinaceProjekt\\Knihovny\\najdi_dropbox.py',
|
||||
'PYMODULE'),
|
||||
('Knihovny.vzpb2b_client',
|
||||
'U:\\OrdinaceProjekt\\Knihovny\\vzpb2b_client.py',
|
||||
'PYMODULE'),
|
||||
|
||||
Binary file not shown.
@@ -19,6 +19,7 @@
|
||||
<span class="moduletype">Script</span> <div class="import">
|
||||
imports:
|
||||
<a href="#Knihovny.EmailMessagingGraph">Knihovny.EmailMessagingGraph</a>
|
||||
• <a href="#Knihovny.najdi_dropbox">Knihovny.najdi_dropbox</a>
|
||||
• <a href="#Knihovny.vzpb2b_client">Knihovny.vzpb2b_client</a>
|
||||
• <a href="#_collections_abc">_collections_abc</a>
|
||||
• <a href="#_weakrefset">_weakrefset</a>
|
||||
@@ -188,6 +189,7 @@ imports:
|
||||
• <a href="#types">types</a>
|
||||
• <a href="#warnings">warnings</a>
|
||||
• <a href="#weakref">weakref</a>
|
||||
• <a href="#winreg">winreg</a>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -398,6 +400,7 @@ imported by:
|
||||
<span class="moduletype">Package</span> <div class="import">
|
||||
imported by:
|
||||
<a href="#Knihovny.EmailMessagingGraph">Knihovny.EmailMessagingGraph</a>
|
||||
• <a href="#Knihovny.najdi_dropbox">Knihovny.najdi_dropbox</a>
|
||||
• <a href="#Knihovny.vzpb2b_client">Knihovny.vzpb2b_client</a>
|
||||
|
||||
</div>
|
||||
@@ -426,6 +429,25 @@ imported by:
|
||||
|
||||
</div>
|
||||
|
||||
<div class="node">
|
||||
<a name="Knihovny.najdi_dropbox"></a>
|
||||
<a target="code" href="///U:/OrdinaceProjekt/Knihovny/najdi_dropbox.py" type="text/plain"><tt>Knihovny.najdi_dropbox</tt></a>
|
||||
<span class="moduletype">SourceModule</span> <div class="import">
|
||||
imports:
|
||||
<a href="#Knihovny">Knihovny</a>
|
||||
• <a href="#json">json</a>
|
||||
• <a href="#os">os</a>
|
||||
• <a href="#winreg">winreg</a>
|
||||
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#KdoJeLekarApp.py">KdoJeLekarApp.py</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="node">
|
||||
<a name="Knihovny.vzpb2b_client"></a>
|
||||
<a target="code" href="///U:/OrdinaceProjekt/Knihovny/vzpb2b_client.py" type="text/plain"><tt>Knihovny.vzpb2b_client</tt></a>
|
||||
@@ -13112,7 +13134,6 @@ imports:
|
||||
• <a href="#importlib">importlib</a>
|
||||
• <a href="#importlib._bootstrap">importlib._bootstrap</a>
|
||||
• <a href="#importlib._bootstrap_external">importlib._bootstrap_external</a>
|
||||
• <a href="#importlib.machinery">importlib.machinery</a>
|
||||
• <a href="#sys">sys</a>
|
||||
• <a href="#warnings">warnings</a>
|
||||
|
||||
@@ -13250,7 +13271,6 @@ imports:
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#ctypes.util">ctypes.util</a>
|
||||
• <a href="#importlib">importlib</a>
|
||||
• <a href="#importlib.abc">importlib.abc</a>
|
||||
• <a href="#inspect">inspect</a>
|
||||
• <a href="#pkgutil">pkgutil</a>
|
||||
@@ -13908,7 +13928,8 @@ imports:
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#charset_normalizer.models">charset_normalizer.models</a>
|
||||
<a href="#Knihovny.najdi_dropbox">Knihovny.najdi_dropbox</a>
|
||||
• <a href="#charset_normalizer.models">charset_normalizer.models</a>
|
||||
• <a href="#customtkinter.windows.widgets.theme.theme_manager">customtkinter.windows.widgets.theme.theme_manager</a>
|
||||
• <a href="#json.decoder">json.decoder</a>
|
||||
• <a href="#json.encoder">json.encoder</a>
|
||||
@@ -22832,6 +22853,7 @@ imports:
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#KdoJeLekarApp.py">KdoJeLekarApp.py</a>
|
||||
• <a href="#Knihovny.najdi_dropbox">Knihovny.najdi_dropbox</a>
|
||||
• <a href="#PIL.AvifImagePlugin">PIL.AvifImagePlugin</a>
|
||||
• <a href="#PIL.BlpImagePlugin">PIL.BlpImagePlugin</a>
|
||||
• <a href="#PIL.BmpImagePlugin">PIL.BmpImagePlugin</a>
|
||||
@@ -28028,7 +28050,9 @@ imported by:
|
||||
<a name="winreg"></a>
|
||||
<tt>winreg</tt> <span class="moduletype"><i>(builtin module)</i></span> <div class="import">
|
||||
imported by:
|
||||
<a href="#darkdetect._windows_detect">darkdetect._windows_detect</a>
|
||||
<a href="#KdoJeLekarApp.py">KdoJeLekarApp.py</a>
|
||||
• <a href="#Knihovny.najdi_dropbox">Knihovny.najdi_dropbox</a>
|
||||
• <a href="#darkdetect._windows_detect">darkdetect._windows_detect</a>
|
||||
• <a href="#importlib._bootstrap_external">importlib._bootstrap_external</a>
|
||||
• <a href="#mimetypes">mimetypes</a>
|
||||
• <a href="#platform">platform</a>
|
||||
|
||||
Binary file not shown.
@@ -5,17 +5,21 @@ import sys
|
||||
import traceback
|
||||
import urllib.parse
|
||||
import qrcode
|
||||
import fdb
|
||||
from pathlib import Path
|
||||
from datetime import datetime, date
|
||||
from PIL import Image, ImageTk
|
||||
import customtkinter as ctk
|
||||
from tkinter import messagebox
|
||||
|
||||
PROJECT_ROOT = Path(r"U:\OrdinaceProjekt")
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
if not getattr(sys, "frozen", False):
|
||||
_project_root = Path(__file__).resolve().parent.parent.parent.parent
|
||||
sys.path.insert(0, str(_project_root))
|
||||
|
||||
from Knihovny.najdi_dropbox import get_dropbox_root
|
||||
from Knihovny.EmailMessagingGraph import send_mail
|
||||
|
||||
DROPBOX = Path(get_dropbox_root())
|
||||
|
||||
EMAIL_CHYBY = "vladimir.buzalka@buzalka.cz"
|
||||
|
||||
def _zpracuj_chybu(exc: BaseException):
|
||||
@@ -46,14 +50,10 @@ ACCOUNTS = {
|
||||
"2800046620/2010": "CZ7520100000002800046620",
|
||||
}
|
||||
CURRENCY = "CZK"
|
||||
OUTPUT_DIR = Path(r"U:\OrdinaceProjekt\Medicus\Externi\QRCode\QRPlatby")
|
||||
OUTPUT_DIR = DROPBOX / "OrdinaceProjekt" / "Medicus" / "Externi" / "QRCode" / "QRPlatby"
|
||||
OUTPUT_DIR.mkdir(exist_ok=True)
|
||||
|
||||
# Firebird připojení
|
||||
DB_DSN = r'localhost:c:\medicus 3\data\medicus.fdb'
|
||||
DB_USER = 'SYSDBA'
|
||||
DB_PASSWORD = 'masterkey'
|
||||
DB_CHARSET = 'win1250'
|
||||
from Knihovny.medicus_db import get_medicus_connection
|
||||
|
||||
# Default values (can be overridden by arguments)
|
||||
PRIJMENI = "Buzalka"
|
||||
@@ -77,7 +77,7 @@ elif len(sys.argv) == 2 and sys.argv[1] in ("-h", "--help"):
|
||||
def nacti_polozky():
|
||||
"""Načte ceník z Medicusu seřazený podle KOD (pořadového čísla)."""
|
||||
try:
|
||||
conn = fdb.connect(dsn=DB_DSN, user=DB_USER, password=DB_PASSWORD, charset=DB_CHARSET)
|
||||
conn = get_medicus_connection()
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT V.KOD, V.NAZEV, V.CENA FROM VLV_SEL(NULL, NULL, NULL) V ORDER BY V.KOD")
|
||||
rows = cur.fetchall()
|
||||
|
||||
@@ -6,7 +6,7 @@ a = Analysis(
|
||||
pathex=[r'U:\OrdinaceProjekt'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=['msal'],
|
||||
hiddenimports=['msal', 'winreg'],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -3,6 +3,9 @@
|
||||
('Knihovny.EmailMessagingGraph',
|
||||
'U:\\OrdinaceProjekt\\Knihovny\\EmailMessagingGraph.py',
|
||||
'PYMODULE'),
|
||||
('Knihovny.medicus_db',
|
||||
'U:\\OrdinaceProjekt\\Knihovny\\medicus_db.py',
|
||||
'PYMODULE'),
|
||||
('PIL', 'C:\\Python312\\Lib\\site-packages\\PIL\\__init__.py', 'PYMODULE'),
|
||||
('PIL.AvifImagePlugin',
|
||||
'C:\\Python312\\Lib\\site-packages\\PIL\\AvifImagePlugin.py',
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ Types of import:
|
||||
IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
|
||||
tracking down the missing module yourself. Thanks!
|
||||
|
||||
missing module named pwd - imported by posixpath (delayed, conditional, optional), shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional), http.server (delayed, optional), netrc (delayed, conditional), getpass (delayed)
|
||||
missing module named pwd - imported by shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional), posixpath (delayed, conditional, optional), http.server (delayed, optional), netrc (delayed, conditional), getpass (delayed)
|
||||
missing module named grp - imported by shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional)
|
||||
missing module named _posixsubprocess - imported by subprocess (conditional), multiprocessing.util (delayed)
|
||||
missing module named fcntl - imported by subprocess (optional)
|
||||
@@ -22,7 +22,7 @@ missing module named _frozen_importlib_external - imported by importlib._bootstr
|
||||
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
|
||||
missing module named urllib.quote_plus - imported by urllib (optional), msal.oauth2cli.oauth2 (optional)
|
||||
missing module named urllib.urlencode - imported by urllib (optional), msal.oauth2cli.oauth2 (optional), msal.oauth2cli.authcode (optional)
|
||||
missing module named posix - imported by os (conditional, optional), posixpath (optional), shutil (conditional), importlib._bootstrap_external (conditional)
|
||||
missing module named posix - imported by shutil (conditional), importlib._bootstrap_external (conditional), os (conditional, optional), posixpath (optional)
|
||||
missing module named resource - imported by posix (top-level)
|
||||
missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), multiprocessing.shared_memory (conditional)
|
||||
missing module named _scproxy - imported by urllib.request (conditional)
|
||||
@@ -63,6 +63,8 @@ missing module named urlparse - imported by msal.oauth2cli.oauth2 (optional), ms
|
||||
missing module named collections.MutableMapping - imported by collections (optional), msal.individual_cache (optional)
|
||||
missing module named pymsalruntime - imported by msal.broker (optional), msal.application (delayed, conditional)
|
||||
missing module named msal_extensions - imported by msal.application (delayed, optional)
|
||||
missing module named __builtin__ - imported by fdb.fbcore (optional)
|
||||
missing module named Queue - imported by fdb.ibase (conditional)
|
||||
missing module named PyObjCTools - imported by darkdetect._mac_detect (optional)
|
||||
missing module named Foundation - imported by darkdetect._mac_detect (optional)
|
||||
missing module named _dummy_thread - imported by numpy._core.arrayprint (optional)
|
||||
@@ -258,6 +260,4 @@ missing module named yaml - imported by numpy.__config__ (delayed)
|
||||
missing module named numpy._distributor_init_local - imported by numpy (optional), numpy._distributor_init (optional)
|
||||
missing module named olefile - imported by PIL.FpxImagePlugin (top-level), PIL.MicImagePlugin (top-level)
|
||||
missing module named defusedxml - imported by PIL.Image (optional)
|
||||
missing module named __builtin__ - imported by fdb.fbcore (optional)
|
||||
missing module named Queue - imported by fdb.ibase (conditional)
|
||||
missing module named png - imported by qrcode.compat.png (optional)
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<span class="moduletype">Script</span> <div class="import">
|
||||
imports:
|
||||
<a href="#Knihovny.EmailMessagingGraph">Knihovny.EmailMessagingGraph</a>
|
||||
• <a href="#Knihovny.medicus_db">Knihovny.medicus_db</a>
|
||||
• <a href="#PIL">PIL</a>
|
||||
• <a href="#PIL.Image">PIL.Image</a>
|
||||
• <a href="#PIL.ImageTk">PIL.ImageTk</a>
|
||||
@@ -154,7 +155,6 @@ imports:
|
||||
• <a href="#encodings.uu_codec">encodings.uu_codec</a>
|
||||
• <a href="#encodings.zlib_codec">encodings.zlib_codec</a>
|
||||
• <a href="#enum">enum</a>
|
||||
• <a href="#fdb">fdb</a>
|
||||
• <a href="#functools">functools</a>
|
||||
• <a href="#genericpath">genericpath</a>
|
||||
• <a href="#heapq">heapq</a>
|
||||
@@ -402,6 +402,7 @@ imported by:
|
||||
<span class="moduletype">Package</span> <div class="import">
|
||||
imported by:
|
||||
<a href="#Knihovny.EmailMessagingGraph">Knihovny.EmailMessagingGraph</a>
|
||||
• <a href="#Knihovny.medicus_db">Knihovny.medicus_db</a>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -429,6 +430,24 @@ imported by:
|
||||
|
||||
</div>
|
||||
|
||||
<div class="node">
|
||||
<a name="Knihovny.medicus_db"></a>
|
||||
<a target="code" href="///U:/OrdinaceProjekt/Knihovny/medicus_db.py" type="text/plain"><tt>Knihovny.medicus_db</tt></a>
|
||||
<span class="moduletype">SourceModule</span> <div class="import">
|
||||
imports:
|
||||
<a href="#Knihovny">Knihovny</a>
|
||||
• <a href="#fdb">fdb</a>
|
||||
• <a href="#socket">socket</a>
|
||||
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#QRPlatbaApp.py">QRPlatbaApp.py</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="node">
|
||||
<a name="OpenSSL"></a>
|
||||
<a target="code" href="" type="text/plain"><tt>OpenSSL</tt></a>
|
||||
@@ -12561,7 +12580,7 @@ imports:
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#QRPlatbaApp.py">QRPlatbaApp.py</a>
|
||||
<a href="#Knihovny.medicus_db">Knihovny.medicus_db</a>
|
||||
• <a href="#fdb">fdb</a>
|
||||
• <a href="#fdb.blr">fdb.blr</a>
|
||||
• <a href="#fdb.fbcore">fdb.fbcore</a>
|
||||
@@ -25425,7 +25444,8 @@ imports:
|
||||
</div>
|
||||
<div class="import">
|
||||
imported by:
|
||||
<a href="#_ssl">_ssl</a>
|
||||
<a href="#Knihovny.medicus_db">Knihovny.medicus_db</a>
|
||||
• <a href="#_ssl">_ssl</a>
|
||||
• <a href="#asyncio.base_events">asyncio.base_events</a>
|
||||
• <a href="#asyncio.events">asyncio.events</a>
|
||||
• <a href="#asyncio.proactor_events">asyncio.proactor_events</a>
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user