download timesheet.aspx.cs
Language: C#
LOC: 53
Project Info
Websharp
Server: Spider_20090107_inc
Type: filesystem
...e.rar\Websharp2004\Ioffice\
   addschdule.aspx
   addschdule.aspx.cs
   AssemblyInfo.cs
   Global.asax.cs
   index.aspx
   index.aspx.cs
   left.aspx
   left.aspx.cs
   login.aspx
   login.aspx.cs
   timesheet.aspx
   timesheet.aspx.cs
   today.aspx
   today.aspx.cs
   top.aspx
   top.aspx.cs

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using Ioffice.Interfaces;
using Ioffice.Interfaces.EntityDefinition;

using Websharp.Enterprise;
using Websharp.ORM.Base;

namespace Ioffice
{
	/// <summary>
	/// timesheet Summary��
	/// </summary>
	public class timesheet : System.Web.UI.Page
	{
		protected System.Web.UI.WebControls.Repeater Repeater1;
		protected System.Web.UI.WebControls.Calendar Calendar1;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			if(!IsPostBack)
			{
				Calendar1.SelectedDate = DateTime.Today;
				ShowSchdule();
			}
		}

		#region 
		override protected void OnInit(EventArgs e)
		{
			//
			// 
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 
		/// 
		/// </summary>
		private void InitializeComponent()
		{    
			this.Calendar1.SelectionChanged += new System.EventHandler(this.Calendar1_SelectionChanged);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
		{
			ShowSchdule();
		}

		private void ShowSchdule()
		{
			ISchduleSystem ss = ServiceLocator.FindService(
				"SchduleService",typeof(ISchduleSystem)) as ISchduleSystem;
			Repeater1.DataSource = ss.FindSchduleByDate(Calendar1.SelectedDate);
			Repeater1.DataBind();
		}
	}
}

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us