public EPDocumentRelease() { EPDocumentList.SetProcessDelegate(EPDocumentRelease.ReleaseDoc); EPDocumentList.SetProcessCaption(Messages.Release); EPDocumentList.SetProcessAllCaption(Messages.ReleaseAll); EPDocumentList.SetSelected <EPExpenseClaim.selected>(); }
public DeleteDocsProcess() { Docs.SetProcessCaption(Messages.DeleteProc); Docs.SetProcessAllCaption(Messages.DeleteAllProc); Docs.SetProcessDelegate(delegate(List <FARegister> list) { bool failed = false; TransactionEntry entryGraph = CreateInstance <TransactionEntry>(); foreach (FARegister register in list) { PXProcessing.SetCurrentItem(register); try { entryGraph.Clear(); entryGraph.Document.Current = entryGraph.Document.Search <FARegister.refNbr>(register.RefNbr); entryGraph.Delete.Press(); PXProcessing.SetProcessed(); } catch (Exception e) { failed = true; PXProcessing.SetError(e); } } if (failed) { throw new PXOperationCompletedWithErrorException(ErrorMessages.SeveralItemsFailed); } }); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate <UsersProcess>(ProcessItem, FinallyProcess); OurUsers.SetProcessDelegate( delegate(UsersProcess graph, Users user) { throw new PXSetupNotEnteredException <Users>(null); }, delegate(UsersProcess graph) { throw new PXSetupNotEnteredException <Users>(null); } ); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => { throw new PXSetupNotEnteredException <Users>(null); }, (UsersProcess graph) => { throw new PXSetupNotEnteredException <Users>(null); }); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => throw new PXSetupNotEnteredException <Users>(null), (UsersProcess graph) => throw new PXSetupNotEnteredException <Users>(null)); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate(ProcessItem, FinallyProcess); OurUsers.SetProcessDelegate( delegate(UsersProcess graph, Users user) { graph.AllUsers.Update(user); graph.Persist(); }, delegate(UsersProcess graph) { graph.AllUsers.Select().Clear(); } ); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => { graph.AllUsers.Update(user); graph.Persist(); }, (UsersProcess graph) => { graph.AllUsers.Select().Clear(); }); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => graph.AllUsers.Select().Clear(), (UsersProcess graph) => graph.AllUsers.Select().Clear()); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetParametersDelegate(ProcessParameters); OurUsers.SetParametersDelegate(delegate(List <Users> users) { Console.WriteLine("Users parameters processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); var result = processingGraph.AllUsers.Select().Count > 0; return(result); }); OurUsers.SetParametersDelegate(users => { Console.WriteLine("Users parameters processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); var result = processingGraph.AllUsers.Select().Count > 0; return(result); }); OurUsers.SetParametersDelegate(users => PXGraph.CreateInstance <UsersProcess>().AllUsers.Select().Count > 0); }
public ProjectBalanceValidation() { Items.SetSelected <PMProject.selected>(); Items.SetProcessDelegate <ProjectBalanceValidationProcess>(Validate); Items.SetProcessCaption(GL.Messages.ProcValidate); Items.SetProcessAllCaption(GL.Messages.ProcValidateAll); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate(ProcessItem); OurUsers.SetProcessDelegate(delegate(Users user) { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.BlobSettings.Select(); }); OurUsers.SetProcessDelegate(user => { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.Cancel.Press(); }); OurUsers.SetProcessDelegate((Users user) => PXGraph.CreateInstance <UsersProcess>().OurUsers.Select().Clear()); OurUsers.SetProcessDelegate(ProcessItemList); OurUsers.SetProcessDelegate(delegate(List <Users> userList) { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.BlobSettings.Select(); }); OurUsers.SetProcessDelegate(userList => { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.Cancel.Press(); }); OurUsers.SetProcessDelegate((List <Users> userList) => PXGraph.CreateInstance <UsersProcess>().OurUsers.Select().Clear()); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate(ProcessItem); OurUsers.SetProcessDelegate(delegate(Users user) { throw new PXSetupNotEnteredException <Users>(null); }); OurUsers.SetProcessDelegate(user => { throw new PXSetupNotEnteredException <Users>(null); }); OurUsers.SetProcessDelegate((Users user) => throw new PXSetupNotEnteredException <Users>(null)); OurUsers.SetProcessDelegate(ProcessItemList); OurUsers.SetProcessDelegate(delegate(List <Users> userList) { throw new PXSetupNotEnteredException <Users>(null); }); OurUsers.SetProcessDelegate(userList => { throw new PXSetupNotEnteredException <Users>(null); }); OurUsers.SetProcessDelegate((List <Users> userList) => throw new PXSetupNotEnteredException <Users>(null)); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate <UsersProcess>(ProcessItem, FinallyProcess); OurUsers.SetProcessDelegate( delegate(UsersProcess graph, Users user) { graph.BlobSettings.Select(); }, delegate(UsersProcess graph) { graph.BlobSettings.Select(); } ); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => { graph.Cancel.Press(); }, (UsersProcess graph) => { graph.Cancel.Press(); }); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => graph.OurUsers.Select().Clear(), (UsersProcess graph) => graph.OurUsers.Select().Clear()); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate <UsersProcess>(ProcessItem, FinallyProcess); OurUsers.SetProcessDelegate( delegate(UsersProcess processingGraph, Users user) { processingGraph.AllUsers.Update(user); processingGraph.Persist(); var entryGraph = PXGraph.CreateInstance <UserEntry>(); var badCurrent = processingGraph.AllUsers.Current; var goodCurrent = entryGraph.AllUsers.Current; }, delegate(UsersProcess graph) { graph.AllUsers.Select().Clear(); } ); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => { graph.AllUsers.Update(user); graph.Persist(); }, (UsersProcess graph) => { graph.AllUsers.Select().Clear(); }); OurUsers.SetProcessDelegate( (UsersProcess graph, Users user) => graph.AllUsers.Select().Clear(), (UsersProcess graph) => graph.AllUsers.Select().Clear()); }
public BatchRelease() { GLSetup setup = GLSetup.Current; BatchList.SetProcessDelegate <PostGraph>(ReleaseBatch); BatchList.SetProcessCaption(Messages.ProcRelease); BatchList.SetProcessAllCaption(Messages.ProcReleaseAll); PXNoteAttribute.ForcePassThrow <Batch.noteID>(BatchList.Cache); }
public EPDocumentRelease() { APSetup accountsPayableSetup = APSetup.Current; EPDocumentList.SetProcessDelegate(ReleaseDoc); EPDocumentList.SetProcessCaption(Messages.Release); EPDocumentList.SetProcessAllCaption(Messages.ReleaseAll); EPDocumentList.SetSelected <EPExpenseClaim.selected>(); }
public POReleaseReceipt() { Orders.SetSelected <POReceipt.selected>(); Orders.SetProcessCaption(Messages.Process); Orders.SetProcessAllCaption(Messages.ProcessAll); Orders.SetProcessDelegate(delegate(List <POReceipt> list) { ReleaseDoc(list, true); }); }
public SalesOrderProcess() { Orders.SetProcessCaption("Approve"); Orders.SetProcessAllCaption("Approve All"); Orders.SetProcessDelegate <SalesOrderEntry>(delegate(SalesOrderEntry graph, SalesOrder order) { graph.Clear(); graph.ApproveOrder(order, true); }); }
public POLandedCostProcess() { 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 SmartsheetSyncProcess() { Projects.SetProcessCaption("Sync"); Projects.SetProcessAllCaption("Sync All"); Projects.SetProcessDelegate <ProjectEntry>( delegate(ProjectEntry graph, PMProject projectRow) { graph.Clear(); ProjectEntryExt projectEntryExtGraph = graph.GetExtension <ProjectEntryExt>(); projectEntryExtGraph.CreateUpdateGanttProject(graph, projectRow, "", true); }); }
public ReviewInvoiceBatches() { Batches.SetProcessDelegate <PostBatchEntry>( delegate(PostBatchEntry processor, FSPostBatch fsPostBatchRow) { processor.Clear(); processor.DeletePostingBatch(fsPostBatchRow); }); Batches.SetProcessCaption(TX.ButtonDisplays.DeleteProc); Batches.SetProcessAllCaption(TX.ButtonDisplays.DeleteAllProc); }
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 APLandedCostProcess() { APSetup apSetup = APSetup.Current; POSetup poSetup = POSetup.Current; documents.SetSelected <APInvoiceLCInfo.selected>(); documents.SetProcessCaption(ActionsMessages.Process); documents.SetProcessAllCaption(ActionsMessages.ProcessAll); documents.SetProcessDelegate(delegate(List <APInvoiceLCInfo> list) { ReleaseDoc(list); }); }
protected virtual void FARegister_RowSelected(PXCache sender, PXRowSelectedEventArgs e) { Docs.SetProcessCaption(Messages.DeleteProc); Docs.SetProcessAllCaption(Messages.DeleteAllProc); Docs.SetProcessDelegate(delegate(List <FARegister> list) { foreach (FARegister register in list) { FARegister copy = (FARegister)Docs.Cache.CreateCopy(register); Docs.Delete(copy); } Actions.PressSave(); }); }
public SmartsheetSyncProcess() { Projects.SetProcessCaption("Sync"); Projects.SetProcessAllCaption("Sync All"); Projects.SetProcessDelegate <ProjectEntry>( delegate(ProjectEntry graph, PMProject projectRow) { graph.Clear(); ProjectEntryExt projectEntryExtGraph = graph.GetExtension <ProjectEntryExt>(); SmartsheetClient smartsheetClient = projectEntryExtGraph.CheckTokenSheetSS(graph, projectRow, "", true); projectEntryExtGraph.CreateEmployeesAcuUserSS(graph, smartsheetClient); projectEntryExtGraph.CreateUpdateGanttProject(graph, projectRow, smartsheetClient, true); }); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate(delegate(Users user) { Console.WriteLine("Users item processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.AllUsers.Update(user); processingGraph.Persist(); }); }
public BatchPost() { GLSetup setup = GLSetup.Current; BatchList.SetProcessDelegate <PostGraph>( delegate(PostGraph pg, Batch batch) { pg.Clear(); pg.PostBatchProc(batch); } ); BatchList.SetProcessCaption(Messages.ProcPost); BatchList.SetProcessAllCaption(Messages.ProcPostAll); PXNoteAttribute.ForcePassThrow <Batch.noteID>(BatchList.Cache); }
public RegisterRelease() { Items.SetProcessDelegate( delegate(List <PMRegister> list) { List <PMRegister> newlist = new List <PMRegister>(list.Count); foreach (PMRegister doc in list) { newlist.Add(doc); } Release(newlist, true); } ); Items.SetProcessCaption(Messages.Release); Items.SetProcessAllCaption(Messages.ReleaseAll); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetProcessDelegate(ProcessItem); OurUsers.SetProcessDelegate(delegate(Users user) { Console.WriteLine("Users item processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.AllUsers.Update(user); processingGraph.Persist(); }); OurUsers.SetProcessDelegate(user => { Console.WriteLine("Users item processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.AllUsers.Update(user); processingGraph.Persist(); }); OurUsers.SetProcessDelegate((Users user) => PXGraph.CreateInstance <UsersProcess>().AllUsers.Select().Clear()); OurUsers.SetProcessDelegate(ProcessItemList); OurUsers.SetProcessDelegate(delegate(List <Users> userList) { Console.WriteLine("Users item list processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.AllUsers.Update(userList.First()); processingGraph.Persist(); }); OurUsers.SetProcessDelegate(userList => { Console.WriteLine("Users item list processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.AllUsers.Update(userList.First()); processingGraph.Persist(); }); OurUsers.SetProcessDelegate((List <Users> userList) => PXGraph.CreateInstance <UsersProcess>().AllUsers.Select().Clear()); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetParametersDelegate(ProcessParameters); OurUsers.SetParametersDelegate(delegate(List <Users> users) { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); return(processingGraph.BlobSettings.Select().Count > 0); }); OurUsers.SetParametersDelegate(users => { var processingGraph = PXGraph.CreateInstance <UsersProcess>(); processingGraph.Cancel.Press(); return(true); }); OurUsers.SetParametersDelegate(users => PXGraph.CreateInstance <UsersProcess>().OurUsers.Select().Count > 0); }
public MergePrepareProcess() { Items.SetProcessCaption(Messages.Prepare); Items.SetProcessAllCaption(Messages.PrepareAll); Items.SetSelected <CRMerge.selected>(); PXProcessingStep[] targets = PXAutomation.GetProcessingSteps(this); if (targets.Length > 0) { Items.SetProcessTarget(targets[0].GraphName, targets.Length > 1 ? null : targets[0].Name, targets[0].Actions[0].Name, targets[0].Actions[0].Menus[0], null, null); } else { throw new PXScreenMisconfigurationException(SO.Messages.MissingMassProcessWorkFlow); } Actions.Move("Process", "Cancel"); }
public UsersProcess() { OurUsers.SetProcessAllCaption("Process users"); OurUsers.SetProcessCaption("Process user"); OurUsers.SetParametersDelegate(ProcessParameters); OurUsers.SetParametersDelegate(delegate(List <Users> users) { Console.WriteLine("Users parameters processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); var result = processingGraph.AllUsers.Select().Count > 0; if (!result) { throw new PXSetupNotEnteredException <Users>(null); } return(result); }); OurUsers.SetParametersDelegate(users => { Console.WriteLine("Users parameters processing"); var processingGraph = PXGraph.CreateInstance <UsersProcess>(); var result = processingGraph.AllUsers.Select().Count > 0; if (!result) { throw new PXSetupNotEnteredException <Users>(null); } return(result); }); // With the current version of Roslyn packages 1.x we cannot analyze this construction //OurUsers.SetParametersDelegate(users => throw new PXSetupNotEnteredException<Users>(null)); }
public TWNExpGUIInv2BankPro() { GUITranProc.SetProcessCaption(ActionsMessages.Upload); GUITranProc.SetProcessAllCaption(TWMessages.UploadAll); GUITranProc.SetProcessDelegate(Upload); }