212 lines
8.1 KiB
Plaintext
212 lines
8.1 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="fmRbsa.ascx.cs"
|
|
Inherits="forms_worker_fmRbsa" %>
|
|
<%@ Register Assembly="WNET" Namespace="Wellan.Web.UI" TagPrefix="cc1" %>
|
|
<cc1:WLabel ID="WLabel1" runat="server" CssClass="pageTitle"
|
|
Text="補休補登作業" TextMessageId=""></cc1:WLabel>
|
|
|
|
<style>
|
|
div.notice {
|
|
border: 2px solid red;
|
|
padding: 10px 20px;
|
|
margin: 10px 20px;
|
|
background-color: #FFCEFF;
|
|
line-height: 150%;
|
|
}
|
|
|
|
div.notice > ul {
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
</style>
|
|
|
|
<div class="notice">
|
|
請注意!
|
|
<ul>
|
|
<li>補休補登作業輸入的補休時數,在請假使用補休時數時,一律優先使用。</li>
|
|
<li>補休補登時數用完之後,才使用加班單累積的補休時數。</li>
|
|
<li>正常狀況請從管理系統的加班處理輸入應累積的補休時數。</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<asp:CustomValidator ID="cvMessage" runat="server" Display="None"></asp:CustomValidator>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<asp:Label ID="Label1" runat="server" Text="年度:"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:TextBox ID="txtYear" runat="server" Columns="4"></asp:TextBox>
|
|
</td>
|
|
<td>
|
|
<asp:Button ID="btnYY" runat="server" CssClass="button" OnClick="btnYY_Click"
|
|
Text="確定年度" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Label ID="Label2" runat="server" Text="專案:"></asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="ddl專案" runat="server">
|
|
</asp:DropDownList>
|
|
</td>
|
|
<td>
|
|
<asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click"
|
|
Text="確定專案" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<asp:ObjectDataSource ID="dsRbsa" runat="server" DeleteMethod="DeleteOne"
|
|
OldValuesParameterFormatString="OLD_{0}" OnSelecting="dsRbsa_Selecting"
|
|
OnUpdating="dsRbsa_Updating" SelectMethod="Select" TypeName="RbsaDAC"
|
|
UpdateMethod="UpdateOne">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="OLD_RBREN" Type="String" />
|
|
</DeleteParameters>
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ddl專案" Name="RBPYN" PropertyName="SelectedValue"
|
|
Type="String" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="OLD_RBREN" Type="String" />
|
|
<asp:Parameter Name="RBENO" Type="String" />
|
|
<asp:Parameter Name="RBPYN" Type="String" />
|
|
<asp:Parameter Name="RBDAT" Type="DateTime" />
|
|
<asp:Parameter Name="RBTCT" Type="Int32" />
|
|
<asp:Parameter Name="TRUSR" Type="String" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:Panel ID="Panel1" runat="server" Visible="False" Width="562px">
|
|
<table border="1" cellpadding="3" cellspacing="0" style="table-layout:fixed;">
|
|
<tr>
|
|
<th style="width: 100px">
|
|
</th>
|
|
<th style="width: 240px">
|
|
<asp:Label ID="Label4" runat="server" Text="人員編號"></asp:Label>
|
|
</th>
|
|
<th style="width: 120px">
|
|
<asp:Label ID="Label5" runat="server" Text="補休日期"></asp:Label>
|
|
</th>
|
|
<th style="width: 100px">
|
|
<asp:Label ID="Label6" runat="server" Text="補休時數"></asp:Label>
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<asp:Button ID="btnInsert" runat="server" Text="新增"
|
|
CssClass="button" onclick="btnInsert_Click" />
|
|
</td>
|
|
<td>
|
|
<table border="0" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
|
<tr>
|
|
<td style="width: 100px">
|
|
<asp:TextBox ID="txtRBENO" runat="server" CssClass="textInput"
|
|
MaxLength="10" EnableViewState="False"></asp:TextBox>
|
|
</td>
|
|
<td style="width: 20px">
|
|
<asp:ImageButton ID="btnRBENO_WQRY" runat="server" ImageUrl="~/picture/pickup.gif" />
|
|
</td>
|
|
<td class="dataDisplayCell">
|
|
<asp:Label ID="lbRBENOX" runat="server" CssClass="textInput"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td>
|
|
<cc1:WDateTextBox ID="txtRBDAT" runat="server"
|
|
CssClass="textInput" />
|
|
</td>
|
|
<td>
|
|
<asp:TextBox ID="txtRBTCT" runat="server"
|
|
CssClass="textInput"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<asp:GridView ID="gvRbsa" runat="server" AutoGenerateColumns="False"
|
|
DataKeyNames="RBREN" DataSourceID="dsRbsa" EnableModelValidation="True"
|
|
OnRowCommand="gvRbsa_RowCommand" ShowHeader="False" CellPadding="3"
|
|
BorderWidth="1px" CssClass="fixtable" AllowPaging="True"
|
|
PageSize="20" onrowdatabound="gvRbsa_RowDataBound"
|
|
onrowupdating="gvRbsa_RowUpdating">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<EditItemTemplate>
|
|
<asp:Button ID="Button3" runat="server" CommandName="Update"
|
|
CssClass="button" Text="存檔" UseSubmitBehavior="False" />
|
|
<asp:Button ID="Button4" runat="server" CommandName="Cancel"
|
|
CssClass="button" Text="取消" UseSubmitBehavior="False" />
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:Button ID="Button1" runat="server" CommandName="Edit" CssClass="button"
|
|
Text="編輯" UseSubmitBehavior="False" />
|
|
<asp:Button ID="Button2" runat="server" CommandName="Delete"
|
|
CssClass="button" Text="刪除" UseSubmitBehavior="False" />
|
|
</ItemTemplate>
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Width="100px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="人員編號">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbRBENO" runat="server" Text='<%# Bind("RBENO") %>'></asp:Label>
|
|
<asp:Label ID="lbRBENOX" runat="server"
|
|
Text='<%# GetLookup("BPSN", Eval("RBENO", "{0:c}"), "BPNME", "") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<table border="0" cellpadding="0" cellspacing="0"
|
|
style="table-layout: fixed">
|
|
<tr>
|
|
<td style="width: 100px">
|
|
<asp:TextBox ID="txtRBENO" runat="server"
|
|
CssClass="textInput" EnableViewState="False" MaxLength="10"
|
|
Text='<%# Bind("RBENO") %>'></asp:TextBox>
|
|
</td>
|
|
<td style="width: 20px">
|
|
<asp:ImageButton ID="btnRBENO_WQRY" runat="server"
|
|
ImageUrl="~/picture/pickup.gif" />
|
|
</td>
|
|
<td class="dataDisplayCell">
|
|
<asp:Label ID="lbRBENOX" runat="server"
|
|
CssClass="textInput"
|
|
Text='<%# GetLookup("BPSN", Eval("RBENO", "{0:c}"), "BPNME", "") %>'></asp:Label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</EditItemTemplate>
|
|
<HeaderStyle HorizontalAlign="Center" Width="240px" />
|
|
<ItemStyle HorizontalAlign="Center" Width="240px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="補休日期">
|
|
<EditItemTemplate>
|
|
<cc1:WDateTextBox ID="txtRBDAT" runat="server"
|
|
CssClass="textInput" DateOrder="YMD"
|
|
Value='<%# Bind("RBDAT") %>' />
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbRBDAT" runat="server"
|
|
Text='<%# Eval("RBDAT", "{0:yyyyMMdd}") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<HeaderStyle HorizontalAlign="Center" Width="120px" />
|
|
<ItemStyle HorizontalAlign="Center" Width="120px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="補休時數">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbRBTCT" runat="server" Text='<%# Bind("RBTCT") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="txtRBTCT" runat="server"
|
|
CssClass="textInput" Text='<%# Bind("RBTCT") %>'></asp:TextBox>
|
|
</EditItemTemplate>
|
|
<HeaderStyle HorizontalAlign="Center" Width="100px" />
|
|
<ItemStyle HorizontalAlign="Center" Width="100px" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<EmptyDataTemplate>
|
|
<asp:Label ID="lbEmpty" runat="server" CssClass="errorLabel" Font-Bold="True"
|
|
Text="目前條件之下沒有資料"></asp:Label>
|
|
</EmptyDataTemplate>
|
|
<PagerTemplate>
|
|
<cc1:WGridViewPager ID="WGridViewPager1" runat="server" />
|
|
</PagerTemplate>
|
|
</asp:GridView>
|
|
</asp:Panel>
|