Files
17168ERP/web/admin/order/print.aspx
T
EnChia 7644df57d0 1. 優化報名頁面:彈出查詢頁面、顯示剛新增資料
2. 新增報名頁面加上取消鍵
3. 優化登入頁面:按下 enter 自動換格/送出
4. 修復新增報名頁面中,不同 search_dialog 中的 page 參數相互連動之異常
5. 修改報名頁面列印格式
6. 修復報名頁面匯出功能
7. 優化報到功能
8. 報名頁面中,無查詢資料時不可點選匯出/列印按鈕
9. 匯出/列印報名管理報表時,若無資料則顯示提示
10. 修復列印管理報表後父視窗 UI 不能點擊的問題
11. 新增報名管理表單匯出 excel 功能
12. 於新增信眾、新增活動頁面加上取消鍵
13. 優化報名管理匯出功能:若篩選條件包含特定活動,自動於「匯出條件」欄位標註活動名稱
14. 優化報名查詢匯出功能:匯出之文件中加上「匯出條件」欄位
15. 修復信眾資料頁面中,使用「生日」作為篩選基準時,後續執行「列印查詢資料」與「匯出查詢資料」會報錯
16. 修復「列印信眾查詢」功能中,電話搜尋欄位未正確帶入查詢條件之異常
17. 解決中文輸入法輸入電話號碼的跳字問題
18. 新增品項管理介面排序功能
2026-04-21 09:03:57 +08:00

216 lines
11 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="print.aspx.cs" Inherits="admin_follower_print_" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>列印信眾資料</title>
<script src="https://code.jquery.com/jquery-3.6.2.min.js"></script>
<link href="~/js/bootstrap5/bootstrap.min.css" rel="stylesheet" />
<style>
body {
font-size: 10pt;
}
.fit {
width: 1%;
white-space: nowrap;
}
.nowarp {
white-space: nowrap;
}
table {
width: 100%;
}
table td {
padding: 4px 3px;
}
table thead tr th {
font-size: 11pt;
font-weight: 300;
color: #666;
}
table thead tr td {
font-size: 11pt;
font-weight: 700;
border-bottom: 2px solid #333;
}
table tbody tr th {
padding: 4px 3px;
font-weight: 700;
border-bottom: 1px solid #333;
}
table tbody tr td {
border-bottom: 1px solid #ccc;
}
table tbody tr td.no-border {
border: 0;
}
@media print {
@page {
size: A4 landscape
}
body {
margin: 5mm 3mm;
}
}
@media screen {
body {
padding: 3.5mm 2.5mm;
}
.docs {
max-width: 297mm;
margin: 0 auto;
border: 1px solid #ccc;
padding: 5px;
}
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="docs">
<h1><asp:Literal ID="title" runat="server" Text="報名查詢列表"></asp:Literal></h1>
<table style="repeat-header: yes; repeat-footer: yes;" id="content">
<thead>
<tr>
<asp:Literal ID="footer" runat="server"></asp:Literal>
</tr>
</thead>
<tbody>
<tr style="background-color:antiquewhite;"><td><asp:Literal ID="count_data" runat="server"></asp:Literal></td></tr>
<tr>
<td colspan="3" class="no-border">
<asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
<ItemTemplate>
<table>
<tbody>
<tr>
<td class="no-border py-0">
<label>單號:</label>
<%# Eval("order_no") %>
</td>
<td class="no-border py-0">
<label>報名日期:</label>
<%# Eval("up_time") != null? Convert.ToDateTime( Eval("up_time")).ToString("yyyy/MM/dd") : "" %>
</td>
<td class="no-border py-0">
<label>單據狀態:</label>
<asp:Literal ID="keyin1" runat="server"></asp:Literal>
</td>
<td class="no-border py-0">
<label>報名活動:</label>
<asp:Literal ID="activityTxt" runat="server"></asp:Literal>
</td>
<td class="no-border py-0">
<label>姓名/名稱:</label>
<asp:Literal ID="f_numTxt" runat="server"></asp:Literal>
</td>
</tr>
<tr>
<td class="no-border py-0">
<label>聯絡電話:</label>
<%# encrypt.DecryptAutoKey( Eval("phone")?.ToString()) %>
</td>
<td class="no-border py-0" colspan="2">
<label>收件地址:</label>
<%# Eval("address") %>
</td>
<td class="no-border py-0" colspan="2">
<label>備註:</label>
<%# Eval("demo") %>
</td>
</tr>
</tbody>
</table>
<asp:PlaceHolder ID="detailTable" runat="server" Visible="false">
<table class="mb-2">
<tbody>
<tr>
<th>項目名稱</th>
<th class="nowarp">陽上</th>
<th class="nowarp">標題</th>
<th class="fit">開始日</th>
<th class="fit">期滿日</th>
<asp:PlaceHolder ID="PlaceHolder2" runat="server">
<th class="fit">功德金</th>
<th class="fit">數量</th>
<th class="fit">合計​</th>
<th class="fit">已收</th>
<th class="fit">未收</th>
<th class="fit">付款期限</th>
<th class="fit">報名狀態</th>
</asp:PlaceHolder>
</tr>
<asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
<ItemTemplate>
<tr>
<td>
<asp:Literal ID="actitem_numTxt" runat="server"></asp:Literal></td>
<td class="nowarp">
<asp:Literal ID="left_nameTxt" runat="server"></asp:Literal></td>
<td class="nowarp">
<asp:Literal ID="mid_nameTxt" runat="server"></asp:Literal></td>
<td class="fit"><%# Eval("start_date") != null? Convert.ToDateTime( Eval("start_date")).ToString("yyyy/MM/dd") : "" %></td>
<td class="fit">
<asp:Literal ID="due_date" runat="server"></asp:Literal></td>
<asp:PlaceHolder ID="PlaceHolder2" runat="server">
<td class="fit text-end">
<asp:Literal ID="item_price" runat="server" Text='<%# Eval("price") %>'></asp:Literal></td>
<td class="fit text-end">
<asp:Literal ID="item_qty" runat="server" Text='<%# Eval("qty") %>'></asp:Literal></td>
<td class="fit text-end"><%# Convert.ToDouble(Eval("price")) * Convert.ToInt32(Eval("qty")) %></td>
<td class="fit text-end"><%# Eval("pay") %></td>
<td class="fit text-end"><%# Convert.ToDouble(Eval("price")) * Convert.ToInt32(Eval("qty")) -Convert.ToDouble(Eval("pay")) %></td>
<td class="fit"><%# Eval("pay_date") != null? Convert.ToDateTime( Eval("pay_date")).ToString("yyyy/MM/dd") : "" %></td>
<td class="fit">
<asp:Literal ID="keyin1" runat="server"></asp:Literal></td>
</asp:PlaceHolder>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
</asp:PlaceHolder>
<asp:Panel ID="hr" runat="server" style="page-break-after: always;"></asp:Panel>
</ItemTemplate>
</asp:Repeater>
<asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible="false">
<div >查無資料</div>
</asp:PlaceHolder>
</td>
</tr>
<tr style="background-color:antiquewhite;"><td><asp:Literal ID="count_data2" runat="server"></asp:Literal></td></tr>
</tbody>
</table>
</div>
</form>
<script src="print.js"></script>
<script type="text/javascript">
window.onload = function () {
window.print();
}
</script>
</body>
</html>