/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-07-14 09:49:11 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.*;

public final class cellBind_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("/nocache.jsp", Long.valueOf(1592198273912L));
  }

  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() {
  }

  public void _jspDestroy() {
  }

  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('\n');
      out.write('\n');

    response.setHeader("Pragma","No-cache");
    response.setHeader("Cache-Control","no-cache");
    response.setDateHeader("Expires", 0);

      out.write('\n');
      out.write('\n');
      out.write("\n");
      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<div id=\"selectColumnPanel\"  style=\"z-index:999999;width: 250px;height: 400px;left:600px;top:300px;\n");
      out.write("   box-shadow-:  0 0 2px 1px #e0e0e0;\n");
      out.write("   border:1px solid #404040;\n");
      out.write("\n");
      out.write("   display:none;\">\n");
      out.write("\n");
      out.write("    <div  style=\"width:100%; height:100%;   padding-top:30px; overflow:hidden; background-color:lightgray; \" >\n");
      out.write("        <div id= selectColumnContainer  style=\"width:100%; height:100%; overflow:hidden; background: white;\">\n");
      out.write("\n");
      out.write("        </div>\n");
      out.write("    </div>\n");
      out.write("\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<div id=\"selectColumnPanel_dragHandle\" style=\"z-index:999999;left:600px;top:300px;width:20px; height:30px;\n");
      out.write("           cursor:move; display:none;padding:3px; \"  ondrag=\"moveSelectColumnPanel();\" >\n");
      out.write("\n");
      out.write("    <div>\n");
      out.write("        <input type=\"text\" id=columnFilterKey  style=\"position:absolute;left:5px;top:4px; border:1px solid darkgray;\n");
      out.write("               padding-left:13px; padding-right:40px;\n");
      out.write("               border-radius: 12px;\n");
      out.write("                border-right: 0;\n");
      out.write("                height:24px;width:130px;\"   placeholder=\"字段过滤\">\n");
      out.write("        <i class=\"fa fa-close \"  id=\"cb_clearColumnFilterKey\" style=\"position:absolute;top:9px; left:100px; color:#5897fb;width:18px;height:18px;cursor:pointer;\" ></i>\n");
      out.write("        <i class=\"fa fa-eye \"  title=\"显示全部字段包括已绑定过的\"  id=\"cb_showAllColumn\" style=\"position:absolute;top:9px; left:117px;color:#5897fb; width:18px;height:18px;cursor:pointer;\" ></i>\n");
      out.write("\n");
      out.write("\n");
      out.write("    </div>\n");
      out.write("\n");
      out.write("    <i class=\"fa fa-close pull-right\"\n");
      out.write("       onclick=\"$('#selectColumnPanel_dragHandle').css('display','none');$('#selectColumnPanel').css('display','none');\"\n");
      out.write("       style=\"color:white;cursor:pointer\" ></i>\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<SCRIPT type=\"text/javascript\">\n");
      out.write("\n");
      out.write("\n");
      out.write("    function allowDrop(ev){\n");
      out.write("        ev.preventDefault();\n");
      out.write("    }\n");
      out.write("\n");
      out.write("    function onColumnBind(table,col,label){\n");
      out.write("\n");
      out.write("        var dbtype=0;//自动\n");
      out.write("\n");
      out.write("        var sheet = book.activeSheet;\n");
      out.write("        var r = sheet.selection;\n");
      out.write("        var cell = sheet.cells(r.startRow, r.startCol);\n");
      out.write("        cell.setBind(table,  col, dbtype);\n");
      out.write("        //用  $(#...) 无法得到对象，用getElementById可以\n");
      out.write("        document.getElementById(  table+\".\"+col+\".\"+label).remove();\n");
      out.write("\n");
      out.write("    }\n");
      out.write("\n");
      out.write("\n");
      out.write("    function onColumnDrag(ev){\n");
      out.write("        var obj= ev.target;\n");
      out.write("        if(  obj.tagName=='A') obj= obj.parentElement;\n");
      out.write("        var id=obj.id;\n");
      out.write("        var t=id.split('.');\n");
      out.write("        var v={action:'bind',table:t[0],col:t[1] , label: t[2] , id:id};\n");
      out.write("        if( ev.dataTransfer)         ev.dataTransfer.setData(\"Text\", JSON.stringify(v));\n");
      out.write("    }\n");
      out.write("\n");
      out.write("    function onColumnDrop(ev){\n");
      out.write("        ev.preventDefault();\n");
      out.write("        var data=ev.dataTransfer.getData(\"Text\");\n");
      out.write("        ev.target.appendChild(document.getElementById(data));\n");
      out.write("    }\n");
      out.write("\n");
      out.write("    $(\"#selectColumnPanel\").resizable();//设置缩放\n");
      out.write("    $(\"#selectColumnPanel_dragHandle\").draggable({containment: \"\", scroll: false});//设置drag1只能在containment-wrapper中拖动\n");
      out.write("    moveSelectColumnPanel();\n");
      out.write("\n");
      out.write("\n");
      out.write("    function moveSelectColumnPanel()\n");
      out.write("    {\n");
      out.write("        // console.info( \"x:\"+ $(\"#drag1\").offset().left +\" ; y:\"+ $(\"#drag1\").position().top );\n");
      out.write("        $(\"#selectColumnPanel_dragHandle\").css({ 'width':$(\"#selectColumnPanel\").width()  });\n");
      out.write("        $(\"#selectColumnPanel\").css({position: \"absolute\",'top':$(\"#selectColumnPanel_dragHandle\").position().top  ,\n");
      out.write("            'left':$(\"#selectColumnPanel_dragHandle\").position().left});\n");
      out.write("\n");
      out.write("    }\n");
      out.write("\n");
      out.write("    $( \"#selectColumnPanel\" ).resizable({\n");
      out.write("        minHeight: 140,\n");
      out.write("        minWidth: 200,\n");
      out.write("        resize: function() {\n");
      out.write("\n");
      out.write("            $(\"#selectColumnPanel_dragHandle\").css({ 'width':$(\"#selectColumnPanel\").width()  });\n");
      out.write("            $( \"#selectColumnContainer\" ).accordion( \"refresh\" );\n");
      out.write("        }\n");
      out.write("    });\n");
      out.write("\n");
      out.write("    moveSelectColumnPanel();\n");
      out.write("\n");
      out.write("    //-->\n");
      out.write("</SCRIPT>\n");
      out.write("\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>\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);
    }
  }
}
