コード例 #1
0
        public ShowForm DescribeMerchChargeOnBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn, DesktopSession desktopSession)
        {
            var descMerchFrm = new DescribeMerchandise(desktopSession, CurrentContext.AUDITCHARGEON);

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       descMerchFrm,
                       descMerchFrm.NavControlBox,
                       fxn, true));
        }
コード例 #2
0
        public ShowForm CreateEnterCaccItemsShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var enterCaccItems = new EnterCaccItems();

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       enterCaccItems,
                       enterCaccItems.NavControlBox,
                       fxn));
        }
コード例 #3
0
        public ShowForm CreateClosedAuditShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var auditResults = new ClosedAudit();

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       auditResults,
                       auditResults.NavControlBox,
                       fxn));
        }
コード例 #4
0
        public ShowForm CreateUploadFromTrakkerShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var uploadFromTrakker = new UploadFromTrakker();

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       uploadFromTrakker,
                       uploadFromTrakker.NavControlBox,
                       fxn));
        }
コード例 #5
0
        public ShowForm CreateProcessUnexpectedItemsShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var processUnexpectedItems = new ProcessUnexpectedItems();

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       processUnexpectedItems,
                       processUnexpectedItems.NavControlBox,
                       fxn));
        }
コード例 #6
0
        public ShowForm CreateInventoryQuestionsShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var inventoryQuestions = new InventoryQuestions();

            return(this.createShowFormBlock(
                       ValidFormBlockTypes.None,
                       parentForm,
                       inventoryQuestions,
                       inventoryQuestions.NavControlBox,
                       fxn));
        }
コード例 #7
0
        public ShowForm CreateSelectStoreShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var selectStore    = new SelectStore();
            var selectStoreBlk =
                this.createShowFormBlock(
                    ValidFormBlockTypes.None,
                    parentForm,
                    selectStore,
                    selectStore.NavControlBox,
                    fxn);

            return(selectStoreBlk);
        }
コード例 #8
0
        public ShowForm CreateDownloadToTrakkerShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var downloadToTrakker    = new DownloadToTrakker();
            var downloadToTrakkerBlk =
                this.createShowFormBlock(
                    ValidFormBlockTypes.None,
                    parentForm,
                    downloadToTrakker,
                    downloadToTrakker.NavControlBox,
                    fxn);

            return(downloadToTrakkerBlk);
        }
コード例 #9
0
        public ShowForm CreateAuditManagerShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var auditManager    = new AuditManager();
            var auditManagerBlk =
                this.createShowFormBlock(
                    ValidFormBlockTypes.None,
                    parentForm,
                    auditManager,
                    auditManager.NavControlBox,
                    fxn);

            return(auditManagerBlk);
        }
コード例 #10
0
        public ShowForm CreateInitiateAuditShowBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn)
        {
            var initiateAudit    = new InitiateAudit();
            var initiateAuditBlk =
                this.createShowFormBlock(
                    ValidFormBlockTypes.None,
                    parentForm,
                    initiateAudit,
                    initiateAudit.NavControlBox,
                    fxn);

            return(initiateAuditBlk);
        }
コード例 #11
0
        private ShowForm createShowFormBlock(
            ValidFormBlockTypes nm,
            Form pFm,
            Form fm,
            NavBox nvBox,
            NavBox.NavBoxActionFired nvBoxDeleg)
        {
            if (fm == null)
            {
                return(null);
            }

            var sFm = new ShowForm(AuditDesktopSession.Instance, pFm, fm, nvBox, nvBoxDeleg);

            return(sFm);
        }
コード例 #12
0
        public ShowForm DescribeItemBlock(
            Form parentForm,
            NavBox.NavBoxActionFired fxn,
            DesktopSession desktopSession)
        {
            var descItemFrm = new DescribeItem(desktopSession, AuditDesktopSession.Instance.DescribeItemContext,
                                               AuditDesktopSession.Instance.DescribeItemPawnItemIndex);
            ShowForm describeItemBlk =
                this.createShowFormBlock(
                    ValidFormBlockTypes.None,
                    parentForm,
                    descItemFrm,
                    descItemFrm.NavControlBox,
                    fxn);

            return(describeItemBlk);
        }
コード例 #13
0
        protected ShowForm createShowFormBlock(
            uint nm,
            Form pFm,
            Form fm,
            NavBox nvBox,
            NavBox.NavBoxActionFired nvBoxDeleg,
            bool showFormAsDialog)
        {
            if (fm == null)
            {
                return(null);
            }

            var sFm = new ShowForm(desktopSession, pFm, fm, nvBox, nvBoxDeleg, showFormAsDialog);

            return(sFm);
        }
コード例 #14
0
 /// <summary>
 /// Show form with form's specified nav box and
 /// explicitly set the navbox onactionfired
 /// delegate
 /// </summary>
 /// <param name="parentForm"> </param>
 /// <param name="fm"></param>
 /// <param name="fmNavBoxInst"></param>
 /// <param name="navBoxDelegate"></param>
 /// <param name="desktopSession"> </param>
 public ShowForm(
     DesktopSession desktopSession,
     Form parentForm,
     Form fm,
     NavBox fmNavBoxInst,
     NavBox.NavBoxActionFired navBoxDelegate)
     : base(NAME)
 {
     if (fm == null)
     {
         throw new ApplicationException("Cannot create ShowForm block");
     }
     this.DesktopSession          = desktopSession;
     this.form                    = fm;
     this.formNavBox              = fmNavBoxInst;
     this.formNavBox.OnActionFire = navBoxDelegate;
     this.hasValidNavBox          = true;
     this.Action                  = new FxnBlock();
     this.Action.InputParameter   = parentForm;
     this.Action.Function         = displayForm;
 }
コード例 #15
0
        protected ShowForm createShowFormBlock(
            uint nm,
            Form pFm,
            Form fm,
            NavBox nvBox,
            NavBox.NavBoxActionFired nvBoxDeleg)
        {
            if (fm == null || nvBox == null || nvBoxDeleg == null)
            {
                if (FileLogger.Instance.IsLogError)
                {
                    FileLogger.Instance.logMessage(LogLevel.ERROR, "CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg)",
                                                   "Attempted to create ShowForm block with null form or null NavBox");
                }
                BasicExceptionHandler.Instance.AddException("CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg) failed",
                                                            new Exception("CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg) failed"));
            }

            var sFm = new ShowForm(desktopSession, pFm, fm, nvBox, nvBoxDeleg);

            return(sFm);
        }