Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_APK/llms.txt
Use this file to discover all available pages before exploring further.
StatusPalette is a static helper class in Handheld.Helpers that centralises every display decision for WMS document statuses. Rather than scattering color strings and label logic across individual views, all three concerns — badge color, short label, and post-block detection — live in one place. The helper is used across the Receipts, Shipments, and Item Inquiry screens.
StatusPalette is used across Receipts, Shipments, and Item Inquiry views. Any change to status display — new status codes, color adjustments, or label updates — should be made exclusively in this class to keep the UI consistent.Full class signature
Normalize
Normalize is the foundation of all three other methods — each one calls it first. The rules are:
null, empty string, or whitespace-only →"PENDING"- Any other value → trimmed and uppercased
"posted", " POSTED ", and "Posted" all map identically. Callers never need to pre-normalize status strings.
GetBadgeColor
Color.FromArgb calls.
Color reference
| Hex | Tailwind equivalent | Meaning |
|---|---|---|
#2563EB | blue-600 | Active / in-progress (OPEN, RELEASED) |
#16A34A | green-600 | Completed / finalized (POSTED, CLOSED, DONE) |
#DC2626 | red-600 | Error state |
#F59E0B | amber-500 | Pending / partial attention needed |
#F97316 | orange-500 | Partially processed (stronger warning) |
#475569 | slate-600 | Unknown / unrecognized status |
GetShortLabel
"HOLD" renders as "HOLD", while "INREVIEW" renders as "INRE".
IsPostBlocked
true when the document status means it has already been finalized and cannot be posted again.
PostAsync operation to give the user a clear “already posted” message without making a network call.
Status reference table
The table below summarises every explicitly handled status and its display values.| Status (normalized) | Badge color | Hex | Short label | Post blocked |
|---|---|---|---|---|
OPEN | Blue | #2563EB | Open | — |
RELEASED | Blue | #2563EB | Rel | — |
REL | Blue | #2563EB | REL ¹ | — |
PENDING | Amber | #F59E0B | Pend | — |
RECEIVING | Amber | #F59E0B | Recv | — |
SHIPPING | Amber | #F59E0B | Ship | — |
RECV | Amber | #F59E0B | RECV ¹ | — |
SHIP | Amber | #F59E0B | SHIP ¹ | — |
PARTIAL | Amber | #F59E0B | Part | — |
PARTIALLY POSTED | Amber | #F59E0B | Part | — |
PART | Orange | #F97316 | PART ¹ | — |
PARTIALLY RECEIVED | Orange | #F97316 | Part | — |
PARTIALLY SHIPPED | Orange | #F97316 | Part | — |
POSTED | Green | #16A34A | Done | ✓ |
CLOSED | Green | #16A34A | Done | ✓ |
DONE | Green | #16A34A | DONE ¹ | — |
ERROR | Red | #DC2626 | ERRO ¹ | — |
| (unknown) | Slate | #475569 | first 4 chars | — |
¹ These statuses do not have an explicit GetShortLabel case; the fallback rule applies (≤ 4 chars as-is, else first 4).