level 1
<%@ Page Language="c#" CodeBehind="TemplateChart.aspx.cs" AutoEventWireup="True"
Inherits="JHSoft.Web.WorkFlow.WorkFlowTemplate.TemplateChart" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns:v="urn:schemas-microsoft-com:vml">
<script type="text/javascript">
var loadjquey = false;
</script>
<head>
<title id="docTitle">
<%=strPageTitle %></title>
<style type="text/css">
v\:*
{
behavior: url(#default#VML);
}
</style>
<link href="../../CSS/Style_old_compatible.css" rel="stylesheet" type="text/css" />
<link href="../../JHsoft.UI.Lib/css/reset.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#nav
{
border-right: #cccccc 1px solid;
padding-right: 0px;
border-top: #cccccc 1px solid;
padding-left: 0px;
font-weight: bold;
background: #f9f9f9;
padding-bottom: 0px;
margin: 0px;
border-left: #cccccc 1px solid;
width: 150px;
padding-top: 0px;
border-bottom: 0px;
list-style-type: none;
text-align: left;
}
#nav UL
{
border-right: #cccccc 1px solid;
padding-right: 0px;
border-top: #cccccc 1px solid;
padding-left: 0px;
font-weight: bold;
background: #f9f9f9;
padding-bottom: 0px;
margin: 0px;
border-left: #cccccc 1px solid;
width: 150px;
padding-top: 0px;
border-bottom: 0px;
list-style-type: none;
text-align: left;
}
#nav A
{
display: block;
padding-left: 10px;
color: #333333;
border-bottom: #cccccc 1px solid;
text-align: left;
text-decoration: none;
}
#nav LI
{
line-height: 22px;
position: relative;
}
#nav LI UL
{
padding-right: 0px;
padding-left: 0px;
font-weight: normal;
left: -999px;
padding-bottom: 0px;
margin: -1px;
width: 150px;
padding-top: 0px;
position: absolute;
}
#nav LI UL A
{
padding-right: 12px;
padding-left: 12px;
padding-bottom: 0px;
cursor: hand;
line-height: 22px;
padding-top: 0px;
text-align: left;
}
#nav LI UL UL
{
margin: 0px 0px 0px 150px;
}
#nav LI:hover UL UL
{
left: -999px;
}
#nav LI.sfhover UL UL
{
left: -999px;
}
#nav LI:hover UL
{
left: auto;
}
#nav LI LI:hover UL
{
left: auto;
}
#nav LI.sfhover UL
{
left: auto;
}
#nav LI LI.sfhover UL
{
left: auto;
}
#nav LI:hover UL
{
left: 147px;
top: 0px;
}
#nav LI.sfhover UL
{
left: 147px;
top: 0px;
}
#nav LI:hover UL
{
left: -147px;
top: 0px;
}
#nav LI.subhover UL
{
left: -147px;
top: 0px;
}
#nav LI:hover
{
background: #f5e3c0;
cursor: hand;
}
#nav LI.sfhover
{
background: #f5e3c0;
cursor: hand;
}
#nav LI:hover
{
background: #f5e3c0;
cursor: hand;
}
#nav LI.subhover
{
background: #f5e3c0;
cursor: hand;
}
HTML #nav LI
{
float: left;
height: 1%;
}
HTML #nav LI A
{
height: 1%;
}
</style>
2020年12月14日 03点12分
2
level 1
<script type="text/javascript">
var parentWindow = top.Dialog.Arguments;
var index = top.Dialog.zindex; //当前弹出窗所在层级
//关闭页面时执行
window.onunload = function() {
if (!top.Dialog || index != top.Dialog.zindex) {//只有onunload事件是关闭弹窗引起时才执行
if (parentWindow && parentWindow.DevTemplateCallBack) {
parentWindow.DevTemplateCallBack();
}
}
}
</script>
<script type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i = 0; i < sfEls.length; i++) {
sfEls[i].onmouseover = function() {
this.className += " sfhover";
}
sfEls[i].onmouseout = function() {
this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
2020年12月14日 03点12分
3
level 1
<script type="text/javascript">
var appid = '<%=Request.QueryString["appid"]%>';
var id = '<%=Request.QueryString["id"]%>';
var isEdit = '<%=isEdit%>';
var version = '<%=strVersion%>'
var viewChart = '<%=viewChart%>';
function setChart() {
var isStart = document.getElementById("hidIsStart").value;
var curselectapprovename = appid; //得到的当前选中的工作流名称
var getArray = "";
var apptID = "";
var appGroupCode = "";
var vAppDID = document.getElementById("hid_AppDID").value;
var element = document.getElementById(vAppDID);
if (GetShapeType(element.tagName) == "verdict") {
type = "2";
}
else {
type = "0";
}
if (curselectapprovename.indexOf("$") != -1) {
getArray = curselectapprovename.split("$");
apptID = getArray[1];
appGroupCode = getArray[0];
}
else {
appGroupCode = "";
apptID = appid;
}
var strGroupCode = ""; //不知道从那里取,老程序好像取的是一个空值,可能存在问题
var strDialog = "";
var hurl = "../";
if (type == "0") {
var url = hurl + "WorkFlowSet/Approve_Dispose_SetIFrame.aspx?viewChart=" + viewChart + "&isEdit=" + isEdit + "&version=" + version + "&httAppDID=" + vAppDID + "&httAppTID=" + apptID + "&groupCode=" + appGroupCode + "&_IsBranch=0" + "&_IsStart=" + isStart;
strDialog = showModalDialog(url, window, "dialogLeft:200px;dialogTop:200px;dialogWidth:550px;dialogHeight:600px;status:no;scrollbars:no;toolbar:no;resizable:yes");
}
else if (type == "2") {
var url = hurl + "WorkFlowSet/Approve_Dispose_SetIFrame.aspx?viewChart=" + viewChart + "&isEdit=" + isEdit + "&version=" + version + "&httAppDID=" + vAppDID + "&httAppTID=" + apptID + "&groupCode=" + appGroupCode + "&_IsBranch=1" + "&_IsStart=" + isStart;
strDialog = showModalDialog(url, window, "dialogWidth:550px;dialogHeight:600px;status:no;scrollbars:no;toolbar:no;resizable:yes");
}
if ((strDialog == "") || (strDialog == null)) {
return false;
}
submit(vAppDID);
}
function CreateApproveDispose(type) {
var newXml;
var fid = document.getElementById("hid_AppDID").value;
var fatherChart = document.getElementById(fid);
////yuanzg 2013.10.17 分支可增加普通节点
var subList = document.getElementById("subList");
var isBranch = subList.getAttribute("isBranch");
//alert(isBranch); alert(type)
if (isBranch == "yes" && type == 1) type = 3;
////
switch (type) {
2020年12月14日 03点12分
4
level 1
case 1://分支
newXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><note0><note xmlname=\"" + appid + "\" type=\"course\" id=\"\" fid=\"" + fatherChart.id + "\" name=\"idCourse19\" fname=\"idCourse8\" ftype=\"" + GetShapeType(fatherChart.tagName) + "\" layer=\"19\"></note></note0>";
break;
case 2:
newXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><note0><note xmlname=\"" + appid + "\" type=\"course\" id=\"\" fid=\"" + fatherChart.id + "\" name=\"idCourse19\" fname=\"idCourse8\" ftype=\"verdict\" layer=\"19\"></note></note0>";
break;
case 3:
var beforeid = ""
var str = showModalDialog("selectBranchNode.aspx?fid=" + fid + "&ver=" + version + "&type=<%=AppT_ID%>", window, "status:no;help:no;dialogHeight:400px;dialogWidth:600px");
if (str == "" || str == null) {
return false;
}
else {
beforeid = str;
}
/* alert(beforeid)*/
newXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><note0><note xmlname=\"" + appid + "\" type=\"course\" id=\"\" fid=\"" + fatherChart.id + "\" name=\"idCourse19\" fname=\"idCourse8\" ftype=\"" + GetShapeType(fatherChart.tagName) + "\" beforeid=\"" + beforeid + "\" layer=\"19\"></note></note0>";
break;
}
result = UpdatePostData(0, newXml);
result = result.replace(/^&.*=/g, "");
submit(result);
}
function DeleteApproveDispose() {
var newXml;
var beginId = document.getElementById("hid_AppDID").value;
var delChart = document.getElementById(beginId);
var menu = document.getElementById("WorkFlowItemMenu");
if (delChart.start == "True") {
alert("<%=KSJDBNSC8%>");
menu.style.display = 'none';
return;
}
if (GetShapeType(delChart.tagName) == "verdict") {
if (CheckVerdictLink(beginId) > 1) {
alert("<%=PDZCZYTXSCNSC9%>");
menu.style.display = 'none';
return;
}
}
if (confirm("<%=NQSYSCGJCM10%>")) {
newXml = GetDelChart(beginId, appid);
UpdatePostData(2, newXml);
}
//2014-07-16 ie卡死
//submit(GetFatherID(beginId));
var menu = document.getElementById("WorkFlowItemMenu");
menu.style.display = 'none';
//2014-07-16 ie卡死
window.location.href = window.location.href;
}
function UpdatePostData(type, xml) {
var url = "AJAXExe.aspx";
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttp.open("Get", url + "?type=" + type + "&xmlvalue=" + xml + "&version=<%=bakVersion%>", false);
xmlHttp.send(null);
return xmlHttp.responseText;
}
function submit(id) {
document.Form1.hid_OPID.value = id;
//2014-07-16 ie卡死
//document.Form1.submit();
window.location.href = window.location.href;
}
function moveTo() {
if (document.Form1.hid_OPID.value != "") {
var location = "#" + document.Form1.hid_OPID.value;
document.location.href = location;
}
}
function SaveVersion() {
window.showModalDialog("TemplateVersion.aspx?TemID=<%=AppT_ID%>", "", "dialogWidth:550px;dialogHeight:350px;status:no;help:no")
}
function iniWin() {
if ("<%=bakVersion%>" != "-1")
document.getElementById("btn_SaveVersion").style.display = "none";
}
</script>
</head>
<body oncontextmenu="return false" style="background-image: url(../img/1.JPG)" scroll="no"
onload="iniWin()">
<form id="Form1" method="post" runat="server">
<input id="hidIsStart" type="hidden" />
<div style="z-index: 103; right: 260px; width: 100%; position: absolute" align="right">
<%=BranchCondition%>
<asp:DropDownList ID="DropDownList1" Style="z-index: 102; position: absolute; top: 0px"
runat="server" AutoPostBack="True" Width="200px">
</asp:DropDownList>
</div>
<input class="button-1" style="z-index: 100; left: 10px; position: absolute; top: 3px"
type="button" onclick="top.Dialog.Close();" value="<%=ClosePage%>" />
<input class="button-1" style="z-index: 100; left: 100px; position: absolute; top: 3px"
type="button" onclick="SaveVersion()" value="<%=BC12%>" id="btn_SaveVersion" />
<div id="WorkFlowItemMenu" style="display: none; z-index: 102; position: absolute">
<ul id="nav">
<li id="subMenu"><a class="selected">
<%=TJJC3%>
</a>
<ul>
<li id="subList"><a onclick="CreateApproveDispose(1);">
<%=APTJC6%>
</a></li>
<li><a onclick="CreateApproveDispose(2);">
<%=AFZJC7%>
</a></li>
</ul>
</li>
<li><a onclick="DeleteApproveDispose();">
<%=SCJC4%>
</a></li>
<li><a onclick="setChart();">
<%=SZJC5%>
</a></li>
</ul>
</div>
<v:shapetype id="Verdict" coordsize="21600,21600" path=" m10800,0 l0,10800,10800,21600,21600,10800 xe">
<v:stroke joinstyle="miter">
</v:stroke>
<v:path gradientshapeok="t" textboxrect="5400,5400,16200,16200">
</v:path>
</v:shapetype>
<input id="hid_AppDID" type="hidden" name="hid_AppDID" />
<input id="hid_OPID" type="hidden" name="hid_OPID" runat="server" />
<div class="WorkFlowMap" id="Chart" style="z-index: 101; left: 0px; overflow: auto;
width: expression(document.body.clientWidth); height: expression(document.body.clientHeight)">
<font face="宋体"></font>
<%=tempStr%>
</div>
</form>
<script src="../css/Control.js" type="text/javascript"></script>
<script type="text/javascript">
ShowAllLine();
document.attachEvent("onpropertychange", moveTo);
</script>
</body>
</html>
2020年12月14日 03点12分
5