Checkpoint before more window sizing work

This commit is contained in:
2026-05-10 16:29:49 +02:00
parent 6ab42a2303
commit 8489cd7459
15 changed files with 2071 additions and 156 deletions

View File

@@ -15,8 +15,9 @@ from typing import Any, Callable
import customtkinter as ctk
from tkinter import messagebox, ttk
from gestione_aree import BusyOverlay, AsyncRunner
from gestione_aree import AsyncRunner
from audit_log import log_user_action
from busy_overlay import InlineBusyOverlay
from user_session import UserSession
try:
@@ -251,6 +252,8 @@ ORDER BY
SQL_SCARICA_UDC = """
SET NOCOUNT ON;
DECLARE @Now datetime = GETDATE();
DECLARE @SourceID int = 0;
DECLARE @NumeroPallet int = 0;
@@ -384,7 +387,7 @@ async def move_pallet_async(
"utente": str((utente or DEFAULT_SCARICO_USER) or "warehouse_ui").strip(),
}
_log_sql("move_pallet", SQL_SCARICA_UDC, params)
res = await db_client.query_json(SQL_SCARICA_UDC, params)
res = await db_client.query_json(SQL_SCARICA_UDC, params, commit=True)
rows = res.get("rows", []) if isinstance(res, dict) else []
_log_dataset("move_pallet", rows)
first = rows[0] if rows else [1, 0, params["target_idcella"], params["target_barcode_cella"]]
@@ -446,7 +449,7 @@ class ScaricoDialog(ctk.CTkToplevel):
self.on_completed = on_completed
self.session = session
self.rows: list[ScaricoRow] = []
self._busy = BusyOverlay(self)
self._busy = InlineBusyOverlay(self)
self._async = AsyncRunner(self)
self.rows_tree: ttk.Treeview | None = None