Exemplo n.º 1
0
        public POReleaseReceipt()
        {
            APSetupNoMigrationMode.EnsureMigrationModeDisabled(this);

            Orders.SetSelected <POReceipt.selected>();
            Orders.SetProcessCaption(Messages.Process);
            Orders.SetProcessAllCaption(Messages.ProcessAll);
            Orders.SetProcessDelegate(delegate(List <POReceipt> list)
            {
                ReleaseDoc(list, true);
            });
        }
        public POLandedCostProcess()
        {
            APSetupNoMigrationMode.EnsureMigrationModeDisabled(this);
            POSetup setup = POSetup.Current;

            receiptsList.SetSelected <POReceiptLCInfo.selected>();
            receiptsList.SetProcessCaption(Messages.Process);
            receiptsList.SetProcessAllCaption(Messages.ProcessAll);
            receiptsList.SetProcessDelegate(delegate(List <POReceiptLCInfo> list)
            {
                ReleaseDoc(list);
            });
        }
Exemplo n.º 3
0
        public POPrintOrder()
        {
            APSetupNoMigrationMode.EnsureMigrationModeDisabled(this);

            PXUIFieldAttribute.SetRequired <POPrintOrderOwned.orderDate>(this.Records.Cache, false);
            PXUIFieldAttribute.SetRequired <POPrintOrderOwned.curyID>(this.Records.Cache, false);
            PXUIFieldAttribute.SetEnabled(Records.Cache, null, false);
            PXUIFieldAttribute.SetEnabled <POPrintOrderOwned.selected>(Records.Cache, null, true);

            Records.SetSelected <POPrintOrderOwned.selected>();
            Records.SetProcessCaption(IN.Messages.Process);
            Records.SetProcessAllCaption(IN.Messages.ProcessAll);
            //Records.SetProcessDelegate(PrintOrders);
            this.Records.Cache.AllowInsert = false;
            this.Records.Cache.AllowDelete = false;
        }
Exemplo n.º 4
0
        public POVendorCatalogueMaint()
        {
            APSetupNoMigrationMode.EnsureMigrationModeDisabled(this);

            this.BAccount.Cache.AllowDelete = false;
            PXUIFieldAttribute.SetVisible <VendorLocation.curyID>(BAccount.Cache, null,
                                                                  PXAccess.FeatureInstalled <FeaturesSet.multicurrency>());

            _inventoryID = VendorCatalogue.Cache.GetField(typeof(POVendorInventory.inventoryID));
            _subItemID   = VendorCatalogue.Cache.GetField(typeof(POVendorInventory.subItemID));
            _uOM         = VendorCatalogue.Cache.GetField(typeof(POVendorInventory.purchaseUnit));
            _recordID    = VendorCatalogue.Cache.GetField(typeof(POVendorInventory.recordID));

            // right baccount type for redirect from empty Vendor field
            FieldDefaulting.AddHandler <BAccountR.type>((sender, e) => { if (e.Row != null)
                                                                         {
                                                                             e.NewValue = BAccountType.VendorType;
                                                                         }
                                                        });
        }