Files
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

111 lines
5.2 KiB
Plaintext

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="fmRTME.ascx.cs" Inherits="forms_basedata_fmRTME" %>
<%@ Register Assembly="WNET" Namespace="Wellan.Web.UI"
TagPrefix="cc1" %>
<cc1:WLabel ID="WLabel1" runat="server" CssClass="pageTitle"
TextMessageId="">人員班表設定</cc1:WLabel>
<asp:CustomValidator ID="cvMessage" runat="server"
Display="None"></asp:CustomValidator><br />
<asp:HiddenField ID="hfYear" runat="server" />
<asp:HiddenField ID="hfMonth" runat="server" />
<div style="width: 650px">
<table cellpadding="3" cellspacing="0" style="border: 0; width: 100%; background-color: #E0E0E0">
<tr style="height: 40px">
<td style="width: 45px">
<asp:TextBox ID="txtYear" runat="server"
CssClass="textInput" MaxLength="4"></asp:TextBox></td>
<td style="text-align: center; width: 20px">
<asp:Label ID="Label3" runat="server" Font-Bold="True"
Text="年"></asp:Label></td>
<td style="width: 70px">
<asp:DropDownList ID="ddlMonth" runat="server" CssClass="textInput">
<asp:ListItem Value="01">一月</asp:ListItem>
<asp:ListItem Value="02">二月</asp:ListItem>
<asp:ListItem Value="03">三月</asp:ListItem>
<asp:ListItem Value="04">四月</asp:ListItem>
<asp:ListItem Value="05">五月</asp:ListItem>
<asp:ListItem Value="06">六月</asp:ListItem>
<asp:ListItem Value="07">七月</asp:ListItem>
<asp:ListItem Value="08">八月</asp:ListItem>
<asp:ListItem Value="09">九月</asp:ListItem>
<asp:ListItem Value="10">十月</asp:ListItem>
<asp:ListItem Value="11">十一月</asp:ListItem>
<asp:ListItem Value="12">十二月</asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 90px">
<asp:Button ID="btnGoto" runat="server" AccessKey="G"
CssClass="button" Text="G.跳至" OnClick="btnGoto_Click" /></td>
<td style="width: 150px">本月班別:
<asp:DropDownList ID="ddBhrd" runat="server">
</asp:DropDownList>
</td>
<td style="text-align: right">
<asp:Button ID="btnSave" runat="server" AccessKey="S"
CssClass="button" Text="S.儲存" OnClick="btnSave_Click" />
</td>
</tr>
</table>
<asp:Calendar ID="Calendar1" runat="server"
BorderStyle="None" CellSpacing="3" CellPadding="0"
NextPrevFormat="ShortMonth" SelectionMode="None"
EnableViewState="False" Width="100%" DayNameFormat="Shortest" TitleFormat="MonthYear"
OnDayRender="Calendar1_DayRender" OnPreRender="Calendar1_PreRender"
OnVisibleMonthChanged="Calendar1_VisibleMonthChanged">
<SelectedDayStyle BackColor="#333399" ForeColor="White" />
<OtherMonthDayStyle ForeColor="#999999" />
<DayStyle BackColor="#FFFFFF" Font-Bold="False"
Height="64px" VerticalAlign="Top" Font-Size="16pt" />
<NextPrevStyle Font-Bold="True" Font-Size="8pt"
ForeColor="Blue" />
<DayHeaderStyle BackColor="#E0E0E0" Font-Bold="True"
Font-Size="8pt" ForeColor="Black" Height="32px" />
<TitleStyle BackColor="#B5C7DE" Font-Bold="True"
Font-Size="12pt" ForeColor="Black" Height="40px" />
</asp:Calendar>
<asp:GridView runat="server" ID="gvBTME"
AutoGenerateColumns="false"
EnableViewState="false"
Width="100%" EnableModelValidation="True">
<Columns>
<asp:TemplateField HeaderText="班表編號" SortExpression="BTTID">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("BTTID", "{0}") == "" ? "--未選擇--" : Eval("BTTID", "{0}") %>' ID="Label1"></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:BoundField DataField="BTNME" HeaderText="班表名稱" SortExpression="BTNME"></asp:BoundField>
<asp:BoundField DataField="BTSTM" HeaderText="上班時間" SortExpression="BTSTM">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="BTETM" HeaderText="下班時間" SortExpression="BTETM">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="BTRST" HeaderText="午休開始" SortExpression="BTRST">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="BTRED" HeaderText="午休結束" SortExpression="BTRED">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
</Columns>
</asp:GridView>
<script type="text/javascript">
$(document).ready(function ()
{
$("#<%= ddBhrd.ClientID%>").change(function ()
{
$(".NORMAL").val($(this).val());
});
});
</script>
</div>