<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TimeSheet.aspx.vb" Inherits="ASPNET.StarterKit.TimeTracker.Mobile.TimeSheet" %>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="http://schemas.microsoft.com/Mobile/Page" name="vs_targetSchema">
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
	<mobile:stylesheet id="Stylesheet1" ReferencePath="Styles.ascx" runat="server"></mobile:stylesheet>
	<mobile:form id="FormMain" runat="server" StyleReference="Form">
		<mobile:label id="Title" runat="server" StyleReference="title">時間表</mobile:label>
		<mobile:label id="WeekEndingMain" runat="server" BreakAfter="False">截至本週</mobile:label>
		<mobile:command id="ChangeWeekMain" runat="server" Wrapping="NoWrap" Format="Link">隔週</mobile:command>
		<mobile:label id="TotalHoursLabel" runat="server">總結時數:</mobile:label>
		<mobile:objectlist id="TimeEntryGrid" runat="server" CommandStyle-ForeColor="White" CommandStyle-StyleReference="subcommand" CommandStyle-BackColor="White" LabelField="Description" TableFields="Day;Hours;Description" AutoGenerateFields="False" LabelStyle-StyleReference="list-header" BackColor="White">
			<command name="SelectCommand" text="Need to create a command here to make the first column a link"></command>
			<field title="日期" name="Day" dataformatstring="{0:ddd}" datafield="EntryDate"></field>
			<field title="時數" name="Hours" dataformatstring="{0:f}" datafield="Duration"></field>
			<field title="描述" name="Description" datafield="Description"></field>
			<field title="EntryLogID" name="EntryLogID" datafield="EntryLogID" visible="False"></field>
		</mobile:objectlist>
		<mobile:panel id="Panel2" runat="server">
			<mobile:devicespecific id="DeviceSpecific2" runat="server">
				<choice filter="IsHTML32">
					<contenttemplate>
						<div width="100%" align="center">
							<input id="Button1" type="button" value="新增項目" name="Button1" runat="server" onserverclick="AddEntryCommand2_Click"></input>
						</div>
					</contenttemplate>
				</choice>
			</mobile:devicespecific>
			<mobile:command id="AddEntryCommand2" runat="server" BreakAfter="False" Wrapping="NoWrap" Alignment="Center">新增項目</mobile:command>
		</mobile:panel>
	</mobile:form>
	<mobile:form id="FormProject" runat="server" StyleReference="Form">
		<mobile:label id="Label2" runat="server" StyleReference="title" Font-Name="Arial">專案</mobile:label>
		<mobile:label id="Label1" runat="server">選擇一個專案:</mobile:label>
		<mobile:selectionlist id="ProjectListBox" runat="server" Wrapping="NoWrap" Rows="6" SelectType="ListBox" DataTextField="Name" DataValueField="ProjectID"></mobile:selectionlist>
		<mobile:command id="SelectProjectCommand" runat="server">選取</mobile:command>
	</mobile:form>
	<mobile:form id="FormDetail" runat="server" StyleReference="Form">
		<mobile:label id="Label3" runat="server" StyleReference="title">開始時間</mobile:label>
		<mobile:label id="WeekEndingDetail" runat="server" BreakAfter="False">截至本週:</mobile:label>
		<mobile:command id="ChangeWeekDetail" runat="server" Wrapping="NoWrap" Format="Link">隔週</mobile:command>
		<mobile:label id="ProjectLabel" runat="server" BreakAfter="False">專案:</mobile:label>
		<mobile:command id="ChangeProjectCommand" runat="server" Wrapping="NoWrap" Format="Link">變更</mobile:command>
		<mobile:label id="CategoryLabel" runat="server">類別:</mobile:label>
		<mobile:selectionlist id="CategoryList" runat="server" DataTextField="Abbreviation" DataValueField="CategoryID"></mobile:selectionlist>
		<mobile:label id="DayLabel" runat="server">日期:</mobile:label>
		<mobile:selectionlist id="DayList" runat="server" DataTextField="Day" DataValueField="Date"></mobile:selectionlist>
		<mobile:label id="HoursLabel" runat="server">時數:</mobile:label>
		<mobile:textbox id="HoursText" runat="server"></mobile:textbox>
		<mobile:label id="EntryDescriptionLabel" runat="server">描述:</mobile:label>
		<mobile:textbox id="EntryDescriptionText" runat="server"></mobile:textbox>
		<mobile:command id="SaveCommand" runat="server">儲存</mobile:command>
		<mobile:command id="DeleteCommand" runat="server">刪除</mobile:command>
		<mobile:command id="CancelCommand" runat="server">取消</mobile:command>
		<mobile:requiredfieldvalidator id="RequiredFieldValidatorHrs" runat="server" Font-Size="Small" ControlToValidate="HoursText" ErrorMessage="Hours is required"></mobile:requiredfieldvalidator>
		<mobile:requiredfieldvalidator id="RequiredFieldValidatorDesc" runat="server" Font-Size="Small" ControlToValidate="EntryDescriptionText" ErrorMessage="Description is required"></mobile:requiredfieldvalidator>
		<mobile:comparevalidator id="CompareValidatorHrs" runat="server" Font-Size="Small" ControlToValidate="HoursText" ErrorMessage="Hours field must be numeric" Operator="DataTypeCheck" Type="Currency"></mobile:comparevalidator>
		<mobile:label id="HiddenProjectName" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenProjectID" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenLogID" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenDate" runat="server" Visible="False">開始日期</mobile:label>
		<mobile:label id="HiddenOrigin" runat="server" Visible="False">原始表格</mobile:label>
	</mobile:form>
	<mobile:form id="FormCalendar" runat="server" StyleReference="Form">
		<mobile:label id="Label4" runat="server" StyleReference="title">選取週</mobile:label>
		<mobile:calendar id="Calendar1" runat="server" StyleReference="standard-text" BackColor="White" Font-Name="verdana" Font-Size="Small"></mobile:calendar>
	</mobile:form>
</body>
