From f6f2990c8fd72faece6e5a5e93da80b1fdb7a978 Mon Sep 17 00:00:00 2001 From: ameerulrasyid Date: Wed, 5 Mar 2025 15:54:50 +0800 Subject: [PATCH] update admin itemmovement by station experiment camera tweaking --- .../Views/InventoryMaster/ItemMovement.cshtml | 564 ++++++++++++++---- .../Views/InventoryMaster/QrMaster.cshtml | 162 ++++- .../ItemMovement/ItemMovementUser.cshtml | 2 + 3 files changed, 605 insertions(+), 123 deletions(-) diff --git a/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml b/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml index 50fa915..bde7877 100644 --- a/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml +++ b/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml @@ -15,16 +15,41 @@ .table td img { display: block !important; } + + .text-true { + color: green; + } + + .text-false { + color: red; + } + + .text-primary { + color: blue; /* Warna asal untuk 'Receive' */ + } + + .text-warning { + color: orange; /* Warna oren untuk 'Return' */ + } + + .text-success { + color: greenyellow; + } + + .ms-auto { + margin-left: auto !important; /* Push Complete/Incomplete to right */ + } @await Html.PartialAsync("~/Areas/Inventory/Views/_InventoryPartial.cshtml");
-
+

Sort by:

@@ -34,7 +59,14 @@
-
+
+ +
+

Search Station:

+
+ +
+
@@ -104,37 +136,36 @@ Latest Movement
-

+

- {{ movement.action === 'Assign' ? 'Assign' : (movement.toOther === 'On Delivery' ? 'Receive' : 'Return') }} + {{ movement.toOther === 'Return' ? 'Return' : (movement.toOther === 'On Delivery' ? 'Receive' : ( movement.toStation !== null ? 'Change' : 'Assign')) }}

-
-

Send Date:

- {{ movement.sendDate }} +
+

{{movement.action === 'Assign' ? 'Assign Date' : 'Send Date'}}

+ {{ movement.sendDate }}
-
+

Receive Date:

- {{ movement.receiveDate || 'Not arrive' }} + {{ movement.receiveDate || 'Not arrive' }}
-
+

Action:

- {{ movement.action }} + {{ movement.action }}
-
+

Status:

- {{ movement.latestStatus || movement.toOther }} + {{ movement.latestStatus || movement.toOther }}
@@ -143,7 +174,8 @@ -

+

{{ movement.movementComplete == 1 && movement.latestStatus !== 'Ready To Deploy' ? 'Complete' : (movement.latestStatus === 'Ready To Deploy' ? 'Canceled' : 'Incomplete') }}

@@ -153,7 +185,8 @@
- + +

Start

User: {{ movement.toUserName }}

@@ -199,23 +232,22 @@
-

+

- {{ movement.action === 'Assign' ? 'Assign' : (movement.toOther === 'On Delivery' ? 'Receive' : 'Return') }} + {{ movement.toOther === 'Return' ? 'Return' : (movement.toOther === 'On Delivery' ? 'Receive' : ( movement.toStation !== null ? 'Change' : 'Assign')) }}

-

Send Date:

+

{{movement.action === 'Assign' ? 'Assign Date' : 'Send Date'}}

{{ movement.sendDate }}
-
+

Receive Date:

{{ movement.receiveDate || 'Not arrive' }}
@@ -237,12 +269,12 @@ More Details - -

- {{ movement.movementComplete == 1 && movement.latestStatus !== 'Ready To Deploy' ? 'Complete' : (movement.latestStatus === 'Ready To Deploy' ? 'Canceled' : 'Incomplete') }} -

-
+ +

+ {{ movement.movementComplete == 1 && movement.latestStatus !== 'Ready To Deploy' ? 'Complete' : (movement.latestStatus === 'Ready To Deploy' ? 'Canceled' : 'Incomplete') }} +

+
@@ -250,8 +282,8 @@
- - + +

Start

User: {{ movement.toUserName }}

Station: {{ movement.toStationName }}

@@ -289,6 +321,222 @@
+
+ + + +
+
+ +
+

{{ station }}

+ +
+ + +
+
+ +
+

Item : {{ group.uniqueID }}

+ +
+ + +
+
+
+ Latest Movement +
+

+ + {{ movement.toOther === 'Return' ? 'Return' : (movement.toOther === 'On Delivery' ? 'Receive' : ( movement.toStation !== null ? 'Change' : 'Assign')) }} + +

+ + +
+

{{movement.action === 'Assign' ? 'Assign Date' : 'Send Date'}}

+ {{ movement.sendDate }} +
+ + +
+

Receive Date:

+ {{ movement.receiveDate || 'Not arrive' }} +
+ + +
+

Action:

+ {{ movement.action }} +
+ + +
+

Status:

+ {{ movement.latestStatus || movement.toOther }} +
+ + + + + +

+ {{ movement.movementComplete == 1 && movement.latestStatus !== 'Ready To Deploy' ? 'Complete' : (movement.latestStatus === 'Ready To Deploy' ? 'Canceled' : 'Incomplete') }} +

+
+ +
+
+
+ + + +

Start

+

User: {{ movement.toUserName }}

+

Station: {{ movement.toStationName }}

+

Store: {{ movement.toStoreName }}

+
+
+ +

{{ movement.latestStatus || movement.toOther }}

+

+ +

+

+ +

+
+
+ + + +

End

+

User: {{ movement.lastUserName }}

+

Station: {{ movement.lastStationName }}

+

Store: {{ movement.lastStoreName }}

+
+
+
+
+
+ + + + +
+
+
+ +

+ + {{ movement.toOther === 'Return' ? 'Return' : (movement.toOther === 'On Delivery' ? 'Receive' : ( movement.toStation !== null ? 'Change' : 'Assign')) }} + +

+ + +
+

{{movement.action === 'Assign' ? 'Assign Date' : 'Send Date'}}

+ {{ movement.sendDate }} +
+ + +
+

Receive Date:

+ {{ movement.receiveDate || 'Not arrive' }} +
+ + +
+

Action:

+ {{ movement.action }} +
+ + +
+

Status:

+ {{ movement.latestStatus || movement.toOther }} +
+ + + + + +

+ {{ movement.movementComplete == 1 && movement.latestStatus !== 'Ready To Deploy' ? 'Complete' : (movement.latestStatus === 'Ready To Deploy' ? 'Canceled' : 'Incomplete') }} +

+
+ + + +
+
+
+ + + +

Start

+

User: {{ movement.toUserName }}

+

Station: {{ movement.toStationName }}

+

Store: {{ movement.toStoreName }}

+
+
+

+ +

{{ movement.latestStatus || movement.toOther }}

+

+ +

+

+ +

+
+
+ + + + +

End

+

User: {{ movement.lastUserName }}

+

Station: {{ movement.lastStationName }}

+

Store: {{ movement.lastStoreName }}

+
+
+
+ +
+
+ +
+
+
+
+