Search in sources :

Example 1 with ArchiveViewer

use of org.compiere.apps.form.ArchiveViewer in project adempiere by adempiere.

the class AArchive method actionPerformed.

//	getZoomTargets
/**
	 * 	Listner
	 *	@param e event
	 */
public void actionPerformed(ActionEvent e) {
    //	ArchiveViewer
    int AD_Form_ID = 118;
    FormFrame ff = new FormFrame(m_graphicsconfig);
    ff.openForm(AD_Form_ID);
    ArchiveViewer av = (ArchiveViewer) ff.getFormPanel();
    //
    if (e.getSource() == m_documents)
        av.query(false, m_AD_Table_ID, m_Record_ID);
    else if (e.getSource() == m_reports)
        av.query(true, m_AD_Table_ID, m_Record_ID);
    else
        //	all Reports
        av.query(true, m_AD_Table_ID, 0);
    //	Yamel Senih 2015-11-23 Add support to dynamic Create From
    if (!ff.isDialog()) {
        AEnv.addToWindowManager(ff);
    }
    ff.pack();
    AEnv.showCenterScreen(ff);
    //	End Yamel Senih
    ff = null;
}
Also used : ArchiveViewer(org.compiere.apps.form.ArchiveViewer) FormFrame(org.compiere.apps.form.FormFrame)

Aggregations

ArchiveViewer (org.compiere.apps.form.ArchiveViewer)1 FormFrame (org.compiere.apps.form.FormFrame)1