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); }); }
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; }
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; } }); }