<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>

<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@ page import = "zr.zrpower.flowengine.service.FlowControl" %>
<%@ page import = "zr.zrpower.flowengine.mode.config.FLOW_CONFIG_ACTIVITY"%>

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

  String strCNodeNo;
  String strExecuteNo;
  String strNodeNo;
  String strAstrategy="";
  String strType="";
  String ISCachet ="";
  String strName="";
  String str_OtherID="";
  String str_ParentID ="";
  String str_ParentID1 ="";
  String AttMessage ="";//附件提示信息
  String IsAttMessage ="0";//是否需要检测附件提示

  FlowControl FControl = new FlowControl();

  strCNodeNo = request.getParameter("CNodeNo");
  strExecuteNo = request.getParameter("ExecuteNo");
  strNodeNo = request.getParameter("NodeNo");
  strType = request.getParameter("Type");
  AttMessage = request.getParameter("AttMessage");

  str_OtherID = request.getParameter("OtherID");
  str_ParentID = request.getParameter("ParentID");
  str_ParentID1 = request.getParameter("ParentID1");
  String th = request.getParameter("th");
  if (th==null){th="";}


  if (AttMessage.length()>0)
  {
       //根据当前活动和下一活动得到是否需要附件提示
       IsAttMessage = FControl.GetISAttMessage(strCNodeNo,strNodeNo);
  }
  FLOW_CONFIG_ACTIVITY activity = null;
  activity = FControl.GetFlowActivity(strNodeNo);
  //得到选择步骤的名称
  strName = activity.getNAME();
%>
<HTML>
<HEAD>
<TITLE><%=SysPreperty.getProperty().SystemName%><%=SysPreperty.getProperty().Versoin%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../zrsysmanage/css/<%=user.getUserCSS()%>">
<script type="text/javascript" src="../../ZrwebGui/tab/tab.js"></script>
<link rel="stylesheet" type="text/css" href="../../ZrwebGui/tab/tab.css">

<STYLE type=text/css>
#con { FONT-SIZE: 12px; MARGIN: 0px auto; WIDTH: 98% }
#tags { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 10px; WIDTH: 98% ; PADDING-TOP: 0px; HEIGHT: 23px }
#tags LI { BACKGROUND: url(../../ZrwebGui/tab/skin/<%=user.getUserImage()%>/tagleft.gif) no-repeat left bottom; FLOAT: left; MARGIN-RIGHT: 1px; LIST-STYLE-TYPE: none; HEIGHT: 23px }
#tags LI A { PADDING-RIGHT: 10px; PADDING-LEFT: 10px; BACKGROUND: url(../../ZrwebGui/tab/skin/<%=user.getUserImage()%>/tagright.gif) no-repeat right bottom; FLOAT: left; PADDING-BOTTOM: 0px; COLOR: #999;
LINE-HEIGHT: 23px; PADDING-TOP: 0px; HEIGHT: 23px; TEXT-DECORATION: none }
.tagContent { PADDING-RIGHT: 10px; DISPLAY: none; PADDING-LEFT: 10px; BACKGROUND: url(../../ZrwebGui/tab/skin/<%=user.getUserImage()%>/bg.gif) repeat-x; PADDING-BOTTOM: 10px; WIDTH: 100%; COLOR: #474747;
PADDING-TOP: 10px; HEIGHT: 400 }
</STYLE>

</HEAD>
<BODY class="BodyMain">

<%if(!user.getUserWINDOWTYPE().equals("6")){ %>
<%=userUI.ShowHeadHtml("本部门人员、办理单位或部门选择→["+strName+"]",user.getUserImage())%>
<%=userUI.ShowBodyStartHtml()%>
<%}%>

<DIV id="con">
  <UL id="tags">
    <LI class="selectTag">
      <A id="kslink" onClick="selectTag('tagContent0',this)"  href="javascript:void(0)">
      <IMG src="../../ZrwebGui/tab/skin/<%=user.getUserImage()%>/page.gif" align='absmiddle' border=0>
      本部门人员
      </A>
    </LI>
     <LI>
       <A onClick="selectTag('tagContent1',this)" href="javascript:void(0)">
       <IMG src="../../ZrwebGui/tab/skin/<%=user.getUserImage()%>/page.gif" align='absmiddle' border=0>
         其它部门
       </A>
     </LI>

  </UL>
  <DIV id="tagContent">
    <DIV class="tagContent selectTag" id="tagContent0">

  <table width="100%" height="92%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
      <td><iframe id="UnitPsnMain" name="UnitPsnMain" src="UnitPsnMain.jsp?th=<%=th%>&NodeNo=<%=strNodeNo%>" width="100%" height="100%" marginwidth="1" marginheight="1" frameborder="0"></iframe></td>
    </tr>
  </table>

  </DIV>
<DIV class="tagContent selectTag" id="tagContent1">


  <table width="100%" height="92%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
      <td><iframe id="UnitManage" name="UnitManage" src="UnitManage.jsp?th=<%=th%>" width="100%" height="100%" marginwidth="1" marginheight="1" frameborder="0"></iframe></td>
    </tr>
  </table>

</DIV>
</DIV>
</DIV>
<%if(!user.getUserWINDOWTYPE().equals("6")){ %>
<%=userUI.ShowFootHtml()%>
<%}%>
</body>
</html>
<SCRIPT language=javascript type=text/javascript>
<!--
setTimeout("returnMessage();",300);
//作用：返回提示信息或待选人员为一人时直接提交
function returnMessage(){
    var IsAttMessage = "<%=IsAttMessage%>";
    if (IsAttMessage=="1")
    {
        <%if(!user.getUserWINDOWTYPE().equals("6")){ %>
         window.returnValue = "IsAttMessage";
         window.close();
         return;
       <%}else{%>

          <%if (th.equals("1")){%>
           parent.SelectUpDept_x_f("IsAttMessage");
         <%}else{%>
           parent.SelectDoDept_x_f("IsAttMessage");
         <%}%>

       <%}%>
    }
}
// -->
</SCRIPT>
<%
//清空相关对象
user = null;
userUI = null;
activity = null;
FControl = null;
%>
