<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.flowengine.mode.config.FLOW_CONFIG_PROCESS"%>
<%@ page import = "zr.zrpower.flowengine.mode.base.Package"%>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>
<%@ page import = "zr.zrpower.flowengine.service.FlowControl"%>
<%@ page import = "zr.zrpower.flowengine.service.FlowConfig"%>
<%@ page import = "zr.zrpower.flowengine.mode.config.FLOW_CONFIG_PROCESS"%>

<%@ page import = "java.lang.Object"%>

<HTML>
<%
SessionUser user = (SessionUser)session.getAttribute("userinfo");
UIService userUI =new UIService();

FLOW_CONFIG_PROCESS[] PROCESS = null;
Package[] Package = null;
FlowControl FControl = new FlowControl();
FlowConfig Fconfig =new FlowConfig();
String strWorkflow_No = request.getParameter("SelectedItems");

FLOW_CONFIG_PROCESS Process = null;
Process = FControl.GetFlowProcess(strWorkflow_No);


String strFlowName = Process.getNAME();
String strPackageNAME = "["+Fconfig.GetFPackageName(strWorkflow_No)+"]";
String strFlowType = Process.getTYPE();
String strFlowFormType = Process.getFORMTYPE();

%>
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/html5/script/jquery-2.0.3.min.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/html5/layer/layer.js"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" src="../../../zrsysmanage/html5/script/systype.js"></SCRIPT>


<SCRIPT language=javascript type=text/javascript>
<!--
function Activitynew()
{
  location.href="Activitynew.jsp?FlowID=<%=strWorkflow_No%>";
}

//弹出新窗体1(活动属性设置)
function OpenSetup1(url){
  var name="PopWindow";
  var ShowPopWindow = null;
  var status="toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=850,height=600";
  ShowPopWindow = window.open(url,name,status);
  ShowPopWindow.moveTo(155,30);
  ShowPopWindow.focus();
}


function selectFlow(){
   var strValue = window.showModalDialog("selectFlow.jsp?flow_No=<%=strWorkflow_No%>",window,"status:no;help:no;dialogHeight:500px;dialogWidth:350px");
   if (strValue!=null)
   {
      var list=new Array();
      list=strValue.split(",");

      location.href="Activitynew1.jsp?FlowID="+list[0];

   }
}
function about(){
   var strValue = window.showModalDialog("flowAbout.jsp",window,"status:no;help:no;dialogHeight:142px;dialogWidth:300px");
}
// -->
</SCRIPT>
</HEAD>

<BODY class="BodyMain">
<form>
<!--HTML Head表单头显示[显示内容,图标文件,用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml(strPackageNAME+"["+strFlowName+"]流程配置","IcoTitle.gif",user.getUserImage())%>

          <tr><td align="center">

          <table border='0' width="98%"  height="98%" cellspacing="0" cellpadding="0" align=center>
                 <tr>
                    <td height="10"></td>
                 </tr>
                 <tr>
                      <td height="28" >

                       <table border='0' width="100%"  height="100%" cellspacing="0" cellpadding="0">
                       <tr><td width="12" background="<%=SysPreperty.getProperty().AppUrl%>zrsysmanage/images/<%=user.getUserImage()%>/flowTitleBack1.gif"></td>
                       <td background="<%=SysPreperty.getProperty().AppUrl%>zrsysmanage/images/<%=user.getUserImage()%>/flowTitleBack2.gif">

                      &nbsp;<a href="javascript:window.EditActivity.btnSave_onclick();" title="保存"><img src="../../images/FlowSave.gif" width="18" height="18" align="middle" border="0"></a>
                      <%if (strFlowType.equals("1")){%>
                      &nbsp;<a href="javascript:Activitynew();" title="新增活动(步骤)"><img src="../../images/flowBtnHuman.gif" width="18" height="18" align="middle" border="0"></a>
                      &nbsp;<a href="javascript:selectFlow();" title="子流程"><img src="../../images/flowBtnSub.gif" width="18" height="18" align="middle" border="0"></a>
                      <%}%>
                      &nbsp;<a href="javascript:window.EditActivity.history.back();" title="后退"><img src="../../images/back.gif" width="18" height="18" align="middle" border="0"></a>
                      &nbsp;<a href="javascript:window.EditActivity.history.forward();" title="前进"><img src="../../images/next.gif" width="18" height="18" align="middle" border="0"></a>
                      &nbsp;<a href="javascript:about();" title="关于"><img src="../../images/flowbout.gif" width="18" height="18" align="middle" border="0"></a>

                      </td>
                      <td align="right"  background="<%=SysPreperty.getProperty().AppUrl%>zrsysmanage/images/<%=user.getUserImage()%>/flowTitleBack2.gif">流程配置&nbsp;&nbsp;</td>

                      <td width="16" background="<%=SysPreperty.getProperty().AppUrl%>zrsysmanage/images/<%=user.getUserImage()%>/flowTitleBack3.gif"></td>
                      </tr></table>

                      </td>
                 </tr>
                 <tr>
                  <td>
                  <iframe id=EditActivity name=EditActivity src="EditActivity.jsp?Workflow_No=<%=strWorkflow_No%>&type=<%=strFlowType%>&formtype=<%=strFlowFormType%>" width=100% height=100%></iframe>
                  </td>
                 </tr>
          </table>

          </td></tr>
<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>
</form>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
PROCESS = null;
Package = null;
FControl = null;
Fconfig = null;
Process = null;
%>
