updates
parent
24ed35cf85
commit
c97e805be1
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
<%@ WebHandler Language="C#" CodeBehind="exportRawExcel.ashx.cs" Class="abbott_2024_event.BackEnd.api.exportRawExcel" %>
|
||||||
|
|
@ -47,6 +47,21 @@ $(document).ready(function () {
|
||||||
window.open(url);
|
window.open(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#raw_btn').click(function () {
|
||||||
|
if (confirm("注意事項:Raw Data因為資料龐大,會依據選擇的時間範圍,下載等待時間可能會好幾分鐘以上!")) {
|
||||||
|
|
||||||
|
var start = $("#startDate").val();
|
||||||
|
var end = $("#endDate").val();
|
||||||
|
var gender = $("#gender_select").val();
|
||||||
|
var min_age = $("#age_start").val();
|
||||||
|
var max_age = $("#age_end").val();
|
||||||
|
|
||||||
|
var url = "api/exportRawExcel.ashx?start=" + start + "&end=" + end + "&gender=" + gender + "&min_age=" + min_age + "&max_age=" + max_age;
|
||||||
|
window.open(url);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#delBabyBtn').click(function () {
|
$('#delBabyBtn').click(function () {
|
||||||
if (confirm('確定要刪除此筆寶寶的所有資料?')) {
|
if (confirm('確定要刪除此筆寶寶的所有資料?')) {
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
<option value="10">10歲</option>
|
<option value="10">10歲</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-1">
|
||||||
<label for="age_end">年齡(迄)</label>
|
<label for="age_end">年齡(迄)</label>
|
||||||
<select class="custom-select custom-select-sm" id="age_end" name="age_end" required="">
|
<select class="custom-select custom-select-sm" id="age_end" name="age_end" required="">
|
||||||
<option value="0">0歲</option>
|
<option value="0">0歲</option>
|
||||||
|
|
@ -90,6 +90,10 @@
|
||||||
<label for="export_btn" style="display: block;"> </label>
|
<label for="export_btn" style="display: block;"> </label>
|
||||||
<button type="button" class="btn btn-danger btn-sm" id="export_btn">匯出</button>
|
<button type="button" class="btn btn-danger btn-sm" id="export_btn">匯出</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<label for="raw_btn" style="display: block;"> </label>
|
||||||
|
<button type="button" class="btn btn-success btn-sm" id="raw_btn">Raw Data</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.form-row -->
|
<!-- /.form-row -->
|
||||||
|
|
@ -149,22 +153,19 @@
|
||||||
<!-- .card-body -->
|
<!-- .card-body -->
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="col-md-5" id="prm_project_serial">
|
<div class="col-md-6" id="prm_project_serial">
|
||||||
<!-- .form-group -->
|
<!-- .form-group -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<select id="baby_select" class="form-control">
|
<select id="baby_select" class="form-control">
|
||||||
</select>
|
</select>
|
||||||
</div><!-- /.form-group -->
|
</div><!-- /.form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3" id="prm_project_serial2">
|
<div class="col-md-6" id="prm_project_serial2">
|
||||||
<button type="button" class="btn btn-primary ml-auto" id="downloadBtn">下載寶寶總數據</button>
|
<button type="button" class="btn btn-primary ml-auto" id="downloadBtn">下載寶寶總數據</button>
|
||||||
</div>
|
<button type="button" class="btn btn-primary ml-auto" id="editBabyBtn">修改寶寶資料</button>
|
||||||
<div class="col-md-2" >
|
|
||||||
<button type="button" class="btn btn-primary ml-auto" id="editBabyBtn">修改寶寶資料</button>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2" >
|
|
||||||
<button type="button" class="btn btn-danger ml-auto" id="delBabyBtn">刪除寶寶資料</button>
|
<button type="button" class="btn btn-danger ml-auto" id="delBabyBtn">刪除寶寶資料</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- .card -->
|
<!-- .card -->
|
||||||
|
|
@ -249,5 +250,5 @@
|
||||||
<!-- /Modal -->
|
<!-- /Modal -->
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
|
||||||
<script src="assets/javascript/custom/userList.js?v=28"></script>
|
<script src="assets/javascript/custom/userList.js?v=29"></script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue