甘特图您有试吗,找的就是你啦......

canning92 2005-02-05 08:34:24
谢谢走进来.....
特请教用网页设计类软件,怎么样才能实现工程管理的甘特图
具体问题:
1.根据每天,或每一个时间段的工作进度制作对应的任务图表
2.横坐标为动态的日期,纵坐标为动态的事件,可能是31天制的日期,也可能是某个工程,或某个人
主要疑难:
1.怎么样根据日期或工作任务进度动态的确定图表开始描绘或结束描绘的位置.
2.确定位置后怎么样才能实现图的绘制
3.有想过有VML或SVG,但很难根据数据库的数据确定他的位置

有劳各位啦!
...全文
205 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghui0380 2005-02-12
  • 打赏
  • 举报
回复
asp.net版有个人写了一个
用的dategrid,效果还不错。
canning92 2005-02-09
  • 打赏
  • 举报
回复
to tang688(汇汇)

谢谢您的大力支持1

我继续努力的学学吧1
canning92 2005-02-09
  • 打赏
  • 举报
回复
to patchclass(黑翼)

谢谢您

您可以说明白一点吗/

我没有过这方面的经验1
patchclass 2005-02-07
  • 打赏
  • 举报
回复
不要用vml也可以阿,用图形生成组件,我的干特图就是 php生成的图片
tang688 2005-02-07
  • 打赏
  • 举报
回复
那个2005\2指的是2005年2月啊,我是以每天的数据来画这个图的,当然要用循环来实现了。
tang688 2005-02-07
  • 打赏
  • 举报
回复
没看我的最后一句?
当然是自动生成的了。
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,488.571428571429px' to='970px,488.571428571429px' strokecolor='#69f'/>
比如这一句,实际在程序中是这样的:
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='<%=rs("aa")%>px,<%=rs("bb")%>px' to='<%=rs("cc")%>px,<%=rs("dd")%>px' strokecolor='#69f'/>
那个rs当然就是表对象了,而aa、bb、cc、dd就是字段了。

然后中间还用了很多的循环了。
  • 打赏
  • 举报
回复
汗,看你需要干什么了
canning92 2005-02-06
  • 打赏
  • 举报
回复
to: tang688(汇汇)

这些能说得再明白一点吗?
数据库里的对应存储怎么确定!
不可能要人为的输入进去吧!
可不可以自动生成!!!!
tang688 2005-02-05
  • 打赏
  • 举报
回复
不是太明白你说的东东,但以下HTML文件是不是对你有帮助?

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<!--[if !mso]>
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<![endif]-->
<style>
TD { FONT-SIZE: 9pt}
</style>
<body>
<br>

<v:rect id='_x0000_s1027' alt='' style='position:absolute;left:40px;top:60px;width:930px;height:500px;z-index:-1' fillcolor='#9cf' stroked='f'>
<v:fill rotate='t' angle='-45' focus='100%' type='gradient'/>
</v:rect>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,555px' to='40px,560px'/>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='815px,214.050321428571px' to='840.833333333333px,220.138364285714px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='840.833333333333px,60px' to='840.833333333333px,560px'/><v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:810.833333333333px;top:562px;width:50px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>2005\2</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='840.833333333333px,220.138364285714px' to='866.666666666667px,155.945092857143px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='866.666666666667px,555px' to='866.666666666667px,560px'/>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='866.666666666667px,155.945092857143px' to='892.5px,192.634435714286px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='892.5px,555px' to='892.5px,560px'/>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='892.5px,192.634435714286px' to='918.333333333333px,236.020985714286px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='918.333333333333px,555px' to='918.333333333333px,560px'/>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='918.333333333333px,236.020985714286px' to='944.166666666667px,193.156007142857px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='944.166666666667px,555px' to='944.166666666667px,560px'/>
<v:line id='_x0000_s1025' alt='' style='position:absolute;left:0;text-align:left;top:0;z-index:1' from='944.166666666667px,193.156007142857px' to='944.166666666667px,193.156007142857px' coordsize='21600,21600' strokecolor='#FF0000' strokeweight='1.5'></v:line>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,131.428571428571px' to='970px,131.428571428571px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:121.428571428571px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>6十万</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,202.857142857143px' to='970px,202.857142857143px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:192.857142857143px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>5十万</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,274.285714285714px' to='970px,274.285714285714px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:264.285714285714px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>4十万</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,345.714285714286px' to='970px,345.714285714286px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:335.714285714286px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>3十万</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,417.142857142857px' to='970px,417.142857142857px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:407.142857142857px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>2十万</td>
</tr>
</table>
</v:textbox>
</v:shape>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,488.571428571429px' to='970px,488.571428571429px' strokecolor='#69f'/>
<v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:-30px;top:478.571428571429px;width:70px;height:18px;z-index:1'>
<v:textbox inset='0px,0px,0px,0px'>
<table cellspacing='3' cellpadding='0' width='100%' height='100%'>
<tr>
<td align='right'>1十万</td>
</tr>
</table>
</v:textbox>
</v:shape>


<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,60px' to='40px,560px'/>
<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='40px,560px' to='970px,560px'/>


</body>
</html>
只因太长,被我删除了一部分,这个文件是用数据库内容自动生成的。
-神仙- 2005-02-05
  • 打赏
  • 举报
回复
回去复习数学

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧