新增歷史資料查詢btn
This commit is contained in:
parent
ac0585055c
commit
702bed99c4
@ -2300,6 +2300,7 @@
|
||||
document.getElementById("Group" + i).setAttribute("class", "btn btn-secondary waves-effect waves-themed");
|
||||
}
|
||||
document.getElementById("Group" + type).setAttribute("class", "btn btn-success waves-effect waves-themed");
|
||||
document.getElementById("Historybtn").style.display = "";//隱藏
|
||||
switch (type)
|
||||
{
|
||||
case 0:
|
||||
@ -2355,6 +2356,8 @@
|
||||
document.getElementById("DateGet").style.display = "none";//隱藏
|
||||
document.getElementById("MonthGet").style.display = "none";//隱藏
|
||||
document.getElementById("YearGet").style.display = "none";//隱藏
|
||||
|
||||
document.getElementById("Historybtn").style.display = "none";//隱藏
|
||||
groupType = type;
|
||||
historyRange = '';
|
||||
getTable();
|
||||
@ -2421,22 +2424,31 @@
|
||||
}
|
||||
//#endregion
|
||||
|
||||
|
||||
function Historyclick() {
|
||||
switch (groupType) {
|
||||
case 0: historyRange = $('#DateGet').val(); break;
|
||||
case 1: historyRange = $('#MonthGet').val(); break;
|
||||
case 2: historyRange = $('#YearGet').val(); break;
|
||||
}
|
||||
getTable();
|
||||
}
|
||||
console.log(" before onChange event");
|
||||
$('#DateGet').on('change', function () {
|
||||
console.log(" in onChange event");
|
||||
historyRange = $('#DateGet').val();
|
||||
getTable();
|
||||
});
|
||||
//$('#DateGet').on('change', function () {
|
||||
// console.log(" in onChange event");
|
||||
// historyRange = $('#DateGet').val();
|
||||
// getTable();
|
||||
//});
|
||||
|
||||
$('#MonthGet').on('change', function () {
|
||||
historyRange = $('#MonthGet').val();
|
||||
getTable();
|
||||
});
|
||||
//$('#MonthGet').on('change', function () {
|
||||
// historyRange = $('#MonthGet').val();
|
||||
// getTable();
|
||||
//});
|
||||
|
||||
$('#YearGet').on('change', function () {
|
||||
historyRange = $('#YearGet').val();
|
||||
getTable();
|
||||
});
|
||||
//$('#YearGet').on('change', function () {
|
||||
// historyRange = $('#YearGet').val();
|
||||
// getTable();
|
||||
//});
|
||||
|
||||
function getTable()
|
||||
{
|
||||
|
||||
@ -44,9 +44,9 @@
|
||||
</div>
|
||||
|
||||
|
||||
@*<div class="pr-3">
|
||||
<button type="button" class="btn btn-secondary waves-effect waves-themed">列印報告</button>
|
||||
</div>*@
|
||||
<div class="pr-3">
|
||||
<button type="button" class="btn btn-secondary waves-effect waves-themed" id="Historybtn" onclick="Historyclick()">查詢</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user