Package net.sourceforge.barcodegen.model

Examples of net.sourceforge.barcodegen.model.Model


    loadTable(conditions);
  }

  public void loadTable(String conditions){

    Model strip = new Model("Strip");
    tableModel.rowsClear();
    table.revalidate();
    showProgress("Consultando...");
    table.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
   
    try{
      conditions = conditions.trim().length() > 0 ? conditions : "id=id";
      ResultSet rs = strip.find(conditions + " order by fecha desc");
      int recordCount = 0;

      while (rs.next()){
       
        ResultSet list = Main.lista.find("id=" + rs.getString("lista_id"));
View Full Code Here


    try
   
      Main.frame.showProgress("Imprimiendo...");
      Main.frame.table.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
     
        Model stikers =   new Model("Stikers");
        stikers.delete("");
        String[] columns = {"numero","lista_id"};     
        String[] values = new String[2];     
        values[1] = ""+listId;
     
        for (int i = desde; i < desde + cantidad; i++){
        values[0] = ""+i;
        stikers.insert( columns, values);       
        }
           
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("code_title", title);
        JasperReport report = JasperCompileManager.compileReport(Config.getValue("app.reportTemplatePath"));
        Debug.log("Compiling report...");
        JasperPrint print = JasperFillManager.fillReport(report, params, DB.getInstance().getConn());
        Debug.log("Filling report...");
       
        //JasperViewer.viewReport(print, false);
        DocumentViewer documentViewer = DocumentViewer.show(print);
        Debug.log("Show report...");
       
        if(documentViewer.isPrintExecuted()){
          printed = true;
          Main.lista.update("ultimoStiker="+ (desde + cantidad -1), "id="+listId);
          Model strip = new Model("strip");
          String[] columns1 = {"inicio","cantidad","lista_id"};
          String[] valuesList = {""+desde, ""+cantidad,""+listId};
          strip.insert(columns1, valuesList);
        }else{
          Main.showMsg("No se imprimió el listado");
        }
           
        Main.frame.filtrar(Calendar.getInstance());
View Full Code Here

  /**
   * actualiza la table con las lista de stikers
   */ 
  public void TableViewActualizarVista()
  {   
    Model strip =  new Model("Lista");
   
    try {
      ResultSet rs = strip.find("");
     
      tableModel.rowsClear();
     
      while (rs.next())
      {
View Full Code Here

          JOptionPane.YES_NO_OPTION)
          == JOptionPane.YES_OPTION)
      {
        try
        {
          Model strip =  new Model("Strip");
         
          double count = strip.count("*", "lista_id="+tableModel.getValueAt(row,0));
         
          if(count > 0)
          {
            JOptionPane.showMessageDialog(this, "No se puede eliminar esta lista.\n" +
                "Hay "+(int)count+" tiras de etiquetas asociadas a esta lista!");
View Full Code Here

TOP

Related Classes of net.sourceforge.barcodegen.model.Model

Copyright © 2018 www.massapicom. 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.