jsGantt(甘特图控件)

jsGantt是一个基于Javascript/CSS/HTML实现的甘特图控件。可以对任务进行分组、设置任务依赖、不同任务用不同颜标识、设置里程碑。支持动态加载任务,按天、周、月、小时、分钟查看任务甘特图。

主页:http://www.jsgantt.com/

下载地址:http://download.csdn.net/detail/evangel_z/4441353


TaskItem(pID, pName, pStart, pEnd, pColor, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen, pDepend)
pID: (required) is a unique ID used to identify each row for parent functions and for setting dom id for hiding/showing
pName: (required) is the task Label
pStart: (required) the task start date, can enter empty date ('') for groups. You can also enter specific time (2/10/2008 12:00) for additional percision or half days.
pEnd: (required) the task end date, can enter empty date ('') for groups
pColor: (required) the html color for this task; e.g. '00ff00'
pLink: (optional) any http link navigated to when task bar is clicked.
pMile:(optional) represent a milestone
pRes: (optional) resource name
pComp: (required) completion percent
pGroup: (optional) indicates whether this is a group(parent) - 0=NOT Parent; 1=IS Parent
pParent: (required) identifies a parent pID, this causes this task to be a child of identified task
pOpen: can be initially set to close folder when chart is first drawn
pDepend: optional list of id's this task is dependent on ... line drawn from dependent to this item
pCaption: optional caption that will be added after task bar if CaptionType set to "Caption"
*You should be able to add items to the chart in realtime via javascript and issuing "g.Draw()" command.

JSGantt.parseXML("project.xml",g);



	10
	WCF Changes
	
	
	0000ff
	
	0
	
	0
	1
	0
	1
	


	20
	Move to WCF from remoting
	8/11/2008
	8/15/2008
	0000ff
	
	0
	Rich
	10
	0
	10
	1
	


	30
	add Auditing
	8/19/2008
	8/21/2008
	0000ff
	
	0
	Mal
	50
	0
	10
	1
	20

Final code should look like 




你可能感兴趣的:(HTML,J2EE,javascript,variables,stylesheet,任务,date,constructor)