Package com.commander4j.db

Examples of com.commander4j.db.JDBLanguage


      }
    }
  }

  private void export() {
    JDBLanguage language = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    JExcel export = new JExcel();
    buildSQL();
    export.saveAs("language.xls", language.getLanguageDataResultSet(listStatement), Common.mainForm);
  }
View Full Code Here


    buildSQL();
    export.saveAs("language.xls", language.getLanguageDataResultSet(listStatement), Common.mainForm);
  }

  private void addrecord() {
    JDBLanguage ctl = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    resourceKey = JUtility.replaceNullStringwithBlank(JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Resource_Key_Create")));

    if (resourceKey.equals("") == false)
    {
      languageID = JUtility.replaceNullStringwithBlank(JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Language_ID_Create")));
      if (languageID.equals("") == false)
      {
        languageID = languageID.toUpperCase();
        if (ctl.create(resourceKey, languageID, "", "") == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, ctl.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE);
        }
        else
        {
          buildSQL();
          populateList();
View Full Code Here

  }

  public JInternalFrameMHNAdmin() {
    super();

    lang = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    initGUI();
    JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID);
    query.clear();
    query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}APP_MHN where 1=2"));
View Full Code Here

  private JDBLanguage lang;

  public JInternalFrameMaterialLocationProperties()
  {
    super();
    lang = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    initGUI();

    final JHelp help = new JHelp();
    help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_ADMIN_MATERIAL_LOCATION_EDIT"));
View Full Code Here

  public JInternalFrameMaterialBatchAdmin()
  {
    super();
    setIconifiable(true);
    lang = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    initGUI();

    JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID);
    query.clear();
View Full Code Here

    listStatement = query.getPreparedStatement();
  }

  private void populateList() {

    JDBLanguage lang1 = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    JDBLanguageTableModel languagetable = new JDBLanguageTableModel(lang1.getLanguageDataResultSet(listStatement));
    TableRowSorter<JDBLanguageTableModel> sorter = new TableRowSorter<JDBLanguageTableModel>(languagetable);

    jTable1.setRowSorter(sorter);
    jTable1.setModel(languagetable);
View Full Code Here

      languageID = jTable1.getValueAt(row, 1).toString();

      int n = JOptionPane.showConfirmDialog(Common.mainForm, "Delete Resource Key " + resourceKey + " ?", "Confirm", JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (n == 0)
      {
        JDBLanguage c = new JDBLanguage(Common.selectedHostID, Common.sessionID);

        c.setKey(resourceKey);
        c.setLanguage(languageID);
        c.delete();
        buildSQL();
        populateList();
      }
    }
  }
View Full Code Here

  private PreparedStatement listStatement;

  public JInternalFrameMaterialLocationAdmin() {
    super();
    setIconifiable(true);
    lang = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    initGUI();

    JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID);
    query.clear();
View Full Code Here

  public JInternalFrameMaterialAdmin()
  {
    super();
    setIconifiable(true);

    lang = new JDBLanguage(Common.selectedHostID, Common.sessionID);

    uomList.add(new JDBUom(Common.selectedHostID, Common.sessionID));
    uomList.addAll(uom.getInternalUoms());
    typeList.add(new JDBMaterialType(Common.selectedHostID, Common.sessionID));
    typeList.addAll(materialType.getMaterialTypes());
View Full Code Here

    lang.preLoad(mask);
  }
 
  public void init()
  {
    lang = new JDBLanguage(getHostID(),getSessionID());
  }
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBLanguage

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.