<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!doctype html>
<html style="height:100%;font-size:14px;">

<head>
  <!-- 让360双核浏览器用webkit内核渲染页面-->
  <meta name="renderer" content="webkit">
  <!-- 让IE浏览器用最高级内核渲染页面 还有用 Chrome 框架的页面用webkit 内核 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <!-- IOS6全屏 Chrome高版本全屏 -->
  <!--[if lt IE 9]>
      <meta http-equiv="X-UA-Compatible" content="edge" >
      <script src="/online_report/static/js/respond.js"></script>
 　   <script src="/online_report/static/js/html5shiv.min.js"></script>
      <![endif]-->

  <!--[if lt IE 7]>
      <script>
           window.CheckLowIe = true;
      </script>
      <![endif]-->
  <meta name="spreadjs culture" content="zh-cn" />
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>${pzzlMc}</title>
  <!-- 样式 -->
  <link href="/online_report/static/resources/gc.spread.sheets.excel2013white.12.0.0.css" rel="stylesheet">
  <link href="/online_report/static/css/style.css?v=12" rel="stylesheet">
  <link href="/online_report/static/tools/js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" />
  <script src="/online_report/static/js/jquery.min.js"></script>
  <!-- 工程文件 -->
  <script src="/online_report/static/resources/gc.spread.sheets.all.min.js"></script>
  <script src="/online_report/static/resources/zh/gc.spread.sheets.resources.zh.12.0.0.min.js"></script>
  <!-- 生成的资源文件 -->
  <!-- TODO 此处需要将路径调整为对应引用的地址-->
  <script src="/online_report/static/page_js/_year/data.js?v=20"></script>
  <script src="/online_report/static/page_extend_js/_year/data.js?v=20"></script>
  <script>
    // 全局变量 用于存放报表的特殊取值操作
    var NB_SPECIAL_HANDLER = {};
  </script>

  <style>
    .left-item.has-error {
      font-weight: bold;
      color: red;
    }

    /* 2019年2月18日11:21:38 新增年报特殊处理样式 */

    .left-item.table_fixed {
      background-color: #efe8e8;
      color: #6b6363;
    }

    .container .left-bar .left .left-item.table_fixed:hover {
      color: #6b6363;
    }
  </style>
</head>

<body class="body">
  <div class="header">
    <div class="title">${pzzlMc}</div>
    <div class="button-group">
      <button onClick="submitData()" class="htbutton"> 保存 </button>
    </div>
  </div>
  </div>
  <div class="container">
    <div class="left-bar">
      <div class="left-title"><span>申报表列表</span></div>
      <div class="left">
      </div>
    </div>
    <div class="breakbar">
      <div class="middle-btn"></div>
    </div>
    <div class="right">
      <div id="ss" style="width:100%;height:100%"></div>
    </div>
  </div>
  <div id="Modal"></div>
  <div id="kjzdBlackModal"></div>
  <div id="czJyLxModal">
    <p class="import-title">
      <span class="title">选择重组交易类型</span>
    </p>
    <div class="czJyLx-content">
      <table class="czJyLx-table">
        <thead>
          <tr>
            <th>选择</th>
            <th>代码</th>
            <th>重组交易类型</th>
          </tr>
        </thead>
        <tbody class="modal-table">
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0100" data-name="债务重组" /></td>
            <td>0100</td>
            <td>债务重组</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0200" data-name="股权收购" /></td>
            <td>0200</td>
            <td>股权收购</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0300" data-name="资产收购" /></td>
            <td>0300</td>
            <td>资产收购</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0400" data-name="合并" /></td>
            <td>0400</td>
            <td>合并</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0500" data-name="分立" /></td>
            <td>0500</td>
            <td>分立</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czJyLx" value="" data-id="0600" data-name="法律形式改变" /></td>
            <td>0600</td>
            <td>法律形式改变</td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czJyLxConfirm">确定</button>
      <button class="htbutton" id="czJyLxClose">取消</button>
    </div>
  </div>
  <div id="czDsfLxModal">
    <p class="import-title">
      <span class="title">选择重组当事方类型</span>
    </p>
    <div class="czDsfLx-content">
      <table class="czDsfLx-table">
        <thead>
          <tr>
            <th>选择</th>
            <th>代码</th>
            <th>重组当事方类型</th>
          </tr>
        </thead>
        <tbody class="modal-table">
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0100" data-id="0101" data-name="债务人" /></td>
            <td>0101</td>
            <td>债务人</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0100" data-id="0102" data-name="债权人" /></td>
            <td>0102</td>
            <td>债权人</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0200" data-id="0201" data-name="转让方" /></td>
            <td>0201</td>
            <td>转让方</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0200" data-id="0202" data-name="被收购企业" /></td>
            <td>0202</td>
            <td>被收购企业</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0200" data-id="0203" data-name="收购方" /></td>
            <td>0203</td>
            <td>收购方</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0300" data-id="0301" data-name="转让方" /></td>
            <td>0301</td>
            <td>转让方</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0300" data-id="0302" data-name="收购方" /></td>
            <td>0302</td>
            <td>收购方</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0400" data-id="0401" data-name="被合并企业" /></td>
            <td>0401</td>
            <td>被合并企业</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0400" data-id="0402" data-name="被合并企业股东" /></td>
            <td>0402</td>
            <td>被合并企业股东</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0400" data-id="0403" data-name="合并企业" /></td>
            <td>0403</td>
            <td>合并企业</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0500" data-id="0501" data-name="被分立企业" /></td>
            <td>0501</td>
            <td>被分立企业</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0500" data-id="0502" data-name="被分立企业股东" /></td>
            <td>0502</td>
            <td>被分立企业股东</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="czDsfLx" value="" data-pid="0500" data-id="0503" data-name="分立企业" /></td>
            <td>0503</td>
            <td>分立企业</td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czDsfLxConfirm">确定</button>
      <button class="htbutton" id="czDsfLxClose">取消</button>
    </div>
  </div>
  <div id="rjJmfs1Modal">
    <p class="import-title">
      <span class="title">选择减免方式类型</span>
    </p>
    <div class="czJyLx-content">
      <table class="czJyLx-table">
        <thead>
          <tr>
            <th>选择</th>
            <th>代码</th>
            <th>减免方式类型</th>
          </tr>
        </thead>
        <tbody class="modal-table">
          <tr>
            <td><input type="checkbox" id="rjJmfs110301" class="only-single" data-code="300" value="" data-id="10301" data-name="企业减按10%税率征收企业所得税" /></td>
            <td>10301</td>
            <td>企业减按10%税率征收企业所得税</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110302" class="only-single" data-code="400" value="" data-id="10302" data-name="企业减按15%税率征收企业所得税" /></td>
            <td>10302</td>
            <td>企业减按15%税率征收企业所得税</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110601" class="only-single" data-code="110" value="" data-id="10601" data-name="企业两免三减半（免税）" /></td>
            <td>10601</td>
            <td>企业两免三减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110602" class="only-single" data-code="120" value="" data-id="10602" data-name="企业两免三减半（减半征收）" /></td>
            <td>10602</td>
            <td>企业两免三减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110603" data-code="510" value="" data-id="10603" data-name="集成电路生产项目所得两免三减半（免税）" /></td>
            <td>10603</td>
            <td>集成电路生产项目所得两免三减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110604" data-code="520" value="" data-id="10604" data-name="集成电路生产项目所得两免三减半（减半征收）" /></td>
            <td>10604</td>
            <td>集成电路生产项目所得两免三减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110801" data-code="210" class="only-single" value="" data-id="10801" data-name="企业五免五减半（免税）" /></td>
            <td>10801</td>
            <td>企业五免五减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110802" data-code="220" class="only-single" value="" data-id="10802" data-name="企业五免五减半（减半征收）" /></td>
            <td>10802</td>
            <td>企业五免五减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110803" data-code="610" value="" data-id="10803" data-name="集成电路生产项目所得五免五减半（免税）" /></td>
            <td>10803</td>
            <td>集成电路生产项目所得五免五减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs110804" data-code="620" value="" data-id="10804" data-name="集成电路生产项目所得五免五减半（减半征收）" /></td>
            <td>10804</td>

            <td>集成电路生产项目所得五免五减半（减半征收）</td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czJyLxConfirm">确定</button>
      <button class="htbutton" id="czJyLxClose">取消</button>
    </div>
  </div>
  <div id="rjJmfs2Modal">
    <p class="import-title">
      <span class="title">选择减免方式类型</span>
    </p>
    <div class="czJyLx-content">
      <table class="czJyLx-table">
        <thead>
          <tr>
            <th>选择</th>
            <th>代码</th>
            <th>减免方式类型</th>
          </tr>
        </thead>
        <tbody class="modal-table">
          <tr>
            <td><input type="checkbox" id="rjJmfs210301" class="only-single" data-code="300" value="" data-id="10301" data-name="企业减按10%税率征收企业所得税" /></td>
            <td>10301</td>
            <td>企业减按10%税率征收企业所得税</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210302" class="only-single" data-code="400" value="" data-id="10302" data-name="企业减按15%税率征收企业所得税" /></td>
            <td>10302</td>
            <td>企业减按15%税率征收企业所得税</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210601" class="only-single" data-code="110" value="" data-id="10601" data-name="企业两免三减半（免税）" /></td>
            <td>10601</td>
            <td>企业两免三减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210602" class="only-single" data-code="120" value="" data-id="10602" data-name="企业两免三减半（减半征收）" /></td>
            <td>10602</td>
            <td>企业两免三减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210603" data-code="510" value="" data-id="10603" data-name="集成电路生产项目所得两免三减半（免税）" /></td>
            <td>10603</td>
            <td>集成电路生产项目所得两免三减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210604" data-code="520" value="" data-id="10604" data-name="集成电路生产项目所得两免三减半（减半征收）" /></td>
            <td>10604</td>
            <td>集成电路生产项目所得两免三减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210801" data-code="210" class="only-single" value="" data-id="10801" data-name="企业五免五减半（免税）" /></td>
            <td>10801</td>
            <td>企业五免五减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210802" data-code="220" class="only-single" value="" data-id="10802" data-name="企业五免五减半（减半征收）" /></td>
            <td>10802</td>
            <td>企业五免五减半（减半征收）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210803" data-code="610" value="" data-id="10803" data-name="集成电路生产项目所得五免五减半（免税）" /></td>
            <td>10803</td>
            <td>集成电路生产项目所得五免五减半（免税）</td>
          </tr>
          <tr>
            <td><input type="checkbox" id="rjJmfs210804" data-code="620" value="" data-id="10804" data-name="集成电路生产项目所得五免五减半（减半征收）" /></td>
            <td>10804</td>
            <td>集成电路生产项目所得五免五减半（减半征收）</td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czJyLxConfirm">确定</button>
      <button class="htbutton" id="czJyLxClose">取消</button>
    </div>
  </div>
  <div id="czSwjgModal">
    <p class="import-title">
      <span class="title">选择税务机关代码</span>
    </p>
    <div class="searchBox">
      <span class="searchTitle">税务机关代码：</span>
      <input class="searchInput" id="swjgdm" type="text" name="">
      <button class="button searchBtn" id="searchBtn">搜索</button>
    </div>
    <div class="czSwjg-content">
      <table class="czJyLx-table">
        <thead>
          <tr>
            <th>选择</th>
            <th>代码</th>
            <th>税务机关名称</th>
          </tr>
        </thead>
        <tbody class="modal-table" id="czSwjg-table">
          
        </tbody>
      </table>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czSwjgConfirm">确定</button>
      <button class="htbutton" id="czSwjgClose">取消</button>
    </div>
  </div>
  <div id="chooseHjzdModal">
    <p class="import-title">
      <span class="title">选择会计制度</span>
    </p>
    <div class="czJyLx-content">
       <ul>
        
       </ul>
    </div>
    <div class="modal-button">
      <button class="htbutton" id="czSwjgConfirm">确定</button>
    </div>
  </div>
  <!-- 导入按钮 -->
  <div id="importData" style="">
    <p class="import-title">
      <span class="title">导入数据</span>
      <span class="close">×</span>
    </p>
    <div class="area-div">
      <textarea id="exportAreaData" cols="30" rows="20"></textarea>
    </div>

    <p class="text-right">
      <button class="htbutton import" id="confirmImportBtn">导入数据</button>
      <button class="htbutton close">关闭</button>
    </p>
  </div>

  <div class="modal-box" id="resultModal">
    <div class="modal-content">
      <!-- 基本校验 -->
      <div class="jbjy-box">
        <div class="jbjy jy-title">基本校验</div>
        <table class="httable  jbjy-table">
          <thead>
            <tr>
              <th>校验标识</th>
              <th>提示信息</th>
              <th>校验类型</th>
            </tr>
          </thead>
          <tbody class="modal-table">
          </tbody>
        </table>
      </div>
      <!-- 报表校验 -->
      <div class="bbjy-box">
        <div class="bbjy jy-title">报表校验</div>
        <table class="httable httable-hover bbjy-table">
          <thead>
            <tr>
              <th>校验标识</th>
              <th>提示信息</th>
              <th>校验类型</th>
            </tr>
          </thead>
          <tbody class="modal-table">
          </tbody>
        </table>
      </div>
      <!-- 一窗式校验 -->
      <div class="ycsjy-box">
        <div class="sbjg jy-title"></div>
        <table class="httable httable-hover ycsjy-table">
          <thead>
            <tr>
              <!-- <th>比对规则编码</th> -->
              <th>比对项目</th>
              <th>比对名称</th>
              <th>比对结果</th>
              <th>比对内容</th>
              <th>比对结果信息</th>
              <th>监控级别</th>
            </tr>
          </thead>
          <tbody class="modal-table">
          </tbody>
        </table>
      </div>
    </div>
    <div class="ycsjyjg"></div>
    <div class="modal-button">
      <button class="htbutton" id="confirm">确定</button>
      <button class="htbutton" id="closeModal">取消</button>
    </div>
  </div>
  <div id="resultFloat" title="查看校验结果" class="htbutton">查看校验</div>
  <!-- 业务逻辑代码 -->
  <script type="text/javascript" src="/online_report/static/js/year/initLoader.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/util.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/api.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/fomula.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/tool.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/specialHandler.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/js/year/result.js?v=20"></script>
  <script type="text/javascript" src="/online_report/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
  <script>
    var GLOBAL_INITJSON = ${ data };
    var GLOBAL_JSON = ${ dataSs };
    var isGZflag = ${ ifGZflag?true:false };
    var GLOBAL_CACHE_DATA = ${ cacheData };
    var GLOBAL_TABLE_SPECIAL = ${ specialCarryData };
    var GLOBAL_TABLE_FP = ${ zzsData };

    // 布局处理
    var $container = $(".container");
    var $breakbar = $(".breakbar .middle-btn");
    $(function () {
      $container.removeClass("full");
      $breakbar.text("<");
      $breakbar.on("click", function () {
        if ($container.is(".full")) {
          $container.removeClass("full");
          $breakbar.text("<");
        } else {
          $container.addClass("full");
          $breakbar.text(">");
        }
        if (spread) {
          spread.refresh();
        }
      });
    });

    // $(document).ready(function () {
    //   setTimeout(function () {
    //     // TODO 在选择完报表的条件下添加特殊样式标记
    //     $('[data-table="table_10414_001"],[data-table="table_10414_002"]').addClass('table_fixed');
    //     $('[data-index="2"]').click();
    //   }, 1000);
    // })
  </script>
</body>

</html>