Package StockTradeBusinessClasses

Examples of StockTradeBusinessClasses.Order


                    // ----------------------
                    else if (qq_currentEvent.isEvent(TradeMgr_OrderProcessed_getInstance)) {
                        try {
                            CursorMgr.startEvent();
                            // ================ Begin Forte Event Handler Translation ================
                            Order orderOK = qq_currentEvent.getParam("pOrder");
                            if ((this.getCustomerGrid().getCustomerName().isEqual(orderOK.getCustomerName())).getValue()) {
                                this.setCustomerGrid(CustomerSO_proxy.getInstance().getCustomer(orderOK.getCustomerName()));
                            }
   
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
View Full Code Here


                // ----------------------
                else if (qq_currentEvent.isEvent(TradeMgr_OrderProcessed_getInstance)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Order theProcessedOrder = qq_currentEvent.getParam("pOrder");
                        if (this.getOrderList() != null) {
                            for (Order row : this.getOrderList()) {
                                if (row.getOrderID() == theProcessedOrder.getOrderID()) {
                                    // TODO [1037,Major]: If you are deleting a row inside a loop, use the Iterator in place of the array
                                    this.getOrderList().remove(row);
                                }
                            }
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ---------------------
                // TradeSO.NewOrderAdded
                // ---------------------
                else if (qq_currentEvent.isEvent(TradeMgr_NewOrderAdded_getInstance)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Order theNewOrder = qq_currentEvent.getParam("pNewOrder");
                        this.getOrderList().add(theNewOrder);

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ----------------------------
                // <ViewHoldingsBtn>.ObjectDrop
                // ----------------------------
                else if (qq_currentEvent.isEvent(PushButton_ObjectDrop_getqq_ViewHoldingsBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        JComponent theDroppedWidget = qq_currentEvent.getParam("sourceField");
                        int rownum = 0;
                        rownum = TableRow.get(this.getqq_OrderList());
                        CustomerWindow customerWin = new CustomerWindow();
                        customerWin.setUsage(Constants.WU_VIEW);
                        customerWin.display(this.getOrderList().get(rownum-1).getCustomerName());

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------
                // <ViewHoldingsBtn>.Click
                // -----------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ViewHoldingsBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        //self.Window.MessageDialog(MessageText='View Holdings not yet implemented',
                        //              MessageType=MT_INFO);

                        CustomerWindow customerWin = new CustomerWindow();
                        customerWin.display(this.getTraderName());


                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // --------------------
                // <MakeTradeBtn>.Click
                // --------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_MakeTradeBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        //self.Window.MessageDialog(MessageText='Make Trade not yet implemented',
                        //              MessageType=MT_INFO);
                        try {
                            Order buyOrder = null, sellOrder = null;
                            int tradeQuantity = 0;
                            float tradePrice = 0;

                            // ------------------------------------
                            // Parameters for call to ValidateMatch
View Full Code Here

    // ------------
    public OrderWindow() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setNewOrderGrid(new Order());

        //self.CustomerName = new;
        //self.StockNamelist = new;

    }
View Full Code Here

    public Array_Of_ListElement<ListElement> getStockNameList() {
        return this.stockNameList;
    }

    public void setNewOrderGrid(Order newOrderGrid) {
        Order oldValue = this.newOrderGrid;
        this.newOrderGrid = newOrderGrid;
        this.firePropertyChange("newOrderGrid", oldValue, this.newOrderGrid);
    }
View Full Code Here

TOP

Related Classes of StockTradeBusinessClasses.Order

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.