Stabilizza picking barcode e patch cumulativa online
This commit is contained in:
@@ -607,6 +607,7 @@ class LayoutWindow(ctk.CTkToplevel):
|
||||
)
|
||||
m.add_separator()
|
||||
m.add_command(label="Copia ubicazione", command=lambda: self._copy(label))
|
||||
m.add_command(label="Codice cella", command=lambda: self._show_cell_code(r, c))
|
||||
x = self.winfo_pointerx() if event is None else event.x_root
|
||||
y = self.winfo_pointery() if event is None else event.y_root
|
||||
m.tk_popup(x, y)
|
||||
@@ -648,6 +649,25 @@ class LayoutWindow(ctk.CTkToplevel):
|
||||
except Exception:
|
||||
return 0
|
||||
|
||||
def _show_cell_code(self, r: int, c: int) -> None:
|
||||
"""Show the internal cell code for the selected layout cell."""
|
||||
|
||||
idcella = self._cell_id(r, c)
|
||||
ubicazione = self._cell_label(r, c)
|
||||
barcode_cella = self._cell_barcode(r, c)
|
||||
if idcella <= 0:
|
||||
messagebox.showwarning(
|
||||
"Codice cella",
|
||||
f"Codice cella non disponibile per {ubicazione}.",
|
||||
parent=self,
|
||||
)
|
||||
return
|
||||
messagebox.showinfo(
|
||||
"Codice cella",
|
||||
f"Ubicazione: {ubicazione}\nCodice cella: {idcella}\nBarcode cella: {barcode_cella or idcella}",
|
||||
parent=self,
|
||||
)
|
||||
|
||||
@_log_call()
|
||||
def _prompt_carico(self, r: int, c: int):
|
||||
"""Prompt the operator for a pallet barcode and move it to the selected cell."""
|
||||
|
||||
Reference in New Issue
Block a user