Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 private void OnUndoBatch(object pObjSender, UndoBatchArgs pObjArgs)
 {
     if (pObjArgs.Batch != null)
     {
         LeftBatchForm.SetBatchObject(pObjArgs.Batch);
     }
 }
Ejemplo n.º 3
0
        private void UserControl_Loaded(object pObjSender, RoutedEventArgs pObjArgs)
        {
            LeftBatchForm.DisableForm();
            RightBatchForm.DisableForm();

            AuctionHeader.LoadAuction       += new LoadAuctionEventHandler(OnLoadAuction);
            AuctionHeader.ChangeBatchNumber += new ChangeBatchNumberEventHandler(OnChangeBatchNumber);
            LeftBatchForm.LoadSeller        += new LoadPartnerEventHandler(OnLoadLeftSeller);
            LeftBatchForm.LoadBatch         += new LoadBatchEventHandler(OnLoadLeftBatch);
            LeftBatchForm.EditBatch         += new EditBatchEventHandler(OnEditBatch);
            LeftBatchForm.ConfirmBatch      += new ConfirmBatchEventHandler(OnConfirmBatch);
            RightBatchForm.CompleteBatch    += new CompleteBatchEventHandler(OnCompleteBatch);
            RightBatchForm.SaveBatch        += new SaveBatchEventHandler(OnSaveBatch);
            RightBatchForm.UndoBatch        += new UndoBatchEventHandler(OnUndoBatch);
            RightBatchForm.ChangeFormMode   += new ChangeFormModeEventHandler(OnChangeRightFormMode);

            if (!grdBatchAuction.IsBlocked())
            {
                mObjInternalWorker = new Thread(ConnectBoardsService);
                mObjInternalWorker.Start();
            }

            AuctionHeader.txtAuction.Focus();
        }
Ejemplo n.º 4
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;
            }
        }