You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.0 KiB
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title>驰骋流程&表单设计器 </title>
<script src="/WF/Scripts/QueryString.js" type="text/javascript"></script>
<script src="/WF/Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="/WF/Scripts/config.js" type="text/javascript"></script>
<link href="/WF/Style/skin/css/login.css" type="text/css" rel="stylesheet" />
<script src="/WF/Comm/Gener.js" type="text/javascript"></script>
<script src="/WF/Comm/JS/validation.js"></script>
<base target="_self" />
<script type="text/javascript">
var name = null;
//初始化页面函数.....
$(function () {
var handler = new HttpHandler("BP.Cloud.HttpHandler.App_Portal");
var data = handler.DoMethodReturnString("SelectOneOrg20_Init");
if (data.indexOf('err@') == 0)
{
alert("错误:" + data);
return;
}
datas = JSON.parse(data);
console.log(datas);
//$("#cc").html("<img src='/Admin/Portal/Img/loading_small.gif' /><font color=blue>ccbpm 正在登录请您稍后.</font>");
var webUser = new WebUser();
var html = "您好:" + webUser.Name + ", 请选择要登录的部门.";
$("#title").html(html);
//求出他管多少企业.
var html = "<table>";
html += "<tr>";
html += "<th>组织</th>";
html += "<th>部门</th>";
html += "</tr>";
for (var i = 0; i < datas.length; i++) {
var data = datas[i];
html += "<tr>";
html += "<td>" + data.OrgName + "</td>";
html += "<td><a href=\"javascript:Selected('" + data.DeptNo + "');\" >" + data.DeptName + "</a></td>";
html += "</tr>";
}
html += "</table>";
$("#list").html(html);
});
///选择部门登录.
function Selected(no) {
var handler = new HttpHandler("BP.Cloud.HttpHandler.App_Portal");
handler.AddPara("DeptNo", no);
handler.AddUrlData();
var data = handler.DoMethodReturnString("SelectOneOrg20_Selected");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
SetHref(data);
return;
//var url = "/Admin/Portal/Default.htm?OrgNo=" + GetQueryString("OrgNo") + "&UserNo=" + GetQueryString("UserNo") + "&Token=" + GetQueryString("Token");
//return;
}
</script>
</head>
<body >
<form id="cc">
<center>
<fieldset style="width:60%;">
<legend id="title">
</legend>
<div id="list"></div>
</fieldset>
</center>
</form>
</body>
</html>