62,176
社区成员
发帖
与我相关
我的任务
分享
//后台回调方法
function ShowDesktopHtml(htmlReceipt, context)
{
var divRpt = document.getElementById("divDesktop");
if(htmlReceipt.indexOf("$defaultModuleList$") > 0)
{
var list = htmlReceipt.split("$defaultModuleList$");
if(list[0])
divRpt.innerHTML = list[0];
if(list[1])
{
//选中默认模块
var modules = list[1].split("||");
if(modules.length>0)
{
var tv = document.getElementById("TreeView1");
var ks = tv.getElementsByTagName('INPUT');
for(var k=0;k<ks.length;k++)
{
if(ks[k].type=="checkbox" && ks[k].title.indexOf("%%control?")>0)
{
for(var j=0;j<modules.length;j++)
{
if(ks[k].title.indexOf(modules[j])>0)
ks[k].checked = true;
}
}
}
}
}
}
else
{
divRpt.innerHTML = htmlReceipt;
}
edit = true;
inint();
var divPs = document.getElementById("divProcessTmp");
divPs.innerHTML = "";
}
private string getRenderCode()
{
StringWriter writer1 = new StringWriter(CultureInfo.InvariantCulture);
HtmlTextWriter writer2 = new HtmlTextWriter(writer1);
GridView1.Visible = true;
GridView1.RenderControl(writer2);
writer2.Flush();
writer2.Close();
return writer1.ToString();
}