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; } }
protected void _(Events.RowSelected <INPIHeader> e) { var _lumLibrary = new LumLibrary(); if (!_lumLibrary.isCNorHK()) { CountintListReport.SetVisible(false); } }
protected void _(Events.RowSelected <Batch> e) { var _lumLibrary = new LumLibrary(); if (!_lumLibrary.isCNorHK()) { GLJournalAction.SetVisible(false); } }
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); } }
public override void Initialize() { var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { ReportAction.AddMenuAction(ProductionMoveAction); ReportAction.MenuAutoOpen = true; } }
protected void _(Events.RowSelected <AMProdItem> e) { var _lumLibrary = new LumLibrary(); if (!_lumLibrary.isCNorHK()) { ProductionInstruction.SetVisible(false); InnerLabel.SetVisible(false); } }
public override void Initialize() { base.Initialize(); var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { Base.actionsFolder.AddMenuAction(CountintListReport); } }
protected void _(Events.RowSelected <AMBatch> e) { var _lumLibrary = new LumLibrary(); if (!_lumLibrary.isCNorHK()) { ReportAction.SetVisible(false); ProductionMoveAction.SetVisible(false); } }
public override void Initialize() { base.Initialize(); var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { Base.report.AddMenuAction(InventoryIssueReport); } }
public override void Initialize() { base.Initialize(); var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { Base.report.AddMenuAction(GLJournalAction); } }
public override void Initialize() { var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { ReportAction.AddMenuAction(MaterialIssuesAction); ReportAction.AddMenuAction(MaterialReturnAction); ReportAction.MenuAutoOpen = true; } }
protected void _(Events.RowSelected <AMBatch> e) { var _lumLibrary = new LumLibrary(); if (!_lumLibrary.isCNorHK()) { ReportAction.SetVisible(false); MaterialIssuesAction.SetVisible(false); MaterialReturnAction.SetVisible(false); } }
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); } }
public override void Initialize() { base.Initialize(); var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { Base.report.AddMenuAction(DomesticPO); Base.report.AddMenuAction(OverseasPO); } }
public override void Initialize() { base.Initialize(); var _lumLibrary = new LumLibrary(); if (_lumLibrary.isCNorHK()) { Base.report.AddMenuAction(CommercialInvoiceReport); Base.report.AddMenuAction(CreditNoteReport); } }
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); } }
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); } }
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); } }
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); } }