chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/PopupForm.Master" AutoEventWireup="true"
|
||||
CodeBehind="心得報告討論.aspx.cs" Inherits="Education.Forms.辦訓狀況.心得報告討論與回覆" %>
|
||||
|
||||
<%@ Register Src="~/Forms/Common/起訖日顯示.ascx" TagPrefix="uc1" TagName="起訖日顯示" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
<style type="text/css">
|
||||
div.default_title {
|
||||
margin-left: 20px;
|
||||
margin-right: 10px;
|
||||
padding: 8px 0 3px 0;
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.response-content {
|
||||
padding: 10px;
|
||||
margin: 10px 20px;
|
||||
background-color: #FFFFFF;
|
||||
width: 900px;
|
||||
overflow-y: auto;
|
||||
border: 2px solid #B4E0FF;
|
||||
border-radius: 5px;
|
||||
line-height: 150%;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function copyContent(obj) {
|
||||
var txtResponse = document.getElementById("txtResponse");
|
||||
var hfResponse = document.getElementById(hfResponseId);
|
||||
hfResponse.value = txtResponse.value.replace(/</g, "<").replace(/>/g, ">");
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<asp:ObjectDataSource ID="ds心得報告討論" runat="server"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="Select整棟"
|
||||
TypeName="Education.DAC_心得報告討論">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="心得報告編號" QueryStringField="id" Type="Int32" />
|
||||
<asp:Parameter DefaultValue="true" Name="只包含上架" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<table style="width: 950px">
|
||||
<tr>
|
||||
<td class="caption" style="width: 80px">
|
||||
<asp:Label ID="Label9" runat="server" Text="訓練課程"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay">
|
||||
<asp:Label ID="lb訓練課程" runat="server"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">
|
||||
<asp:Label ID="Label11" runat="server" Text="訓練日期"></asp:Label>
|
||||
</td>
|
||||
<td class="datadisplay">
|
||||
<uc1:起訖日顯示 runat="server" ID="起訖日顯示" Format="yyyy-MM-dd" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h3>
|
||||
<asp:Label ID="lb樓主" runat="server"></asp:Label>的心得內容:
|
||||
</h3>
|
||||
<div style="margin-left: 10px; margin-right: 10px; margin-bottom: 10px;">
|
||||
<div class="response-content">
|
||||
<asp:Label ID="lb心得內容" runat="server"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<h3>大家的討論內容</h3>
|
||||
<asp:DataList ID="dl回覆" runat="server" DataKeyField="心得報告編號"
|
||||
DataSourceID="ds心得報告討論">
|
||||
<ItemTemplate>
|
||||
<div style="margin-left: 10px; margin-right: 10px; margin-bottom: 10px;">
|
||||
<div>
|
||||
<asp:Label ID="發表人Label" runat="server" Text='<%# Get員工姓名(Eval("發表人")) + " 在 " + Eval("發表日期", "{0:yyyy-MM-dd HH:mm}") + " 發表討論:" %>' />
|
||||
</div>
|
||||
<div class="response-content">
|
||||
<asp:Label ID="內容Label" runat="server" Text='<%# Eval("內容", "{0}").Replace("\r\n", "<br>").Replace("\r", "<br>").Replace("\n", "<br>") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:DataList>
|
||||
<h3>我要回應</h3>
|
||||
<div style="margin-left: 30px; margin-right: 20px;">
|
||||
<input type="hidden" id="hfResponse" runat="server" />
|
||||
<textarea id="txtResponse" cols="110" rows="10" maxlength="2000" style="font-family: 細明體; font-size: 12pt"></textarea>
|
||||
<div style="margin-top: 10px">
|
||||
<asp:LinkButton ID="btnSave" runat="server" CssClass="button blue80" OnClientClick="copyContent();"
|
||||
OnClick="btnSave_Click">確定儲存</asp:LinkButton>
|
||||
<asp:Label ID="lbMessage" runat="server" CssClass="ErrorMessage"
|
||||
EnableViewState="False"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user