예제 #1
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                // Get Visible
                var _graph        = PXGraph.CreateInstance <SOOrderEntry>();
                var _PIPreference = from t in _graph.Select <LifeSyncPreference>()
                                    select t;
                var _visible = _PIPreference.FirstOrDefault() == null ? false : _PIPreference.FirstOrDefault().ProformaInvoicePrinting.Value
                                                                      ? true : false;
                // Set Button Visible
                ProformaInvoice.SetVisible(_visible);
                // Add Button
                if (_visible)
                {
                    Base.report.AddMenuAction(ProformaInvoice);
                }

                Base.report.AddMenuAction(DeliveryOrderReport);

                Base.action.AddMenuAction(DispatchNoteReport);
                Base.action.AddMenuAction(ReturnNoteReport);
                Base.action.MenuAutoOpen = true;
            }
        }
예제 #2
0
        protected void _(Events.RowSelected <INPIHeader> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                CountintListReport.SetVisible(false);
            }
        }
예제 #3
0
        protected void _(Events.RowSelected <Batch> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                GLJournalAction.SetVisible(false);
            }
        }
예제 #4
0
        protected void _(Events.RowSelected <INRegister> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                InventoryIssueReport.SetVisible(false);
            }
        }
        protected void _(Events.RowSelected <AMVendorShipment> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                VendorShipment.SetVisible(false);
            }
        }
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(VendorShipment);
            }
        }
        protected void _(Events.RowSelected <POReceipt> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                POReceipt.SetVisible(false);
                POReturn.SetVisible(false);
            }
        }
예제 #8
0
        public override void Initialize()
        {
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                ReportAction.AddMenuAction(ProductionMoveAction);
                ReportAction.MenuAutoOpen = true;
            }
        }
예제 #9
0
        protected void _(Events.RowSelected <AMProdItem> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                ProductionInstruction.SetVisible(false);
                InnerLabel.SetVisible(false);
            }
        }
예제 #10
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.actionsFolder.AddMenuAction(CountintListReport);
            }
        }
예제 #11
0
        protected void _(Events.RowSelected <AMBatch> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                ReportAction.SetVisible(false);
                ProductionMoveAction.SetVisible(false);
            }
        }
예제 #12
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(InventoryIssueReport);
            }
        }
예제 #13
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(GLJournalAction);
            }
        }
예제 #14
0
        public override void Initialize()
        {
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                ReportAction.AddMenuAction(MaterialIssuesAction);
                ReportAction.AddMenuAction(MaterialReturnAction);
                ReportAction.MenuAutoOpen = true;
            }
        }
예제 #15
0
        protected void _(Events.RowSelected <AMBatch> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                ReportAction.SetVisible(false);
                MaterialIssuesAction.SetVisible(false);
                MaterialReturnAction.SetVisible(false);
            }
        }
예제 #16
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(ProductionInstruction);
                Base.report.AddMenuAction(InnerLabel);
            }
        }
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(POReceipt);
                Base.report.AddMenuAction(POReturn);
            }
        }
예제 #18
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(DomesticPO);
                Base.report.AddMenuAction(OverseasPO);
            }
        }
예제 #19
0
        public override void Initialize()
        {
            base.Initialize();
            var _lumLibrary = new LumLibrary();

            if (_lumLibrary.isCNorHK())
            {
                Base.report.AddMenuAction(CommercialInvoiceReport);
                Base.report.AddMenuAction(CreditNoteReport);
            }
        }
예제 #20
0
        protected void _(Events.RowSelected <SOShipment> e)
        {
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                ProformaInvoice.SetVisible(false);
                DeliveryOrderReport.SetVisible(false);
                DispatchNoteReport.SetVisible(false);
                ReturnNoteReport.SetVisible(false);
            }
        }
예제 #21
0
        public virtual void _(Events.RowSelected <ARInvoice> e)
        {
            var _library          = new LumLibrary();
            var baseCompanyCuryID = _library.GetCompanyBaseCuryID();

            // Setting LineTotal
            PXUIFieldAttribute.SetDisplayName <ARInvoice.lineTotal>(e.Cache, $"Total in {baseCompanyCuryID}");
            PXUIFieldAttribute.SetVisible <ARInvoice.lineTotal>(e.Cache, null, _library.GetShowingTotalInHome);
            PXUIFieldAttribute.SetEnabled <ARInvoice.lineTotal>(e.Cache, null, false);
            // Hide CuryOrigDiscAmt
            PXUIFieldAttribute.SetVisible <ARInvoice.curyOrigDiscAmt>(e.Cache, null, !_library.GetShowingTotalInHome);

            //controll customize button based on country ID
            if (!_library.isCNorHK())
            {
                CommercialInvoiceReport.SetVisible(false);
                CreditNoteReport.SetVisible(false);
            }
        }
예제 #22
0
        public virtual void _(Events.RowSelected <ARInvoice> e)
        {
            var library           = new LumLibrary();
            var BaseComapnyCuryID = library.GetCompanyBaseCuryID();

            PXUIFieldAttribute.SetDisplayName <ARInvoice.lineTotal>(e.Cache, $"Total in {BaseComapnyCuryID}");
            PXUIFieldAttribute.SetEnabled <ARInvoice.lineTotal>(e.Cache, null, false);
            // Defaul Visiable is false
            PXUIFieldAttribute.SetVisible <ARInvoice.lineTotal>(e.Cache, null, library.GetShowingTotalInHome);

            //controll customize button based on country ID
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                CommercialInvoiceReport.SetVisible(false);
                CreditNoteReport.SetVisible(false);
                CommercialInvoiceFromDGReport.SetVisible(false);
            }
        }
예제 #23
0
        protected virtual void _(Events.RowSelected <POLine> e)
        {
            // Control Header PI Column Visible
            var _graph        = PXGraph.CreateInstance <POOrderEntry>();
            var _PIPreference = from t in _graph.Select <LifeSyncPreference>()
                                select t;
            var _visible = _PIPreference.FirstOrDefault() == null ? false :
                           _PIPreference.FirstOrDefault().BubbleNumberPrinting.HasValue ? _PIPreference.FirstOrDefault().BubbleNumberPrinting.Value : false;

            PXUIFieldAttribute.SetVisible <POLineExt.usrBubbleNumber>(e.Cache, null, _visible);

            //controll customize button based on country ID
            var _lumLibrary = new LumLibrary();

            if (!_lumLibrary.isCNorHK())
            {
                DomesticPO.SetVisible(false);
                OverseasPO.SetVisible(false);
            }
        }