Package cli_fmw.directory.dialogs

Examples of cli_fmw.directory.dialogs.DirectoryDialogDefault


*/
private void chbEnterpriseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chbEnterpriseActionPerformed
    if (chbEnterprise.isSelected()) {
        try {
            DirectoryEnterprise directoryEnterprise = DirectoryLocator.getDirectory(DirectoryEnterprise.class, false);
            DirectoryDialogDefault dlg = new DirectoryDialogDefault(false, null, "\\", directoryEnterprise);
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                Selector items = dlg.getSelectedItems();
                DirectoryEnterpriseItem enterprise = (DirectoryEnterpriseItem) items.get(0);
                tfEnterprise.setText(enterprise.getTitle());
                jPanel12.revalidate();
                filter.enterpriseId = enterprise.getID();
            } else {
View Full Code Here


        DirectoryEnterprise directoryEnterprise = DirectoryLocator.getDirectory(DirectoryEnterprise.class, false);
        DirectoryEnterpriseItem selected = null;
        if(filter.enterpriseId > 0) {
            selected = directoryEnterprise.getItemFromID(filter.enterpriseId);
        }
        DirectoryDialogDefault dlg = new DirectoryDialogDefault(false, selected, "\\", directoryEnterprise);
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            Selector items = dlg.getSelectedItems();
            DirectoryEnterpriseItem ent = (DirectoryEnterpriseItem) items.get(0);
            tfEnterprise.setText(ent.getTitle());
            jPanel12.revalidate();
            filter.enterpriseId = chbEnterprise.isSelected() ? ent.getID() : 0;
        }
View Full Code Here

        add(pnlInner, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents
    private void btChangeEnterpriceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btChangeEnterpriceActionPerformed
        try {
            DirectoryEnterprise directoryEnterprise = DirectoryLocator.getDirectory(DirectoryEnterprise.class, false);
            DirectoryDialogDefault dlg = new DirectoryDialogDefault(false,
                    contractLocal.getEnterprise(), "\\", directoryEnterprise);

            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                Selector items = dlg.getSelectedItems();
                DirectoryEnterpriseItem enterprice = (DirectoryEnterpriseItem) items.get(0);
                contractLocal.setEnterprise(enterprice);
                tfEnterprice.setText(enterprice.getTitle());
            }
        } catch (ClipsException ex) {
View Full Code Here

    }// </editor-fold>//GEN-END:initComponents

    private void btChangeEnterpriceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btChangeEnterpriceActionPerformed
        try {
            DirectoryEnterprise directoryEnterprise = DirectoryLocator.getDirectory(DirectoryEnterprise.class, false);
            DirectoryDialogDefault dlg = new DirectoryDialogDefault(false, enterprise, "\\", directoryEnterprise);
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                Selector items = dlg.getSelectedItems();
                DirectoryEnterpriseItem selectedEnterprise = (DirectoryEnterpriseItem) items.get(0);
                this.enterprise = selectedEnterprise;
                labEnterprice.setText(selectedEnterprise.getTitle());
            }
        } catch (ClipsException ex) {
View Full Code Here

                }
            }
        }
        if (col == TableModelServicesFromGroup.COL_CHECKUP) {
            DirectoryCheckupType dir = DirectoryLocator.getDirectory(DirectoryCheckupType.class);
            DirectoryDialogDefault dialog = new DirectoryDialogDefault(false,
                    service.getCheckUpType(), "\\", dir);
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                Selector selectedItems = dialog.getSelectedItems();
                if (selectedItems.size() > 0) {
                    DirectoryCheckupTypeItem checkupType = (DirectoryCheckupTypeItem) selectedItems.get(0);
                    if (!checkupType.isAnalyse()) {
                        MessageBox.showWarning("Должен быть выбран анализ");
                    } else {
View Full Code Here

     * @param evt
     */
  private void chooseEnterpriseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chooseEnterpriseActionPerformed
    try {
      DirectoryEnterprise directory = DirectoryLocator.getDirectory(DirectoryEnterprise.class, false);
      DirectoryDialogDefault dlg = new DirectoryDialogDefault(false, enterprise, "\\", directory);
      dlg.setAlwaysOnTop(true);
            dlg.setVisible(true);
      if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
        Selector items = dlg.getSelectedItems();
        enterprise =  (DirectoryEnterpriseItem) items.get(0);
//        if (enterprise.getID() == 0) {
//          chbEnterprise.setSelected(false);
//          chbEnterpriseActionPerformed(null);
//        } else {
View Full Code Here

        }
    }//GEN-LAST:event_btOKActionPerformed

    private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
        try {
            DirectoryDialogDefault ddd = new DirectoryDialogDefault(this, true, null, directoryDanger.getDirectoryTitle(), directoryDanger);
            ddd.setVisible(true);
            if (ddd.getDlgResult() == ModalDialog.DLG_OK) {
                Selector s = ddd.getSelectedItems();
                for (int i = 0; i < s.size(); i++) {
                    DangerJobDetails djd = new DangerJobDetails();
                    DirectoryDangerItem ddi = (DirectoryDangerItem)s.get(i);
                    djd.dangerId = ddi.getID();
                    djd.jobId = jobLocal.getID();
View Full Code Here

    dateEnd.setEnabled(cbEnd.isSelected());
}//GEN-LAST:event_cbEndActionPerformed

private void btChangeEnterpriceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btChangeEnterpriceActionPerformed
    try {
        DirectoryDialogDefault dlg = new DirectoryDialogDefault(false,
                jobLocal.getEnterprise(), "\\", directoryEnterprise);
        dlg.setAlwaysOnTop(true);
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            Selector items = dlg.getSelectedItems();
            DirectoryEnterpriseItem enterprice = (DirectoryEnterpriseItem) items.get(0);
            jobLocal.setEnterprise(enterprice);
            setScreenEnterprise();
        }
    } catch (ClipsException ex) {
View Full Code Here

        }
            try {
                DirectoryExpenditureType det
                        = (DirectoryExpenditureType) DirectoryLocator.getDirectory(DirectoryExpenditureType.class, false);

                DirectoryDialogDefault dialogDefault = new DirectoryDialogDefault(true, null, "\\", det);
                dialogDefault.setVisible(true);
                if (dialogDefault.getDlgResult() == ModalDialog.DLG_OK){
                    Selector s = dialogDefault.getSelectedItems();
                    for (int i = 0; i < s.size(); i++) {
                        ExpenditureItemData eil;
                        if (serRenLocal != null) {
                            eil = new ExpenditureItemData(serRenLocal);
                        } else {
View Full Code Here

TOP

Related Classes of cli_fmw.directory.dialogs.DirectoryDialogDefault

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.