<%@ 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.entity.sys.BPIP_UNIT" %>
<%@ page import = "zr.zrpower.common.util.DateWork" %>

<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@page import="zr.zrpower.ejb.sys.SecurityService"%>
<html>
<head>
<%
  UnitService depMgr = new UnitService();
  UdictService dictMgr = new UdictService();
  SecurityService SeService =new SecurityService();
  SessionUser user = (SessionUser)session.getAttribute("userinfo");
  UIService userUI =new UIService();
  BPIP_UNIT uInfo =  depMgr.GetUnit(request.getParameter("nodeId"));
  String strUnitid = request.getParameter("nodeId");
  if (strUnitid==null)
  {strUnitid="";}

  String strisLoad = request.getParameter("isLoad");
  if (strisLoad == null ){strisLoad="";}

%>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link REL="stylesheet" type="text/css" href="../zrsysmanage/css/<%=user.getUserCSS()%>">

<%if (strisLoad.equals("yes")){%>
<SCRIPT LANGUAGE="javascript">
   parent.leftFrame.location.href="Left.jsp";
</SCRIPT>
 <%}%>

</head>
<BODY class="BodyMain">
<%
  if(uInfo!=null){
%>
<!--HTML 功能标题显示[显示内容,图标文件,宽度,用户肤色的图片文件夹]-->
<%=userUI.ShowTitleHtml("","","",user.getUserImage())%>

<%=userUI.ClickButton("修改单位","UnitEdit.jsp?unitid="+strUnitid,"IcoEdit.gif",user.getUserImage())%>
<%=userUI.ClickButton("增加同级单位","UnitAdd.jsp?unitid="+strUnitid+"&TYPE=1","IcoAdd.gif",user.getUserImage())%>
<%=userUI.ClickButton("增加下级单位","UnitAdd.jsp?unitid="+strUnitid+"&TYPE=2","IcoAdd.gif",user.getUserImage())%>
<%=userUI.ClickButton("删除本单位","../actionunit.do?Act=delete&unitid="+strUnitid,"buttonDelete.gif",user.getUserImage())%>

<!--HTML 功能标题结束-->
<%=userUI.ShowTitleEndHtml()%>
<%}else{%>
<%=userUI.ClickButton("增加单位","UnitAdd.jsp?unitid="+strUnitid+"&TYPE=1","IcoAdd.gif",user.getUserImage())%>

<%}%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>
<%
  if(uInfo!=null){
%>
<DIV id="divMessage" style='padding-left:0;padding-top:0;width:100%;height:100%;overflow:auto'>
    <br>&nbsp;
   <fieldset style="width: 98%">
    <legend> 单位详细资料 </legend>
    <table border="0" class="inputTable" cellspacing="0" 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">排序号:</td>
            <td><%=uInfo.getORDERCODE()%></td>
          </tr>
      </table>
	</fieldset>
        <br><br>
        </div>
  <%
  }else{
    if (strUnitid.equals("delete"))
    {
     %>
     <br><div align="center"> 删除成功,请重新进入！ </div>

     <%
    }else
    {
     %>
     <br><div align="center"> 请 选 择 单 位 . . . </div>
     <%
    }
  }
%>
<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>
</body>
</html>
<%
depMgr = null;
dictMgr = null;
user = null;
userUI = null;
uInfo = null;
%>
