/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-09-07 07:51:14 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.*;
import wiseoa.bill.jstl.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.RBAC.*;
import wiseoa.mail.jstl.*;

public final class system_005fbill_005fiframeurl_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
    _jspx_dependants.put("/rightverify.jsp", Long.valueOf(1476341677059L));
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody;

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release();
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
  
	
	//éå¸¸æ¯å¯¹äºé£æ­¤éè¦æç®¡çåæéçé¡µé¢ç¨åå«æ¬é¡µé¢çæ¹å¼æ¥è¿è¡æéæ§å¶
	// å¦æå½åç¨æ·æç®¡çåæéï¼é£ä¹ç´æ¥è¿å
	// å¦æå½åé¡µé¢æ²¡æå å¥å°å·¥ä½å°ä¸­ï¼è¡¨ç¤ºæ²¡æè¿è¡é¢å¤ææï¼é£ä¹æç¤ºæ æé
	//å¦æå å¥å°äºå·¥ä½å°ï¼å¹¶ä¸åéå½åç¨æ·æ¥ææéï¼é£ä¹ok 
	User user=User.getUserFromRequest( request);
	 
	 if ( user.getRole()!=1) //å¦æä¸æ¯ç³»ç»ç®¡çæéçäººï¼
	 {
		 	String url =WiseFilter.getShortURL( request); 
			int unit = user.getUnit();
		 
			RBAC_cache cache = RBAC_cache.getInstance(null, unit);
 			if (!cache.needVerify(url)) 
 			{
 				String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			} 

            //å¦æä¹æ²¡æè¿è¡å·¥ä½å°ææ
  	 		if ( ! WiseFilter.urlOnCommision( user, url ,0) ) 
			{ 
 	    		String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			}
	 
	 }


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
  

 
BillIframeUrl  ml= new BillIframeUrl(request);
 
	  


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("  <head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write(" \r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    <TITLE></TITLE>\r\n");
      out.write("    \r\n");
      out.write("    <META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("    <META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("    \r\n");
      out.write("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("   \r\n");
      out.write("\t <SCRIPT src=\"tab3/tab.js\" type=\"text/javascript\"></SCRIPT>\r\n");
      out.write("     <STYLE>\r\n");
      out.write("  \r\n");
      out.write("    \r\n");
      out.write("     </STYLE>\r\n");
      out.write("     \r\n");
      out.write("        \r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write(" \r\n");
      out.write("  \r\n");
      out.write("\t\r\n");
      out.write("  </HEAD>\r\n");
      out.write("  \r\n");
      out.write(" <body     >\r\n");
      out.write(" <div> \r\n");
      out.write("<span style=\"font-size:14px;\"> <B>");
      out.print(ml.billTypeName );
      out.write("</B><br><br>在单据列表中显示一个子窗口，此窗口的URL地址设置：\r\n");
      out.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><a href=\"system_bill_set.jsp?tab=tab2&id=");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("\">返回</a></b></span><br><br>\r\n");
      out.write("</div>\r\n");
      out.write("<ul>\r\n");
      out.write("<li>在单据列表页面，可以挂接一个页面，当点击单据列表中的其个单据时，该页面如果定义了名为onBillClicked的函数，那么它将会被调用。</li>\r\n");
      out.write("<li>系统的报表已经缺省定义了该函数，该函数会调用报表脚本中 onBillClicked(billguid)这样的脚本。</li>\r\n");
      out.write("<li>地址定义时，参数值可以不用预先编码，系统会自动编码，比如　system_report.jsp?id=1&name=详细信息  其中的参数name就是中文，系统在使用该url地址前，会自动将它做编码\r\n");
      out.write("，以确保在报表中能得到到正确的参数数据</li>\r\n");
      out.write("<li>如果地址是一个报表，将自动隐藏报表的工具栏，如果需要显示工具栏，可以在地址上加上参数：<b>toolbarvisible=true</b>\r\n");
      out.write("<li>如果地址是一个报表，将自动在地址栏上加上单据类型参数<b>billtype</b>\r\n");
      out.write("\r\n");
      out.write("</ul>\r\n");
      out.write("\r\n");
      out.write("<font color=red>如果不设置，则在单据列表中不会显示子窗口</font>\r\n");
      out.write("<br>\r\n");
      out.write("<br>\r\n");
      out.write("<b>url地址：</b>\r\n");
      out.write(" <input type=\"text\"    class='textbox' id=url   value=\"");
      out.print(ml.url);
      out.write("\"><br>\r\n");
      out.write(" <br><b>窗口高度：</b><br>\r\n");
      out.write(" <input type=\"text\"    class='flatbox' size=10  id=height   value=\"");
      out.print(ml.iframeHeight);
      out.write("\"><br>\r\n");
      out.write("  <br><br>\r\n");
      out.write("<input type=\"button\" value=\"保存\" onclick=\"save();\">    \r\n");
      out.write("     \r\n");
      out.write("<script>\r\n");
      out.write("\r\n");
      out.write(" var billid=\"");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write(" var billtype=\"");
      if (_jspx_meth_c_005fout_005f2(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("   \r\n");
      out.write("  function save(  )\r\n");
      out.write("\t{\r\n");
      out.write("\t\t \r\n");
      out.write("\t  var url=$E('url').value;\r\n");
      out.write("\t  var height=$E('height').value;\r\n");
      out.write(" \r\n");
      out.write(" \t    jsrsExecute(\"servlet/wiseoa.bill.rpc.BillManage\", callback, \"setIframeUrlForBillType\", [billid, billtype ,url ,height ] ,false);\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t  \r\n");
      out.write("function  callback(msg)\r\n");
      out.write("{\r\n");
      out.write("    if (extractValue(msg ,\"ok\")==\"true\") \r\n");
      out.write("\t{\r\n");
      out.write("\t    alert('设置成功。');\r\n");
      out.write("\t\t \r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t   alert ( extractValue(msg, \"error\"));\r\n");
      out.write("\t}\r\n");
      out.write("\t   \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("   \r\n");
      out.write("     </script>  \r\n");
      out.write("      \r\n");
      out.write("      </BODY>\r\n");
      out.write("</HTML>\r\n");
      out.write("\r\n");
      out.write("\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f0.setParent(null);
    // /system_bill_iframeurl.jsp(50,98) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.billid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag();
    if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f1.setParent(null);
    // /system_bill_iframeurl.jsp(74,13) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.billid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag();
    if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f2 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f2.setParent(null);
    // /system_bill_iframeurl.jsp(75,15) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f2.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.billtype}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f2 = _jspx_th_c_005fout_005f2.doStartTag();
    if (_jspx_th_c_005fout_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
    return false;
  }
}
