migrate to new git
This commit is contained in:
222
web/admin/order/print.aspx
Normal file
222
web/admin/order/print.aspx
Normal file
@@ -0,0 +1,222 @@
|
||||
<%@ 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>代表地址</th>
|
||||
<th class="nowarp">陽上/報恩</th>
|
||||
<th class="fit">開始日</th>
|
||||
<th class="fit">期滿日</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="f_numTxt" runat="server"></asp:Literal></td>
|
||||
<td><%# Eval("address") %></td>
|
||||
<td class="nowarp">
|
||||
<asp:Literal ID="from_idTxt" 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>
|
||||
<td class="fit">
|
||||
<asp:Literal ID="extend_date" runat="server"></asp:Literal></td>
|
||||
|
||||
<td class="fit">
|
||||
<asp:Literal ID="BedQty" 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>
|
||||
Reference in New Issue
Block a user