/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2021-09-27 07:10:58 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 wiseoa.bill.jstl.*;
import java.net.*;
import wiseoa.util.*;
import wiseoa.bill.rpc.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import jun.db.util.*;
import wiseoa.mail.jstl.*;

public final class billedit_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>(5);
    _jspx_dependants.put("/template/flow/attachmentRename.htm", Long.valueOf(1221203582486L));
    _jspx_dependants.put("/template/bill/sendmail.htm", Long.valueOf(1286871540052L));
    _jspx_dependants.put("/rightverify_loginneedtest.jsp", Long.valueOf(1476341414363L));
    _jspx_dependants.put("/template/flow/selectAttachmentType.htm", Long.valueOf(1372125956791L));
    _jspx_dependants.put("/rightverify_login.jsp", Long.valueOf(1517794822543L));
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fchoose;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fotherwise;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems;

  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());
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fchoose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fotherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.release();
    _005fjspx_005ftagPool_005fc_005fchoose.release();
    _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest.release();
    _005fjspx_005ftagPool_005fc_005fotherwise.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.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");

	// æ ¡éªææ OAçæé
	User user_1211 = User.getUserFromRequest(request);

	if (user_1211.getId() < 0) //å¦ææ²¡æç»å½ä¿¡æ¯ï¼é£ä¹çä¸ä¸cookie
	{

		javax.servlet.http.Cookie ck[] = request.getCookies();
		String username_ = "";
		String password_ = "";

		if (ck != null)
		{
			for (int i = 0; i < ck.length; i++)
			{

				if (ck[i].getName().equalsIgnoreCase("username")) username_ = wiseoa.util.Escape.unescape(ck[i].getValue());
				if (ck[i].getName().equalsIgnoreCase("password")) password_ = FF.DecryptString (ck[i].getValue());

			}
		}

		String pass = Login.Validate(username_, password_, "", request, response, getServletContext(), "");
		if (! pass.equals(""))
		{

		 
			String subpath = (String) session.getAttribute("wiseoaappsubpath");
			if (subpath == null) subpath = "";
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode(pass, "UTF-8"));
			return;
		}
	}

      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");
  
 
   //æ£æµæ¯å¦å¯¹æªç»å½ç¨æ·å¼æ¾
   User user_1211temp=User.getUserFromRequest( request);
   if (  user_1211temp.getId()<0 )
	 {
	   
	    System_BaseInfo gInfo= System_BaseInfo.getInstance(request);
	    if ( gInfo.GlobalConfig.get("openforlogineduser").toString().equals("1"))
		{
	    	
		    
		    String subpath=(String)session.getAttribute("wiseoaappsubpath" );
		    if ( subpath==null) subpath="";
		    String url=request.getRequestURI();
		    String qs= request.getQueryString();
		    if ( qs==null) qs="";
		    if ( !qs.equals("") ) qs="?"+qs;
		    url=jun.db.util.Escape.escape(url+qs); 
		    
		 	response.sendRedirect(  subpath+"/login.jsp?url="+url );
		 	return;
		}
	 }
 

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

    BillEdit te= new BillEdit( request); 
	FF.pageContextSetAttribute(pageContext,"templateid", new Integer( te.templateID ));
	FF.pageContextSetAttribute(pageContext,"id",  te.GGUID  );
	FF.pageContextSetAttribute(pageContext,"flowid", te.flowid);
	FF.pageContextSetAttribute(pageContext,"tablename",  te.tableName  );
	
	FF.pageContextSetAttribute(pageContext,"jsonQueryString", Base64Coder.encode(  FF.QueryString2JSON(request)));
	
	//打印相关
	FF.pageContextSetAttribute(pageContext,"printFormatList", te.printFormatList);
 	FF.pageContextSetAttribute(pageContext,"printFormatTemplateId", te.printFormatTemplateId);
 	FF.pageContextSetAttribute(pageContext,"tableid", te.tableID);
 	
 
	
//2010.05.31 fi
//如果是在 bill.jsp 中打开的 本页面，那么会直接传入 wiseoainnerparam
//如果是直接打开本页面，那么需要再次构建wiseoainnerparam参数
//自动构建此参数时，主要以 id 及billtype为主，如果工作台上还加了其它参数，那么无法得知
//因此如果当前用户 是sa ,加一个警告提示给sa 


	String wiseoainnerparam = FF.GetStringFromRequest(request,"wiseoainnerparam",""); 
	if( wiseoainnerparam.equals(""))
	{
		String s=request.getQueryString();
		if ( s==null) s="";
		if ( !s.equals("") ) s="?"+s;
	
		wiseoainnerparam="bill_frame.jsp?id="+te.tableID+"&billtype="+te.billType;
		wiseoainnerparam=jun.db.util.Base32Coder.encode(wiseoainnerparam.getBytes());
		wiseoa.util.FF.pageContextSetAttribute(pageContext,"wiseoainnerparam_isautobuild", true);//表示URL没有提供wiseoainnerparam参数，此参数是自已构造的
		
	}else
	{
		String subpath = (String) session.getAttribute("wiseoaappsubpath");
		if (subpath == null) subpath = "";
		
		String t= new String(jun.db.util.Base32Coder.decode (wiseoainnerparam ));
		if(  FF.String2Int( FF.GetStringFromQueryString(request, t, "id", "" ,"")) != te.tableID ) 
		{
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode("非法的wiseoainnerparam参数，该参数中的id与即将打开的记录所在表的id不一至。", "UTF-8"));
			return;
		}
		
		int bt= FF.String2Int(FF.GetStringFromQueryString(request,t,"billtype", ""+BillEngine.NO_BILL_TYPE,"" ));
		if( bt!=te.billType)
		{
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode("非法的wiseoainnerparam参数，该参数中的billtype与即将打开的记录对应的billtype不一至。", "UTF-8"));
			return;
		}
		
		
		wiseoa.util.FF.pageContextSetAttribute(pageContext,"wiseoainnerparam_isautobuild", false); //表示URL上已经提供了wiseoainnerparam参数
	}
	
	wiseoa.util.FF.pageContextSetAttribute(pageContext,"wiseoainnerparam", wiseoainnerparam);
	
	

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("  <head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\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("    <STYLE type=\"text/css\">\r\n");
      out.write("\r\n");
      out.write("    body {\tmargin-left: 0px;\tmargin-top: 0px;\tmargin-right: 0px;\tmargin-bottom: 0px;\t}　　\r\n");
      out.write("\r\n");
      out.write("    </STYLE>\r\n");
      out.write("\r\n");
      out.write("\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"extjs/resources/css/ext-all.css\"/>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"extjs/adapter/yui/yui-utilities.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"extjs/adapter/yui/ext-yui-adapter.js\"></script>\r\n");
      out.write("    <script type=\"text/javascript\" src=\"extjs/ext-all.js\"></script>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/wiseGetAppletPosition.js\"></script>\r\n");
      out.write(" \r\n");
      out.write(" <script language=\"JavaScript\" src=\"pop/example.js\"></script>  <!-- 主要是用其中的sleep函数 -->\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/json.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/jst.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/jquery.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/zrpc.js.jsp\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/jquery.blockUI2.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/domutil.js\"></script>\r\n");
      out.write(" \r\n");
      out.write(" <SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/editmail.js\"></SCRIPT>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("  </head>\r\n");
      out.write("  \r\n");
      out.write("<body  style=\"overflow:hidden;\">\r\n");
      out.write("\r\n");
      out.write("<table border=0  cellspacing=0 cellpadding=0 width=\"100%\">  \r\n");
      out.write("<tr  id=toolbarContainer ><td><div id=\"toolbar\" ></div></td>\r\n");
      out.write("<td align=right><div id=\"toolbar2\" ></div></td>\r\n");
      out.write("<td style=\" width:15px;background-color:#e0e0e0 ; border-bottom:1px solid #a9bfd3\"  >\r\n");
      out.write("\r\n");
      out.write("<iframe id=billprint   width=5 height=5  frameborder=0 src=\"billprint.jsp?templateid=");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("&mastertablename=");
      out.print(te.tableName);
      out.write("&bgcolor=e0e0e0\" ></iframe>\r\n");
      out.write("</td>\r\n");
      out.write("\r\n");
      out.write("</tr>\r\n");
      out.write("<tr id=toolbar3Container style=\"display:none;\"><td colspan=4><div id=toolbar3></div></td></tr>\r\n");
      out.write("</table>\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("\r\n");
      out.write("function getApplet(  )\r\n");
      out.write("{\r\n");
      out.write("\t \t\r\n");
      out.write("\tvar ret= $E('billapplet');\r\n");
      out.write("\twhile(ret==null)\r\n");
      out.write("\t{ \r\n");
      out.write("\t\tret= $E('billapplet');\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\treturn ret; \r\n");
      out.write("\t\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("var toolbarConfig=");
      out.print(te.toolbarConfig);
      out.write(";\r\n");
      out.write("checkToolbarConfig (\"newbill\");\r\n");
      out.write("checkToolbarConfig (\"editbill\");\r\n");
      out.write("checkToolbarConfig (\"viewbill\");\r\n");
      out.write("checkToolbarConfig (\"deletebill\");\r\n");
      out.write("checkToolbarConfig (\"obsoletebill\");\r\n");
      out.write("checkToolbarConfig (\"verifybill\");\r\n");
      out.write("checkToolbarConfig (\"exportbill\");\r\n");
      out.write("checkToolbarConfig (\"importbill\");\r\n");
      out.write("checkToolbarConfig (\"searchbill\");\r\n");
      out.write("checkToolbarConfig (\"printbill\");\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function  checkToolbarConfig( what)\r\n");
      out.write("{\r\n");
      out.write("\t if( toolbarConfig[what]==undefined)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t  toolbarConfig[what] ={};\r\n");
      out.write("\t\t  toolbarConfig[what].visible =true;\r\n");
      out.write("\t\t  toolbarConfig[what].caption =\"\";\r\n");
      out.write("\t}\r\n");
      out.write(" }\r\n");
      out.write(" \r\n");
      out.write("/*\r\n");
      out.write(" 2011.08.20　在页面关闭前，通知Applet 强制终止初始化，如果applet还没有初始化完成，那么就不要再继续了\r\n");
      out.write(" \r\n");
      out.write(" 有没有效果，未知\r\n");
      out.write(" \r\n");
      out.write(" */　\r\n");
      out.write("window.onbeforeunload=function()\r\n");
      out.write("{\r\n");
      out.write("\t//2011.10.11 基本上无效\r\n");
      out.write("\t//waitForAppletInitOK();\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function waitForAppletInitOK()\r\n");
      out.write("{\r\n");
      out.write("\treturn ;\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tvar applet= getApplet();\r\n");
      out.write("\tvar delayTimes=0;\r\n");
      out.write("\twhile( !applet.isInitialOk())\r\n");
      out.write("\t{\r\n");
      out.write("\t\tapplet.delay(100);\r\n");
      out.write("\t\tdelayTimes++;\r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t//不要等太久，不超过10秒\r\n");
      out.write("　\t\tif( delayTimes>100) \r\n");
      out.write("　\t\t{\r\n");
      out.write("　\t\t\tapplet.forceInitCanceled(); //如果太久，那么取消初始化操作\r\n");
      out.write("　\t\t\tbreak;\r\n");
      out.write("　\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//如果挂接到单据列表中，点击单据时，会被调用　\r\n");
      out.write("function onBillClicked(guid)\r\n");
      out.write("{\r\n");
      out.write("\t getApplet().RunScript( \"onBillClicked\", [guid ]);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("var tb; //工具栏\r\n");
      out.write("\r\n");
      out.write("var cb_next;\r\n");
      out.write("var cb_prior;\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("var cb_new ;\r\n");
      out.write("var cb_edit;\r\n");
      out.write("var cb_save;\r\n");
      out.write("var cb_export;\r\n");
      out.write("var cb_atttachment;\r\n");
      out.write("var cb_print;\r\n");
      out.write("var cb_sendmail;\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("var $G={};\r\n");
      out.write("\r\n");
      out.write(" $(document).ready( function()\r\n");
      out.write(" {\r\n");
      out.write("\t\t          \r\n");
      out.write("\t\t  init();\r\n");
      out.write("\t\t  if (isOpenAlone()) //如果是单独打开本页，那么禁用下面的功能\r\n");
      out.write("\t\t  { \r\n");
      out.write("\t \t\t\t//如果是放在frame中，bill.jsp会判断权限。　单独打开，那么需要判断权限，这个放在dataPrepared\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t}else\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\ttry\r\n");
      out.write("\t\t\t\t{ \r\n");
      out.write("\t\t\t\t if( ! parent.frames(\"billlist\").hasNext())  cb_next.disable();\r\n");
      out.write("\t\t\t\t if( ! parent.frames(\"billlist\").hasPrior())  cb_prior.disable();\r\n");
      out.write("\t\t\t\t}catch(err)\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t      \r\n");
      out.write("\t\t     \r\n");
      out.write("  });\r\n");
      out.write("\r\n");
      out.write("function init()\r\n");
      out.write("{\r\n");
      out.write("\t\ttb = new Ext.Toolbar('toolbar');\r\n");
      out.write("        \r\n");
      out.write("\t\tif(toolbarConfig.newbill.visible)\r\n");
      out.write("\t\t{ \r\n");
      out.write("        \ttb.addButton( cb_new=new Ext.Toolbar.Button({text: '新录入', cls: 'x-btn-text-icon',icon:'image/xin.gif',  handler: cb_new_onclick } )  );\r\n");
      out.write("        \ttb.addSeparator();\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("        ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("    \r\n");
      out.write("\r\n");
      out.write("        ");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("        \r\n");
      out.write("  \r\n");
      out.write("        \r\n");
      out.write("   　     tb.addButton( cb_sendmail=new Ext.Toolbar.Button({text: '发送邮件', cls: 'x-btn-text-icon',icon:'image/mail2.gif',  handler: cb_sendmail_onclick } )  );\r\n");
      out.write("        tb.addSeparator();\r\n");
      out.write("        \r\n");
      out.write("   　     tb.addButton( cb_export=new Ext.Toolbar.Button({text: '导出', cls: 'x-btn-text-icon',icon:'image/export.gif',  handler: cb_export_onclick } )  );\r\n");
      out.write("        tb.addSeparator();\r\n");
      out.write("\r\n");
      out.write("        ");
      if (_jspx_meth_c_005fif_005f3(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t  \r\n");
      out.write("\t        \r\n");
      out.write("\t    tb.addButton( cb_print=new Ext.Toolbar.Button({text: '打印', cls: 'x-btn-text-icon',icon:'image/print_16.gif',  handler: cb_print_onclick } )  );\r\n");
      out.write("        tb.addSeparator();\r\n");
      out.write("        \r\n");
      out.write("        if(toolbarConfig.verifybill.visible)\r\n");
      out.write("        { \r\n");
      out.write("     \t    var caption= toolbarConfig.verifybill.caption;\r\n");
      out.write("     \t    if( caption==\"\") caption='审核';\r\n");
      out.write("        \t\ttb.addButton( new Ext.Toolbar.Button({text: caption, cls: 'x-btn-text-icon',icon:'image/edit7.gif',  handler: verifyBill } )  );\r\n");
      out.write("        \t\ttb.addSeparator();\r\n");
      out.write("        }\r\n");
      out.write("        \r\n");
      out.write("    \tif( !isOpenAlone())\r\n");
      out.write("    \t{ \t\r\n");
      out.write("            tb.addButton( cb_prior=new Ext.Toolbar.Button({text: '上一张', cls: 'x-btn-text-icon',icon:'image/left16.gif',  handler:cb_prior_onclick } )  );\r\n");
      out.write("\t        tb.addSeparator();\r\n");
      out.write("\t        tb.addButton(cb_next= new Ext.Toolbar.Button({text: '下一张', cls: 'x-btn-text-icon',icon:'image/right16.gif',  handler:cb_next_onclick } )  );\r\n");
      out.write("\t        tb.addSeparator();\r\n");
      out.write("    \t}\r\n");
      out.write("    \t\r\n");
      out.write("    \ttb.addButton( new Ext.Toolbar.Button({text: '界面调整', cls: 'x-btn-text-icon',icon:'image/resizecolumn.gif',  handler:cb_layout_enter } )  );\r\n");
      out.write("\t    tb.addSeparator();\r\n");
      out.write("    \t\r\n");
      out.write(" \t    /*  菜单会被applet档住，　暂时无解，可能用ext2.0 再配合http://www.javaeye.com/topic/140935可以解决\r\n");
      out.write("        var  printButton= new Ext.Toolbar.Button({\r\n");
      out.write("            text: '打印',\r\n");
      out.write("            cls: 'x-btn-text-icon',\r\n");
      out.write("            icon:'image/print_16.gif',\r\n");
      out.write("               menu : {items: [\r\n");
      out.write("                  ");
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                                  \r\n");
      out.write("                  {text: '打印机及页面设置',   cls: 'x-btn-text-icon', \r\n");
      out.write("                 \t menu : {items: [\r\n");
      out.write("                 \t                 ");
      if (_jspx_meth_c_005fforEach_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                 \t             '' ]}         \r\n");
      out.write("                  },\r\n");
      out.write("\r\n");
      out.write("                  {text: '打印预览',   cls: 'x-btn-text-icon', \r\n");
      out.write("                 \t menu : {items: [\r\n");
      out.write("                 \t                 ");
      if (_jspx_meth_c_005fforEach_005f2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                 \t             '' ]}         \r\n");
      out.write("                  } \r\n");
      out.write("                   \r\n");
      out.write("\r\n");
      out.write("                      \r\n");
      out.write("                  ]}\r\n");
      out.write("      \t} ) ;\r\n");
      out.write("\r\n");
      out.write("        tb.addButton(printButton );\r\n");
      out.write("\r\n");
      out.write("        tb.addSeparator();\r\n");
      out.write("\t\t*/\r\n");
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\r\n");
      out.write("       \r\n");
      out.write("\t        \r\n");
      out.write("\r\n");
      out.write("        var tb2 = new Ext.Toolbar('toolbar2');\r\n");
      out.write("        \r\n");
      out.write("   \t   ");
      if (_jspx_meth_c_005fif_005f4(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("       //如果有父框架，那么增加返回列表按钮\r\n");
      out.write("       if(parent.billframeset )\r\n");
      out.write("       {\r\n");
      out.write("        \ttb2.addButton( new Ext.Toolbar.Button({text: '返回列表', cls: 'x-btn-text-icon',icon:'image/backto16.gif',  handler: cb_return_onclick } )  );\r\n");
      out.write("       }\r\n");
      out.write("      \r\n");
      out.write("       \r\n");
      out.write("       \r\n");
      out.write("   \t   \ttb3 = new Ext.Toolbar('toolbar3');\r\n");
      out.write("   \t   \r\n");
      out.write("\t   \ttb3.addButton( new Ext.Toolbar.Button({text: '保存布局设置', cls: 'x-btn-text-icon',icon:'image/disk2.gif',  handler: cb_layout_save } )  );\r\n");
      out.write("   \t\ttb3.addSeparator();\r\n");
      out.write("   \t\ttb3.addButton( new Ext.Toolbar.Button({text: '清除布局设置', cls: 'x-btn-text-icon',icon:'image/reload.png',  handler: cb_layout_default } )  );\r\n");
      out.write("        tb3.addSeparator();\r\n");
      out.write("    \r\n");
      out.write("\r\n");
      out.write("       \ttb3.addButton( new Ext.Toolbar.Button({text: '退出设置', cls: 'x-btn-text-icon',icon:'image/backto16.gif',  handler: cb_layout_exit } )  );\r\n");
      out.write("       \ttb3.addSeparator();\r\n");
      out.write("  \r\n");
      out.write("   \t\r\n");
      out.write("     \r\n");
      out.write("} \r\n");
      out.write("            \r\n");
      out.write("\r\n");
      out.write("//自动保存\r\n");
      out.write("function  autoSaveOK()\r\n");
      out.write("{\r\n");
      out.write("    //仅当在编辑或新增单据时，才要检查当前单据是不是要保存\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f5(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("function cb_layout_enter()\r\n");
      out.write("{\r\n");
      out.write("\t$E('toolbar3Container').style.display=\"\";\r\n");
      out.write("\t$E('toolbarContainer').style.display=\"none\";\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tvar CPM=applet.book.getActiveSheet().getColumnPropertyManage();\r\n");
      out.write("\tvar RPM=applet.book.getActiveSheet().getRowPropertyManage();\r\n");
      out.write("\t\r\n");
      out.write("\tCPM.setColumnHeadHeight(19);\r\n");
      out.write("//\tRPM.setRowHeadWidth(40);\r\n");
      out.write("\tapplet.repaint();\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tOnResize();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function cb_layout_exit()\r\n");
      out.write("{\r\n");
      out.write("\t$E('toolbar3Container').style.display=\"none\";\r\n");
      out.write("\t$E('toolbarContainer').style.display=\"\";\r\n");
      out.write("\t\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tvar CPM=applet.book.getActiveSheet().getColumnPropertyManage();\r\n");
      out.write("\tvar RPM=applet.book.getActiveSheet().getRowPropertyManage();\r\n");
      out.write("\t\r\n");
      out.write("\tCPM.setColumnHeadHeight(0);\r\n");
      out.write("\tRPM.setRowHeadWidth(0);\r\n");
      out.write("\tapplet.repaint();\r\n");
      out.write("\t\r\n");
      out.write("\tOnResize();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_layout_save()\r\n");
      out.write("{\r\n");
      out.write("\tif(!confirm(\"如果是以sa登录进行保存时，那么本布局被保存为缺省的布局。\"+\r\n");
      out.write("\t\t\t\"当非sa用户保存界面布局时，并不改变其它用户的界面布局。确信保存吗?\")) return;\r\n");
      out.write("\t\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\t\r\n");
      out.write("\tapplet.saveColumnRowSize( );\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_layout_default()\r\n");
      out.write("{\r\n");
      out.write("\tif(!confirm(\"如果是以sa登录执行清除布局时，将删除所有用户对本单据的布局设置。\"+\r\n");
      out.write("\t\"当非sa用户执行清除布局时，仅仅删除当前用户对本单据的布局设置(并不影响其它用户)，确信加载缺省布局吗?\")) return;\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tvar err=applet.restoreDefaultColumnRowSize( );\r\n");
      out.write("\tif( err=='')\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\talert(\"执行成功。下次进入时，将使用缺省布局。\");\r\n");
      out.write("\t}\r\n");
      out.write("\telse\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\talert(\"执行失败，原因是：\"+err);\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("  $G.printBill=function(item)\r\n");
      out.write("  {\r\n");
      out.write("\t  \r\n");
      out.write("\t\t var guid=  item.guid ;\r\n");
      out.write("\t \r\n");
      out.write("\t\t var ids=getApplet().GUID;\r\n");
      out.write("\t\t if (!autoSaveOK) return;\r\n");
      out.write("\t \r\n");
      out.write("\t\t setTimeout( \"printBill('\"+guid+\"','\"+ids+\"')\" , 100);\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  function loadPrintFormatPageIfNeeded( )\r\n");
      out.write("  {\r\n");
      out.write("\t  var f=$E('billprint');\r\n");
      out.write("\t  var pw=$iframe(\"billprint\");\r\n");
      out.write("\t  if( f.src.indexOf(\".jsp\")>0) return;\r\n");
      out.write("\t  f.style.width=\"20px\";\r\n");
      out.write("\t  f.style.height=\"20px\";\r\n");
      out.write("\t  f.frameBorder=1;\r\n");
      out.write("\t  f.src=f.title;\r\n");
      out.write("\t \r\n");
      out.write("\t  getApplet().showInfoPane(\"<p align=center>正在加载打印格式...</p>\",300,75);\r\n");
      out.write("\t \r\n");
      out.write("\t  while( true)\r\n");
      out.write("\t  { \r\n");
      out.write("\t  \tgetApplet().delay(100);\r\n");
      out.write("\t  \tif(   pw.isAppletLoadOK()  ) break;\r\n");
      out.write("\t  }\r\n");
      out.write("\t  getApplet().hideInfoPane();\r\n");
      out.write("\t \r\n");
      out.write(" \r\n");
      out.write("\t  \r\n");
      out.write("  }\r\n");
      out.write("  \r\n");
      out.write("  function printBill( guid , ids)\r\n");
      out.write("  {\r\n");
      out.write("\t  \r\n");
      out.write("\t     var b=   getApplet().printPermit(ids);\r\n");
      out.write("\t   \r\n");
      out.write("\t     if(! b) return;  \r\n");
      out.write("\r\n");
      out.write("\t    \r\n");
      out.write("\t      loadPrintFormatPageIfNeeded( );\r\n");
      out.write("\t      \r\n");
      out.write("\t      \r\n");
      out.write("\t  \t var pw=$iframe(\"billprint\");\r\n");
      out.write("\t\t var printApplet =pw.document.getElementById(\"billapplet\");\r\n");
      out.write("\r\n");
      out.write("\t\t if ( ! pw.isAppletLoadOK()  ||  printApplet==null)\r\n");
      out.write("\t\t {\r\n");
      out.write("\t\t\t setTimeout( \"printBill('\"+guid+\"','\"+ids+\"')\" , 1000);\r\n");
      out.write("\t\t\t return ;\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t }\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t printApplet.printBill( guid, ids, \"print\");\r\n");
      out.write("\t\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  $G.printSetupBill=function(item)\r\n");
      out.write("  {\r\n");
      out.write("\t  var guid=  item.guid ;\r\n");
      out.write("\t  //如果直接调用 而不是setTimeout ,那么页面不会显示在前面\r\n");
      out.write("\t  setTimeout( \"printSetupBill('\"+guid+\"')\" , 100);\r\n");
      out.write("\t   \r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  function printSetupBill(guid)\r\n");
      out.write("  {\r\n");
      out.write("\t \r\n");
      out.write("\t\t\r\n");
      out.write("\t\t var pw=$iframe(\"billprint\");\r\n");
      out.write("\t\t var printApplet =pw.document.getElementById(\"billapplet\");\r\n");
      out.write("\t\t if ( ! pw.isAppletLoadOK()  ||  printApplet==null)\r\n");
      out.write("\t\t {\r\n");
      out.write("\t\t\t setTimeout( \"printBill('\"+guid+\"','\"+ids+\"')\" , 1000);\r\n");
      out.write("\t\t\t return ;\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t }\r\n");
      out.write("\t\t printApplet.printBill( guid, \"\", \"printsetup\");\r\n");
      out.write(" \t\t \r\n");
      out.write("  }\r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("  $G.printPreviewBill=function(item)\r\n");
      out.write("  {\r\n");
      out.write("\t\t var guid=  item.guid ;\r\n");
      out.write("\t\t var ids=getApplet().GUID;\r\n");
      out.write("\t \r\n");
      out.write("\t\t if (!autoSaveOK) return;\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t setTimeout( \"printPreviewBill('\"+guid+\"','\"+ids+\"')\" , 100);\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write("  function  printPreviewBill ( guid, ids)\r\n");
      out.write("  {\r\n");
      out.write("\t \r\n");
      out.write("\t     var b=   getApplet().printPermit(ids);\r\n");
      out.write("\t   \r\n");
      out.write("\t     if(! b) return;  \r\n");
      out.write("\r\n");
      out.write("\t    \r\n");
      out.write("\t      loadPrintFormatPageIfNeeded( );\r\n");
      out.write("\t      \r\n");
      out.write("\t      \r\n");
      out.write("\t     var pw=$iframe(\"billprint\");\r\n");
      out.write("\t\t var printApplet =pw.document.getElementById(\"billapplet\");\r\n");
      out.write("\t\t if ( ! pw.isAppletLoadOK()  ||  printApplet==null)\r\n");
      out.write("\t\t {\r\n");
      out.write("\t\t\t setTimeout( \"printBill('\"+guid+\"','\"+ids+\"')\" , 1000);\r\n");
      out.write("\t\t\t return ;\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t }\r\n");
      out.write("\t\t \r\n");
      out.write("\t \t printApplet.printBill( guid, ids, \"printpreview\");\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("    \r\n");
      out.write("  function verifyBill()\r\n");
      out.write("  {\r\n");
      out.write("\r\n");
      out.write("   \r\n");
      out.write("  \t  if( getApplet().verifyBill() ) reloadBillInfo(id);\r\n");
      out.write("  \t \r\n");
      out.write(" \r\n");
      out.write("  \t\t\r\n");
      out.write("  }\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("  <!--  附件列表 ============================================================== -->\r\n");
      out.write("   <IFRAME name=uploadframe width=0 height=0  style=\"display:none\" ></IFRAME>\r\n");
      out.write("   <table  id=attachment_container  width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n");
      out.write("   <FORM id='uploadAttachmentForm'   method=\"POST\" action=\"servlet/wiseoa.bill.rpc.UploadBillAttaichment\"  ENCTYPE=\"multipart/form-data\" target='uploadframe'>\r\n");
      out.write("   <tr><td>\r\n");
      out.write("    <input type=\"hidden\" id='id'  name='id'  value='");
      if (_jspx_meth_c_005fout_005f7(_jspx_page_context))
        return;
      out.write("'>   \r\n");
      out.write("    <input type=\"hidden\" id='tablename'  name='tablename'  value='");
      if (_jspx_meth_c_005fout_005f8(_jspx_page_context))
        return;
      out.write("'>   \r\n");
      out.write("    <div id=attachmentlist style=\"padding-left:10px;\"  >\r\n");
      out.write("    </div>\r\n");
      out.write("    </td></tr>\r\n");
      out.write("    <tr><td style=\"padding-left:10px;\">\r\n");
      out.write("    <table border=0><tr><td><span id=\"idfilespan\"  ></span></td>\r\n");
      out.write("        <td  align=left id=cb_upload_attachment_container style=\"display:none;\">\r\n");
      out.write("        <input type=\"button\" onclick=\"cb_upload_attaichment_onclick();\" value=\"上传附件\">\r\n");
      out.write("        <input type=\"button\" onclick=\"cb_clipboard_attaichment_onclick();\" value=\"剪贴板内容做为图片附件\">\r\n");
      out.write("        </td></tr></table>\r\n");
      out.write("    </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("   </FORM>  \r\n");
      out.write(" </table>\r\n");
      out.write(" \r\n");
      out.write("<div id=appletContainer>    \r\n");
      if (_jspx_meth_c_005fif_005f6(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write(" <applet id=\"billapplet\"\r\n");
      out.write("\t\tcode=\"wiseoa.flow.applet.FlowForm\" codebase=\".\"\r\n");
      out.write("\t\tarchive=\"flowform.jar,jedit23.jar,zexcel.jar,scriptengine.jar,datastore.jar,regexp14.jar,dw.jar,rhino.jar,kxml.jar,jep.jar,preview.jar,jfreechart.jar,comm.jar,dock.jar,Qrcode-C.jar,qrcode-R.jar\"\r\n");
      out.write("\t\twidth=\"100%\" height=\"400\">\r\n");
      out.write("\t\t<PARAM name=\"java_arguments\" value=\"-Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m \">\r\n");
      out.write("\t\t<param name=\"action\" value='");
      if (_jspx_meth_c_005fout_005f10(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"templateid\" value='");
      if (_jspx_meth_c_005fout_005f11(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"RedirectTemplateID\" value='");
      if (_jspx_meth_c_005fout_005f12(_jspx_page_context))
        return;
      out.write("'>  \r\n");
      out.write("\t\t<param name=\"EmbedTemplateID\" value='");
      if (_jspx_meth_c_005fout_005f13(_jspx_page_context))
        return;
      out.write("'>  \r\n");
      out.write("\t\t<param name=\"guid\" value='");
      if (_jspx_meth_c_005fout_005f14(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"test\" value='0'>\r\n");
      out.write("\t\t<param name=\"nodeguid\" value=''>\r\n");
      out.write("\t\t<param name=\"nodeinnerguid\" value=''>\r\n");
      out.write("\t\t<param name=\"autotitle\" value=''>\r\n");
      out.write("\t\t<param name=\"debug\" value='");
      if (_jspx_meth_c_005fout_005f15(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t \r\n");
      out.write("\t\t<param name=\"type\" value='bill'>\r\n");
      out.write("\t\t \r\n");
      out.write(" \t\t<param name=\"targetid\" value='");
      if (_jspx_meth_c_005fout_005f16(_jspx_page_context))
        return;
      out.write("'>  \r\n");
      out.write("\t\t<param name=\"jsonQueryString\" value='");
      if (_jspx_meth_c_005fout_005f17(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"wiseoainnerparam\" value='");
      if (_jspx_meth_c_005fout_005f18(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"billtype\" value='");
      if (_jspx_meth_c_005fout_005f19(_jspx_page_context))
        return;
      out.write("'>  \r\n");
      out.write("\t\t<param name=\"tableid\" value='");
      if (_jspx_meth_c_005fout_005f20(_jspx_page_context))
        return;
      out.write("'>\r\n");
      out.write("\t\t<param name=\"showinitstepinfo\" value='");
      if (_jspx_meth_c_005fout_005f21(_jspx_page_context))
        return;
      out.write("'> <!-- 是否显示初始提示信息 -->\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("</applet>　\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fif_005f7(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<!--     用于输出到Excel  -->\t\r\n");
      out.write("\t <FORM  style=\"display:none\"  id='form_toexcel'   name='form_toexcel'   \r\n");
      out.write("\t\tmethod=\"POST\" action=\"servlet/wiseoa.flow.jsprpc.WorkToExcel\"    target='frame_toexcel'>\r\n");
      out.write("\t\t\t<input  id=\"toexcel_id\" name=\"toexcel_id\"  value='");
      out.print(te.billName);
      out.write("'>\r\n");
      out.write("\t\t\t<input  id=\"action\" name=\"action\"  value='export'>\r\n");
      out.write("\t\t\t<input  id=\"subject\" name=\"subject\"  value=''>\r\n");
      out.write("\t\t\t<textarea  id=\"toexcel_xml\" name=\"toexcel_xml\" ></textarea>\r\n");
      out.write("</FORM>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" <iframe id=\"frame_toexcel\"     name=\"frame_toexcel\"  style=\"display:none\" ></iframe>\r\n");
      out.write(" 　\r\n");
      out.write("\r\n");
      out.write(" <FORM  style=\"display:none\"  id='form_sendmail'   name='form_sendmail'   \r\n");
      out.write("\t\tmethod=\"POST\" action=\"servlet/wiseoa.flow.jsprpc.WorkToExcel\"    target='_blank'>\r\n");
      out.write("\t\t\t<input  id=\"toexcel_id\" name=\"toexcel_id\"  value='");
      out.print(te.billName);
      out.write("'>\r\n");
      out.write("            <input  id=\"action\" name=\"action\"  value='innermail'>\r\n");
      out.write("            <input  id=\"subject\" name=\"subject\"  value=''>\r\n");
      out.write("\t\t\t<input  id=\"account\" name=\"account\"  value=''>\r\n");
      out.write("\t\t\t<textarea  id=\"toexcel_xml\" name=\"toexcel_xml\" ></textarea>\r\n");
      out.write("\t\t\t\r\n");
      out.write("</FORM>\r\n");
      out.write("\r\n");
      out.write("<SCRIPT language=\"javascript\" >\r\n");
      out.write("function cb_sendmail_onclick()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet= document.getElementById(\"billapplet\");\r\n");
      out.write("  \r\n");
      out.write("    if ( $('#mailcontainer').html()==\"\")\r\n");
      out.write("    {\r\n");
      out.write("           var ret= $rpc( 'wiseoa.flow.engine.FlowEngine', 'getMailAccountNameList' ,  {  });\r\n");
      out.write("            \r\n");
      out.write("          if ( ret.count==0)  $E('outtermailcontainer').style.display=\"none\";\r\n");
      out.write("          var html=\"<select id=mailaccount  onclick='document.getElementById(\\\"mailtype_outter\\\").checked=true; '>\";\r\n");
      out.write("          for( var i=0;i< ret.accounts.length;i++)\r\n");
      out.write("          {\r\n");
      out.write("               html=html+\"<option   value='\"+ret.accounts[i].id+\"'>\"+ret.accounts[i].email+\"</option>\";\r\n");
      out.write("          }\r\n");
      out.write("          html=html+\"</select>\";\r\n");
      out.write("          \r\n");
      out.write("          $('#mailcontainer').html(  html);\r\n");
      out.write("            \r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("   \r\n");
      out.write("    \r\n");
      out.write("    $.blockUI({ message: $('#question_sendmail'), css: { width: '300px' } }); \r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction $E(id) { return document.getElementById(id);}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction doSend()\r\n");
      out.write("\t{ \r\n");
      out.write("        var applet= document.getElementById(\"billapplet\");\r\n");
      out.write("\t\tapplet.book.getWorkBookView().forceCurrentEditControlGiveUpFocus();\r\n");
      out.write("\t\tvar f=$E(\"form_sendmail\"); \r\n");
      out.write(" \t    f.toexcel_xml.value=    applet.UI2XML() ;\r\n");
      out.write(" \t    f.subject.value =  $E('mailsubject').value;\r\n");
      out.write(" \t    f.account.value =  $E('mailaccount').value;\r\n");
      out.write(" \t  \r\n");
      out.write("\t\tf.action.value= $E('mailtype_inner').checked?'innermail':'outtermail';\r\n");
      out.write(" \t    \r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</script>\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("\r\n");
      out.write("<SCRIPT language=\"javascript\" >\r\n");
      out.write("    \r\n");
      out.write("    var tableid= ");
      out.print(te.tableID);
      out.write(";\r\n");
      out.write("    var id='");
      if (_jspx_meth_c_005fout_005f25(_jspx_page_context))
        return;
      out.write("'; //单据的ID\r\n");
      out.write("    \r\n");
      out.write("\twindow.onresize= OnResize;\r\n");
      out.write("\twindow.onload =OnLoad;\r\n");
      out.write("\t\r\n");
      out.write("\t//是不是单独打开本页面\r\n");
      out.write("\tfunction isOpenAlone()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar alone=false;\r\n");
      out.write("\t\tif ( parent ==undefined) alone=true;\r\n");
      out.write("\t\tif( !alone && parent.location.href.indexOf( 'bill_frame.jsp')<0) alone=true;\r\n");
      out.write("\t\treturn alone;  \r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction OnLoad()\r\n");
      out.write("\t{\r\n");
      out.write("\r\n");
      out.write("\t\tloadAttachment();\r\n");
      out.write("\t\tOnResize();\r\n");
      out.write("\t\t\r\n");
      out.write("\t \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t \r\n");
      out.write("\tfunction OnResize()\r\n");
      out.write("\t{\r\n");
      out.write("\t  try\r\n");
      out.write("\t  {\r\n");
      out.write("\t         var h = document.documentElement.offsetHeight\r\n");
      out.write("\t\t     var h2= document.getElementById('billapplet').offsetTop;\r\n");
      out.write("\t          \r\n");
      out.write("\t         var k=30;\r\n");
      out.write("\t         if(isOpenAlone()) k=50;\r\n");
      out.write("\t\t\tdocument.getElementById('billapplet').height=  h-h2 ");
      if (_jspx_meth_c_005fif_005f8(_jspx_page_context))
        return;
      out.write(";\r\n");
      out.write("\t\t\tdocument.getElementById('billapplet').height=  h-h2 ");
      if (_jspx_meth_c_005fif_005f9(_jspx_page_context))
        return;
      out.write(";\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tvar obj= $E('billappletContainer');\r\n");
      out.write("\t\t\tif( obj) obj.style.height= h-h2 ");
      if (_jspx_meth_c_005fif_005f10(_jspx_page_context))
        return;
      out.write("+\"px\";\r\n");
      out.write("\t\t\tvar obj= $E('morePanelContainer');\r\n");
      out.write("\t\t\tif( obj) obj.style.height= h-h2 ");
      if (_jspx_meth_c_005fif_005f11(_jspx_page_context))
        return;
      out.write("+\"px\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t  }catch(err)\r\n");
      out.write("\t  {\r\n");
      out.write("\t  }\r\n");
      out.write("   }\r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("var  gs_moreAction\t = '");
      if (_jspx_meth_c_005fout_005f26(_jspx_page_context))
        return;
      out.write("';\r\n");
      out.write("var  gs_Action\t = '");
      if (_jspx_meth_c_005fout_005f27(_jspx_page_context))
        return;
      out.write("';\r\n");
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("//由applet回调\r\n");
      out.write("function dataPrepared()\r\n");
      out.write("{\r\n");
      out.write("\tappletLoadOK=true;\t\r\n");
      out.write(" \r\n");
      out.write("\tif (gs_moreAction=='print')\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar applet= getApplet();\r\n");
      out.write("\t\tapplet.book.getWorkSheet(0).getWorkSheetView().printPreview();\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t//如果单独打开本页面，需要进行权限控制\r\n");
      out.write("\tif( isOpenAlone())\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t//打开这个页面，通常只会是view, edit , new ,print ,不可能是delete等\r\n");
      out.write("\t\t//从高优先级开始判断\r\n");
      out.write("\t\tvar applet=getApplet();\r\n");
      out.write("\r\n");
      out.write("\t\t//新录入是没有单据ID的，所以先判断\r\n");
      out.write("\t\tif( gs_Action=='new')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\tif ( !applet.newPermit( )) { hideApplet(); return;}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t//除新录入外，其它操作都是对已经存在的单据进行操作，所以先判断有没有查看权限\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t//如果不允许查看，那么其它的一切都是不允许的\r\n");
      out.write("\t\tif (gs_Action!='new'  && !applet.viewPermit( id)) {hideApplet(); return;}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif( gs_Action=='edit')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\tif ( !applet.editPermit(id )) { hideApplet(); return;}\r\n");
      out.write("\t\t\t\t \r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\t\tif( gs_Action=='print')\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\tif ( !applet.printPermit(id )) {hideApplet(); return;}\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t} \r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function hideApplet()\r\n");
      out.write("{\r\n");
      out.write(" \r\n");
      out.write("\t$E('appletContainer').innerHTML=\"<p style='color:red;font-size:20px;' align='center'>抱歉，您无此权限，操作被禁止。<p>\";\r\n");
      out.write("\t$E('toolbarContainer').outerHTML=\"&nbsp;\";\r\n");
      out.write("}\r\n");
      out.write("\t \r\n");
      out.write("function switchToListForm( )\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\twaitForAppletInitOK();\r\n");
      out.write("\t\r\n");
      out.write("    try\r\n");
      out.write("    { \r\n");
      out.write("    \tparent.billframeset.cols=\"*,0\";\r\n");
      out.write("    }catch(err)\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("function getListWindow()\r\n");
      out.write("{\r\n");
      out.write("\ttry\r\n");
      out.write("\t{\r\n");
      out.write("\tif(!parent) return null;\r\n");
      out.write("\treturn parent.frames('billlist');\r\n");
      out.write("\t}catch(err)\r\n");
      out.write("\t{\r\n");
      out.write("\t\treturn null;\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("\r\n");
      out.write("\r\n");
      out.write("function cb_new_onclick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\t/* 只有在新录入时，才显示新录入按钮，在其它操作比如编辑时，不要显示新录入按钮。\r\n");
      out.write(" \t这是有原因的，因为框架窗口bill_frame.jsp的地址栏上可能会附带更多的参数，这个更多的参数\r\n");
      out.write(" \t会传入到本页面。当点击工个栏上的新录入单据进入页面时，document.location.href中就已经包含了表示是新录入的action=new\r\n");
      out.write(" \t以及由父框架传入的参数。因此当新录入好一张单据后，再点击本页面上的新单据，只需要　navigate(document.location.href)就行了\r\n");
      out.write(" \t但是如果是编辑一张单据后，再需要新增加单据，就不能　navigate(document.location.href)了，因为此时的href是action=edit的，\r\n");
      out.write(" \t所以需要从URL中分离出父窗口（bill_frame.jsp->bill.jsp)传过来的参数，再拼接一个表示新录入单据的　\r\n");
      out.write("  \r\n");
      out.write("     */\r\n");
      out.write("     \r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("   //仅当在编辑或新增单据时，才要检查当前单据是不是要保存\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f12(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t if ( !getApplet().newPermit()) return;\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t//2009.11.30 增加对外部传入参数的支持\r\n");
      out.write("\t \r\n");
      out.write("\t ");
      if (_jspx_meth_c_005fchoose_005f0(_jspx_page_context))
        return;
      out.write(" \r\n");
      out.write("\t\t  \t  \r\n");
      out.write("     navigate (url); \r\n");
      out.write("      \r\n");
      out.write("     \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//切换到编辑状态\r\n");
      out.write("function cb_edit_onclick()\r\n");
      out.write("{\r\n");
      out.write("\t if ( !getApplet().editPermit(id)) return;\r\n");
      out.write("\t \r\n");
      out.write("\t var args= getUrlArgs();\r\n");
      out.write("\t var url='billedit.jsp?tableid='+tableid +'&id='+id+'&action=edit' ;\r\n");
      out.write("\t for( var pn in args)\r\n");
      out.write("\t {\r\n");
      out.write("\t\t if( pn=='tableid' || pn=='id' || pn=='action') continue; //忽略这三个参数，因为新录入只需要　tableid, action=new两个参数\r\n");
      out.write("\t\t url=url+\"&\"+pn+\"=\"+args[pn]; //拼上传入的其它参数\r\n");
      out.write("\t\t\t  \r\n");
      out.write("\t }\t\r\n");
      out.write("\t \r\n");
      out.write("     navigate ( url); \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function cb_return_onclick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\t//仅当在编辑或新增单据时，才要检查当前单据是不是要保存\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f13(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("\tswitchToListForm();\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("//当单据修改或新增后，需要刷新列表 \r\n");
      out.write("function reloadBillInfo( id)\r\n");
      out.write("{\r\n");
      out.write("\tvar win=getListWindow();\r\n");
      out.write("\tif( win) win.reloadBillInfo(id);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//当删除单据后，需要从列表里移除单据信息\r\n");
      out.write("function removeBillInfo( id)\r\n");
      out.write("{\r\n");
      out.write("\tvar win=getListWindow();\r\n");
      out.write("\tif( win) win.removeBillInfo( id);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function cb_print_onclick()\r\n");
      out.write("{\r\n");
      out.write("\tvar printFormatTemplateId=parseInt( \"0");
      if (_jspx_meth_c_005fout_005f28(_jspx_page_context))
        return;
      out.write("\",10) ;\r\n");
      out.write("\tif( printFormatTemplateId==0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t    \tvar applet= getApplet();\r\n");
      out.write("\t\t    \tapplet.book.getWorkBookView().forceCurrentEditControlGiveUpFocus();\r\n");
      out.write("\t\t    \tapplet.book.getActiveSheet().getWorkSheetView().print();\r\n");
      out.write("\t\t    \r\n");
      out.write("\t}else\r\n");
      out.write("\t{ \r\n");
      out.write("\t \r\n");
      out.write("\t\t$.blockUI({ message: $('#question_printbill'), css: { width: '400px' } }); \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("\r\n");
      out.write("function cb_export_onclick()\r\n");
      out.write("{\r\n");
      out.write("\t var applet= getApplet();\r\n");
      out.write("  \r\n");
      out.write("\t var id= applet.GUID;\r\n");
      out.write("\t \r\n");
      out.write("\t //if ( ! applet.printPermit(id)) return;\r\n");
      out.write("\t \r\n");
      out.write("\t  \r\n");
      out.write("\t applet.book.getWorkBookView().forceCurrentEditControlGiveUpFocus();\r\n");
      out.write("\t var f=document.getElementById('form_toexcel') ;\r\n");
      out.write("\t f.subject.value='';\r\n");
      out.write("\t f.toexcel_xml.value=    applet.UI2XML() ;\r\n");
      out.write("\t f.submit();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_prior_onclick()\r\n");
      out.write("{\r\n");
      out.write("\t//仅当在编辑或新增单据时，才要检查当前单据是不是要保存\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f14(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("    parent.frames(\"billlist\").priorBill('");
      if (_jspx_meth_c_005fout_005f29(_jspx_page_context))
        return;
      out.write("');\r\n");
      out.write("    \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_next_onclick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\t//仅当在编辑或新增单据时，才要检查当前单据是不是要保存\r\n");
      out.write("\t");
      if (_jspx_meth_c_005fif_005f15(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("    parent.frames(\"billlist\").nextBill('");
      if (_jspx_meth_c_005fout_005f30(_jspx_page_context))
        return;
      out.write("');\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//由FlowForm调用用来导出某些内容到Excel,并下载\r\n");
      out.write("function ExportSomethingToExcel(fileName,something) \r\n");
      out.write("{\r\n");
      out.write(" \tvar f = $E('form_toexcel');\r\n");
      out.write(" \tf.subject.value=fileName;\r\n");
      out.write(" \tf.action.value=\"export\";\r\n");
      out.write(" \tf.toexcel_xml.value = (something);\r\n");
      out.write("\tf.submit();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function showTip(s)\r\n");
      out.write("{\r\n");
      out.write("\tvar applet= getApplet();\r\n");
      out.write("\tapplet.showInfoPane(\"<p align=center>\"+s+\"</p>\",300,75);\r\n");
      out.write("\tapplet.delay(1000);\r\n");
      out.write("\tapplet.hideInfoPane();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("var  isSaving =false;\r\n");
      out.write("\r\n");
      out.write("function cb_save_onclick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("    if(  isSaving) \r\n");
      out.write("\t{\r\n");
      out.write("\t    \talert('正在保存');\r\n");
      out.write("\t    \treturn;\r\n");
      out.write("\t}  \r\n");
      out.write("\t    \r\n");
      out.write("\tvar applet= getApplet();\r\n");
      out.write("\tif ( !applet.isNeedSave()) \r\n");
      out.write("\t{\r\n");
      out.write("\t\tshowTip(\"没有做任何修改，不需要保存。\");\r\n");
      out.write("\t\tisSaving=false;\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tvar ret= applet.save();\r\n");
      out.write("\tif ( ret==\"\")\r\n");
      out.write("\t{ \r\n");
      out.write("\t     \r\n");
      out.write("\t     showTip('保存成功。');\r\n");
      out.write("\t    \r\n");
      out.write("\t     isSaving=false;\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t     reloadBillInfo(id);\r\n");
      out.write("\t     return true;\r\n");
      out.write("\t     \r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\t//如果是字段必须录入检验未通过，那么会返回“构建SQL语句失败”，这个就不要提示了，因为之前会提示ＸＸＸ必须录入\r\n");
      out.write("\t     if( ret!=\"构建SQL语句失败\") alert( ret);\r\n");
      out.write("\t      isSaving=false;\r\n");
      out.write("\t     return false;\r\n");
      out.write("\t}\r\n");
      out.write("\t \r\n");
      out.write("\t\r\n");
      out.write("\t\t\t\t\t\t\t \r\n");
      out.write("}\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function cb_design_onclick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\topen( \"workbook_config_frame.jsp?id=");
      if (_jspx_meth_c_005fout_005f31(_jspx_page_context))
        return;
      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("</script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function cb_attaichment_onclick()\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\t if ( !getApplet().attachmentUploadPermit()) return;\r\n");
      out.write("\r\n");
      out.write("\t// 不打开选择附件对话框，直接上传文件，如果要支持直接增加DOC或XLS，可能把下面的几行去掉\r\n");
      out.write("\t  $E(\"attachment_container\").style.display=\"\" \r\n");
      out.write(" \r\n");
      out.write("\t  $E(\"cb_upload_attachment_container\").style.display=\"\";\r\n");
      out.write("\t  addatta();  // 在 editmail.js 中定义 \r\n");
      out.write("      OnResize( );\r\n");
      out.write("      return; \r\n");
      out.write("\r\n");
      out.write("      \r\n");
      out.write("\t    \r\n");
      out.write("\t    if ( $('#clonembcontainer').html()==\"\")\r\n");
      out.write("\t    {\r\n");
      out.write("\t           var ret= $rpc( 'wiseoa.flow.engine.FlowEngine', 'getAttachmentMBNameList' , \r\n");
      out.write("\t                                   {\r\n");
      out.write("\t                                     'flowid'          :  1   \r\n");
      out.write("\t                                     });\r\n");
      out.write("\t            \r\n");
      out.write("\t          if ( ret.count==0)  $E('clonefrommb').style.display=\"none\";\r\n");
      out.write("\t          var html=\"<select id=cloneattachmentfrom  onclick='document.getElementById(\\\"newattachmentype_clone\\\").checked=true; '>\";\r\n");
      out.write("\t          for( var i=0;i< ret.files.length;i++)\r\n");
      out.write("\t          {\r\n");
      out.write("\t               html=html+\"<option   value='\"+ret.files[i]+\"'>\"+ret.files[i]+\"</option>\";\r\n");
      out.write("\t          }\r\n");
      out.write("\t          html=html+\"</select>\";\r\n");
      out.write("\t          \r\n");
      out.write("\t          $('#clonembcontainer').html(  html);\r\n");
      out.write("\t            \r\n");
      out.write("\t    }\r\n");
      out.write("\t    \r\n");
      out.write("\t    \r\n");
      out.write("\t    $.blockUI({ message: $('#question'), css: { width: '300px' } }); \r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function  createAttachment()\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("     \r\n");
      out.write("    if ( $E('newattachmentype_upload').checked)\r\n");
      out.write("    {\r\n");
      out.write("    \t   $E(\"attachment_container\").style.display=\"\" \r\n");
      out.write("    \t\r\n");
      out.write("    \t   $E(\"cb_upload_attachment_container\").style.display=\"\";\r\n");
      out.write("    \t   addatta();  // 在 editmail.js 中定义 \r\n");
      out.write("           OnResize( );\r\n");
      out.write("           return;\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("    var guid= $E('guid').value;\r\n");
      out.write("    var flowid= $E('flowid').value;\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("    if ( $E('newattachmentype_doc').checked)\r\n");
      out.write("    {\r\n");
      out.write("        createAttachmentWith ( 'doc' , guid , flowid , \"\");\r\n");
      out.write("        return;\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("    if ( $E('newattachmentype_xls').checked)\r\n");
      out.write("    {\r\n");
      out.write("        createAttachmentWith ( 'xls' , guid , flowid , \"\");\r\n");
      out.write("        return;\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("    if ( $E('newattachmentype_clone').checked)\r\n");
      out.write("    {\r\n");
      out.write("        var file =   $E('cloneattachmentfrom').value;\r\n");
      out.write("        if ( file=='')\r\n");
      out.write("        {\r\n");
      out.write("            alert (\"必须选择一个模板文件\");\r\n");
      out.write("            return;\r\n");
      out.write("        }\r\n");
      out.write(" \r\n");
      out.write("        createAttachmentWith ( 'clone' , guid , flowid , file);\r\n");
      out.write("    }\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_upload_attaichment_onclick()\r\n");
      out.write("{\r\n");
      out.write("\t $.blockUI({message:\"<br>正在上传...<br><br>\"});\r\n");
      out.write("\t $E(\"cb_upload_attachment_container\").style.display=\"none\";\r\n");
      out.write("\t $E('uploadAttachmentForm').submit();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function cb_clipboard_attaichment_onclick()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet = getApplet();\r\n");
      out.write("\tapplet.clipboardSaveAsImageAttachment( );\r\n");
      out.write("\t \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//此函数是在上传附件后，由IFRame回调\r\n");
      out.write("  \r\n");
      out.write("function  callback(msg)\r\n");
      out.write("{\r\n");
      out.write("    \r\n");
      out.write("   $.unblockUI();\r\n");
      out.write(" \r\n");
      out.write("   if (extractValue(msg ,\"ok\")==\"true\") \r\n");
      out.write("\t{\r\n");
      out.write("  \r\n");
      out.write("              //刷新附件列表\r\n");
      out.write("              loadAttachment(); \r\n");
      out.write("      \r\n");
      out.write("             \r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("  \t\talert ( extractValue(msg, \"error\"));\r\n");
      out.write(" \r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function loadAttachment()\r\n");
      out.write("{\r\n");
      out.write("  \r\n");
      out.write("   $rpc( 'wiseoa.bill.rpc.BillEngine', 'getAttachmentList' , \r\n");
      out.write("                                {\r\n");
      out.write("                                  'id'         :  document.getElementById( 'id').value \r\n");
      out.write("                                  },\r\n");
      out.write("                                 function ( ret)\r\n");
      out.write("                                 {\r\n");
      out.write("                                        var data= JSON.parse(ret);\r\n");
      out.write("                                         if (! data.success) \r\n");
      out.write("                                         {\r\n");
      out.write("                                             alert( data.message);\r\n");
      out.write("                                             return;\r\n");
      out.write("                                         }\r\n");
      out.write("                                        \r\n");
      out.write("                                         data.action=\"");
      if (_jspx_meth_c_005fout_005f32(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write("                                         var html = TrimPath.processDOMTemplate(\"template_attachmentTemplate\",data);\r\n");
      out.write("\r\n");
      out.write("                                        \r\n");
      out.write("                                         if ( html.length>0 && html!=' ')\r\n");
      out.write("                                         {\r\n");
      out.write("                                              $E(\"attachmentlist\").innerHTML=  html; \r\n");
      out.write("                                              $E(\"idfilespan\").innerHTML=  \"\";\r\n");
      out.write("                                        \t  $E(\"attachment_container\").style.display=\"\" \r\n");
      out.write("                                               \r\n");
      out.write("                                              \r\n");
      out.write("                                          }else\r\n");
      out.write("                                          {\r\n");
      out.write("                                          \r\n");
      out.write("                                        \t  $E(\"attachment_container\").style.display=\"none\" \r\n");
      out.write("                                                \r\n");
      out.write("                                          }\r\n");
      out.write("                                         OnResize( );\r\n");
      out.write("                                         getApplet().fireAttachmentChanged();\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("//当以属性页方式挂到用户编辑中　，点击保存按钮onUserEditSave将被调用 \r\n");
      out.write("function onUserEditSave()\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\tcb_save_onclick();\r\n");
      out.write("}\r\n");
      out.write(" //当以属性页方式挂到部门编辑中　，点击保存按钮onGroupEditSave将被调用 \r\n");
      out.write("function onGroupEditSave()\r\n");
      out.write("{\r\n");
      out.write("\tcb_save_onclick();\r\n");
      out.write("}\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" function onTaskEditSave()\r\n");
      out.write(" {\r\n");
      out.write("\t cb_save_onclick();\r\n");
      out.write("\t\t\r\n");
      out.write(" }\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("function DeleteBillAttachment(aid)\r\n");
      out.write("{ \r\n");
      out.write("\t\r\n");
      out.write("\t if ( !getApplet().attachmentDeletePermit(aid)) return;\r\n");
      out.write("\t \r\n");
      out.write("    if ( !confirm('确信要删除此附件吗?')) return ;\r\n");
      out.write("    \r\n");
      out.write("   \r\n");
      out.write("    $.blockUI({message:\"<br>正在删除...<br><br>\"});\r\n");
      out.write("    var ret= $rpc( 'wiseoa.bill.rpc.BillEngine', 'DeleteAttachment' , \r\n");
      out.write("                                 {\r\n");
      out.write("                                    id: aid  \r\n");
      out.write("                                   });\r\n");
      out.write("                                   \r\n");
      out.write("        $.unblockUI( );  \r\n");
      out.write("        if ( !ret.success) \r\n");
      out.write("        {\r\n");
      out.write("          alert ( ret.message);\r\n");
      out.write("          \r\n");
      out.write("        }else\r\n");
      out.write("        {\r\n");
      out.write("                loadAttachment();\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("function  RenameBillAttachment( id , name)\r\n");
      out.write("{\r\n");
      out.write("\t if ( !getApplet().attachmentRenamePermit(id)) return;\r\n");
      out.write("\t \r\n");
      out.write("     $E('attachmentNewName_id').value=id;\r\n");
      out.write("     $E('attachmentNewName').value=name;\r\n");
      out.write("     $.blockUI({ message: $('#dlg-attachmentrename'), css: { width: '300px' } }); \r\n");
      out.write("       \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("//因为模板attachmentRename.htm中指定了回调 函数名为RenameMyWorkAttachmentOnOK，所以这里只能用这个名称\r\n");
      out.write("function RenameMyWorkAttachmentOnOK()\t\r\n");
      out.write("{\r\n");
      out.write("\tsetTimeout( RenameBillAttachmentOnOK,400);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function RenameBillAttachmentOnOK()\r\n");
      out.write("{\r\n");
      out.write("     var id=$E('attachmentNewName_id').value ;\r\n");
      out.write("     var name= $E('attachmentNewName').value ;\r\n");
      out.write("     \r\n");
      out.write("     if ( name=='' )\r\n");
      out.write("     {\r\n");
      out.write("        return;\r\n");
      out.write("     }\r\n");
      out.write("     \r\n");
      out.write("       sleep(300);\r\n");
      out.write("      $.blockUI({message:\"<br>正在重命名...<br><br>\"});\r\n");
      out.write("      var ret= $rpc( 'wiseoa.bill.rpc.BillEngine', 'attachmentRename' , \r\n");
      out.write("                                   {\r\n");
      out.write("                                      id: id,\r\n");
      out.write("                                      name:name  \r\n");
      out.write("                                     });\r\n");
      out.write("                                     \r\n");
      out.write("          $.unblockUI( );  \r\n");
      out.write("          if ( !ret.success) \r\n");
      out.write("          {\r\n");
      out.write("            alert ( ret.message);\r\n");
      out.write("            \r\n");
      out.write("          }else\r\n");
      out.write("          {\r\n");
      out.write("                  loadAttachment();\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("function  EditBillAttachment( id , title)\r\n");
      out.write("{\r\n");
      out.write(" \r\n");
      out.write("     window.open ( \"bill_attachmentedit.jsp?billid=\"+$E('id').value+\"&id=\"+id+\"&name=\"+ escape(escape(title))  );  \r\n");
      out.write("    \r\n");
      out.write("}\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(" \r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("<!--  用于打印格式选择  -->\t\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write(" <script>\r\n");
      out.write(" function getSelectedPrintFormatSheetGuid()\r\n");
      out.write(" {\r\n");
      out.write("\t var objs=document.getElementsByName(\"printFormatGuid\");\r\n");
      out.write("\t for( var i=0;i<objs.length;i++)\r\n");
      out.write("\t {\r\n");
      out.write("\t\t if ( objs[i].checked) return objs[i].value;\r\n");
      out.write("\t }\r\n");
      out.write("\r\n");
      out.write("\t alert(\"请选择一个打印格式\");\r\n");
      out.write("\t return \"\";\r\n");
      out.write(" }\r\n");
      out.write("\r\n");
      out.write(" function printAction(action)\r\n");
      out.write(" {\r\n");
      out.write("\t var guid=getSelectedPrintFormatSheetGuid();\r\n");
      out.write("\t \r\n");
      out.write("\t if( guid==\"\") return;\r\n");
      out.write("\t $.unblockUI();\r\n");
      out.write("\t \r\n");
      out.write("\t if( action=='print') $G.printBill({guid:guid } ) ;\r\n");
      out.write("\t if( action=='printpreview') $G.printPreviewBill({guid:guid } ) ;\r\n");
      out.write("\t if( action=='printsetup') $G.printSetupBill({guid:guid } ) ;\r\n");
      out.write("\t \r\n");
      out.write(" \r\n");
      out.write(" }\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" ");
      if (_jspx_meth_c_005fif_005f16(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" </script>\r\n");
      out.write("<div id=\"question_printbill\" style=\"display:none; cursor: default ; \" > \r\n");
      out.write("        <div  align=\"left\" style=\"font-size:14px;   height:64px; line-height:64px; vertical-align:middle; background-color:white; background: url(image/print.png) right bottom no-repeat;\">&nbsp;&nbsp;&nbsp;&nbsp;选择打印格式：</div> \r\n");
      out.write("        <div align=\"left\" style=\"padding:10px; background-color: #efefef ; \">\r\n");
      out.write("        <table border=0  width=100%>\r\n");
      out.write("    \t");
      if (_jspx_meth_c_005fforEach_005f3(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("        </table>\r\n");
      out.write("        <br>\r\n");
      out.write("        <br>\r\n");
      out.write("        <hr size=1>\r\n");
      out.write("        <div align=\"right\">\r\n");
      out.write("        <input type=\"button\" onclick=\"printAction('print'); \" value=\"&nbsp;&nbsp;打&nbsp;&nbsp;&nbsp;&nbsp;印&nbsp;&nbsp;\">\r\n");
      out.write("         <input type=\"button\" onclick=\"printAction('printpreview');\" value=\"打印预览\">\r\n");
      out.write("         <input type=\"button\" onclick=\"printAction('printsetup');\" value=\"页面设置\">\r\n");
      out.write("          \r\n");
      out.write("         <input type=\"button\" id=\"cb_no\" value=\"&nbsp;放&nbsp;&nbsp;弃&nbsp;\"  onclick=\"$.unblockUI();\" /> \r\n");
      out.write("        </div>\r\n");
      out.write("        </div>\r\n");
      out.write("</div>\r\n");
      out.write("\t\r\n");
      out.write("<!-- 批量上传附件 -->\t\r\n");
      out.write("<div id=\"upload-dialog\" style=\"display:none; width:800px; cursor: default ; \" >\r\n");
      out.write("  <table border=0 cellspacing=0 cellpadin=0 width=\"100%\" bgcolor=\"#b4cdff\" >\r\n");
      out.write(" <tr><td  style=\"border-bottom:1px solid  #a0a0a0;\"><img src=\"image/close14.gif\" align=\"right\" onclick=\"closeUploadWindow();\"  class=asbutton ></td></tr></table>\r\n");
      out.write(" \r\n");
      out.write(" <iframe id=upload_multi_atta  src=\"UploadFileExample.jsp\" style=\"width:100%;height:400px;\" frameBorder=\"0\">\r\n");
      out.write(" </iframe> \r\n");
      out.write(" \r\n");
      out.write(" </div>\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\r\n");
      out.write("function closeUploadWindow()\r\n");
      out.write("{\r\n");
      out.write("/*\tif($E('upload_multi_atta').canClose())\r\n");
      out.write("\t{ \r\n");
      out.write("\t\t$.unblockUI();\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t \talert(\"正在上传，禁止关闭\" )\t; \r\n");
      out.write("\t }\r\n");
      out.write("\t */\r\n");
      out.write("\t$.unblockUI();\r\n");
      out.write("    //刷新附件列表\r\n");
      out.write("    loadAttachment(); \r\n");
      out.write("    \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//批量上传\r\n");
      out.write("function addMultiAtta()\r\n");
      out.write("{\r\n");
      out.write("  \r\n");
      out.write("\t if ( !getApplet().attachmentUploadPermit()) return;\r\n");
      out.write("\t \r\n");
      out.write("　  $E(\"upload_multi_atta\").src=\"\";\r\n");
      out.write("  \r\n");
      out.write("  　 var applet= getApplet();\r\n");
      out.write("   \r\n");
      out.write("\t var id= applet.GUID;\r\n");
      out.write("  \r\n");
      out.write("\t$E(\"upload_multi_atta\").src=\"UploadFileExample.jsp?action=bill&action_guid=\"+id+\"&action_id=\"+id+\"&tablename=");
      if (_jspx_meth_c_005fout_005f37(_jspx_page_context))
        return;
      out.write("\" ;\r\n");
      out.write("\t$.blockUI({ message: $('#upload-dialog') }); \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div id=\"question\" style=\"display:none; cursor: default ; \" > \r\n");
      out.write("        <div  align=\"left\" style=\"font-size:14px;   height:40px; line-height:40px; vertical-align:middle; background-color:white; background: url(image/earth.jpg) right bottom no-repeat;\">&nbsp;选择附件类型：\r\n");
      out.write("        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='font-size:12px'><a href='help/flowform/manual/m13.htm' target='_blank'>[帮助：如何增加附件类型]</a></span>\r\n");
      out.write("        </div> \r\n");
      out.write("        <div align=\"left\" style=\"padding:10px; background-color: #efefef ; \">\r\n");
      out.write("        <div id=uploadtypecontainer></div>\r\n");
      out.write("        \r\n");
      out.write("        <div  id=newattachmentype_upload_container><input type=\"radio\"   id=\"newattachmentype_upload\"   name=\"newattachmentype\"  checked=\"checked\"  value=\"upload\" />\r\n");
      out.write("        <span class=asbutton2 onclick=\"$E('newattachmentype_upload').checked=true;\">上传：普通附件</span></div>\r\n");
      out.write("        <br ><span style ='font-size:12px'>请指定使用下面功能上传的附件的类型：</span><span id=clonembcontaineratype></span>\r\n");
      out.write("        <hr size=1>\r\n");
      out.write("              <div id=\"clonefrommb\"><input type=\"radio\"   id=\"newattachmentype_clone\"   name=\"newattachmentype\"  value=\"clone\" />从如下模板复制： \r\n");
      out.write("        <br>&nbsp;&nbsp;&nbsp;&nbsp;<span id=clonembcontainer></span>\r\n");
      out.write("       \r\n");
      out.write("        \r\n");
      out.write("        </div>\r\n");
      out.write("        <div  id=newContainer></div>\r\n");
      out.write("        <div id=newContainer_innner>\r\n");
      out.write("        <div><input type=\"button\" value=\"批量添加附件\" onclick=\"$.unblockUI(); setTimeout( addMultiAtta ,700); \" title=\"需要浏览器支持flash\">&nbsp;</div>\r\n");
      out.write("        \r\n");
      out.write("        <div><input type=\"radio\"   id=\"newattachmentype_clipboard\"   name=\"newattachmentype\"  value=\"clipboard\" /><span class=asbutton2  onclick=\"$E('newattachmentype_clipboard').checked=true;\">剪贴板内容做为图片附件</span></div>\r\n");
      out.write("        <div><input type=\"radio\"   id=\"newattachmentype_doc\"   name=\"newattachmentype\"  value=\"doc\" /><span class=asbutton2  onclick=\"$E('newattachmentype_doc').checked=true;\">新建空的doc附件 </span></div>\r\n");
      out.write("        <div><input type=\"radio\"   id=\"newattachmentype_xls\"   name=\"newattachmentype\"  value=\"xls\" /><span class=asbutton2  onclick=\"$E('newattachmentype_xls').checked=true;\">新建空的xls附件</span></div>  \r\n");
      out.write("  \t\t</div>\r\n");
      out.write("   \r\n");
      out.write("  \r\n");
      out.write("        <hr size=1>\r\n");
      out.write("        <div align=\"right\">\r\n");
      out.write("        <input type=\"hidden\" id=atypecount value='0'>\r\n");
      out.write("        <input type=\"button\" id=\"cb_yes\" value=\"确定\"   onclick=\" $.unblockUI();createAttachment();\" />\r\n");
      out.write("        <input type=\"button\" id=\"cb_no\" value=\"放弃\"  onclick=\"$.unblockUI();\" /> \r\n");
      out.write("        </div>\r\n");
      out.write("        </div>\r\n");
      out.write("</div> \r\n");
      out.write('\r');
      out.write('\n');
      out.write('	');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div id=\"dlg-attachmentrename\" style=\"display:none; cursor: default ; \" > \r\n");
      out.write("        <div  align=\"left\" style=\"font-size:14px;   height:40px; line-height:40px; vertical-align:middle; background-color:white; background: url(image/earth.jpg) right bottom no-repeat;\">&nbsp;\r\n");
      out.write("        请输入新的名称：</div> \r\n");
      out.write("        <div align=\"left\" style=\"padding:10px; background-color: #efefef ; \">\r\n");
      out.write("        <div><input  type=\"text\"  class='textbox'  id=\"attachmentNewName\" ></div>\r\n");
      out.write("         <input type=\"hidden\"  id= \"attachmentNewName_id\">\r\n");
      out.write("          \r\n");
      out.write("        <hr size=1>\r\n");
      out.write("        <div align=\"right\">\r\n");
      out.write("        <input type=\"button\" id=\"cb_yes\" value=\"确定\"   onclick=\" $.unblockUI();RenameMyWorkAttachmentOnOK();\" />\r\n");
      out.write("        <input type=\"button\" id=\"cb_no\" value=\"放弃\"  onclick=\"$.unblockUI();\" /> \r\n");
      out.write("        </div>\r\n");
      out.write("        </div>\r\n");
      out.write("</div> \r\n");
      out.write('\r');
      out.write('\n');
      out.write('	');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--  用于发送邮件  -->\t\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write("<div id=\"question_sendmail\" style=\"display:none; cursor: default ; \" > \r\n");
      out.write("        <div  align=\"left\" style=\"font-size:14px;   height:48px; line-height:48px; vertical-align:middle; background-color:white; background: url(image/mail_new48.jpg) right bottom no-repeat;\">&nbsp;选择邮件类型：</div> \r\n");
      out.write("        <div align=\"left\" style=\"padding:10px; background-color: #efefef ; \">\r\n");
      out.write("<div>邮件主题：<br><input id=mailsubject  class=textbox type =\"text\"> </div>        \r\n");
      out.write("<div>&nbsp;&nbsp;&nbsp;&nbsp;将当前单据的内容导出成Excel格式，并以附件形式发送邮件。请选择以什么帐号发送邮件<br></div>\r\n");
      out.write("        <br><div><input type=\"radio\"   id=\"mailtype_inner\"   name=\"mailtype\"  checked value=\"inner\" />以内部邮件形式发送<br> </div>\r\n");
      out.write("        <div id = outtermailcontainer><input type=\"radio\"   id=\"mailtype_outter\"   name=\"mailtype\"  value=\"outter\" />以如下的外部邮件帐号发送：<br>\r\n");
      out.write("                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id=mailcontainer></span>\r\n");
      out.write("        </div>\r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("        <hr size=1>\r\n");
      out.write("        <div align=\"right\">\r\n");
      out.write("        <input type=\"button\" id=\"cb_yes\" value=\"确定\"   onclick=\" $.unblockUI();doSend();\" />\r\n");
      out.write("        <input type=\"button\" id=\"cb_no\" value=\"放弃\"  onclick=\"$.unblockUI();\" /> \r\n");
      out.write("        </div>\r\n");
      out.write("        </div>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" ");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("  </body>\r\n");
      out.write("</html>\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);
    // /billedit.jsp(118,85) 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("${printFormatTemplateId}", 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_005fif_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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /billedit.jsp(191,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id==1}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t\talert(\"上一张单据还没有完全打开，现在就要切换页面，可能引起Jre崩溃，请点击不要这样频繁。本提示仅sa可以看见。\");\r\n");
        out.write("\t\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent(null);
    // /billedit.jsp(266,8) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='view'}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("        if(toolbarConfig.editbill.visible)\r\n");
        out.write("        { \r\n");
        out.write("   　     \t\ttb.addButton( cb_edit=new Ext.Toolbar.Button({text: '编辑', cls: 'x-btn-text-icon',icon:'image/edit6.gif',  handler: cb_edit_onclick } )  );\r\n");
        out.write("        \ttb.addSeparator();\r\n");
        out.write("        }\r\n");
        out.write("        ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fif_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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f2.setParent(null);
    // /billedit.jsp(276,8) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
    if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("        \r\n");
        out.write("   　     tb.addButton( cb_save=new Ext.Toolbar.Button({text: '保存', cls: 'x-btn-text-icon',icon:'image/disk2.gif',  handler: cb_save_onclick } )  );\r\n");
        out.write("        tb.addSeparator();\r\n");
        out.write("        ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f3(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f3.setParent(null);
    // /billedit.jsp(290,8) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new'  || true }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
    if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("  <!-- 仅在编辑或新增时才允许对附件操作 -->\r\n");
        out.write("        \r\n");
        out.write("        　\r\n");
        out.write("        tb.addButton( cb_attachment=new Ext.Toolbar.Button({text: '批量添加附件', cls: 'x-btn-text-icon',icon:'image/attachment3.gif',  handler: addMultiAtta } )  );\r\n");
        out.write("        tb.addSeparator();\r\n");
        out.write("        \r\n");
        out.write("   　     tb.addButton( cb_attachment=new Ext.Toolbar.Button({text: '添加附件', cls: 'x-btn-text-icon',icon:'image/attachment3.gif',  handler: cb_attaichment_onclick } )  );\r\n");
        out.write("        tb.addSeparator();\r\n");
        out.write("\t    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
    return false;
  }

  private boolean _jspx_meth_c_005fforEach_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:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fforEach_005f0.setParent(null);
    // /billedit.jsp(330,18) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f0.setVar("item");
    // /billedit.jsp(330,18) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${printFormatList}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
    try {
      int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
      if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("             \r\n");
          out.write("                  {text: '");
          if (_jspx_meth_c_005fout_005f1(_jspx_th_c_005fforEach_005f0, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f0))
            return true;
          out.write("', guid:'");
          if (_jspx_meth_c_005fout_005f2(_jspx_th_c_005fforEach_005f0, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f0))
            return true;
          out.write("',cls: 'x-btn-text-icon',icon:'image/printer16.gif', handler: $G.printBill},\r\n");
          out.write("                  ");
          int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (java.lang.Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_005fforEach_005f0.doFinally();
      _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0);
    }
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0)
          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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0);
    // /billedit.jsp(331,26) 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("${item.name}", 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.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0)
          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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0);
    // /billedit.jsp(331,64) 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("${item.guid}", 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;
  }

  private boolean _jspx_meth_c_005fforEach_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:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f1 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_005fforEach_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fforEach_005f1.setParent(null);
    // /billedit.jsp(336,35) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f1.setVar("item");
    // /billedit.jsp(336,35) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f1.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${printFormatList}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_005fforEach_005f1 = new int[] { 0 };
    try {
      int _jspx_eval_c_005fforEach_005f1 = _jspx_th_c_005fforEach_005f1.doStartTag();
      if (_jspx_eval_c_005fforEach_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("             \r\n");
          out.write("                 \t                 {text: '");
          if (_jspx_meth_c_005fout_005f3(_jspx_th_c_005fforEach_005f1, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f1))
            return true;
          out.write("', guid:'");
          if (_jspx_meth_c_005fout_005f4(_jspx_th_c_005fforEach_005f1, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f1))
            return true;
          out.write("',cls: 'x-btn-text-icon',  handler: $G.printSetupBill},\r\n");
          out.write("                 \t                 ");
          int evalDoAfterBody = _jspx_th_c_005fforEach_005f1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_005fforEach_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (java.lang.Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_005fforEach_005f1[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_005fforEach_005f1.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_005fforEach_005f1.doFinally();
      _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f1);
    }
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f3(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f1, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f1)
          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_005f3 = (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_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f1);
    // /billedit.jsp(337,43) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f3.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.name}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f3 = _jspx_th_c_005fout_005f3.doStartTag();
    if (_jspx_th_c_005fout_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f3);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f4(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f1, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f1)
          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_005f4 = (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_005f4.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f4.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f1);
    // /billedit.jsp(337,81) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f4.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.guid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f4 = _jspx_th_c_005fout_005f4.doStartTag();
    if (_jspx_th_c_005fout_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f4);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f4);
    return false;
  }

  private boolean _jspx_meth_c_005fforEach_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:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f2 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_005fforEach_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fforEach_005f2.setParent(null);
    // /billedit.jsp(344,35) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f2.setVar("item");
    // /billedit.jsp(344,35) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f2.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${printFormatList}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_005fforEach_005f2 = new int[] { 0 };
    try {
      int _jspx_eval_c_005fforEach_005f2 = _jspx_th_c_005fforEach_005f2.doStartTag();
      if (_jspx_eval_c_005fforEach_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("             \r\n");
          out.write("                 \t                 {text: '");
          if (_jspx_meth_c_005fout_005f5(_jspx_th_c_005fforEach_005f2, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f2))
            return true;
          out.write("', guid:'");
          if (_jspx_meth_c_005fout_005f6(_jspx_th_c_005fforEach_005f2, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f2))
            return true;
          out.write("',cls: 'x-btn-text-icon' , handler: $G.printPreviewBill},\r\n");
          out.write("                 \t                 ");
          int evalDoAfterBody = _jspx_th_c_005fforEach_005f2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_005fforEach_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (java.lang.Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_005fforEach_005f2[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_005fforEach_005f2.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_005fforEach_005f2.doFinally();
      _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f2);
    }
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f5(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f2, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f2)
          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_005f5 = (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_005f5.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f5.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f2);
    // /billedit.jsp(345,43) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f5.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.name}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f5 = _jspx_th_c_005fout_005f5.doStartTag();
    if (_jspx_th_c_005fout_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f5);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f5);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f6(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f2, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f2)
          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_005f6 = (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_005f6.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f6.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f2);
    // /billedit.jsp(345,81) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f6.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.guid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f6 = _jspx_th_c_005fout_005f6.doStartTag();
    if (_jspx_th_c_005fout_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f6);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f6);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f4(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f4.setParent(null);
    // /billedit.jsp(367,7) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f4.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.role==1}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag();
    if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("       tb2.addButton( new Ext.Toolbar.Button({text: '表单设计', cls: 'x-btn-text-icon',icon:'image/run3.gif',  handler: cb_design_onclick } )  );\r\n");
        out.write("       tb2.addSeparator();\r\n");
        out.write("       ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f5(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f5 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f5.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f5.setParent(null);
    // /billedit.jsp(400,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f5.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f5 = _jspx_th_c_005fif_005f5.doStartTag();
    if (_jspx_eval_c_005fif_005f5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write("\tvar applet= getApplet();\r\n");
        out.write("\tif ( applet.isNeedSave()) \r\n");
        out.write("\t{\r\n");
        out.write("\t\t      var ok=cb_save_onclick();\r\n");
        out.write("\t\t      return ok;\r\n");
        out.write("  \r\n");
        out.write("\t}\r\n");
        out.write("    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f5.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f7(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_005f7 = (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_005f7.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f7.setParent(null);
    // /billedit.jsp(614,52) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f7.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${id}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f7 = _jspx_th_c_005fout_005f7.doStartTag();
    if (_jspx_th_c_005fout_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f7);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f7);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f8(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_005f8 = (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_005f8.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f8.setParent(null);
    // /billedit.jsp(615,66) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f8.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${tablename}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f8 = _jspx_th_c_005fout_005f8.doStartTag();
    if (_jspx_th_c_005fout_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f8);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f8);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f6(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f6 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f6.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f6.setParent(null);
    // /billedit.jsp(631,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f6.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f6 = _jspx_th_c_005fif_005f6.doStartTag();
    if (_jspx_eval_c_005fif_005f6 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("<table border=0 width=\"100%\" height=\"400\" cellspacing=0 cellpadding=0>\r\n");
        out.write("<tr><td  id=billappletContainer  style=\"width:");
        if (_jspx_meth_c_005fout_005f9(_jspx_th_c_005fif_005f6, _jspx_page_context))
          return true;
        out.write("px;\">\r\n");
        int evalDoAfterBody = _jspx_th_c_005fif_005f6.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f6);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f6);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f9(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f6, 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_005f9 = (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_005f9.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f9.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f6);
    // /billedit.jsp(633,46) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f9.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f9 = _jspx_th_c_005fout_005f9.doStartTag();
    if (_jspx_th_c_005fout_005f9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f9);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f9);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f10(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_005f10 = (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_005f10.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f10.setParent(null);
    // /billedit.jsp(641,30) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f10.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f10 = _jspx_th_c_005fout_005f10.doStartTag();
    if (_jspx_th_c_005fout_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f10);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f10);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f11(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_005f11 = (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_005f11.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f11.setParent(null);
    // /billedit.jsp(642,34) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f11.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${templateid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f11 = _jspx_th_c_005fout_005f11.doStartTag();
    if (_jspx_th_c_005fout_005f11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f11);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f11);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f12(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_005f12 = (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_005f12.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f12.setParent(null);
    // /billedit.jsp(643,42) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f12.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.redirecttemplateid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f12 = _jspx_th_c_005fout_005f12.doStartTag();
    if (_jspx_th_c_005fout_005f12.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f12);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f12);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f13(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_005f13 = (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_005f13.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f13.setParent(null);
    // /billedit.jsp(644,39) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f13.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.embedtemplateid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f13 = _jspx_th_c_005fout_005f13.doStartTag();
    if (_jspx_th_c_005fout_005f13.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f13);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f13);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f14(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_005f14 = (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_005f14.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f14.setParent(null);
    // /billedit.jsp(645,28) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f14.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${id}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f14 = _jspx_th_c_005fout_005f14.doStartTag();
    if (_jspx_th_c_005fout_005f14.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f14);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f14);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f15(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_005f15 = (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_005f15.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f15.setParent(null);
    // /billedit.jsp(650,29) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f15.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.debug}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f15 = _jspx_th_c_005fout_005f15.doStartTag();
    if (_jspx_th_c_005fout_005f15.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f15);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f15);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f16(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_005f16 = (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_005f16.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f16.setParent(null);
    // /billedit.jsp(654,33) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f16.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.tableid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f16 = _jspx_th_c_005fout_005f16.doStartTag();
    if (_jspx_th_c_005fout_005f16.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f16);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f16);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f17(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_005f17 = (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_005f17.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f17.setParent(null);
    // /billedit.jsp(655,39) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f17.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jsonQueryString}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f17 = _jspx_th_c_005fout_005f17.doStartTag();
    if (_jspx_th_c_005fout_005f17.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f17);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f17);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f18(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_005f18 = (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_005f18.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f18.setParent(null);
    // /billedit.jsp(656,40) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f18.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${wiseoainnerparam}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f18 = _jspx_th_c_005fout_005f18.doStartTag();
    if (_jspx_th_c_005fout_005f18.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f18);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f18);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f19(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_005f19 = (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_005f19.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f19.setParent(null);
    // /billedit.jsp(657,32) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f19.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_005f19 = _jspx_th_c_005fout_005f19.doStartTag();
    if (_jspx_th_c_005fout_005f19.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f19);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f19);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f20(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_005f20 = (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_005f20.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f20.setParent(null);
    // /billedit.jsp(658,31) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f20.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${tableid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f20 = _jspx_th_c_005fout_005f20.doStartTag();
    if (_jspx_th_c_005fout_005f20.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f20);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f20);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f21(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_005f21 = (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_005f21.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f21.setParent(null);
    // /billedit.jsp(659,40) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f21.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.showinitstepinfo}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f21 = _jspx_th_c_005fout_005f21.doStartTag();
    if (_jspx_th_c_005fout_005f21.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f21);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f21);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f7(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f7 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f7.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f7.setParent(null);
    // /billedit.jsp(664,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f7.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f7 = _jspx_th_c_005fif_005f7.doStartTag();
    if (_jspx_eval_c_005fif_005f7 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("</td><td   id=morePanelContainer><iframe id=morePanel style='width:100%;height:100%; border=0;' src=\"");
        if (_jspx_meth_c_005fout_005f22(_jspx_th_c_005fif_005f7, _jspx_page_context))
          return true;
        out.write("?tablename=");
        if (_jspx_meth_c_005fout_005f23(_jspx_th_c_005fif_005f7, _jspx_page_context))
          return true;
        out.write("&id=");
        if (_jspx_meth_c_005fout_005f24(_jspx_th_c_005fif_005f7, _jspx_page_context))
          return true;
        out.write("\" frameborder=0 ></td></tr>\r\n");
        out.write("</table>\r\n");
        int evalDoAfterBody = _jspx_th_c_005fif_005f7.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f7);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f7);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f22(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f7, 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_005f22 = (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_005f22.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f22.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f7);
    // /billedit.jsp(665,101) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f22.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanel}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f22 = _jspx_th_c_005fout_005f22.doStartTag();
    if (_jspx_th_c_005fout_005f22.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f22);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f22);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f23(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f7, 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_005f23 = (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_005f23.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f23.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f7);
    // /billedit.jsp(665,147) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f23.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${tablename}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f23 = _jspx_th_c_005fout_005f23.doStartTag();
    if (_jspx_th_c_005fout_005f23.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f23);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f23);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f24(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f7, 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_005f24 = (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_005f24.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f24.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f7);
    // /billedit.jsp(665,180) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f24.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${id}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f24 = _jspx_th_c_005fout_005f24.doStartTag();
    if (_jspx_th_c_005fout_005f24.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f24);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f24);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f25(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_005f25 = (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_005f25.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f25.setParent(null);
    // /billedit.jsp(745,12) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f25.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${id}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f25 = _jspx_th_c_005fout_005f25.doStartTag();
    if (_jspx_th_c_005fout_005f25.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f25);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f25);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f8(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f8 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f8.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f8.setParent(null);
    // /billedit.jsp(778,55) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f8.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f8 = _jspx_th_c_005fif_005f8.doStartTag();
    if (_jspx_eval_c_005fif_005f8 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" -k ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f8.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f8);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f8);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f9(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f9 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f9.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f9.setParent(null);
    // /billedit.jsp(779,55) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f9.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f9 = _jspx_th_c_005fif_005f9.doStartTag();
    if (_jspx_eval_c_005fif_005f9 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" -k ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f9.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f9);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f9);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f10(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f10 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f10.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f10.setParent(null);
    // /billedit.jsp(782,35) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f10.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f10 = _jspx_th_c_005fif_005f10.doStartTag();
    if (_jspx_eval_c_005fif_005f10 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" -k ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f10.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f10);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f10);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f11(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f11 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f11.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f11.setParent(null);
    // /billedit.jsp(784,35) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f11.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.editPanelLeftWidth>0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f11 = _jspx_th_c_005fif_005f11.doStartTag();
    if (_jspx_eval_c_005fif_005f11 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" -k ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f11.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f11);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f11);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f26(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_005f26 = (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_005f26.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f26.setParent(null);
    // /billedit.jsp(792,23) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f26.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.moreaction}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f26 = _jspx_th_c_005fout_005f26.doStartTag();
    if (_jspx_th_c_005fout_005f26.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f26);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f26);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f27(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_005f27 = (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_005f27.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f27.setParent(null);
    // /billedit.jsp(793,19) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f27.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f27 = _jspx_th_c_005fout_005f27.doStartTag();
    if (_jspx_th_c_005fout_005f27.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f27);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f27);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f12(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f12 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f12.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f12.setParent(null);
    // /billedit.jsp(899,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f12.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f12 = _jspx_th_c_005fif_005f12.doStartTag();
    if (_jspx_eval_c_005fif_005f12 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\tvar applet= getApplet();\r\n");
        out.write("\tif ( applet.isNeedSave()) \r\n");
        out.write("\t{\r\n");
        out.write("\t\tif ( confirm( \"需要保存吗?\"))\r\n");
        out.write("\t\t{\r\n");
        out.write("\t\t     var ok=cb_save_onclick();\r\n");
        out.write("\t\t     if (!ok)  return;\r\n");
        out.write("\t\t }\r\n");
        out.write(" \r\n");
        out.write("\t}\r\n");
        out.write("\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f12.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f12.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f12);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f12);
    return false;
  }

  private boolean _jspx_meth_c_005fchoose_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:choose
    org.apache.taglibs.standard.tag.common.core.ChooseTag _jspx_th_c_005fchoose_005f0 = (org.apache.taglibs.standard.tag.common.core.ChooseTag) _005fjspx_005ftagPool_005fc_005fchoose.get(org.apache.taglibs.standard.tag.common.core.ChooseTag.class);
    _jspx_th_c_005fchoose_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fchoose_005f0.setParent(null);
    int _jspx_eval_c_005fchoose_005f0 = _jspx_th_c_005fchoose_005f0.doStartTag();
    if (_jspx_eval_c_005fchoose_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        if (_jspx_meth_c_005fwhen_005f0(_jspx_th_c_005fchoose_005f0, _jspx_page_context))
          return true;
        out.write(" \r\n");
        out.write("\t ");
        if (_jspx_meth_c_005fotherwise_005f0(_jspx_th_c_005fchoose_005f0, _jspx_page_context))
          return true;
        out.write(" \r\n");
        out.write("\t ");
        int evalDoAfterBody = _jspx_th_c_005fchoose_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fchoose_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fchoose.reuse(_jspx_th_c_005fchoose_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fchoose.reuse(_jspx_th_c_005fchoose_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fwhen_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fchoose_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:when
    org.apache.taglibs.standard.tag.rt.core.WhenTag _jspx_th_c_005fwhen_005f0 = (org.apache.taglibs.standard.tag.rt.core.WhenTag) _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.WhenTag.class);
    _jspx_th_c_005fwhen_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fwhen_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fchoose_005f0);
    // /billedit.jsp(917,12) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fwhen_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${  param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fwhen_005f0 = _jspx_th_c_005fwhen_005f0.doStartTag();
    if (_jspx_eval_c_005fwhen_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("       //本来就是点击新录入按钮进入本页的\r\n");
        out.write("\t   var url=document.location.href;\r\n");
        out.write("\t ");
        int evalDoAfterBody = _jspx_th_c_005fwhen_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fwhen_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest.reuse(_jspx_th_c_005fwhen_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fwhen_0026_005ftest.reuse(_jspx_th_c_005fwhen_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fotherwise_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fchoose_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:otherwise
    org.apache.taglibs.standard.tag.common.core.OtherwiseTag _jspx_th_c_005fotherwise_005f0 = (org.apache.taglibs.standard.tag.common.core.OtherwiseTag) _005fjspx_005ftagPool_005fc_005fotherwise.get(org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class);
    _jspx_th_c_005fotherwise_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fotherwise_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fchoose_005f0);
    int _jspx_eval_c_005fotherwise_005f0 = _jspx_th_c_005fotherwise_005f0.doStartTag();
    if (_jspx_eval_c_005fotherwise_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" \r\n");
        out.write("\t  \t//当前并不是新录入，现在需要进入新录入，就需要做参数拼接\r\n");
        out.write("\t  \t var args= getUrlArgs();\r\n");
        out.write("\t\t var url='billedit.jsp?tableid='+tableid +'&action=new';\r\n");
        out.write("\t\t for( var pn in args)\r\n");
        out.write("\t\t {\r\n");
        out.write("\t\t\t if( pn=='tableid' || pn=='id' || pn=='action') continue; //忽略这三个参数，因为新录入只需要　tableid, action=new两个参数\r\n");
        out.write("\t\t\t url=url+\"&\"+pn+\"=\"+args[pn]; //拼上传入的其它参数\r\n");
        out.write("\t\t\t\t  \r\n");
        out.write("\t\t }\t\r\n");
        out.write("\t  \t// alert ( url);\r\n");
        out.write("\t  ");
        int evalDoAfterBody = _jspx_th_c_005fotherwise_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fotherwise_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fotherwise.reuse(_jspx_th_c_005fotherwise_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fotherwise.reuse(_jspx_th_c_005fotherwise_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f13(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f13 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f13.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f13.setParent(null);
    // /billedit.jsp(962,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f13.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f13 = _jspx_th_c_005fif_005f13.doStartTag();
    if (_jspx_eval_c_005fif_005f13 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t//有可能出现JVM异常崩溃，此时 getApplet返回空出现异常\r\n");
        out.write("\ttry\r\n");
        out.write("\t{ \r\n");
        out.write("\tvar applet= getApplet();\r\n");
        out.write("\tif ( applet.isNeedSave()) \r\n");
        out.write("\t{\r\n");
        out.write("\t\tif ( confirm( \"需要保存吗?\"))\r\n");
        out.write("\t\t{\r\n");
        out.write("\t\t     var ok=cb_save_onclick();\r\n");
        out.write("\t\t     if (!ok)  return;\r\n");
        out.write("\t\t }\r\n");
        out.write(" \r\n");
        out.write("\t}\r\n");
        out.write("\t}catch(err)\r\n");
        out.write("\t{\r\n");
        out.write("\t\t\r\n");
        out.write("\t}\r\n");
        out.write("\t\r\n");
        out.write("    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f13.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f13.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f13);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f13);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f28(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_005f28 = (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_005f28.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f28.setParent(null);
    // /billedit.jsp(1008,39) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f28.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${printFormatTemplateId}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f28 = _jspx_th_c_005fout_005f28.doStartTag();
    if (_jspx_th_c_005fout_005f28.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f28);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f28);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f14(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f14 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f14.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f14.setParent(null);
    // /billedit.jsp(1045,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f14.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f14 = _jspx_th_c_005fif_005f14.doStartTag();
    if (_jspx_eval_c_005fif_005f14 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t//有可能出现JVM异常崩溃，此时 getApplet返回空出现异常\r\n");
        out.write("\ttry\r\n");
        out.write("\t{ \r\n");
        out.write("\tvar applet= getApplet();\r\n");
        out.write("\tif ( applet.isNeedSave()) \r\n");
        out.write("\t{\r\n");
        out.write("\t\tif ( confirm( \"需要保存吗?\"))\r\n");
        out.write("\t\t{\r\n");
        out.write("\t\t     var ok=cb_save_onclick();\r\n");
        out.write("\t\t     if (!ok)  return;\r\n");
        out.write("\t\t }\r\n");
        out.write(" \r\n");
        out.write("\t}\r\n");
        out.write("\t}catch(err)\r\n");
        out.write("\t{\r\n");
        out.write("\t\t\r\n");
        out.write("\t}\r\n");
        out.write("\t\r\n");
        out.write("    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f14.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f14.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f14);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f14);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f29(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_005f29 = (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_005f29.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f29.setParent(null);
    // /billedit.jsp(1065,41) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f29.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f29 = _jspx_th_c_005fout_005f29.doStartTag();
    if (_jspx_th_c_005fout_005f29.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f29);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f29);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f15(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f15 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f15.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f15.setParent(null);
    // /billedit.jsp(1073,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f15.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action=='edit' || param.action=='new' }", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f15 = _jspx_th_c_005fif_005f15.doStartTag();
    if (_jspx_eval_c_005fif_005f15 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t//有可能出现JVM异常崩溃，此时 getApplet返回空出现异常\r\n");
        out.write("\ttry\r\n");
        out.write("\t{ \r\n");
        out.write("\tvar applet= getApplet();\r\n");
        out.write("\tif ( applet.isNeedSave()) \r\n");
        out.write("\t{\r\n");
        out.write("\t\tif ( confirm( \"需要保存吗?\"))\r\n");
        out.write("\t\t{\r\n");
        out.write("\t\t     var ok=cb_save_onclick();\r\n");
        out.write("\t\t     if (!ok)  return;\r\n");
        out.write("\t\t }\r\n");
        out.write(" \r\n");
        out.write("\t}\r\n");
        out.write("\t}catch(err)\r\n");
        out.write("\t{\r\n");
        out.write("\t\t\r\n");
        out.write("\t}\r\n");
        out.write("\t\r\n");
        out.write("    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f15.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f15.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f15);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f15);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f30(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_005f30 = (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_005f30.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f30.setParent(null);
    // /billedit.jsp(1093,40) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f30.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f30 = _jspx_th_c_005fout_005f30.doStartTag();
    if (_jspx_th_c_005fout_005f30.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f30);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f30);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f31(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_005f31 = (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_005f31.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f31.setParent(null);
    // /billedit.jsp(1165,37) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f31.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${templateid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f31 = _jspx_th_c_005fout_005f31.doStartTag();
    if (_jspx_th_c_005fout_005f31.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f31);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f31);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f32(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_005f32 = (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_005f32.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f32.setParent(null);
    // /billedit.jsp(1322,54) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f32.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.action}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f32 = _jspx_th_c_005fout_005f32.doStartTag();
    if (_jspx_th_c_005fout_005f32.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f32);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f32);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f16(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:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f16 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f16.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f16.setParent(null);
    // /billedit.jsp(1489,1) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f16.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${wiseoainnerparam_isautobuild && user.id==1}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f16 = _jspx_th_c_005fif_005f16.doStartTag();
    if (_jspx_eval_c_005fif_005f16 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write(" \t  alert(\"本提示信息仅sa可见，其它用户 不会看到 。\\r\\n\\r\\n直接使用billedit.jsp打开单据，必须提供wiseoainnerparam参数。不提供此参数，系统会自动计算此参数，当单据挂到工作台上的URL地址中含有id, billtype之外的参数时，自动计算出的此参数可能会存在权限控制上的漏洞。此参数如何提供，可以在正常的单据编辑或查看时，查看页面的URL地址，地址中含有此参数。\");\r\n");
        out.write(" ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f16.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f16.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f16);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f16);
    return false;
  }

  private boolean _jspx_meth_c_005fforEach_005f3(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:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f3 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_005fforEach_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fforEach_005f3.setParent(null);
    // /billedit.jsp(1500,5) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f3.setVar("item");
    // /billedit.jsp(1500,5) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f3.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${printFormatList}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    // /billedit.jsp(1500,5) name = varStatus type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f3.setVarStatus("status");
    int[] _jspx_push_body_count_c_005fforEach_005f3 = new int[] { 0 };
    try {
      int _jspx_eval_c_005fforEach_005f3 = _jspx_th_c_005fforEach_005f3.doStartTag();
      if (_jspx_eval_c_005fforEach_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("             \r\n");
          out.write("        <tr><td nowrap WIDTH=\"90%\" style=\"font-size:14px;\">\r\n");
          out.write("        <input type=radio  id=printFormatGuid");
          if (_jspx_meth_c_005fout_005f33(_jspx_th_c_005fforEach_005f3, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f3))
            return true;
          out.write(" name=printformatGuid value='");
          if (_jspx_meth_c_005fout_005f34(_jspx_th_c_005fforEach_005f3, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f3))
            return true;
          out.write('\'');
          out.write(' ');
          out.write(' ');
          if (_jspx_meth_c_005fif_005f17(_jspx_th_c_005fforEach_005f3, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f3))
            return true;
          out.write("  >\r\n");
          out.write("        <span class=asbutton2 style=\"font-size:14px; onclick=\"$E('printFormatGuid");
          if (_jspx_meth_c_005fout_005f35(_jspx_th_c_005fforEach_005f3, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f3))
            return true;
          out.write("').checked=true;\">");
          if (_jspx_meth_c_005fout_005f36(_jspx_th_c_005fforEach_005f3, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f3))
            return true;
          out.write("</span></td>\r\n");
          out.write("        </tr>\r\n");
          int evalDoAfterBody = _jspx_th_c_005fforEach_005f3.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_005fforEach_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (java.lang.Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_005fforEach_005f3[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_005fforEach_005f3.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_005fforEach_005f3.doFinally();
      _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f3);
    }
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f33(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f3, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f3)
          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_005f33 = (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_005f33.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f33.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f3);
    // /billedit.jsp(1502,45) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f33.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.index}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f33 = _jspx_th_c_005fout_005f33.doStartTag();
    if (_jspx_th_c_005fout_005f33.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f33);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f33);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f34(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f3, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f3)
          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_005f34 = (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_005f34.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f34.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f3);
    // /billedit.jsp(1502,106) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f34.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.guid}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f34 = _jspx_th_c_005fout_005f34.doStartTag();
    if (_jspx_th_c_005fout_005f34.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f34);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f34);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f17(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f3, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f3)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f17 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f17.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f17.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f3);
    // /billedit.jsp(1502,138) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f17.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.index==0}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f17 = _jspx_th_c_005fif_005f17.doStartTag();
    if (_jspx_eval_c_005fif_005f17 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("checked");
        int evalDoAfterBody = _jspx_th_c_005fif_005f17.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f17.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f17);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f17);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f35(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f3, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f3)
          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_005f35 = (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_005f35.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f35.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f3);
    // /billedit.jsp(1503,81) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f35.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.index}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f35 = _jspx_th_c_005fout_005f35.doStartTag();
    if (_jspx_th_c_005fout_005f35.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f35);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f35);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f36(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f3, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f3)
          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_005f36 = (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_005f36.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f36.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f3);
    // /billedit.jsp(1503,131) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f36.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.name}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f36 = _jspx_th_c_005fout_005f36.doStartTag();
    if (_jspx_th_c_005fout_005f36.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f36);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f36);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f37(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_005f37 = (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_005f37.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f37.setParent(null);
    // /billedit.jsp(1562,110) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f37.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${tablename}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f37 = _jspx_th_c_005fout_005f37.doStartTag();
    if (_jspx_th_c_005fout_005f37.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f37);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f37);
    return false;
  }
}
