<%@ Page Inherits="System.Web.Mvc.ViewPage>" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %> Decovar Orient : Intranet - Timesheets " rel="stylesheet" type="text/css" />

Timesheets

<%= Html.ValidationSummary("Timesheet entry unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm()) { %> <% if (!string.IsNullOrEmpty(ViewData["userId"].ToString())) { %>
Enter new hours: <%=Html.Hidden("userId", ViewData["userId"])%> <%=Html.Hidden("timesheetCalMinDate", ViewData["timesheetCalMinDate"])%> <%=Html.Hidden("timesheetCalMaxDate", ViewData["timesheetCalMaxDate"])%> <%=Html.Hidden("timesheetHrsValue", ViewData["timesheetHrsValue"])%> <%=Html.Hidden("timesheetHrsMin", ViewData["timesheetHrsMin"])%> <%=Html.Hidden("timesheetHrsMax", ViewData["timesheetHrsMax"])%> <%=Html.Hidden("timesheetHrsStep", ViewData["timesheetHrsStep"])%>
<%=Html.TextBox("dte")%> <%=Html.DropDownList("projectId",(IEnumerable)ViewData["projects"],"")%> <%=Html.TextBox("hours")%>
<%=Html.DropDownList("classificationId",(IEnumerable)ViewData["classifications"],"")%> <%=Html.TextBox("stage")%> <%=Html.CheckBox("billable", true)%>
<%=Html.TextArea("notes")%>
<% foreach (var item in Model) { %> <% } %> <% if (Model.Count == 0) { %> <% } %>
Date Project Hours Classification Stage Notes Billable  
<%= Html.Encode(String.Format("{0:D}", item.dte)) %> <%= Html.Encode(item.Project.abbr) %> <%= Html.Encode(item.hours) %> <%= Html.Encode(item.Classification.abbr) %> <%= Html.Encode(item.Stage.abbr) %> <%= Html.Encode(item.notes) %> <%= Html.CheckBox("billable", Convert.ToBoolean(item.billable), new { disabled="disabled" } ) %> <%= Html.ActionLink(".", "Edit", new { timesheetId = item.id, pg = Model.PageIndex }, new {@class="edit", @title="Edit"}) %> <%= Html.ActionLink(".", "Delete", new { timesheetId = item.id }, new { @class = "delete", @title = "Delete" })%>
No hours recorded for this period
<%=Html.DropDownList("viewByPeriod") %> <% }else{ %>

New User

You are a new timesheet user and your timesheets have not yet been initialised. Please contact your team supervisor or a systems administrator for assistance.

<% } %> <% } %>