<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 組件源碼 /** * <b>方法描述:</b> 取Excel行列數 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2018-05-08 17:14:45 <br/> * * @param workBook * 入參|Excel對象|{@link Object} * @param sheet * 入參|Excel表單|{@link java.lang.String} * @param rows * 出參|行數|{@link int} * @param cols * 出參|列數|{@link int} * @return -1 異常<br/> * 0 失敗<br/> * 1 成功<br/> */ @Component(label = "取Excel行列數", style = "判斷型", type = "同步組件", comment = "獲取Excel表格指定sheet頁的行數和列數", version = "1.0.0", deprecated = false, author = "admin", date = "2018-05-08 05:14:45") @InParams(param = { @Param(name = "workBook", comment = "Excel對象", type = Object.class), @Param(name = "sheet", comment = "Excel表單", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "rows", comment = "行數", type = int.class), @Param(name = "cols", comment = "列數", type = int.class) }) @Returns(returns = { @Return(id = "-1", desp = "異常"), @Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功") }) public static ResultBase P_xlsGetSize(Object workBook, String sheet) { if (workBook == null || !(workBook instanceof Workbook)) { return ResultBase.newFailureResult("TPTF0013", "輸入Excel對象不正確,不是Workbook 對象"); } Workbook xlsObj = (Workbook) workBook; int nSheet = -1; try { nSheet = Integer.parseInt(sheet); } catch (Exception ex) { AppLog.info("組件 輸入參數sheet 不是數字,按照名稱進行獲取"); } Sheet sheetObj = ((nSheet > -1) ? xlsObj.getSheetAt(nSheet) : xlsObj .getSheet(sheet)); if (sheetObj == null) { return ResultBase.newFailureResult("TPTF0015", "找不到指定的工作簿,sheet=" + sheet); } int rows = sheetObj.getPhysicalNumberOfRows(); int cols = sheetObj.getRow(0).getPhysicalNumberOfCells(); return ResultBase.newSuccessResult(rows, cols); } 交易中組件使用方式: ![](https://img.kancloud.cn/65/f3/65f332fa5f5229e2fc9524aa9e03fbf9_950x750.jpg) ## 參數說明及示例 Excel表格對象:Excel對象,可以由其他技術組件傳遞,示例: `__INNER__["wb"]` Excel表單:sheet名稱或者索引,示例: `"sheet1"` 行數:返回指定sheet頁行數,示例: `__INNER__["row"]` 列數:返回指定sheet頁列數,示例: `__INNER__["cell"]` > 獲取Excel表格指定sheet頁的行數和列數
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看