读取对象
DataSet ds = decomPosManager.GetParentIDInfo(ViewState["DEC_REC_ID"].ToString(), "", ViewState["PROC_REC_ID"].ToString(), -12);
Uds = ds;
StringBuilder sb = new StringBuilder();
if (ds.Tables[0].Rows.Count > 0) {
//清空记录要修改ID
HDF_later_updateID.Value = "";
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
#region MyRegion
string NewRow = ds.Tables[0].Rows[i]["REC_ID"].ToString();
string subProjectname = ds.Tables[0].Rows[i]["SubprojectName"].ToString();
string UserID = ds.Tables[0].Rows[i]["UserID"].ToString();
string AssignedNames = ds.Tables[0].Rows[i]["AssignedNames"].ToString();
string SubprojectDisp =ds.Tables[0].Rows[i]["SubprojectDisp"].ToString();
string SubStartTime=Convert .ToDateTime( ds.Tables[0].Rows[i]["SubStartTime"]).ToString("yyyy-MM-dd");
string SubEndTime =Convert .ToDateTime ( ds.Tables[0].Rows[i]["SubEndTime"]).ToString("yyyy-MM-dd");
//记录可能要修改或删除数据ID
HDF_later_updateID.Value = NewRow + HDF_later_updateID.Value + ",";
sb.Append("<tr><td>");
sb.Append("<input type=\"hidden\" id =\"no" + NewRow + "\" name =\"no\" value=\"" + NewRow + "\" /><table id=\"yy\"><tr><td style=\"text-align:left\"><img src=\"Image/titlLog.gif\"/><img src=\"http://www.cnblogs.com/Images/TaskImg/close.png\" onclick=\"del('" + NewRow + "')\"/></td></tr><tr><td><table class=\"Contents\"><tr><td>项目名称;</td><td><input id=\"inp_projectName" + NewRow + "\" value=\"" + subProjectname + "\" type=\"text\"/></td><td>委派人:</td><td><input id=\"inp_accreditation" + NewRow + "\" value=\"" + AssignedNames + "\" type=\"text\" /><img src=\"Image/person.jpg\" onclick=\"checkResponsible('" + NewRow + "')\"/><input type=\"hidden\" name=\"tasks\" id=\"inp_hd_accreditationID" + NewRow + "\" value=\"" + UserID + "\" /></td></tr><tr><td>开始时间:</td><td><input id=\"startTime" + NewRow + "\" value=\"" + SubStartTime + "\" type=\"text\" onfocus=\"WdatePicker({isShowClear:true,readOnly:false})\" /></td><td>结束时间:</td><td><input type=\"text\" id=\"endTime" + NewRow + "\" value=\"" + SubEndTime + "\" onfocus=\"WdatePicker({isShowClear:true,readOnly:false})\" /></td></tr><tr><td>项目描述:</td><td colspan=\"3\"><textarea class=\"Textarea\" id=\"inp_display" + NewRow + "\" >" + SubprojectDisp + "</textarea></td></tr></table></td></tr></table>");
sb.Append("</td></td>");
#endregion
}