日期:2014-05-17 浏览次数:20434 次
<script type="text/javascript" > function init() { try { var myObject = window.dialogArguments; var odVlaue = myObject.OldValue; //已选值 var allowseltype = myObject.selectType; //选择类型 if (allowseltype == "0") { document.getElementById("lbchoseall").innerText = "全选/全不选"; document.getElementById("promptmessage").style.display = "inline"; document.getElementById("SelectConfig").style.display = "inline"; document.getElementById("SelectConfig").value = "1"; } else if (allowseltype == "1") { document.getElementById("lbchoseall").innerText = "全不选"; } var strRoleDepts = myObject.roleDepts; if (typeof (strRoleDepts) == "undefined" || strRoleDepts == null || strRoleDepts == "") { strRoleDepts = ""; } if (odVlaue == null || typeof (odVlaue) == "undefined") { odVlaue = ""; } TreeView.SetParameter(strRoleDepts, "", allowseltype, ""); TreeView.InitTree(odVlaue); TreeView.SetValue(odVlaue); } catch (e) { alert(e.Message.toString()); } }