BudgetDimension.jsp 2.12 KB
<%@page import="weaver.fna.maintenance.FnaSystemSetComInfo"%>
<%@page import="weaver.conn.RecordSet"%>

<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
    //权限
	if(true) {
	    response.sendRedirect("/notice/noright.jsp") ;
	    return ;
	}

    String imagefilename = "/images/hdHRM_wev8.gif";
    String titlename = "";
    String needfav ="1";
    String needhelp ="";
%>
<HTML><HEAD>
    <%
        int userId = user.getUID();

        RecordSet rs = new RecordSet();
        String accountId = "";

        if("oracle".equalsIgnoreCase(rs.getDBType())){
            rs.executeQuery(" select id from FnaAccountInfo where beginDate is not null ");
        }else{
            rs.executeQuery(" select id from FnaAccountInfo where beginDate != '' ");
        }
        if(rs.next()){
            accountId = Util.null2String(rs.getString("id"));
        }

        rs.executeQuery(" select accountId from FnaAccountUser where userId = ? ", userId);
        if(rs.next()){
            accountId = Util.null2String(rs.getString("accountId"));
        }

/*if("".equals(accountId)){
    out.println("</head><body style=\"padding: 15px;\">");
    out.println( SystemEnv.getHtmlLabelName(388046, user.getLanguage()) + "<br /><br />");//请先设置账套
    //out.println("<img alt=\"\" src=\"/fna/costCenter/CostCenter_wev8.png\"></body></html>");
    out.println("</body></html>");
    return;
}*/
    %>
    <LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>

</HEAD>
<body scroll="no">
<TABLE class=viewform width=100% id=oTable1 height=100% cellpadding="0px" cellspacing="0px">
    <TBODY>
    <tr>
        <td height=100% id=oTd2 name=oTd2 width="*" style=’padding:0px’>
            <IFRAME name=optFrame id=optFrame src="/fna/mulDimensions/budgetDimension/BudgetDimensionView.jsp?accountId=<%=accountId%>" width="100%" height="100%" frameborder=no scrolling=yes>
                //浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME>
        </td>
    </tr>
    </TBODY>
</TABLE>
</body>

</html>