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

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.util.*;
import wiseoa.*;
import jun.db.core.*;
import java.net.*;
import wiseoa.formdesign.jstl.*;
import wiseoa.home.*;

public final class workbook_005fdb_005froot_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;

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

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

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

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

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

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

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

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

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


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

      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
  
 
WorkBookRightVerify w= new WorkBookRightVerify( request);
FF.pageContextSetAttribute(pageContext , "canEdit", w.canEdit);
User user= User.getUserFromRequest(request);

if(user.getRole()!=1) 
{
 
	int id= FF.GetIntFromRequest(request,"id",0); 
	int reportid=   FF.GetIntFromSQL("", "select * from  oa_report where template_id="+id) ;
	if( reportid>0)
	{
		String url="system_report.jsp?id="+reportid; 
		int operationid=wiseoa.flow.applet.RBAC_Operation.$formDesign;
		if( wiseoa.WiseFilter.urlOnCommision(user, url, operationid)) //注意是反的
		{
			response.sendRedirect(  "SystemTip.jsp?info=" + URLEncoder.encode("抱歉，您无此权限", "UTF-8"));
			return ;
		}
		
	}
}

FF.pageContextSetAttribute(pageContext , "type", w.type);

FF.pageContextSetAttribute(pageContext , "templateid", w.id);



 	  
 WorkBookDBRoot  wbr= new WorkBookDBRoot(request , w.type, w.id);
 FF.pageContextSetAttribute(pageContext,"mastertablename", wbr.masterTable);
	 	    

      out.write("\r\n");
      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=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("<TITLE></TITLE>\r\n");
      out.write("\t\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("\t\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write("\t\t<SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("\t\t<SCRIPT type=\"text/javascript\" src=\"js/KeyDownFilter.js\"></SCRIPT>\r\n");
      out.write("\t\t   \r\n");
      out.write("\t\t<SCRIPT src=\"tab3/tab.js\" type=\"text/javascript\"></SCRIPT>\r\n");
      out.write("\t\t<SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write("\t\t<SCRIPT type=\"text/javascript\" src=\"js/prototype14.js\"></SCRIPT>\t \r\n");
      out.write("\t\t<SCRIPT type=\"text/javascript\" src=\"js/KeyDownFilter.js\"></SCRIPT>\r\n");
      out.write("\t\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/simplemenu.css\">   \r\n");
      out.write("\t\t\t   \r\n");
      out.write("\t　\r\n");
      out.write(" \r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("　　\r\n");
      out.write("\r\n");
      out.write("<body scroll=\"no\" >\r\n");
      out.write("<iframe  style=\"display:none\" id=\"scriptedit\" src=\"\"></iframe>\r\n");
      out.write("<DIV class=menu  id=myMenu style=\"visible:hidden\"> </DIV>\r\n");
      out.write("<SCRIPT\ttype=\"text/javascript\" src=\"js/simplemenu.js\"></SCRIPT> \r\n");
      out.write("\r\n");
      out.write(" <script language=\"javascript\">\r\n");
      out.write("\t var t=new tab( 't');\r\n");
      out.write("\t \r\n");
      out.write("\t t.addTab('常规信息','tab0','',true );\r\n");
      out.write("\t t.addTab('增加数据库表','tab1','',true );\r\n");
      out.write(" \t t.addTab('增加查询结果集','tab2','',true );\r\n");
      out.write("\t t.addTab('设置主表','tab3','',true );\r\n");
      out.write("\t t.addTab('智能查询','tab4','',true );\r\n");
      out.write("\t \r\n");
      out.write("\t   \r\n");
      out.write("　\r\n");
      out.write("\t t.create();\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<div id=tab0>\r\n");
      out.write("<p>\r\n");
      out.write("<br>\r\n");
      out.write("&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("模板名称：<font color=red>");
      out.print(wbr.Name);
      out.write("</font></p>\r\n");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("<p>&nbsp;&nbsp;&nbsp;&nbsp; 结构化模板通常用作工作流的数据表单，或用于报表统计，代码数据表单等。在此可以增加、删除、修改表、结果集、字段信息。</p>\r\n");
      out.write("<p>&nbsp;&nbsp;&nbsp; <img src='image/ico_right.gif' width=\"16\" height=\"16\" align=\"absmiddle\"  >\r\n");
      out.write("<span class=\"asbutton\" onClick=\"t.showTab('tab1');\">增加数据库表</span></p>\r\n");
      out.write("<p>&nbsp;&nbsp;&nbsp; <img src='image/ico_right.gif' width=\"16\" height=\"16\" align=\"absmiddle\"  >\r\n");
      out.write("<span class=\"asbutton\" onClick=\"t.showTab('tab2');\">增加查询结果集</span></p>\r\n");
      out.write("<p>&nbsp;&nbsp;&nbsp; <img src='image/ico_right.gif' width=\"16\" height=\"16\" align=\"absmiddle\"  >\r\n");
      out.write("<span class=\"asbutton\" onClick=\"t.showTab('tab3');\">设置主表</span></p>\r\n");
      out.write("\r\n");
      out.write("<p>&nbsp;&nbsp;&nbsp; <img src='image/ico_right.gif' width=\"16\" height=\"16\" align=\"absmiddle\"  >\r\n");
      out.write("<span class=\"asbutton\" onClick=\"EditFile();\">直接修改数据库配置</span></p>\r\n");
      out.write("</div>\r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("   <div id = tab1>\r\n");
      out.write("     <p><br>\r\n");
      out.write("  &nbsp;&nbsp; 　对于表单上的数据，如果需要保存到数据库中，可以增加相应的数据库表，用来保存数据。表类型分为“单行数据”和“多行数据”。比如发票的主要信息可以存放到一个单行数据表中，发票的货物明细信息可以存放到一个多行数据表中。请根据实际需要设置表的类型。 </p>\r\n");
      out.write("     <table width= 403   border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"2\">\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td nowrap>名称(英文)：</td>\r\n");
      out.write("       <td ><input type=\"text\" class='textbox'  id=\"newtablename\" value=\"flow_\"\r\n");
      out.write("\t    title=\"以字母开头，并由字母，数字，下划线_组成的名字。建议以 flow_　为前缀\" ></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td width=\"18%\">表 的 含义：</td>\r\n");
      out.write("       <td ><input type=\"text\" class='textbox'  id=\"newtablecomment\"></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td nowrap>数据库连接：</td>\r\n");
      out.write("       <td >");
      out.print( DSNList.DSNHTML("newtabledsn"));
      out.write("\r\n");
      out.write("\t   </td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr id= sizecontainer>\r\n");
      out.write("       <td>数 据 类型：</td>\r\n");
      out.write("       <td ><select name=\"newtablerowtype\" id=\"newtablerowtype\" class=\"textbox\" onChange=\"tableRowTypeChange()\">\r\n");
      out.write("         <option value=\"single\" >单行数据</option>\r\n");
      out.write("         <option value=\"multi\"  selected>多行数据</option>\r\n");
      out.write("                     </select></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr id=multidefaultrowcount>\r\n");
      out.write("       <td>缺 省 行数：</td>\r\n");
      out.write("       <td ><input type=\"text\"  class=\"textbox\"  size=9  id=\"newtabledefaultrowcount\" value=\"1\" onkeydown='KeyDownFilterLong();'></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td>&nbsp;</td>\r\n");
      out.write("       \r\n");
      out.write("       <td width=\"82%\" align=\"right\"><script>\r\n");
      out.write("\t   \r\n");
      out.write("\t   \t \r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\tvar cb =new zbutton('cb_newtable','<span title=\"按上面的配置信息增加一张表\">提交</span>','image/verify.gif');\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t       \r\n");
      out.write("\t   </script>       </td>\r\n");
      out.write("     </tr>\r\n");
      out.write("   </table>\r\n");
      out.write("   \r\n");
      out.write("</div>\r\n");
      out.write(" \r\n");
      out.write("    \r\n");
      out.write("<div id=tab2 >\r\n");
      out.write("<p><br>\r\n");
      out.write("　　　当表单上需要显示只读的查询数据时，可以为模板增加基于查询结果集的只读数据源。通常这样的数据源仅用来显示相关信息或用作报表统计。<p>\r\n");
      out.write("<table width= 100%  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"2\">\r\n");
      out.write("     <tr>\r\n");
      out.write("        <td nowrap>名称 (英文)：</td>\r\n");
      out.write("       <td width=50%><input type=\"text\" class='textbox'  id=\"newqueryname\" value=\"query_\"\r\n");
      out.write("\t    title=\"以字母开头，并由字母，数字，下划线_组成的名字。建议以 flow_　为前缀\" ></td>\r\n");
      out.write("    \r\n");
      out.write("      <td   align=\"right\">&nbsp;说明：</td>\r\n");
      out.write("       <td width=50%><input type=\"text\" class='textbox'  id=\"newquerycomment\"></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("     <td  nowrap >数据库连接：</td>\r\n");
      out.write("       <td >");
      out.print( DSNList.DSNHTML("newquerydsn"));
      out.write("\r\n");
      out.write("\t   </td>\r\n");
      out.write("    \r\n");
      out.write("       <td nowrap  align=\"right\">类型：</td>\r\n");
      out.write("       <td ><select   id=\"newqueryrowtype\" class=\"textbox\" >\r\n");
      out.write("         <option value=\"single\" >单行数据</option>\r\n");
      out.write("         <option value=\"multi\" selected>多行数据</option>\r\n");
      out.write("                     </select></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("         <tr  >\r\n");
      out.write("       <td nowrap>自动去除空格：</td>\r\n");
      out.write("       <td ><input   type=\"checkbox\"   name=newtableautotrim  id=\"newtableautotrim\"   value=\"1\" checked size=9 >数据前后的空格自动去掉</td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     \r\n");
      out.write("\t <tr>\r\n");
      out.write("       <td  colspan=2>数 据 定 义： \r\n");
      out.write("       (可以是select 语句或返回结集的存储过程)\r\n");
      out.write("       \r\n");
      out.write("             &nbsp;&nbsp;<input   type=\"checkbox\"   name=newqueryautotrim  id=\"newqueryautotrim\"  value=\"1\"  size=9 ><font color=red>数据前后的空格自动去掉</font>\r\n");
      out.write(" \r\n");
      out.write("       </td>\r\n");
      out.write("  <td  nowrap  align=\"right\">自动检索：</td>\r\n");
      out.write("\t   <td><input type=\"checkbox\" name=\"newqueryautoretrieve\" id=\"newqueryautoretrieve\">\r\n");
      out.write("\t     打开表单自动检索&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<img src=\"image/click.gif\">\r\n");
      out.write("<input type=\"button\" value=\"&nbsp;提&nbsp;交&nbsp;\"   onclick=\"cb_newquery_onclick();\"  title=\"按上面的配置信息增加查询结果集\"></td>\r\n");
      out.write("\r\n");
      out.write("</tr>\r\n");
      out.write("\r\n");
      out.write("<tr>\r\n");
      out.write("<tr><td colspan=4 style=\"color:green;\">提示：可以用-- 来在语句中写注释，每行中两个减号之后的部分被认为是注释</td></tr>\r\n");
      out.write("\r\n");
      out.write("<td colspan=4>\r\n");
      out.write(" <div style=\"position:absolute;width:100%;height:550px;   \">\r\n");
      out.write("<textarea   rows=17   id=newquerydefine class=\" textbox95\"  wrap=\"on\" >select * from  </textarea>\r\n");
      out.write("   </div>\r\n");
      out.write("     \r\n");
      out.write("     </tr>\r\n");
      out.write("\t  \r\n");
      out.write("     </table>\r\n");
      out.write("   \r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write(" \r\n");
      out.write("<div id=tab3>\r\n");
      out.write("<p><br>\r\n");
      out.write("&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("当一个模板中包含多个<span class=\"color_red\">允许更新</span>的类型为<span class=\"color_red\">单行数据</span>的<span class=\"color_red\">表</span>时，系统需要指定其中的一个为主表，当模板用于报表查询时，可以忽略本步操作。当模板用于工作流时，因为工作流转中的派工信息将保存在模板的主表中，所以请慎重设置主表，如无特别需要，请不要随意更改主表。</p>\r\n");
      out.write("<table width=\"70%\" border=\"0\" align=\"center\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"87%\"><select name=\"select\" class=\"textbox\" id=\"mastertable\">\r\n");
      out.write("      ");
      out.print(wbr.HTML);
      out.write("\r\n");
      out.write("    </select></td>\r\n");
      out.write("    <td width=\"13%\">\r\n");
      out.write("\t<script>\r\n");
      out.write("\t   \t\tfunction cb_master_onclick()\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tvar t= $('mastertable').value;\r\n");
      out.write("\t\t\t\tif ( t=='') \r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t\talert('请选择一个表');\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\tif ( !confirm(\"确信要把\"+t+\"作为模板的主表吗?\")) return;\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\tjsrsExecute(\"servlet/wiseoa.flow.jsprpc.FlowManage\", \r\n");
      out.write("\t\t\t\t　　　　callback_newtable, \"setMasterTable\", \r\n");
      out.write("\t　　　　　　　　　[\"");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write("\", \"");
      if (_jspx_meth_c_005fout_005f2(_jspx_page_context))
        return;
      out.write("\" , t ],false);\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t}\r\n");
      out.write(" \t\r\n");
      out.write("\t\t\tvar cb =new zbutton('cb_master','提交','image/verify.gif');\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t       \r\n");
      out.write("\t   </script>    \r\n");
      out.write("\t</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<p align=\"center\">&nbsp;</p>\r\n");
      out.write("</div>   \r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("<div id=tab4>\r\n");
      out.write("<p><br>\r\n");
      out.write("&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("当在查询界面中输入需要匹配的内容后，系统将按照预先定义好的查询条件将关键字代入，并进行查询，请在此定义查询条件的语法，该语句需要符合数据库查询语句的where子句的语法。在定义条件时，可以使用@@@来指代输入的关键字。比如： billdate&gt;='@@@' or code='@@@' or amount=@@@&nbsp;请特别注意语句中的单引号。当允许输入多个关键字时，关键字之间用空格（中文英文空格都可以，一个或多个连续的空格被当作一个分隔符）分开，在此定义条件时，可以用@@@1,@@@2,@@@3....分别引用第1，2，3个关键字。（@@@等价于@@@1)，当输入的关键字个数多于需要的个数时，多余的关键字被忽略。如果不定义条件语法，系统将自动按输入内容的类型，按单据号或制单日期进行查询。</p>\r\n");
      out.write("<table width=\"509\" border=\"0\" align=\"center\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"503\"><textarea id=smartquery name=smartquery class=\"textbox\"  rows=8>");
      out.print(wbr.smartQuery);
      out.write("</textarea> </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td>提示说明：（请给查询人员一个如何输入关键字的提示信息）\r\n");
      out.write("      <input id=\"smartquerytip\"  name=\"smartquerytip\" type=\"text\" \r\n");
      out.write("\tclass='textbox' value= \"");
      out.print(wbr.smartQueryTip);
      out.write("\" ></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("  \r\n");
      out.write(" \r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"right\">   \r\n");
      out.write("\t<script>\r\n");
      out.write("\t   \t\tfunction cb_setSmartQuery_onclick()\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tvar t= $('smartquery').value; \r\n");
      out.write("\t\t\t\tvar t2= $('smartquerytip').value;\r\n");
      out.write("\t\t\t\t \r\n");
      out.write("\t\t\t\tif ( !confirm(\"确信提交吗?\")) return;\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\tjsrsExecute(\"servlet/wiseoa.flow.jsprpc.FlowManage\", \r\n");
      out.write("\t\t\t\t　　　　callback_newtable, \"setSmartQuery\", \r\n");
      out.write("\t　　　　　　　　　[ \"");
      if (_jspx_meth_c_005fout_005f3(_jspx_page_context))
        return;
      out.write("\", \"");
      if (_jspx_meth_c_005fout_005f4(_jspx_page_context))
        return;
      out.write("\" , t ,t2 ],false);\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t}\r\n");
      out.write(" \t\r\n");
      out.write("\t\t\tvar cb =new zbutton('cb_setSmartQuery','提交','image/verify.gif');\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t       \r\n");
      out.write("\t   </script>\t</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<p align=\"center\">&nbsp;</p>\r\n");
      out.write("</div>   \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("   \t\r\n");
      out.write(" \r\n");
      out.write("function tableRowTypeChange()\r\n");
      out.write("{\r\n");
      out.write("\tvar colType=$('newtablerowtype').value;\r\n");
      out.write("\tif ( colType=='single' )\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('multidefaultrowcount').style.display=\"none\";\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('multidefaultrowcount').style.display=\"\";\r\n");
      out.write("\t\t \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_newtable_onclick()\r\n");
      out.write("{\r\n");
      out.write("\tif( !confirm('提交操作将按上述配置创建新表，确信吗?')) return;  \r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\tvar tablename=$('newtablename').value;\r\n");
      out.write("\tvar comment=$('newtablecomment').value;;\r\n");
      out.write("\tvar dsn=$('newtabledsn').value; \r\n");
      out.write("\tvar tabletype=$('newtablerowtype').value;\r\n");
      out.write("\tvar defaultRowCount=$('newtabledefaultrowcount').value;\r\n");
      out.write("\tvar autoTrim= $('newtableautotrim').checked?\"true\":\"false\";\r\n");
      out.write("\tjsrsExecute(\"servlet/wiseoa.flow.jsprpc.FlowManage\", callback_newtable, \"newTable\", \r\n");
      out.write("\t[ \"");
      if (_jspx_meth_c_005fout_005f5(_jspx_page_context))
        return;
      out.write("\", \"");
      if (_jspx_meth_c_005fout_005f6(_jspx_page_context))
        return;
      out.write("\" , tablename , comment , dsn ,tabletype, defaultRowCount,autoTrim],false);\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_newquery_onclick()\r\n");
      out.write("{\r\n");
      out.write("\tif( !confirm('提交操作将按上述配置创建新的查询结果集，确信吗?')) return;  \r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\tvar tablename=$('newqueryname').value;\r\n");
      out.write("\tvar comment=$('newquerycomment').value;;\r\n");
      out.write("\tvar dsn=$('newquerydsn').value; \r\n");
      out.write("\tvar tabletype=$('newqueryrowtype').value;\r\n");
      out.write("\tvar define= $('newquerydefine').value;\r\n");
      out.write("\tvar autoretrieve=$('newqueryautoretrieve').checked ?1:0;\r\n");
      out.write("\tvar autoTrim= $('newqueryautotrim').checked?\"true\":\"false\";\r\n");
      out.write("\tjsrsExecute(\"servlet/wiseoa.flow.jsprpc.FlowManage\", callback_newtable, \"newQuery\",\r\n");
      out.write("\t [\"");
      if (_jspx_meth_c_005fout_005f7(_jspx_page_context))
        return;
      out.write("\", \"");
      if (_jspx_meth_c_005fout_005f8(_jspx_page_context))
        return;
      out.write("\" , tablename , comment , dsn ,tabletype, define , autoretrieve,autoTrim,'',''],false);\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function callback_newtable(msg)\r\n");
      out.write("{\r\n");
      out.write("\t if (extractValue(msg ,\"ok\")==\"true\") \r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\tparent.history.go(0) ;\r\n");
      out.write("\t\t \r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t  alert ( extractValue(msg, \"error\"));\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write(" function EditFile(  )\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\t   var  f =  \"db.xml\" ;\r\n");
      out.write("       ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t    \r\n");
      out.write("\t    ");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context))
        return;
      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("   \r\n");
      out.write("//初始动作\r\n");
      out.write("t.showTab('tab0');\r\n");
      out.write("$('multidefaultrowcount').style.display=\"none\";\r\n");
      out.write("$('newtabledsn').className=\"textbox\";\r\n");
      out.write("$('newquerydsn').className=\"textbox\";\r\n");
      out.write("   \r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<iframe  style=\"display:none\" id=\"scriptedit\" src=\"\"></iframe>\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_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);
    // /workbook_db_root.jsp(109,0) 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("${mastertablename!=''}", 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("<p>&nbsp;&nbsp;&nbsp;&nbsp; 模板主表：<font color=red>");
        if (_jspx_meth_c_005fout_005f0(_jspx_th_c_005fif_005f0, _jspx_page_context))
          return true;
        out.write("</font></p>");
        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_005fout_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_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: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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /workbook_db_root.jsp(109,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("${mastertablename}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag();
    if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f1.setParent(null);
    // /workbook_db_root.jsp(249,12) 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("${type}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag();
    if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f2 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f2.setParent(null);
    // /workbook_db_root.jsp(249,40) 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("${templateid}", 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_005fout_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: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(null);
    // /workbook_db_root.jsp(293,13) 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("${type}", 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.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_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(null);
    // /workbook_db_root.jsp(293,41) 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("${templateid}", 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_005fout_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: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(null);
    // /workbook_db_root.jsp(340,4) 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("${type}", 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.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_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(null);
    // /workbook_db_root.jsp(340,32) 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("${templateid}", 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_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);
    // /workbook_db_root.jsp(358,4) 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("${type}", 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);
    // /workbook_db_root.jsp(358,32) 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("${templateid}", 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_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);
    // /workbook_db_root.jsp(381,7) 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("${type=='form'}", 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("\t\tvar file=  \"flowform/");
        if (_jspx_meth_c_005fout_005f9(_jspx_th_c_005fif_005f1, _jspx_page_context))
          return true;
        out.write('/');
        if (_jspx_meth_c_005fout_005f10(_jspx_th_c_005fif_005f1, _jspx_page_context))
          return true;
        out.write("/\"+f ;\r\n");
        out.write("\t \r\n");
        out.write("\t\tfile=escape(file);\r\n");
        out.write("\t    var f=document.getElementById('scriptedit');\r\n");
        out.write("\r\n");
        out.write("\t    f.src=\"servlet/wiseoa.WiseEdit?filename=\"+file;\r\n");
        out.write("\t\r\n");
        out.write("\t    ");
        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_005fout_005f9(javax.servlet.jsp.tagext.JspTag _jspx_th_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: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_005f1);
    // /workbook_db_root.jsp(382,23) 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("${user.unit}", 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.tagext.JspTag _jspx_th_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: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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f1);
    // /workbook_db_root.jsp(382,53) 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("${templateid}", 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_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);
    // /workbook_db_root.jsp(391,5) 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("${type=='wss'}", 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("\t\tvar file=  \"servlet/wiseoa.task.jstl.TaskScript?forwhat=wss&type=wss&id=");
        if (_jspx_meth_c_005fout_005f11(_jspx_th_c_005fif_005f2, _jspx_page_context))
          return true;
        out.write("&file=\"+f  ;\r\n");
        out.write("      \r\n");
        out.write("        file=escape(file);\r\n");
        out.write("     \r\n");
        out.write(" \t    var f=document.getElementById('scriptedit');\r\n");
        out.write("\r\n");
        out.write("\t    f.src=\"servlet/wiseoa.WiseEdit?filename=\"+file;\r\n");
        out.write("\t\r\n");
        out.write("\t    ");
        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_005fout_005f11(javax.servlet.jsp.tagext.JspTag _jspx_th_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: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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f2);
    // /workbook_db_root.jsp(392,74) 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;
  }
}
