|
|
@ -157,6 +157,17 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
<!-- Custom Tabs -->
|
|
|
|
|
|
|
|
<div class="nav-tabs-custom">
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
|
|
|
|
<li class="active"><a href="#tab_1" data-toggle="tab">Search by Model No.</a></li>
|
|
|
|
|
|
|
|
<li><a href="#tab_2" data-toggle="tab">Search by Series</a></li>
|
|
|
|
|
|
|
|
<li><a href="#tab_3" data-toggle="tab">Search by Description</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
|
|
|
|
<div class="tab-pane active" id="tab_1">
|
|
|
|
|
|
|
|
<p>Search for an item by Model No.</p>
|
|
|
|
<form class="form-horizontal" id="frmModelNoInquiry" name="frmModelNoInquiry">
|
|
|
|
<form class="form-horizontal" id="frmModelNoInquiry" name="frmModelNoInquiry">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="txtModelNoInquiry" class="col-lg-2 control-label">Model No:</label>
|
|
|
|
<label for="txtModelNoInquiry" class="col-lg-2 control-label">Model No:</label>
|
|
|
@ -168,6 +179,45 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- /.tab-pane -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="tab_2">
|
|
|
|
|
|
|
|
<p>Search for an item by Series Number</p>
|
|
|
|
|
|
|
|
<form class="form-horizontal" id="frmSeriesNoInquiry" name="frmSeriesNoInquiry">
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="txtSeriesNoInquiry" class="col-lg-2 control-label">Series No:</label>
|
|
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
|
|
<input type="text" id="txtSeriesNoInquiry" name="txtSeriesNoInquiry" class="form-control" placeholder="Enter Model Number">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-lg-1">
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- /.tab-pane -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="tab_3">
|
|
|
|
|
|
|
|
<p>Search for an item by Description</p>
|
|
|
|
|
|
|
|
<form class="form-horizontal" id="frmDescriptionInquiry" name="frmDescriptionInquiry">
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="txtDescriptionInquiry" class="col-lg-2 control-label">Description:</label>
|
|
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
|
|
<input type="text" id="txtDescriptionInquiry" name="txtDescriptionInquiry" class="form-control" placeholder="Enter Model Number">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-lg-1">
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- /.tab-pane -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- /.tab-content -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- nav-tabs-custom -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="box-footer">
|
|
|
|
|
|
|
|
|
|
|
@ -325,6 +375,30 @@
|
|
|
|
' </div><!-- /.box -->';
|
|
|
|
' </div><!-- /.box -->';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showItemListFromInquiry(htmlTable)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return '<div class="box">' +
|
|
|
|
|
|
|
|
' <div class="box-header with-border">' +
|
|
|
|
|
|
|
|
' <h3 class="box-title">Item Information</h3>' +
|
|
|
|
|
|
|
|
' <div class="box-tools pull-right">' +
|
|
|
|
|
|
|
|
' <button class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>' +
|
|
|
|
|
|
|
|
' </div>' +
|
|
|
|
|
|
|
|
' </div>' +
|
|
|
|
|
|
|
|
' <div class="box-body">' +
|
|
|
|
|
|
|
|
' <h3>List of items that matches with the series code in the inquiry</h3>' +
|
|
|
|
|
|
|
|
' <div class="row">' +
|
|
|
|
|
|
|
|
' <div class="col-lg-12">' +
|
|
|
|
|
|
|
|
' <table id="dtItemListMatchedSeries" class="table table-bordered table-striped">' +
|
|
|
|
|
|
|
|
' <thead><th>Itemcode</th><th>Model</th><th>Series</th><th>Description</th><th>Branch</th><th>Qty</th></thead>' +
|
|
|
|
|
|
|
|
' <tbody>' + htmlTable + '</tbody>' +
|
|
|
|
|
|
|
|
' </table>' +
|
|
|
|
|
|
|
|
' </div>' +
|
|
|
|
|
|
|
|
' </div>' +
|
|
|
|
|
|
|
|
' </div>' +
|
|
|
|
|
|
|
|
' </div>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function showIteminquiredInformation(data, htmlTable, KWHData, KWHStockReceived)
|
|
|
|
function showIteminquiredInformation(data, htmlTable, KWHData, KWHStockReceived)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return '<div class="box">' +
|
|
|
|
return '<div class="box">' +
|
|
|
@ -393,10 +467,11 @@
|
|
|
|
}, "json");
|
|
|
|
}, "json");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ------- Item Search Area -------
|
|
|
|
$("#frmModelNoInquiry").on("submit", function(e) {
|
|
|
|
$("#frmModelNoInquiry").on("submit", function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
$.post("getItemInfo", {
|
|
|
|
$.post("getItemInfoByModelNo", {
|
|
|
|
modelno: $("#txtModelNoInquiry").val()
|
|
|
|
modelno: $("#txtModelNoInquiry").val()
|
|
|
|
}, function(data) {
|
|
|
|
}, function(data) {
|
|
|
|
if (data["success"] == true) {
|
|
|
|
if (data["success"] == true) {
|
|
|
@ -407,6 +482,35 @@
|
|
|
|
}, "json");
|
|
|
|
}, "json");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmSeriesNoInquiry").on("submit", function(e) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.post("getItemInfoBySeries", {
|
|
|
|
|
|
|
|
series: $("#txtSeriesNoInquiry").val()
|
|
|
|
|
|
|
|
}, function(data) {
|
|
|
|
|
|
|
|
if (data["success"] == true) {
|
|
|
|
|
|
|
|
$("#resultContainerStoreInquiry").prepend(showItemListFromInquiry(data["htmlTable"]));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#resultContainerStoreInquiry").prepend(errorMessage(data["data"]));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, "json");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmDescriptionInquiry").on("submit", function(e) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.post("getItemInfoByDescription", {
|
|
|
|
|
|
|
|
series: $("#txtDescriptionInquiry").val()
|
|
|
|
|
|
|
|
}, function(data) {
|
|
|
|
|
|
|
|
if (data["success"] == true) {
|
|
|
|
|
|
|
|
$("#resultContainerStoreInquiry").prepend(showItemListFromInquiry(data["htmlTable"]));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#resultContainerStoreInquiry").prepend(errorMessage(data["data"]));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, "json");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// ------- /.Item Search Area -------
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on("click", "#btnRenewCard", function() {
|
|
|
|
$(document).on("click", "#btnRenewCard", function() {
|
|
|
|
$("#mdlRenewCustomerCard").modal("show");
|
|
|
|
$("#mdlRenewCustomerCard").modal("show");
|
|
|
|
|
|
|
|
|
|
|
|