Package org.jabusuite.webclient.windows

Examples of org.jabusuite.webclient.windows.JbsOptionPane


        try {
            final DunningsPrinter dunningsPrinter = new DunningsPrinter(ClientGlobals.getUser(), ClientGlobals.getCompany());
            if (dunningsPrinter.getDunnings().size()==0) {
                JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Dunning.noUnprintedDunnings"), JbsL10N.getString("Dunning.printTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            } else {
                JbsOptionPane dlg = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Dunning.printUnprintedRequest"), JbsL10N.getString("Dunning.printTitle"), JbsOptionPane.YES_NO_OPTION);
                dlg.addActionListener(new ActionListener() {

                    public void actionPerformed(ActionEvent arg0) {
                        if (arg0.getActionCommand().equals(JbsOptionPane.YES_OPTION)) {
                           
                           
View Full Code Here


    protected void createInvoice() {
        try {
            final Invoice invoice = new Invoice();
            String userNumber = getNextUserNumber(Invoice.class);
            invoice.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToInvoice"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
                    fmInvoiceEdit.showForm(DlgState.dsCopy, invoice);
                    addAction(PnOfferEdit.ACTION_TOINVOICE);
View Full Code Here

    protected void createDeliveryNote() {
        try {
            final DeliveryNote deliveryNote = new DeliveryNote();
            String userNumber = getNextUserNumber(DeliveryNote.class);
            deliveryNote.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToDeliveryNote"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmDeliveryNoteEdit fmDeliveryNoteEdit = new FmDeliveryNoteEdit();
                    fmDeliveryNoteEdit.showForm(DlgState.dsCopy, deliveryNote);
                    addAction(PnOfferEdit.ACTION_TODELIVERYNOTE);
View Full Code Here

    protected void createWorkOrder() {
        try {
            final WorkOrder workOrder = new WorkOrder();
            String userNumber = getNextUserNumber(WorkOrder.class);
            workOrder.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToWorkOrder"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmWorkOrderEdit fmWorkOrderEdit = new FmWorkOrderEdit();
                    fmWorkOrderEdit.showForm(DlgState.dsCopy, workOrder);
                    addAction(PnTransactionEdit.ACTION_TOWORKORDER);
View Full Code Here

    protected void createOrderConfirmation() {
        try {
            final OrderConfirmation orderConfirmation = new OrderConfirmation();
            String userNumber = getNextUserNumber(OrderConfirmation.class);
            orderConfirmation.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.msgToOrderConfirmation"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmOrderConfirmationEdit fmOrderConfirmationEdit = new FmOrderConfirmationEdit();
                    fmOrderConfirmationEdit.showForm(DlgState.dsCopy, orderConfirmation);
                    addAction(PnTransactionEdit.ACTION_TOORDERCONFIRMATION);
View Full Code Here

    }
   
    protected void addContact(final Contact contact) {
        //If the contact is already assigned to another address we have to ask if the user really wants to reassign it, otherwise we can just add it
        if ((contact.getAddress()!=null) && ((Address)getParentObject()!=contact.getAddress())) {
            JbsOptionPane msgBox = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Contact.alreadyAssignedRequest"), JbsL10N.getString("Contact.contact"), JbsOptionPane.YES_NO_OPTION);
            msgBox.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    if (arg0.getActionCommand().equals(JbsOptionPane.YES_OPTION)) {
                        doAddContact(contact);
                    }
View Full Code Here

   
  }
 
  protected void checkUserNameField() {
    if (txUserName.getText().trim().equals("")) {
      JbsOptionPane messageDialog=JbsOptionPane.showMessageDialog(this, JbsL10N.getString("FmLogin.noUserName"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
      messageDialog.addActionListener(new ActionListener() {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent arg0) {
          checkPasswordField();
        }
View Full Code Here

    }
  }
 
  protected void checkPasswordField() {
    if (txUserName.getText().trim().equals("")) {
      JbsOptionPane messageDialog=JbsOptionPane.showMessageDialog(this, JbsL10N.getString("FmLogin.noPassword"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
      messageDialog.addActionListener(new ActionListener() {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent arg0) {
          doPost();
        }
View Full Code Here

    protected void createCreditNote() {
        try {
            final CreditNote creditNote = new CreditNote();
            String userNumber = getNextUserNumber(CreditNote.class);
            creditNote.setDataFromTransaction(getInvoice(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Invoice.msgToCreditNote"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmCreditNoteEdit fmCreditNoteEdit = new FmCreditNoteEdit();
                    fmCreditNoteEdit.showForm(DlgState.dsCopy, creditNote);
                    addAction(PnInvoiceEdit.ACTION_TOCREDITNOTE);
View Full Code Here

        }
    }
   
    protected void deletePayment(final Payment payment) {
        if (payment!=null) {
            JbsOptionPane confirmDialog = JbsOptionPane.showConfirmDialog(this, JbsL10N.getString("Payment.deleteQuery"), JbsL10N.getString("Payment.deleteQueryTitle"), JbsOptionPane.YES_NO_OPTION);
            confirmDialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    if (arg0.getActionCommand() == JbsOptionPane.YES_OPTION) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Deleting payment "+payment.getId());
View Full Code Here

TOP

Related Classes of org.jabusuite.webclient.windows.JbsOptionPane

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.