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();