<%@ page contentType="text/html; charset=GBK"  errorPage="../../error.jsp" %>
<%@ page import = "zr.zrpower.ejb.sys.UnitService" %>
<%@ page import = "zr.zrpower.ejb.sys.UdictService" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.flowengine.service.FlowControl" %>
<%@ page import = "zr.zrpower.entity.sys.BPIP_UNIT" %>
<%@ page import = "zr.zrpower.common.util.DateWork" %>

<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<html>
<head>
<%
  UnitService depMgr = new UnitService();
  UdictService dictMgr = new UdictService();
  SessionUser user = (SessionUser)session.getAttribute("userinfo");
  FlowControl FControl = new FlowControl();
  UIService userUI =new UIService();
  String strUnitid = request.getParameter("nodeId");
  BPIP_UNIT uInfo =  depMgr.GetUnit(strUnitid);
    String strUNITID="";
  String  strUNITNAME="";
if(uInfo!=null){
strUNITID = uInfo.getUNITID();
strUNITNAME = uInfo.getUNITNAME();
}
//每个页面必须要=====开始
String widtype="1";
if("6".equals(user.getUserWINDOWTYPE())){//新窗口
   widtype="2";
}
//每个页面必须要=====结束
%>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link REL="stylesheet" type="text/css" href="../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="javascript">
//确定
function ok(){
       
        parent.parent.setvalue("<%=strUNITID%>","<%=strUNITNAME%>");
       
       
}
</SCRIPT>
</head>
<BODY class="BodyMain">
<%
  if(uInfo!=null){
%>
<DIV id="divMessage" style='padding-left:0;padding-top:0;width:96%;height:100%;overflow:auto'>
    <br>&nbsp;
   <fieldset style="width: 92%">
    <legend>待选择的单位或部门的详细资料</legend>
    <table border="0" class="inputTable" cellspacing="0"  height="260" cellpadding="0" width="98%">

          <tr>
            <td class="PutdSet">单位编号:</td>
            <td><%=uInfo.getUNITID()%></td>
          </tr>

          <tr>
            <td class="PutdSet">单位名称:</td>
            <td><%=uInfo.getUNITNAME()%></td>
          </tr>

          <tr>
            <td class="PutdSet" height="100"></td>
            <td></td>
          </tr>

      </table>
      </fieldset>
        <br>
        <center>
        <table cellspacing="0" cellpadding="0" border='0'><tr>

             <%=userUI.ClickButton1("确 定","ok();","buttonSure.gif",user.getUserImage())%>
             <% if("6".equals(user.getUserWINDOWTYPE())){%>
             <%=userUI.ClickButton1("关 闭","parent.parent.parent.layer.closeAll();","buttonClose.gif",user.getUserImage())%>
             <% }else{%>
             <%=userUI.ClickButton1("关 闭","parent.parent.window.close();","buttonClose.gif",user.getUserImage())%>
             <% }%>
             
             
         </tr></table>
         </center>
  <%
  }else{
     %>
     <br><div align="center"> 请选择单位或部门...</div>
     <%
  }
%>
</body>
</html>
<%
//清空相关对象
user = null;
userUI = null;
depMgr = null;
dictMgr = null;
FControl = null;
uInfo = null;
%>
