This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
states.Add<State.hold>(flowState => flowState | |
.WithActions(actions => | |
{ | |
actions.Add(removeHold, a => a.IsDuplicatedInToolbar()); | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
states.Add<State.hold>(flowState => flowState | |
.WithActions(actions => | |
{ | |
actions.Add(removeHold, a => a.IsDuplicatedInToolbar()); | |
}) | |
.WithFieldStates(fields => | |
{ | |
fields.AddAllFields<CMMSWorkOrder>(); | |
fields.AddField<hold>(c => c.IsHidden()); | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PX.Data; | |
using PX.Data.WorkflowAPI; | |
using PX.Objects.Common; | |
namespace Blog.CMMS | |
{ | |
using static PX.Data.WorkflowAPI.BoundedTo<CMMSWorkOrderEntry, CMMSWorkOrder>; | |
using static CMMSWorkOrder; | |
using State = Blog.CMMS.CMMSWorkOrder.Statuses; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Categories | |
var processingCategory = CommonActionCategories.Get(context).Processing; | |
#endregion | |
#region Define Constants | |
private const string | |
_actionRemoveHold = "Remove Hold", | |
_actionPutOnHold = "Hold"; | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define Constants | |
private const string | |
_actionRemoveHold = "Remove Hold", | |
_actionPutOnHold = "Hold"; | |
#region Actions | |
var removeHold = context.ActionDefinitions | |
.CreateNew(_actionRemoveHold, a => a | |
.InFolder(FolderType.ActionsFolder) | |
.PlaceAfter(g => g.Last) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PX.Data; | |
using PX.Data.WorkflowAPI; | |
using PX.Objects.Common; | |
namespace Blog.CMMS | |
{ | |
using static PX.Data.WorkflowAPI.BoundedTo<CMMSWorkOrderEntry, CMMSWorkOrder>; | |
using static CMMSWorkOrder; | |
using State = Blog.CMMS.CMMSWorkOrder.Statuses; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region initializeState | |
public PXAutoAction<CMMSWorkOrder> initializeState; | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Statuses | |
{ | |
public class ListAttribute : PXStringListAttribute | |
{ | |
public ListAttribute() : base( | |
new[] | |
{ | |
Pair(Hold, PX.Objects.EP.Messages.Hold), | |
Pair(Open, PX.Objects.EP.Messages.Open), | |
Pair(Complete, PX.Objects.EP.Messages.Complete), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<px:PXSmartPanel | |
runat="server" | |
ID="PnlSSCSHistory" | |
CommandSourceID="ds" | |
Caption="History" | |
CaptionVisible="True" | |
Height="400px" | |
Width="800px" | |
LoadOnDemand="true" | |
Key="History" |