⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timesheet.aspx

📁 Beginning VB.NET DatabasesAll_Code.rar
💻 ASPX
字号:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TimeSheet.aspx.vb" Inherits="TimeSheets.TimeSheet"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>TimeSheet</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
function IsNumeric()
{
	switch (event.keyCode)
	{
		case 8:
			//Backspace
			event.returnValue = true;
			break;
		case 9:
			//Tab
			event.returnValue = true;
			break;
		case 48:
			//0
			event.returnValue = true;
			break;
		case 96:
			//0
			event.returnValue = true;
			break;
		case 49:
			//1
			event.returnValue = true;
			break;
		case 97:
			//1
			event.returnValue = true;
			break;
		case 50:
			//2
			event.returnValue = true;
			break;
		case 98:
			//2
			event.returnValue = true;
			break;
		case 51:
			//3
			event.returnValue = true;
			break;
		case 99:
			//3
			event.returnValue = true;
			break;
		case 52:
			//4
			event.returnValue = true;
			break;
		case 100:
			//4
			event.returnValue = true;
			break;
		case 53:
			//5
			event.returnValue = true;
			break;
		case 101:
			//5
			event.returnValue = true;
			break;
		case 54:
			//6
			event.returnValue = true;
			break;
		case 102:
			//6
			event.returnValue = true;
			break;
		case 55:
			//7
			event.returnValue = true;
			break;
		case 103:
			//7
			event.returnValue = true;
			break;
		case 56:
			//8
			event.returnValue = true;
			break;
		case 104:
			//8
			event.returnValue = true;
			break;
		case 57:
			//9
			event.returnValue = true;
			break;
		case 105:
			//9
			event.returnValue = true;
			break;
		default:
			//All others
			event.returnValue = false;
			break;
	}
}

function Recalculate(dayofweek)
{
	//Get the number of rows
	var intCount = document.Form1.txtMondayHours.length;

	//Find the day of the week that you are working with
	switch (dayofweek)
	{
		case "Monday":
			//Set the current total to 0 as it will be recalculated
			document.Form1.txtMondayTotal.value = 0;
			//Process each row of data adding it to the total
			for (i=0;i<intCount;i++)
			{
				document.Form1.txtMondayTotal.value = 
					parseInt(document.Form1.txtMondayTotal.value) + 
					parseInt(document.Form1.txtMondayHours[i].value);
			}
			break;
		case "Tuesday":
			//Set the current total to 0 as it will be recalculated
			document.Form1.txtTuesdayTotal.value = 0;
			//Process each row of data adding it to the total
			for (i=0;i<intCount;i++)
			{
				document.Form1.txtTuesdayTotal.value = 
					parseInt(document.Form1.txtTuesdayTotal.value) + 
					parseInt(document.Form1.txtTuesdayHours[i].value);
			}
			break;
		case "Wednesday":
			//Set the current total to 0 as it will be recalculated
			document.Form1.txtWednesdayTotal.value = 0;
			//Process each row of data adding it to the total
			for (i=0;i<intCount;i++)
			{
				document.Form1.txtWednesdayTotal.value = 
					parseInt(document.Form1.txtWednesdayTotal.value) + 
					parseInt(document.Form1.txtWednesdayHours[i].value);
			}
			break;
		case "Thursday":
			//Set the current total to 0 as it will be recalculated
			document.Form1.txtThursdayTotal.value = 0;
			//Process each row of data adding it to the total
			for (i=0;i<intCount;i++)
			{
				document.Form1.txtThursdayTotal.value = 
					parseInt(document.Form1.txtThursdayTotal.value) + 
					parseInt(document.Form1.txtThursdayHours[i].value);
			}
			break;
		case "Friday":
			//Set the current total to 0 as it will be recalculated
			document.Form1.txtFridayTotal.value = 0;
			//Process each row of data adding it to the total
			for (i=0;i<intCount;i++)
			{
				document.Form1.txtFridayTotal.value = 
					parseInt(document.Form1.txtFridayTotal.value) + 
					parseInt(document.Form1.txtFridayHours[i].value);
			}
			break;
	}
}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr class="PageHeader">
					<td align="center">Time Tracker TimeSheets</td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="700">
				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>
				<tr>
					<td class="General" nowrap>TimeSheet for <b>
							<%=Request.QueryString("UserName")%>
						</b>
					</td>
					<td>
						<asp:Button id="btnSave" runat="server" CssClass="FlatButton" Text="Save"></asp:Button></td>
					<td>
						<asp:Button id="btnSubmit" runat="server" CssClass="FlatButton" Text="Submit"></asp:Button></td>
					<td class="General">Week Ending Date
						<asp:DropDownList id="cboWeekEndingDate" runat="server" CssClass="General" AutoPostBack="True"></asp:DropDownList></td>
				</tr>
				<tr>
					<td colspan="4" class="Spacer"></td>
				</tr>
				<tr>
					<td colspan="4" class="CellOutline">
						<%Call DisplayTimeSheet()%>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -