在做一个项目管理的东西,分配计划的时候希望更便利。要实现的效果是:
1)行显示姓名(计划分配前已经填写,从数据库读取),列显示日期(列出本月和下个月的所有日期)
2)安排计划时项目经理拖动鼠标选择人员所在列和日期,onmouseup时弹出窗口,获取人员、起始日期,输入任务即可,提交插入一条记录(包括起始日期,人员、任务描述)。
3)任务安排后在页面上相应行列显示所填写的任务。之前的思路:
1)左侧列为datalist获取本月和下个月的所有日期并呈现
2)标题行为datalist,获取之前填写的数据。
3)内容为datalist模板中插入gridview获取已填写的任务,daterowbound事件绑定js鼠标动作。            e.Row.Attributes.Add("onmousedown", "c=this.style.backgroundColor;Text1.value='"+rowid+"';this.style.backgroundColor='#ffcc33'");
            e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#ffcc33'");
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
            e.Row.Attributes.Add("onmouseup", "this.style.backgroundColor=c;window.open('member_add2.aspx?Phase_id=" + 1170 + "&user_id=" + userid + "&end=" + rowid + "&work=" + work + "&begin='+Text1.value)");目前的问题:
1)不能与左侧日期列表相对应的位置显示任务
2)无任务(开始分配任务和新增人员)时,无法添加空白用于选择
求高手指点思路和做法。