Example #1
0
        private void OnLoadAuction(object pObjSender, LoadAuctionArgs pObjArgs)
        {
            if (pObjArgs.Auction != null)
            {
                //Enable
                LeftBatchForm.EnableForm();
                LeftBatchForm.EnableBatchSearch();
                LeftBatchForm.txtSellerCode.Focus();
                //RightBatchForm.EnableForm();
            }
            else
            {
                //Disable
                LeftBatchForm.DisableForm();
                LeftBatchForm.DisableBatchSearch();
                AuctionHeader.txtAuction.Focus();
                RightBatchForm.DisableForm();
            }

            btnSkip.IsEnabled          = pObjArgs.Auction != null ? true : false;
            LeftBatchForm.AuctionId    = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0;
            LeftBatchForm.AuctionType  = pObjArgs.Auction != null ? pObjArgs.Auction.Type : 0;
            RightBatchForm.AuctionId   = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0;
            RightBatchForm.AuctionType = pObjArgs.Auction != null ? pObjArgs.Auction.Type : 0;
            QuantitiesDetail.AuctionId = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0;
        }
Example #2
0
        private void OnConfirmBatch(object pObjSender, ConfirmBatchArgs pObjArgs)
        {
            if (pObjArgs.Batch != null)
            {
                AuctionHeader.SetNextBatchNumber();
                DisplayInBoardOne(pObjArgs.Batch);
                LeftBatchForm.EnableForm();
                RightBatchForm.EnableForm();
                RightBatchForm.SetBatchObject(pObjArgs.Batch);
                RightBatchForm.UpdateFormMode(FormModeEnum.NEW);

                //Enable buttons
                btnSave.IsEnabled  = true;
                btnPrint.IsEnabled = true;
                btnUndo.IsEnabled  = true;
            }
            else
            {
                //Disable buttons
                btnSave.IsEnabled  = false;
                btnPrint.IsEnabled = false;
                btnUndo.IsEnabled  = false;
            }
        }