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

218 lines
12 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>Canvass Bidding List Per Item</h2>
</div>
<br />
<form method="get" asp-action="CanvassReport" asp-controller="CanvassMgmt">
<button type="submit" class="btn btn-success btn-md"
id="canvassReport">
Canvass Report
</button>
</form>
<br />
<table id="BiddingApprovalTable" class="row-border" cellspacing="0" width="100%">
<thead>
<tr>
<th style="width:9%">CanvassNo</th>
<th style="width:8%"> PRNo</th>
<th>ItemNo</th>
<th>ItemName</th>
<th>ItemSpecs</th>
<th>ItemCateg.</th>
<th>Action</th>
<th hidden></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Modal addRemarksUpdate -->
<div class="modal fade custom-modal-backdrop" id="addRemarksUpdate" tabindex="-1" aria-labelledby="approveLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 id="approveLabel" class="modal-title" style="text-align: center; margin-left: auto; margin-right: auto; color:green">
Put remarks before to proceed
</h5>
</div>
<div class="modal-body" style="display: flex; flex-direction: column; align-items: center;">
<div id="myDivId2" style="width: 80%; margin-bottom: 20px;">
</div>
<label id="labelremarks" for="itemCode" style="margin-bottom: 5px;">Remarks</label>
<textarea type="text" id="remarks" name="remarks" rows="4" cols="50"
placeholder="input here..."></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning" data-bs-dismiss="modal">Back</button>
<button type="button" id="btnAddRemarks" onclick="confirmPRApproveReject()" class="btn btn-success">Submit</button>
</div>
</div>
</div>
</div>
<!-- Modal viewSupplierByItem -->
<div class="modal fade custom-modal-backdrop" id="viewSupplierByItem" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog custom-modal-tracker">
<div class="modal-content">
<div class="modal-header" style="display: flex; flex-direction: column; align-items: center;">
<h2 class="modal-title" id="ModalLabel">Supplier Bidding List</h2>
</div>
<div class="modal-body">
<div class="p-2 mb-3 rounded border shadow-sm" style="background-color:#f9f9f9;">
<div class="row g-3 align-items-center">
<!-- PR No -->
<div class="col-md-3">
<small class="text-muted">PR No</small>
<div id="label-prNo" class="fw-semibold fs-5" style="color:#00796b;"></div>
</div>
<!-- Item No -->
<div class="col-md-3">
<small class="text-muted">Item No</small>
<div id="label-itemNo" class="fw-semibold fs-5" style="color:#00796b;"></div>
</div>
<!-- Quantity -->
<div class="col-md-3">
<small class="text-muted">Quantity</small>
<div id="label-qty" class="fw-semibold fs-5" style="color:#00796b;"></div>
</div>
<!-- Item Name -->
<div class="col-md-12">
<small class="text-muted">Item Name</small>
<div id="label-itemName" class="fw-semibold fs-5" style="color:#00796b;"></div>
</div>
<div class="col-md-12">
<small class="text-muted">Specification</small>
<div id="label-specification" class="fw-semibold fs-5" style="color:#00796b;"></div>
</div>
</div>
</div>
<div class="shadow-lg p-3 mb-5 bg-white rounded">
<table id="SuppBidddingDataTable" class="row-border"
cellspacing="0" width="100%" style="table-layout:fixed">
<colgroup>
<col style="width:9%">
<col style="width:9%">
<col style="width:16%">
<col style="width:18%">
<col style="width:18%">
<col style="width:22%">
<col style="width:8%">
</colgroup>
<thead>
<tr>
<th class="price">Price</th>
<th class="qty">Qty</th>
<th class="emailAdd">E-Address</th>
<th class="suppName">Sup.Name</th>
<th class="Manufacturer">Manufacturer</th>
<th class="Specification">Specification</th>
<th class="action">Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<input hidden id="canvassDetailId">
<input hidden id="canvassId">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="refreshTable();" data-bs-dismiss="modal">Back</button>
</div>
</div>
</div>
</div>
<!-- Modal viewSupplierBid -->
<div class="modal fade custom-modal-backdrop" id="viewSupplierBid" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalLabel">Supplier Bid Details</h5>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<input hidden id="itemNo">
<input hidden id="supplierId">
<input hidden id="canvassSupplierId">
<input hidden id="token">
<input hidden id="PODetailId">
<div class="form-group">
<label for="itemName">Item Name</label>
<input class="form-control" style="margin-bottom:5px;" id="itemName">
</div>
<div class="form-group">
<label for="itemQty">Qty</label>
<input id="itemQty" class="form-control" style="margin-bottom:5px;" name="itemQty" />
</div>
<div class="form-group">
<label for="terms">Terms</label>
<input type="text" id="terms" class="form-control" style="margin-bottom:5px;" name="terms" />
</div>
<div class="form-group">
<label for="unitPrice">UnitPrice</label>
<input type="number" id="unitPrice" class="form-control" style="margin-bottom:5px;" name="unitPrice" />
</div>
<div class="form-group">
<label for="currencyId">Currency</label>
<select class="form-control" name="currencyId" id="currencyId"
style="margin-bottom:5px;">
<option disabled>-Select Currency-</option>
<option value="1">Peso</option>
<option value="2">USD</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="itemSpecs">Item Specification</label>
<textarea id="itemSpecs" style="width: 100%; height: 100px;"></textarea>
</div>
<div class="form-group">
<label for="commitmentDate">DeliveryDate</label>
<input type="date" id="commitmentDate" class="form-control" style="margin-bottom:5px;" name="commitmentDate" />
</div>
<div class="form-group">
<label for="manufacturer">Manufacturer</label>
<input type="text" id="manufacturer" class="form-control" style="margin-bottom:5px;" name="manufacturer" />
</div>
<div class="form-group">
<label for="supplierRemarks">Remarks</label>
<textarea id="supplierRemarks" class="form-control"></textarea>
</div>
</div>
</div>
<hr />
<div>
<img id="itemPictureImage" alt="itemPictureImage" width="450" class="img-fluid" style="margin-bottom:5px; border-radius:15px; box-shadow:15px;">
<input type="file" id="itemPictureImageInput" accept="image/png, image/jpeg" style="display: none; margin-bottom:5px; border-radius:15px; box-shadow:15px;">
<input type="hidden" id="itemAttachId" name="itemAttachId" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Back</button>
<button type="button" id="btnUpdateUnitPrice" onclick="putSuppBidDetails()" class="btn btn-warning">Update Details</button>
<button type="button" id="btnPostApproved" onclick="postApprovedSuggested();" class="btn btn-success">Appoved</button>
</div>
</div>
</div>
</div>
<div id="IndexCardContainer">
</div>
<link href="~/css/canvass/canvass.css" rel="stylesheet" />
<script src="~/JsFunctions/PO/BiddingV2.js"></script>
@await Html.PartialAsync("PagesView/PO/_POScripts")
</div>
</body>