NonInventPurchasingSystem/CPRNIMS.WebApps/Views/InventoryMgmt/Lot.cshtml
2026-01-20 07:44:30 +08:00

82 lines
3.8 KiB
Plaintext

<body>
<div class="container-fluid">
<div class="table-container shadow-lg p-3 mb-5 bg-white rounded">
<div class="header-container">
<h2 style="display: flex; flex-direction: column; align-items: center;">Lot List</h2>
</div>
<br />
<button id="btnAddNewLayout" type="button" class="btn btn-success"
onclick="showModalNewItem();" style="margin-bottom:20px;margin-left:10px;">
Add New Lot
</button>
<br />
<table id="PRTable" class="row-border" cellspacing="0" width="100%">
<thead>
<tr>
<th>LocationId</th>
<th>Location</th>
<th>PackingType</th>
<th>CreatedDate</th>
<th>CreatedDate</th>
<th>UpdatedDate</th>
<th>UpdatedDate</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Modal addNewItem -->
<div class="modal fade custom-modal-backdrop" id="addNewItem" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" style="text-align: center; margin-left: auto; margin-right: auto;"
id="headerNew">
Add new lot
</h5>
<h5 class="modal-title" style="text-align: center; margin-left: auto; margin-right: auto;"
id="headerUpdate">
Update lot
</h5>
</div>
<br />
<div class="modal-body">
<form id="itemPostPutForm">
<input hidden id="lotId" />
<label for="lotName">Location</label>
<input id="lotName" class="form-control" style="margin-bottom:10px;" name="lotName" />
<label for="lotTypeId">PackingType</label>
<select class="form-control" name="lotTypeId" id="lotTypeId"
style="margin-bottom:5px;">
<option disabled>-Select Packing Type-</option>
<option value="1">Bin</option>
<option value="2">Pallet</option>
<option value="3">Crates</option>
<option value="4">Carton Box</option>
<option value="5">Craft Bag</option>
</select>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning" data-bs-dismiss="modal">Cancel</button>
<button type="button" id="btnaddNewItem" onclick="postPutLotNo(1);" class="btn btn-success"> Save</button>
<button type="button" id="btnUpdateItem" onclick="postPutLotNo(0);" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<input hidden id="roleRights" value="@ViewBag.UserRoles" />
<div id="overlay" class="overlay" style="display: none;">
<div id="loader" class="loader"></div>
</div>
</div>
<script src="~/jsfunctions/Inventory/Lot.js"></script>
</body>