document.getElementById("SavedQuerySelector").value 获取下拉列表框的value值
if (document.getElementById("SavedQuerySelector").value == "{00000000-0000-0000-00AA-000010001002}") {
if (UserHasRole(['销售代表-临床', '地区经理-临床', '大区经理-临床', '销售总监-临床'])) {
document.getElementById("SavedQuerySelector").options.remove(2);
//2表示视图的位置,document.getElementById("SavedQuerySelector").options.length中的一个值
document.getElementById("SavedQuerySelector").options.remove(2);
document.getElementById("SavedQuerySelector").options.remove(2);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
document.getElementById("SavedQuerySelector").options.remove(3);
}
if (UserHasRole(['销售代表-商务', '销售代表-分销', '地区经理-商务', '地区经理-分销', '大区经理-商务', '大区经理-分销', '销售总监-商务', '销售总监-分销'])) {
document.getElementById("SavedQuerySelector").options.remove(5);
document.getElementById("SavedQuerySelector").options.remove(5);
document.getElementById("SavedQuerySelector").options.remove(5);
document.getElementById("SavedQuerySelector").options.remove(5);
document.getElementById("SavedQuerySelector").options.remove(5);
document.getElementById("SavedQuerySelector").options.remove(6);
document.getElementById("SavedQuerySelector").options.remove(6);
document.getElementById("SavedQuerySelector").options.remove(6);
}
}
//销售代表-临床进入时默认视图我进院产品视图
try
{
if (_currentTypeCode==1 && UserHasRole(['销售代表-临床']))
{
//document.getElementById("SavedQuerySelector").defaultSelected="{C513D9F6-CFD5-DE11-8604-00155D000323}";
handleView(document.getElementById("SavedQuerySelector"));
}
}
catch(exceptin)
{
}
}
</script>
<script>
try{
if (_currentTypeCode==1 && UserHasRole(['销售代表-临床']))
document.getElementById("SavedQuerySelector").defaultSelected="{C513D9F6-CFD5-DE11-8604-00155D000323}";
}
catch(exceptin){}
</script>