chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="送簽.ascx.cs" Inherits="Education.Forms.簽核.送簽" %>
|
||||
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="weblib" %>
|
||||
<style type="text/css">
|
||||
div.line {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
div.line div {
|
||||
display: inline-block;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
vertical-align: middle;
|
||||
margin: 0 5px 0 0;
|
||||
}
|
||||
|
||||
div.line div label {
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
<div style="background-color: #b8fcb5; padding: 8px; margin: 5px; width: auto; border: 1px solid #b8fcb5;
|
||||
border-radius: 8px; clear: both">
|
||||
<div style="display: inline-block; vertical-align:top;">
|
||||
<div id="divTitle" runat="server" style="font-weight: bold; margin: 0 0 5px 0;">
|
||||
<asp:Label ID="lbTitle" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div class="line">
|
||||
<asp:Label ID="lbStatus" runat="server" ForeColor="Blue"></asp:Label>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="pnlApprove">
|
||||
<div class="line">
|
||||
<div>
|
||||
<span>簽核批示:</span>
|
||||
</div>
|
||||
<div>
|
||||
<asp:RadioButtonList ID="rblApprove" runat="server"
|
||||
RepeatDirection="Horizontal" RepeatLayout="Flow">
|
||||
<asp:ListItem Text="同意" Value="Y" Selected="True" style="color: green; margin-right: 1em"></asp:ListItem>
|
||||
<asp:ListItem Text="不同意" Value="N" style="color: red; margin-right: 3em"></asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line">
|
||||
<div>
|
||||
<span>簽核意見:</span>
|
||||
</div>
|
||||
<div>
|
||||
<asp:TextBox ID="txtApproveText" runat="server" Columns="60" MaxLength="60"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="pnlNext">
|
||||
<div class="line">
|
||||
<div>
|
||||
<asp:Label ID="Label1" runat="server" Text="第一關簽核人員:"></asp:Label>
|
||||
</div>
|
||||
<div>
|
||||
<weblib:WDropDownList ID="ddlApprover" runat="server"></weblib:WDropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="pnlWithdraw">
|
||||
<div class="line">
|
||||
<div>
|
||||
<asp:Label ID="Label2" runat="server" Text="抽單簽核人員:"></asp:Label>
|
||||
</div>
|
||||
<div>
|
||||
<weblib:WDropDownList ID="ddlWithdrawApprover" runat="server"></weblib:WDropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="pnlButton" runat="server">
|
||||
<div class="line">
|
||||
<asp:Button ID="btnSend" runat="server" Text="送簽" OnClick="btnSend_Click" CssClass="button gray80" Style="margin-right: 5px;" />
|
||||
<asp:Button ID="btnApprove" runat="server" Text="確定簽核" OnClick="btnApprove_Click" CssClass="button gray80" Style="margin-right: 5px;" />
|
||||
<asp:Button ID="btnCancel" runat="server" Text="取消簽核" OnClick="btnCancel_Click" CssClass="button gray80" Style="margin-right: 5px;" />
|
||||
<asp:Button ID="btnWithDraw" runat="server" Text="抽單" OnClick="btnWithDraw_Click" CssClass="button gray80" Style="margin-right: 5px;" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<div style="display: inline-block; vertical-align:top; margin-left:10px">
|
||||
<asp:ObjectDataSource ID="ds簽核歷程" runat="server"
|
||||
OldValuesParameterFormatString="original_{0}"
|
||||
OnObjectCreating="ds簽核歷程_ObjectCreating"
|
||||
SelectMethod="SelectOneId" TypeName="Education.DAC_表單簽核明細">
|
||||
<SelectParameters>
|
||||
<asp:Parameter Name="簽核ID" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:GridView ID="gv簽核歷程" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="簽核ID,關ID" DataSourceID="ds簽核歷程" EnableModelValidation="True"
|
||||
EnableViewState="False">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="關ID" HeaderText="關號" ReadOnly="True"
|
||||
SortExpression="關ID" >
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField HeaderText="簽核結果" SortExpression="簽核結果">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server"
|
||||
Text='<%# Eval("簽核結果", "{0}") == "" ? "未簽核" : Eval("簽核結果", "{0}") == "Y" ? "同意" : "不同意" %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="簽核人員" SortExpression="簽核人員">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("簽核人員") %>'></asp:Label>
|
||||
<asp:Label ID="Label2" runat="server"
|
||||
Text='<%# Get員工姓名(Eval("簽核人員", "{0}")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="簽核日期" SortExpression="簽核日期">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server"
|
||||
Text='<%# Convert.ToDateTime(Eval("簽核日期")).Ticks == 0 ? "" : Eval("簽核日期", "{0:yyyy-MM-dd hh:mm}") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="簽核意見" HeaderText="簽核意見" SortExpression="簽核意見" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
<asp:Label ID="lbHint" runat="server" ForeColor="Red" style="float:right"></asp:Label><span style="clear:both;"/>
|
||||
</div>
|
||||
Reference in New Issue
Block a user