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

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;
import wiseoa.formdesign.jstl.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

	// æ ¡éªææ 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");

request.setCharacterEncoding("UTF-8");
FF.setResponseContentType(response);
 
request.setCharacterEncoding("UTF-8");
FF.setResponseContentType(response);
 
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 , "templatetype", w.type);

FF.pageContextSetAttribute(pageContext , "templateid", w.id);
 
RelativeInfo si = new RelativeInfo(request , w.type, w.id);


      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("<head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" /> \r\n");
      out.write("\r\n");
      out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<TITLE></TITLE>\r\n");
      out.write("\r\n");
      out.write("<META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("\r\n");
      out.write("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/util.js\"></SCRIPT>\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/prototype14.js\"></SCRIPT>\r\n");
      out.write(" \r\n");
      out.write("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/simplemenu.css\">   \r\n");
      out.write("<SCRIPT src=\"tab3/tab.js\" type=\"text/javascript\"></SCRIPT>\t\t \r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/KeyDownFilter.js\"></SCRIPT>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\r\n");
      out.write("\tmargin-left: 2px;\r\n");
      out.write("\tmargin-top: 2px;\r\n");
      out.write("\tmargin-right: 2px;\r\n");
      out.write("\tmargin-bottom:2px;\r\n");
      out.write("\tbackground-color:#f8f8f8;\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".TABCONTAINER_coordinate {\r\n");
      out.write("\t\tborder-left:1px solid #919b9c;\r\n");
      out.write("\t\tborder-right:1px solid #919b9c;\r\n");
      out.write("\t\tborder-bottom:1px solid #919b9c;\r\n");
      out.write("\t\tpadding:10px;\t\t\r\n");
      out.write("\t\theight:120px;\r\n");
      out.write("\t\twidth:100%;\r\n");
      out.write("\t \tbackground-color: #ffffff;\r\n");
      out.write("\t }\r\n");
      out.write(".STYLE2 {color: #FF9900}\r\n");
      out.write("\t \r\n");
      out.write(".t1 \t {   width:65px; text-align:right;color:green; }\r\n");
      out.write("\t \r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("\r\n");
      out.write("//常量，保持与ZExcel中的Brick中的常量一致\r\n");
      out.write("var BrickAction_InsertBefore=1;\r\n");
      out.write("var BrickAction_InsertAfter=2;\r\n");
      out.write("var BrickAction_DeleteRow=3;\r\n");
      out.write("var BrickAction_CloneRow=20;\r\n");
      out.write("\r\n");
      out.write("var BrickAction_NormalButton=4;\r\n");
      out.write("var BrickAction_ShowAsImage=5;\r\n");
      out.write("var BrickAction_ShowAsLine=6;\r\n");
      out.write("var BrickAction_ShowBorder=7;\r\n");
      out.write("var BrickAction_AsButton=8;\r\n");
      out.write("var BrickAction_AsButtonLoadImageToDS=9;\r\n");
      out.write("var BrickAction_AsButtonLoadImageToCell=10;\r\n");
      out.write("var BrickAction_AsButtonCameraToDS=11; //打开摄像功能，照像，照片放到Cell里\r\n");
      out.write("var BrickAction_AsButtonCameraToCell=12;//打开摄像功能，照像，照片放到数据库里\r\n");
      out.write("var BrickAction_RetrieveButton =13;  \r\n");
      out.write("var BrickAction_RotatedText =14;  //静态文字\r\n");
      out.write("var BrickAction_Chart = 15; //图形分析\r\n");
      out.write("var BrickAction_PageBar = 17; //图形分析\r\n");
      out.write("var BrickAction_ImageButton=18; //图像按钮 TODO\r\n");
      out.write("\r\n");
      out.write("var BrickAction_Tree = 19; //树\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("//\r\n");
      out.write("\r\n");
      out.write("var guid = \"");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write("var row= ");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write(" ;\r\n");
      out.write("var col= ");
      if (_jspx_meth_c_005fout_005f2(_jspx_page_context))
        return;
      out.write(" ;\r\n");
      out.write("var applet= parent.frames('mainFrame').document.getElementById('book');\r\n");
      out.write("var sheet= applet.book.getWorkSheetByGuid( guid);\r\n");
      out.write("var cell= sheet.cells(row,col);\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("// t 是类型 ， s 是提示文字\r\n");
      out.write("function buildMenuItem( s , t ,title,img)\r\n");
      out.write("{\r\n");
      out.write("\treturn '<A class=menuItem  style=\"padding:3px\" title=\"'+\r\n");
      out.write("\t\t\ttitle+'\" '+\t' href=\"javascript:HideMenu();newSomeBrick( \\''+t+\r\n");
      out.write("\t\t\t'\\' );\"><img src=\"image/'+img+'\" border=0 align=\"absmiddle\">&nbsp;'+\r\n");
      out.write("\t\t\ts+'</A> ' ;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\t   \r\n");
      out.write("function newBrick()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\tvar w=110;\t\r\n");
      out.write("\tvar HTML=buildMenuItem( \"常规按钮\",BrickAction_NormalButton,\r\n");
      out.write("\t\t\t\"增加普通的按钮\",\"addnode.gif\") +\r\n");
      out.write("\t\t\tbuildMenuItem( \"检索按钮\",BrickAction_RetrieveButton,\r\n");
      out.write("\t\t\t\t\t\"增加触发结果集进行检索的按钮\",\"addnode.gif\") +\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t/*\tbuildMenuItem( \"选择图片按钮\",BrickAction_AsButtonLoadImageToDS,\r\n");
      out.write("\t\t\t\t\t\t\t\"增加将图片保存到数据库的按钮\",\"img.gif\") +\r\n");
      out.write("\t\t\t*/\t\t\t\t\r\n");
      out.write("\t\t\tbuildMenuItem( \"分页导航条\",BrickAction_PageBar,\r\n");
      out.write("\t\t\t\t\t\"增加触发结果集进行检索的按钮\",\"addnode.gif\") +\t\t\r\n");
      out.write("\t\t\tbuildMenuItem(\"前插按钮\",BrickAction_InsertBefore,\r\n");
      out.write("\t\t\t \"为某个多行数据源增加一个前执行数据前插的按钮\",\"icon_readmore.gif\") +\r\n");
      out.write("\t\t\tbuildMenuItem(\"后插按钮\",BrickAction_InsertAfter,\r\n");
      out.write("\t\t\t\"为某个多行数据源增加一个执行数据后插的按钮\",\"reply.gif\") +\r\n");
      out.write("\t\t\tbuildMenuItem( \"删除按钮\",BrickAction_DeleteRow,\r\n");
      out.write("\t\t\t\"为某个多行数据源增加一个前执行数据删除的按钮\",\"erase.gif\") +\r\n");
      out.write("\t\t\tbuildMenuItem( \"克隆按钮\",BrickAction_CloneRow,\r\n");
      out.write("\t\t\t\t\t\"为某个多行数据源增加一个前执行数据删除的按钮\",\"COPY.gif\") +\r\n");
      out.write("\t\t\tbuildMenuItem( \"线&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;条\",\r\n");
      out.write("\t\t\tBrickAction_ShowAsLine,\t\"增加一个斜线或直线\",\"line.gif\")\r\n");
      out.write("\t\t\t+\tbuildMenuItem( \"静态文本\",\tBrickAction_RotatedText,\t\"增加一个静态文本\",\"fontstyleadv.gif\")\r\n");
      out.write("\t\t\t+\tbuildMenuItem( \"图形分析\",\tBrickAction_Chart,\t\"增加一个图形分析\",\"poll_posticon2.gif\")\r\n");
      out.write("\t\t\t+\tbuildMenuItem( \"树形控件\",\tBrickAction_Tree,\t\"增加一个树控件\",\"tree.gif\")\r\n");
      out.write("\t\t\t ;\r\n");
      out.write("\t openMenu( HTML);\r\n");
      out.write("}\r\n");
      out.write("\t \r\n");
      out.write("function newSomeBrick( t)\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\tvar s=    window.showModalDialog('inputbox.jsp', \r\n");
      out.write("\t\t\"<tip>请输入一个名称（必须是由字母打头，并由字母数字下划线组成字符串）：\"+\r\n");
      out.write("\t\t\"</tip><value></value>\" , \"dialogWidth:\" + 250  + \"px;dialogHeight:\" +130+\r\n");
      out.write("\t\t\"px;help:no;scroll:no;status:no\");\r\n");
      out.write("\tif ( extractValue(s,\"click\")!='ok') return;\r\n");
      out.write("\tvar s= extractValue(s,'value');\r\n");
      out.write("\tif ( s==null) return;\r\n");
      out.write("\tif ( s=='')  return;\r\n");
      out.write("\t\r\n");
      out.write("\tif ( t==BrickAction_NormalButton)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createVirtualButton(s,\"按钮\");\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif ( t==BrickAction_RetrieveButton)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createRetrieveButton(s,\"检索\",\"\");\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\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("\tif ( t==BrickAction_PageBar)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createPageBar(s,\"\",0);\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\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("\r\n");
      out.write("\tif ( t==BrickAction_RotatedText)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createRotatedText(s,\"文字\",0 , \"宋体\",12 ,\"0x000000\") ;\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\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("\tif ( t==BrickAction_ShowAsLine)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createLine(s, \"#000\",1,1);\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif (t==BrickAction_InsertBefore ||\r\n");
      out.write("\t      t==BrickAction_InsertAfter  || \r\n");
      out.write("\t\t  t==BrickAction_DeleteRow ||\r\n");
      out.write("\t\t  t==BrickAction_CloneRow  \r\n");
      out.write("\t\t  )\r\n");
      out.write("\t{\r\n");
      out.write("\t\r\n");
      out.write("\t\tvar brick=applet.createDBBarBrick(s, \"\",t);\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\r\n");
      out.write("\t\talert('请进一步修改该按钮，指定它操作的数据源。');\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\tif ( t==BrickAction_Chart)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar brick=applet.createChart(s  );\r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\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("\tif ( t==BrickAction_Tree)\r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\tvar brick=applet.createTree(s);\r\n");
      out.write("\t\t \r\n");
      out.write("\t\tcell.addBrick(brick);\r\n");
      out.write("\t\trebuildBrickList();\r\n");
      out.write("\t\talert('请进一步修改树形控件的各项属性。');\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function ReloadDBColumn()\r\n");
      out.write("{\r\n");
      out.write("  \r\n");
      out.write("\tvar dsn =$E('dsn');\r\n");
      out.write("\tvar dsname= dsn.value;\r\n");
      out.write(" \r\n");
      out.write("\tvar s= applet.getDBColumnList(dsname); \r\n");
      out.write("\t$E('categoryColContainer').innerHTML= applet.getDBColumnList(dsname, \"categoryCol\" ,\"textbox\" );\r\n");
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write("\t$E('valueColContainer').innerHTML= applet.getDBColumnList(dsname, \"valueCol\" ,\"textbox\" );\r\n");
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write("\t$E('valueCol2Container').innerHTML= applet.getDBColumnList(dsname, \"valueCol2\" ,\"textbox\" );\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\t$E('seriesColContainer').innerHTML= applet.getDBColumnList(dsname, \"seriesCol\" ,\"textbox\" );\r\n");
      out.write(" \r\n");
      out.write("\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("</script>\r\n");
      out.write("\r\n");
      out.write("</HEAD>\r\n");
      out.write("<BODY>\r\n");
      out.write("<div id=list>\r\n");
      out.write("\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("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  >\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"26\" align=\"right\" ><a href='workbook_config_property.jsp?type=");
      if (_jspx_meth_c_005fout_005f3(_jspx_page_context))
        return;
      out.write("&id=");
      if (_jspx_meth_c_005fout_005f4(_jspx_page_context))
        return;
      out.write("&forceload=1'><img src='image/backto16.gif' border=\"0\" align=\"absmiddle\">返回属性设置主界面</a></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<table    width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=#f3f3E8>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"8%\" nowrap>工作本：</td>\r\n");
      out.write("    <td width=\"92%\"><font color=\"red\"  id=workSheetName><script>document.write(sheet.getName());</script></font></td>\r\n");
      out.write("    <td nowrap width=\"20\" rowspan=2 style=\"font-size:22px; color:blue;\" id=cellname2> </td>  \r\n");
      out.write("</tr>\r\n");
      out.write("   <tr>\r\n");
      out.write("    <td>单元格：</td>\r\n");
      out.write("    <td><font color=\"red\" id=cellName2>\r\n");
      out.write("    </font>设置内嵌对象</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td colspan=\"3\" height=\"2\" background=\"image/bk.gif\" bgcolor=\"#FFFFFF\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<p align=\"left\"> &nbsp;&nbsp;<span class=\"asbutton\" onClick=\"newBrick();\"><img src=\"image/click.gif\" width=\"16\" height=\"16\" align='absmiddle'>添加新元素</span> </p>\r\n");
      out.write("<div id=brickcontainer>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("\r\n");
      out.write("//重新构建单元格中小物件的列表\r\n");
      out.write("function rebuildBrickList()\r\n");
      out.write("{\r\n");
      out.write("  \r\n");
      out.write("\tvar s=\"<table  width='100%' border=0 cellspacing=0 cellpadding=2>\";\r\n");
      out.write("\tvar bc= cell.getBrickCount();\r\n");
      out.write("     \r\n");
      out.write(" \r\n");
      out.write("\tfor ( i=0;i<bc;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\r\n");
      out.write("\t\tvar brick= cell.getBrick(i);\r\n");
      out.write("\t\tif( brick.isDynamicCreate()) continue;\r\n");
      out.write("\t\tvar name=brick.getName( );\r\n");
      out.write("\t\t// 自动加上的编辑亮显边框不需要维护\r\n");
      out.write("\t\tif ( name.toLowerCase()==\"editablehightlight\" ) continue; \r\n");
      out.write("\t\tvar caption=brick.getCaption();\r\n");
      out.write("\t\ts=s+\"<tr onmouseover=' this.style.backgroundColor=\\\"#efefff\\\";' \"+\r\n");
      out.write("\t\t \" onmouseout=' this.style.backgroundColor=\\\"white\\\";'>\" +\r\n");
      out.write("\t\t \"<td nowrap width='90%' style='cursor:hand' onclick='editBrick(\\\"\"+name+ \r\n");
      out.write("\t\t \"\\\");' title='\"+name+\"'><img src='image/bullet.gif' align='absmiddle'>\"+ \r\n");
      out.write("\t\t caption + \" [ \"+name+\" ] \"+\r\n");
      out.write("\t\t \"</td><td nowrap><span class='asbutton'  onclick='editBrick(\\\"\"+name+\r\n");
      out.write("\t\t \"\\\");'>修改</span></td>\"+\r\n");
      out.write("\t\t \"<td nowrap><span class='asbutton' onclick='deleteBrick(\\\"\"+name+\r\n");
      out.write("\t\t \"\\\");'>删除</span></td></tr>\"+\r\n");
      out.write("\t\t \"<tr><td height=1 bgcolor='#efefff' colspan=3></td></tr>\" ;\r\n");
      out.write("\t}\r\n");
      out.write("\ts=s+\"</table>\";\r\n");
      out.write("\t$('brickcontainer').innerHTML=s ; \r\n");
      out.write("\r\n");
      out.write("\t$('cellname2').innerHTML=cell.getName();\r\n");
      out.write("\t\r\n");
      out.write(" \r\n");
      out.write("}\r\n");
      out.write("//删除某个小物件\r\n");
      out.write("function deleteBrick(name)\r\n");
      out.write("{\r\n");
      out.write(" \r\n");
      out.write("\tif ( !confirm(\"确信要删除名为\"+name+\"的对象吗\")) return;\r\n");
      out.write(" \tvar b=cell.removeBrick(name);\r\n");
      out.write(" \tapplet.repaint();\r\n");
      out.write(" \trebuildBrickList();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function editBrick(name)\r\n");
      out.write("{\r\n");
      out.write("\t$('property').style.display=\"\";\r\n");
      out.write("\tloadBrickProperty(name);\r\n");
      out.write("\t$('list').style.display=\"none\";\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("function \tloadBrickProperty(name)\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\t//先把数据清除\r\n");
      out.write("\tvar objs=document.getElementsByTagName(\"INPUT\");\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\tsetChartPropertyVisible (false, false);\r\n");
      out.write("\t\r\n");
      out.write("\tfor(i=0;i<objs.length;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\t\r\n");
      out.write("\t\tif( objs[i].type==\"text\") objs[i].value=\"\";\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t$('captioncontainer').style.display=\"none\";\r\n");
      out.write("\t$('datasourcecontainer').style.display=\"none\";\r\n");
      out.write("\t$('linecontainer').style.display=\"none\";\r\n");
      out.write("\t$('onceretrieverowcountcontainer').style.display=\"none\";\r\n");
      out.write("\t$('isExportAllWithoutDataPageLimitcontainer').style.display=\"none\";\r\n");
      out.write("\t\r\n");
      out.write("\t$('connectioncontainer').style.display=\"none\";\r\n");
      out.write("\t\r\n");
      out.write("\t$('sqlcontainer').style.display=\"none\";\r\n");
      out.write("\t\r\n");
      out.write("\t$('treeSettingContainer').style.display=\"none\";\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tvar brick= cell.getBrick(name);\r\n");
      out.write("\t$('name').innerText= brick.getName();\r\n");
      out.write("\t$('caption').value= brick.getCaption();\r\n");
      out.write("\t//x坐标\r\n");
      out.write("\tvar x=brick.getX();\r\n");
      out.write("\tif(x>=0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_x1').checked=true;\r\n");
      out.write("\t\t$('sle_x1').value= x;\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_x2').checked=true;\r\n");
      out.write("\t\t$('sle_x2').value= Math.abs(x);\r\n");
      out.write("\t}\r\n");
      out.write("\t//y坐标\r\n");
      out.write("\tvar y=brick.getY();\r\n");
      out.write("\tif(y>=0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_y1').checked=true;\r\n");
      out.write("\t\t$('sle_y1').value= y;\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_y2').checked=true;\r\n");
      out.write("\t\t$('sle_y2').value= Math.abs(y);\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t//宽度\r\n");
      out.write("\tvar w=brick.getWidth();\r\n");
      out.write("\tif(w==0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_w0').checked=true;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif(w>0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_w1').checked=true;\r\n");
      out.write("\t\t$('sle_w1').value= w ;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif(w<0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_w_1').checked=true;\r\n");
      out.write("\t\t$('sle_w2').value= Math.abs(w);\r\n");
      out.write("\t}\r\n");
      out.write("\t//高度\r\n");
      out.write("\tvar h=brick.getHeight();\r\n");
      out.write("\tif(h==0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_h0').checked=true;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif(h>0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_h1').checked=true;\r\n");
      out.write("\t\t$('sle_h1').value= h;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif(h<0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('rb_h_1').checked=true;\r\n");
      out.write("\t\t$('sle_h2').value= Math.abs(h);\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("    var action= brick.getAction();\r\n");
      out.write(" \r\n");
      out.write("\tif (action==BrickAction_NormalButton)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('captioncontainer').style.display=\"\";\r\n");
      out.write("\t\t$('action').innerText= \"常规按钮\";\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (action==BrickAction_RotatedText)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('captioncontainer').style.display=\"\";\r\n");
      out.write("\t\t$('action').innerText= \"静态文本\";\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (action==BrickAction_Chart)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('captioncontainer').style.display=\"\";\r\n");
      out.write("\t\t$('action').innerText= \"图形分析\";\r\n");
      out.write("\r\n");
      out.write("\t\tsetChartPropertyVisible (true, brick.isBindDB());\r\n");
      out.write("\r\n");
      out.write("\t\t$E('chartType').value= brick.getType();\r\n");
      out.write("\t\tchartTypeChanged();\r\n");
      out.write("\t\t$E('categoryAxisLabel').value=brick.getCategoryAxisLabel();\r\n");
      out.write("\t\t$E('valueAxisLabel').value=brick.getValueAxisLabel();\r\n");
      out.write("\t\t$E('alpha').value=brick.getAlpha();\r\n");
      out.write("\t\t$E('seriesAngled').checked= brick.isSeriesAngled();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif ( brick.isBindDB())\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t \t$('dsn').value=brick.getRangeOrDataSource();\r\n");
      out.write("\t\t \tReloadDBColumn();\r\n");
      out.write("\t\t\t$E('categoryCol').value=brick.getCategoryCol();\r\n");
      out.write("\t\t\t$E('categoryColMap').value=brick.getCategoryColMap();\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t$E('valueCol').value=brick.getValueCol();\r\n");
      out.write("\t\t\t$E('valueCol2').value=brick.getValueCol2();\r\n");
      out.write("\t\t\t$E('seriesCol').value=brick.getSeriesCol();  \r\n");
      out.write("\t\t\t$E('seriesColMap').value=brick.getSeriesColMap();  \r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t$E('includeSeries').checked= ( $E('seriesCol').value!=\"\");\r\n");
      out.write(" \t\t\t$E('chartcontainer_db_series').style.display= $E('includeSeries').checked  ?\"\":\"none\";\r\n");
      out.write(" \t\t\t$E('chartcontainer_db_series2').style.display= $E('includeSeries').checked  ?\"\":\"none\";\r\n");
      out.write(" \t\t\t\r\n");
      out.write("\t\t \t\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t$('range').value=brick.getRangeOrDataSource();\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tif (action==BrickAction_RetrieveButton)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('captioncontainer').style.display=\"\";\r\n");
      out.write("\t\t$('action').innerText= \"检索按钮\";\r\n");
      out.write("\r\n");
      out.write("\t\t$('datasourcecontainer').style.display=\"\";\r\n");
      out.write("\t\tvar dsncontainer= $('dsncontainer');\r\n");
      out.write("\t\tdsncontainer.innerHTML= applet.getSomeDataSourceList('',false);\r\n");
      out.write("\t\t$('dsn').value=brick.getDataSource();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tif (action==BrickAction_Tree)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t \r\n");
      out.write("\r\n");
      out.write("\t\t$('connectioncontainer').style.display=\"\";\r\n");
      out.write("\t //注意这里 datasource 放的是数据库连接名，而不是db配置中的数据\r\n");
      out.write("\t\tvar con=brick.getConnection();\r\n");
      out.write("\t    if( con=='') con='default';\r\n");
      out.write("\t     $('connection').value=con;\r\n");
      out.write("\t  \r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('sqlcontainer').style.display=\"\";\r\n");
      out.write("\t\t$('sql').value=brick.getSelect();\r\n");
      out.write("\t\t$('treeRootLabel').value= brick.getRootLabel();\r\n");
      out.write("\t\t$('treeRootValue').value= brick.getRootValue();\r\n");
      out.write("\t\t$('treeMultiSelection').checked= brick.isMultiSelection();\r\n");
      out.write("\t\t$('treeAutoLoad').checked= brick.isAutoLoad();\r\n");
      out.write("\t\t$('treeLazyLoad').checked= brick.isLazyLoading();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('treeSettingContainer').style.display=\"\";\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('col_id').value='id';\r\n");
      out.write("\t\t$('col_pid').value='pid';\r\n");
      out.write("\t\t$('col_value').value='value';\r\n");
      out.write("\t\t$('col_caption').value='caption';\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("\tif (action==BrickAction_PageBar)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('captioncontainer').style.display=\"\";\r\n");
      out.write("\t\t$('action').innerText= \"分页导航\";\r\n");
      out.write("\r\n");
      out.write("\t\t$('datasourcecontainer').style.display=\"\";\r\n");
      out.write("\t\tvar dsncontainer= $('dsncontainer');\r\n");
      out.write("\t\tdsncontainer.innerHTML= applet.getSomeDataSourceList('',false);\r\n");
      out.write("\t\t$('dsn').value=brick.getDataSource();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('onceretrieverowcountcontainer').style.display=\"\";\r\n");
      out.write("\t\t$('onceretrieverowcount').value=brick.getOnceRetrieveRowCount ();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('isExportAllWithoutDataPageLimitcontainer').style.display=\"\";\r\n");
      out.write("\t\t$('isExportAllWithoutDataPageLimit').checked=brick.isExportAllWithoutDataPageLimit ();\r\n");
      out.write("\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}\r\n");
      out.write("\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\r\n");
      out.write("\tif ( action==BrickAction_ShowAsLine )\r\n");
      out.write("\t{   \r\n");
      out.write("\t\t$('linecontainer').style.display=\"\";\r\n");
      out.write("\t\t$('linecolor').style.backgroundColor=brick.getHEXColor();\r\n");
      out.write("\t\t$('linestyle').value= brick.getStyle();\r\n");
      out.write("\t\t$('linesize').value= brick.getSize();\r\n");
      out.write("\t\t$('action').innerText= \"线条\";\r\n");
      out.write("\t \r\n");
      out.write("\t} \r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t//如果是数据源操作按钮\r\n");
      out.write("\tif ( action==BrickAction_InsertBefore ||\r\n");
      out.write("\t      action==BrickAction_InsertAfter  || \r\n");
      out.write("\t\t  action==BrickAction_DeleteRow ||\r\n");
      out.write("\t\t  action==BrickAction_CloneRow  \r\n");
      out.write("\t\t  )\r\n");
      out.write("\t{   　\r\n");
      out.write("\t\t$('datasourcecontainer').style.display=\"\";\r\n");
      out.write("\t\tvar dsncontainer= $('dsncontainer');\r\n");
      out.write("\t\t \r\n");
      out.write("\t\tdsncontainer.innerHTML= applet.getSomeDataSourceList(\"multi\");\r\n");
      out.write("\t\t$('dsn').value=brick.getDataSource();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(action==BrickAction_InsertBefore) \r\n");
      out.write("\t\t　　$('action').innerText=\"在多行数据源中前插一行数据\";\r\n");
      out.write("\t\t\r\n");
      out.write("\t    if(action==BrickAction_InsertAfter )\r\n");
      out.write("\t\t  　$('action').innerText= \"在多行数据源中后插一行数据\";\r\n");
      out.write("\t\tif( action==BrickAction_DeleteRow) \r\n");
      out.write("\t\t    $('action').innerText= \"删除多行数据源中的一行数据\";\r\n");
      out.write("\t\tif( action==BrickAction_CloneRow) \r\n");
      out.write("\t\t    $('action').innerText= \"克隆多行数据源中的一行数据\";\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("}\r\n");
      out.write("\r\n");
      out.write("function  setChartPropertyVisible(v , isBindDB)\r\n");
      out.write("{\r\n");
      out.write("\t \tvar objs= document.getElementsByName(\"chartcontainer\");\r\n");
      out.write("\t\tfor( var i=0;i<objs.length;i++)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tobjs[i].style.display=v? \"\":\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$E(\"chartFunc\").style.display=(v )?\"\":\"none\";\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$E(\"dataFromWorkSheet\").checked= !isBindDB;\r\n");
      out.write("\t\t$E(\"dataFromDB\").checked=  isBindDB;\r\n");
      out.write("\t\t$('datasourcecontainer').style.display=(v&& isBindDB)?\"\":\"none\";\r\n");
      out.write("\t\t//数据是从db中取时，才需要明确指定系列\r\n");
      out.write("\t\t$E('seriesContainer').style.display=(v&& isBindDB)?\"\":\"none\";\r\n");
      out.write("\t \t\r\n");
      out.write("\t\t$E('chartcontainer_db_value2').style.display=(v&& isBindDB)?\"\":\"none\";\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$E('chartcontainer_db_series').style.display=(v&& isBindDB &&$E('seriesContainer').checked )?\"\":\"none\";\r\n");
      out.write("\t\t$E('chartcontainer_db_series2').style.display= (v&& isBindDB &&$E('seriesContainer').checked )?\"\":\"none\";\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif ( isBindDB)\r\n");
      out.write("\t\t{ \r\n");
      out.write("\t\t\t$('datasourcecontainer').style.display=\"\";\r\n");
      out.write("\t\t\tvar dsncontainer= $('dsncontainer');\r\n");
      out.write("\t\t    dsncontainer.innerHTML= applet.getSomeDataSourceList('',false);\r\n");
      out.write("\t\t    ReloadDBColumn(); \r\n");
      out.write("\r\n");
      out.write("\t\t    \r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tobjs= document.getElementsByName(\"chartcontainer_db\");\r\n");
      out.write("\t\tfor( var i=0;i<objs.length;i++)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tobjs[i].style.display=(v&& isBindDB)?\"\":\"none\";\r\n");
      out.write("\t\t}\r\n");
      out.write(" \r\n");
      out.write("\t\tobjs= document.getElementsByName(\"chartcontainer_range\");\r\n");
      out.write("\t\tfor( var i=0;i<objs.length;i++)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tobjs[i].style.display=( v&& !isBindDB)?\"\":\"none\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t$('dsn').style.display== v&& isBindDB?\"\":\"none\";\r\n");
      out.write("\r\n");
      out.write("\t\tchartTypeChanged();\r\n");
      out.write("\t\t\t\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("\r\n");
      out.write("********************************************************************/\r\n");
      out.write("function \tcommitBrickProperty( )\r\n");
      out.write("{\r\n");
      out.write("\tvar name=$('name').innerText;\r\n");
      out.write("\tvar brick= cell.getBrick(name);\r\n");
      out.write("\t \r\n");
      out.write("\tbrick.setCaption( $('caption').value ) ;\r\n");
      out.write("\t\r\n");
      out.write("\t//x坐标\r\n");
      out.write("\t \r\n");
      out.write("\tif( $('rb_x1').checked)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tbrick.setX( safeInt( $('sle_x1').value ));\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\tbrick.setX( 0 - safeInt( $('sle_x2').value ));\r\n");
      out.write("\t}\r\n");
      out.write("\t//y坐标\r\n");
      out.write("\tif( $('rb_y1').checked)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tbrick.setY( safeInt( $('sle_y1').value ));\r\n");
      out.write("\t}else\r\n");
      out.write("\t{\r\n");
      out.write("\t\tbrick.setY( 0 - safeInt( $('sle_y2').value ));\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t//宽度\r\n");
      out.write("\t \r\n");
      out.write("\tif($('rb_w0').checked) brick.setWidth(0);\r\n");
      out.write("\tif($('rb_w1').checked) brick.setWidth( safeInt( $('sle_w1').value ));\t \r\n");
      out.write("\tif($('rb_w_1').checked) brick.setWidth( 0 - safeInt( $('sle_w2').value ));\t \r\n");
      out.write("\t \r\n");
      out.write("\t//高度\r\n");
      out.write("\tif($('rb_h0').checked) brick.setHeight(0);\r\n");
      out.write("\tif($('rb_h1').checked) brick.setHeight( safeInt( $('sle_h1').value ));\t \r\n");
      out.write("\tif($('rb_h_1').checked) brick.setHeight( 0 - safeInt( $('sle_h2').value ));\t \r\n");
      out.write("\t \r\n");
      out.write("\tvar action= brick.getAction();\r\n");
      out.write("\t\r\n");
      out.write("\tif ( action==BrickAction_ShowAsLine )\r\n");
      out.write("\t{    \r\n");
      out.write("\t\t \r\n");
      out.write("\t\tbrick.setHEXColor( $('linecolor').style.backgroundColor );\r\n");
      out.write("\t\tbrick.setStyle( $('linestyle').value) ;\r\n");
      out.write("\t\tbrick.setSize( $('linesize').value);\r\n");
      out.write("\t \r\n");
      out.write("\t} \r\n");
      out.write("\t\r\n");
      out.write("\r\n");
      out.write("\t//如果是数据源操作按钮,树\r\n");
      out.write("\tif ( action==BrickAction_InsertBefore ||\r\n");
      out.write("\t      action==BrickAction_InsertAfter  || \r\n");
      out.write("\t\t  action==BrickAction_DeleteRow||\r\n");
      out.write("\t\t  action==BrickAction_CloneRow||\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t  action==BrickAction_RetrieveButton ||\r\n");
      out.write("\t\t  action==BrickAction_PageBar  \r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t  )\r\n");
      out.write("\t{   　\r\n");
      out.write("\t\t \r\n");
      out.write("\t\tbrick.setDataSource( $('dsn').value);\r\n");
      out.write("\t\r\n");
      out.write("\t} \r\n");
      out.write("\t\r\n");
      out.write("\tif( action==BrickAction_Tree)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t     brick.setConnection($('connection').value);\r\n");
      out.write("\t     brick.setSelect($('sql').value);\r\n");
      out.write("\r\n");
      out.write("\t     var label=$('treeRootLabel').value;\r\n");
      out.write("\t   \r\n");
      out.write("\t\t brick.setRootLabel( label);\r\n");
      out.write("\t \r\n");
      out.write("\t\t \r\n");
      out.write("\t\t brick.setRootValue($('treeRootValue').value);\r\n");
      out.write("\t\t brick.setMultiSelection($('treeMultiSelection').checked);\r\n");
      out.write("\t\t brick.setAutoLoad($('treeAutoLoad').checked);\r\n");
      out.write("\t\t brick.setLazyLoading($('treeLazyLoad').checked);\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t \r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\t\r\n");
      out.write("\tif( action==BrickAction_PageBar)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\tbrick.setOnceRetrieveRowCount( $E('onceretrieverowcount').value);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tbrick.setExportAllWithoutDataPageLimit ( $E('isExportAllWithoutDataPageLimit').checked);\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif ( action==BrickAction_Chart )\r\n");
      out.write("\t{\r\n");
      out.write("\t\tbrick.setType($E('chartType').value);\r\n");
      out.write("\t\tbrick.setCategoryAxisLabel($E('categoryAxisLabel').value);\r\n");
      out.write("\t\tbrick.setValueAxisLabel($E('valueAxisLabel').value);\r\n");
      out.write("\t\tbrick.setAlpha($E('alpha').value);\r\n");
      out.write("\t\tbrick.setSeriesAngled($E('seriesAngled').checked);\r\n");
      out.write("\t\t \r\n");
      out.write("\t\r\n");
      out.write("\t\tif ( $E('dataFromDB').checked )\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tbrick.setRangeOrDataSource($E('dsn').value);\r\n");
      out.write("\t\t\tbrick.setCategoryCol( $E('categoryCol').value);\r\n");
      out.write("\t\t\tbrick.setCategoryColMap( $E('categoryColMap').value);\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tbrick.setValueCol($E('valueCol').value );\r\n");
      out.write("\t\t\tbrick.setValueCol2($E('valueCol2').value);\r\n");
      out.write("\t\t\tif ( $E('includeSeries').checked) \r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tbrick.setSeriesCol($E('seriesCol').value);\r\n");
      out.write("\t\t\t\tbrick.setSeriesColMap($E('seriesColMap').value);\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\tbrick.setSeriesCol(\"\");\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write(" \t\t \t\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tbrick.setRangeOrDataSource($E('range').value);\r\n");
      out.write("\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("\tcell.repaint();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function safeInt(s)\r\n");
      out.write("{\r\n");
      out.write("\tvar ret=0;\r\n");
      out.write("\ttry\r\n");
      out.write("\t{\r\n");
      out.write("\t   ret=parseInt(s);\r\n");
      out.write("\t}catch(err)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tret=0;\r\n");
      out.write("\t}\r\n");
      out.write("\treturn ret;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function selectLineColor()\r\n");
      out.write("{\r\n");
      out.write("\tvar name=$('name').innerText;\r\n");
      out.write("\tvar brick= cell.getBrick(name);\r\n");
      out.write("\tvar oldColor=brick.getHEXColor();\r\n");
      out.write("\tvar color=selectColor(oldColor);\r\n");
      out.write("\tif(color==undefined) return;\r\n");
      out.write("\t \r\n");
      out.write("\t$('linecolor').style.backgroundColor=color;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function chartTypeChanged( )\r\n");
      out.write("{\r\n");
      out.write("    var type=$E('chartType').value;\r\n");
      out.write("    \t    \r\n");
      out.write("    //仅甘特图需要指定第二个字段\r\n");
      out.write("\t$E('chartcontainer_db_value2').style.display= type=='gant'?'':'none';\r\n");
      out.write("\t//$E('seriesContainer').style.display= type=='ring'? 'none' :'' ;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function selectColor( oldcolor)\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("    var posX    = event.screenX;\r\n");
      out.write("    var posY    = event.screenY + 20;\r\n");
      out.write("    var screenW = screen.width;   // screen size\r\n");
      out.write("    var screenH = screen.height - 20; // take taskbar into account\r\n");
      out.write("    if (posX + 232 > screenW) { posX = posX - 232 - 40; } // if mouse too far right\r\n");
      out.write("    if (posY + 164 > screenH) { posY = posY - 164 - 80; }// if mouse too far down\r\n");
      out.write("    var wPosition   = \"dialogLeft:\" +posX+ \"; dialogTop:\" +posY;\r\n");
      out.write("\r\n");
      out.write("    \r\n");
      out.write("    var newcolor = showModalDialog( \"selcolor.jsp\", oldcolor,\r\n");
      out.write("                                   \"dialogWidth:238px; dialogHeight: 240px; \"\r\n");
      out.write("                                   + \"resizable: no; help: no; status: no; scroll: no; \"\r\n");
      out.write("                                   + wPosition);\r\n");
      out.write("   \r\n");
      out.write("\treturn newcolor;\r\n");
      out.write("\t\t\t\r\n");
      out.write("}\r\n");
      out.write("\t\r\n");
      out.write("function function_help()\r\n");
      out.write("{\r\n");
      out.write("\twindow.open('function.jsp', \"help\", \"left=150px, top=150 ,width=700 ,height=450 , scrollbars=yes,status=no, resizable=yes,\");\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("rebuildBrickList();\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write(" </script>\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<div id=property> \r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=0  cellpadding=1>\r\n");
      out.write("   \r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"6%\" nowrap>类型：</td>\r\n");
      out.write("    <td width=\"94%\"><span    id=action  style=\"color:red\"></span>&nbsp;名 称：<span id=name  style=\"color:red\"></span> </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   \r\n");
      out.write("  <tr id=captioncontainer>\r\n");
      out.write("    <td nowrap>标题<img id=chartFunc class=asbutton border=0 align=\"absmiddle\" title=\"图形分析的标题允许使用公式定义(定义时以等号开头表示是公式定义)\" src=\"image/function.gif\" onClick=\"function_help();\"></td>\r\n");
      out.write("    <td><input type=\"text\" name=\"caption\" id=caption class=\"textbox\" ></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   \r\n");
      out.write("  <tr>\r\n");
      out.write("    <td valign=\"top\">坐标 </td>\r\n");
      out.write("    <td>\r\n");
      out.write("\t\r\n");
      out.write("\t <script language=\"javascript\">\r\n");
      out.write("\t var xyt=new tab( 'xyt');\r\n");
      out.write("\t \r\n");
      out.write("\t xyt.addTab('X坐标','coordinate_x','',true );\r\n");
      out.write(" \t xyt.addTab('Y坐标','coordinate_y','',true );\r\n");
      out.write("\t xyt.addTab('宽度','coordinate_w','',true );\r\n");
      out.write("\t xyt.addTab('高度','coordinate_h','',true );\r\n");
      out.write("\t xyt.create();\r\n");
      out.write("\t </script>\r\n");
      out.write("\t <div class=TABCONTAINER_coordinate  > \r\n");
      out.write("\t <table  id=coordinate_x width=\"100%\" border=\"0\"  cellspacing=0 cellpadding=0>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_x\"  id=\"rb_x1\"  value=\"1\">\r\n");
      out.write("\t       对象左边与包容该对象的单元格的左边保持固定的距离\r\n");
      out.write("\t         <input type=\"text\" class=\"flatbox\" size=\"10\" id=\"sle_x1\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();'></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_x\"  id=\"rb_x2\"  value=\"-1\">\r\n");
      out.write("\t       对象左边与包容该对象的单元格的右边保持固定的距离\r\n");
      out.write("\t         <input name=\"text\" type=\"text\" class=\"flatbox\" id=\"sle_x2\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("     </table>\r\n");
      out.write("\t <table  id=coordinate_y width=\"100%\" border=\"0\">\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_y\"  id=\"rb_y1\" value=\"1\">\r\n");
      out.write("\t       对象顶边与包容该对象的单元格的顶边保持固定的距离\r\n");
      out.write("\t         <input name=\"text2\" type=\"text\" class=\"flatbox\" id=\"sle_y1\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_y\" id=\"rb_y2\" value=\"-1\">\r\n");
      out.write("\t       对象顶边与包容该对象的单元格的底边保持固定的距离\r\n");
      out.write("\t         <input name=\"text3\" type=\"text\" class=\"flatbox\" id=\"sle_y2\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("     </table>\r\n");
      out.write("\t <table  id=coordinate_w width=\"100%\" border=\"0\">\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_w\"  id=\"rb_w0\" value=\"0\">\r\n");
      out.write("自动设置宽度</td>\r\n");
      out.write("\t     </tr>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_w\"  id=\"rb_w1\" value=\"1\">\r\n");
      out.write("\t       指定宽度\r\n");
      out.write("\t         <input name=\"text4\" type=\"text\" class=\"flatbox\" id=\"sle_w1\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_w\"  id=\"rb_w_1\" value=\"-1\">\r\n");
      out.write("\t       对象右边与包容该对象的单元格的右边保持固定的距离\r\n");
      out.write("\t         <input name=\"text5\" type=\"text\" class=\"flatbox\" id=\"sle_w2\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("     </table>\r\n");
      out.write("\t <table  id=coordinate_h width=\"100%\" border=\"0\">\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_h\" id=\"rb_h0\" value=\"0\">\r\n");
      out.write("\t       自动设置高度</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_h\" id=\"rb_h1\" value=\"1\">\r\n");
      out.write("\t       指定高度\r\n");
      out.write("\t         <input name=\"text6\" type=\"text\" class=\"flatbox\" id=\"sle_h1\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t   <tr>\r\n");
      out.write("\t     <td><input type=\"radio\" name=\"rb_h\" id=\"rb_h_1\" value=\"-1\">\r\n");
      out.write("\t       对象底边与包容该对象的单元格的底边保持固定的距离\r\n");
      out.write("\t         <input name=\"text7\" type=\"text\" class=\"flatbox\" id=\"sle_h2\" \r\n");
      out.write("\t\t\t  onkeydown='KeyDownFilterLong();' size=\"10\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("     </table>\t\r\n");
      out.write("\t </div>\r\n");
      out.write("\t  <script>\r\n");
      out.write("xyt.showTab('coordinate_x');\r\n");
      out.write("     </script>\t</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("<tr id=chartcontainer>\r\n");
      out.write("    <td nowrap>类型</td>\r\n");
      out.write("    <td nowrap><select id=chartType onChange=\"chartTypeChanged( );\">\r\n");
      out.write("<OPTION  value=\"bar\">柱形图</OPTION>\r\n");
      out.write("<OPTION  value=\"bar3d\">柱形图(三维)</OPTION>\r\n");
      out.write("<OPTION  value=\"stack\">堆积式柱形图</OPTION>\r\n");
      out.write("<OPTION  value=\"stack3d\">堆积式柱形图(三维)</OPTION>\r\n");
      out.write("<OPTION  value=\"line\">折线图</OPTION>\r\n");
      out.write("<OPTION  value=\"pie\">饼图</OPTION>\r\n");
      out.write("<OPTION  value=\"pie3d\">饼图(三维)</OPTION>\r\n");
      out.write("<OPTION  value=\"area\">区域图</OPTION>\r\n");
      out.write("<OPTION  value=\"ring\">环形图</OPTION>\r\n");
      out.write("<OPTION  value=\"gant\">甘特图</OPTION>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</select>&nbsp;&nbsp;&nbsp;\r\n");
      out.write("<span id=seriesContainer><input type=\"checkbox\" id=includeSeries onClick=\"\t$E('chartcontainer_db_series').style.display=this.checked ?'':'none'; \t$E('chartcontainer_db_series2').style.display=this.checked ?'':'none'; \" >多维</span>\r\n");
      out.write("</td>\r\n");
      out.write("\r\n");
      out.write("</tr>\r\n");
      out.write("　<tr id=chartcontainer>\r\n");
      out.write("    <td nowrap>来源</td>\r\n");
      out.write("    <td ><input type=\"radio\" id=dataFromWorkSheet   value=\"worksheet\" onClick=\"setChartPropertyVisible( true, false);\"  >工作表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("   <input type=\"radio\" id=dataFromDB   value=\"db\"  onclick=\"setChartPropertyVisible( true, true);\" >数据库\r\n");
      out.write("</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  \r\n");
      out.write("  <tr id=datasourcecontainer>\r\n");
      out.write("    <td nowrap>数据源</td>\r\n");
      out.write("    <td  id=dsncontainer></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("<tr id=connectioncontainer>\r\n");
      out.write("    <td nowrap>数据库:</td>\r\n");
      out.write("    <td>");
      out.print(si.dbsHTML);
      out.write("</td> \r\n");
      out.write("    </td>\r\n");
      out.write("     \r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("  <tr id=sqlcontainer>\r\n");
      out.write("    <td nowrap colspan=2>SQL语句或返回SQL的表达式: <img src=\"image/click.gif\">[<a href='help/flowform/brick/tree.htm' target='_blank'>示例</a>]<br>\r\n");
      out.write("    <textarea id=sql  rows=6 style='width:100%'></textarea>\r\n");
      out.write("    </td>\r\n");
      out.write("     \r\n");
      out.write("  </tr>\r\n");
      out.write("  \r\n");
      out.write("  <tr id=treeSettingContainer>\r\n");
      out.write("     <td colspan=2>\r\n");
      out.write("   \r\n");
      out.write("   \t\t <table border=0 width=\"100%\" cellpadding=0 cellspacing=0>\r\n");
      out.write("    \t\t<tr>\r\n");
      out.write("    \t\t<td nowrap>树根标题:</td>\r\n");
      out.write("    \t\t<td><input claas=textbox type=\"text\" id=treeRootLabel></td> \r\n");
      out.write("    \t\t</td>\r\n");
      out.write("     \r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("  \t     <tr  >\r\n");
      out.write("    \t\r\n");
      out.write("   \t\t<tr  >\r\n");
      out.write("    \t\t<td nowrap >树根的值:</td> \r\n");
      out.write("    \t\t <td><input claas=textbox type=\"text\" id=treeRootValue title=\"可以是表达式\" ><img src=\"image/click.gif\">[<a href='help/flowform/brick/tree3.htm' target='_blank'>帮助</a>]</td> \r\n");
      out.write("   \t\t </td>\r\n");
      out.write("  \t\t</tr>\r\n");
      out.write("  \t\t\t <tr >\r\n");
      out.write("    \t\t<td nowrap ></td> \r\n");
      out.write("    \t\t <td><input  type=\"checkbox\" id=treeMultiSelection>多选   \r\n");
      out.write("     \t\t<input  type=\"checkbox\" id=treeAutoLoad>自动加载\r\n");
      out.write("     \t\t<input  type=\"checkbox\" id=treeLazyLoad>逐级加载<img src=\"image/click.gif\">[<a href='help/flowform/brick/tree2.htm' target='_blank'>帮助</a>]\r\n");
      out.write("     \t\t\r\n");
      out.write("     \t\r\n");
      out.write("    \t\t</td> \r\n");
      out.write("    \r\n");
      out.write("   \t\t </tr>\r\n");
      out.write("  \t <td nowrap colspan=2  style='color:green;'>请在SQL中按如下规则对字段取别名 \r\n");
      out.write("   \t\t </td>\r\n");
      out.write("  \t\t</tr>\r\n");
      out.write("  \t\t<tr  >\r\n");
      out.write("    \t\t<td nowrap colspan=2 >\r\n");
      out.write("    \t\t<span class=t1>ID字段名</span>:<input  size=5 type=\"text\"  id=col_id disabled=true value=\"id\">\r\n");
      out.write("\t<span class=t1>PID字段名</span>:<input  size=5  type=\"text\"  id=col_pid  disabled=true value=\"pid\">\r\n");
      out.write("   \t\t <br><span class=t1>数据字段名</span>:<input  size=5 type=\"text\"  id=col_value  disabled=true value=\"value\"> \r\n");
      out.write("   \t\t <span class=t1>显示字段名</span>:\r\n");
      out.write("    \t\t <input  size=5  type=\"text\"  id=col_caption  disabled=true value=\"caption\"> \r\n");
      out.write("   \t\t \r\n");
      out.write("   \t\t </td>\r\n");
      out.write("  \t\t</tr>\r\n");
      out.write("  \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\r\n");
      out.write("  \t  </table>\r\n");
      out.write("  \t  \t<hr>\r\n");
      out.write("  \t  </td>\r\n");
      out.write("  \t</tr> <!--end of   treeSettingContainer -->\r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("  <tr id=onceretrieverowcountcontainer>\r\n");
      out.write("    <td nowrap>每页行数：</td>\r\n");
      out.write("    <td ><input type=\"text\" id=onceretrieverowcount  onkeydown='KeyDownFilterLong();'></td>\r\n");
      out.write("  </tr>                        \r\n");
      out.write("\r\n");
      out.write("  <tr id=isExportAllWithoutDataPageLimitcontainer>\r\n");
      out.write("    <td nowrap>报表导出：</td>\r\n");
      out.write("    <td ><input type=\"checkbox\" id=isExportAllWithoutDataPageLimit >报表导出时导出全部数据而不是当前数据</td>\r\n");
      out.write("  </tr>                        \r\n");
      out.write("\r\n");
      out.write("  <tr id=chartcontainer_range>\r\n");
      out.write("    <td nowrap valign=\"top\" style=\"padding-top:5px;\">区域</td>\r\n");
      out.write("    <td ><input type=\"text\" class=\"textbox\" id=range ><br>当指定的数据区域包含两列时，第1,2列分别表示分类，数据。\r\n");
      out.write("当包含三列时，第1,2,3列分别表示的是系列，分类，数据。\r\n");
      out.write("</td>\r\n");
      out.write("  </tr> \r\n");
      out.write(" \r\n");
      out.write("  <tr id=chartcontainer>\r\n");
      out.write("    <td nowrap colspan=2>\r\n");
      out.write("<table border=0  cellspacing=2 cellpadding=0 width=100%><tr><td nowrap>X轴说明</td>\r\n");
      out.write("    <td width=45%><input type=\"text\" class=\"textbox\" id=categoryAxisLabel ></td><td nowrap>Y轴说明</td>\r\n");
      out.write("    <td width=45%><input type=\"text\" class=\"textbox\" id=valueAxisLabel ></td>\r\n");
      out.write("</tr></table>\r\n");
      out.write("  </tr>\r\n");
      out.write("<tr id=chartcontainer_db_series>\r\n");
      out.write("    <td nowrap>系列项</td>\r\n");
      out.write("    <td id=seriesColContainer></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr id=chartcontainer_db_series2>\r\n");
      out.write("    <td nowrap colspan=2>\r\n");
      out.write("    <table border=0  cellspacing=1 cellpadding=0 width=100%><tr><td nowrap><img src=\"fasttree/line2.gif\"></td><td nowrap>显示映射</td>\r\n");
      out.write("    <td  id= seriesColMapContainer width=90%></td></tr></table>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("  <tr id=chartcontainer_db>\r\n");
      out.write("    <td nowrap>分类项</td>\r\n");
      out.write("    <td  id= categoryColContainer></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr id=chartcontainer_db>\r\n");
      out.write("    <td nowrap colspan=2>\r\n");
      out.write("<table border=0  cellspacing=1 cellpadding=0 width=100%><tr><td nowrap><img src=\"fasttree/line2.gif\"></td><td nowrap>显示映射</td>\r\n");
      out.write("    <td  id= categoryColMapContainer width=90%></td></tr></table>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write("  <tr id=chartcontainer_db>\r\n");
      out.write("    <td nowrap>数据项</td>\r\n");
      out.write("    <td id=valueColContainer></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr id=chartcontainer_db_value2>\r\n");
      out.write("    <td nowrap>数据项2</td>\r\n");
      out.write("    <td id=valueCol2Container></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("  <tr id=chartcontainer>\r\n");
      out.write("    <td nowrap>透明度</td>\r\n");
      out.write("    <td ><input type=\"text\" class=\"flatbox\" size=3  id=alpha   onkeydown='KeyDownFilterLong();'>(0-100)&nbsp;&nbsp&nbsp\r\n");
      out.write("<input type=\"checkbox\" class=\"checkbox\" id=seriesAngled >X轴文字旋转45度</td>\r\n");
      out.write("  </tr>\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("  <tr id=linecontainer>\r\n");
      out.write("    <td>线 型</td>\r\n");
      out.write("    <td valign=\"middle\"><select id=\"linestyle\">\r\n");
      out.write("      <option value=\"0\">无</option>\r\n");
      out.write("      <option value=\"1\">实线</option>\r\n");
      out.write("      <option value=\"2\">虚线</option>\r\n");
      out.write("      <option value=\"3\">点划线</option>\r\n");
      out.write("      <option value=\"4\">点划线2</option>\r\n");
      out.write("      <option value=\"5\">双线</option>\r\n");
      out.write("    </select>\r\n");
      out.write("    粗度\r\n");
      out.write("    <select id=\"linesize\">\r\n");
      out.write("      <option value=\"0\">0</option>\r\n");
      out.write("      <option value=\"1\">1</option>\r\n");
      out.write("      <option value=\"2\">2</option>\r\n");
      out.write("      <option value=\"3\">3</option>\r\n");
      out.write("    </select>\r\n");
      out.write("    颜色\r\n");
      out.write("    <input type=\"text\"  id=\"linecolor\" class=\"flatbox asbutton\" title=\"点击选择颜色\"\r\n");
      out.write("\t\t\t readonly size=\"3\" onClick=\"selectLineColor();\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("   \r\n");
      out.write("   <!-- 树 -->\r\n");
      out.write("  \r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"center\"><span class=\"asbutton\" onClick=\"closeProperty()\">返回列表</span></td>\r\n");
      out.write("    <td align=\"right\">\r\n");
      out.write("\t<SCRIPT language=\"javascript\">\r\n");
      out.write("\t\r\n");
      out.write("\tfunction closeProperty()\r\n");
      out.write("\t{\r\n");
      out.write("\t\t$('property').style.display=\"none\";\r\n");
      out.write("\t\t$('list').style.display=\"\";\r\n");
      out.write("\t\trebuildBrickList();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t \r\n");
      out.write("\tfunction cb_save_onclick()\r\n");
      out.write("\t{\r\n");
      out.write("\t   commitBrickProperty();\r\n");
      out.write("\t}\r\n");
      out.write(" \r\n");
      out.write(" \tvar cb =new zbutton('cb_save','提交','image/disk.gif');\r\n");
      out.write(" \r\n");
      out.write("        \t</SCRIPT> \r\n");
      out.write("\t\r\n");
      out.write("\t</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("$('property').style.display=\"none\";\r\n");
      out.write("var dsncontainer= $('dsncontainer');\r\n");
      out.write("dsncontainer.innerHTML= applet.getSomeDataSourceList(\"multi\");\r\n");
      out.write("  \r\n");
      out.write("var categoryColMapContainer= document.getElementById('categoryColMapContainer');\r\n");
      out.write("var html= applet.getDDLBNameList(\"categoryColMap\",true);\r\n");
      out.write("categoryColMapContainer.innerHTML=html;\r\n");
      out.write("\r\n");
      out.write("var seriesColMapContainer= document.getElementById('seriesColMapContainer');\r\n");
      out.write("html= applet.getDDLBNameList(\"seriesColMap\",true);\r\n");
      out.write("seriesColMapContainer.innerHTML=html;\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("</div>\r\n");
      out.write("\r\n");
      out.write("  \r\n");
      out.write("\r\n");
      out.write("</BODY>\r\n");
      out.write("\r\n");
      out.write("</HTML>\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f0.setParent(null);
    // /workbook_config_cell_brick.jsp(132,12) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.sheet}", 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_config_cell_brick.jsp(133,9) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.row}", 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_config_cell_brick.jsp(134,9) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f2.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.col}", 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_config_cell_brick.jsp(311,78) 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("${param.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_config_cell_brick.jsp(311,112) 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("${param.id}", 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;
  }
}
