Package com.commander4j.util

Examples of com.commander4j.util.JExcel.saveAs()


  private void export() {
    JDBMaterial material = new JDBMaterial(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement temp = buildSQLr();
    export.saveAs("materials.xls", material.getMaterialDataResultSet(temp), Common.mainForm);
  }

  private void print() {
    PreparedStatement temp = buildSQLr();
    JLaunchReport.runReport("RPT_MATERIALS", null, "", temp, "");
View Full Code Here


        ResultSet rs;

        try
        {
          rs = temp.executeQuery();
          export.saveAs("qm_results.xls", rs, Common.mainForm);
        } catch (Exception e)
        {
          rs = null;

        }
View Full Code Here

    JDBPalletHistory palletHistory = new JDBPalletHistory(Common.selectedHostID, Common.sessionID);

    JExcel export = new JExcel();
    export.setExcelRowLimit(jCheckBoxLimit, jSpinnerLimit);
    buildSQL();
    export.saveAs("pallet_history.xls", palletHistory.getPalletHistoryDataResultSet(listStatement), Common.mainForm);
  }

  private void filterBy(String fieldname) {
    int row = jTable1.getSelectedRow();
    if (row >= 0)
View Full Code Here

  private void excel()
  {
    JDBQMDictionary dict = new JDBQMDictionary(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement ps = dict.getDictionaryDataPreparedStatement();
    export.saveAs("qm_dictionary.xls", dict.getDictionaryDataResultSet(ps), Common.mainForm);
    try
    {
      ps.close();
    } catch (SQLException e)
    {
View Full Code Here

  private void excel() {
    JDBMaterialBatch materialBatch = new JDBMaterialBatch(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    buildSQL();
    export.saveAs("material_batch.xls", materialBatch.getMaterialBatchDataResultSet(listStatement), Common.mainForm);
  }

  private void addRecord() {
    String lmaterial = "";
    String lbatch = "";
View Full Code Here

  private void excel() {
    JDBProcessOrder processOrder = new JDBProcessOrder(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    export.setExcelRowLimit(jCheckBoxLimit, jSpinnerLimit);
    buildSQL();
    export.saveAs("process_orders.xls", processOrder.getProcessOrderDataResultSet(listStatement), Common.mainForm);
  }

  private void delete() {
    int row = jTable1.getSelectedRow();
    if (row >= 0)
View Full Code Here

  private void export() {
    JDBLocation location = new JDBLocation(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement temp = buildSQLr();
    export.saveAs("locations.xls", location.getLocationDataResultSet(temp), Common.mainForm);
  }

  /**
   * WindowBuilder generated method.<br>
   * Please don't remove this method or its invocations.<br>
View Full Code Here

  private void export()
  {
    JDBMHN mhn = new JDBMHN(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement temp = buildSQLr();
    export.saveAs("mhn_" + masterHoldNoticeNumber + ".xls", mhn.getMHNDataResultSet(temp), Common.mainForm);
  }

  private static void addPopup(Component component, final JPopupMenu popup)
  {
    component.addMouseListener(new MouseAdapter()
View Full Code Here

    }
    catch (SQLException e)
    {

    }
    export.saveAs("interface_log.xls", rs, Common.mainForm);
  }

  private void buildSQL() {

    JDBQuery.closeStatement(listStatement);
View Full Code Here

  }

  private void excel() {
    JDBCustomer customer = new JDBCustomer(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    export.saveAs("customers.xls", customer.getCustomerDataResultSet(), Common.mainForm);
  }

  public JInternalFrameCustomerAdmin()
  {
    super();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.