C# Class Prizm.Main.Forms.PipeMill.NewEdit.MillPipeNewEditViewModel

Inheritance: ViewModelBase, ISupportModifiableView, IDisposable
Afficher le fichier Open project: AleksMorozova/prizm Class Usage Examples

Méthodes publiques

Свойство Type Description
AvailableTests BindingList
TestResultStatuses BindingList>
listOfInspectors object>>.List
localizedAllType List
pipeNotifier IPipeNotifier
selectiveOprationPipeNotifier IPipeNotifier

Méthodes publiques

Méthode Description
ChangePipeStatus ( List testsResults ) : void

Change Pipe status according to pipe test result

CheckOperationStatus ( List listOfOperations ) : PipeTestResultStatus

This method find last result for operation

CheckStatus ( ) : bool
Dispose ( ) : void
GetLengthFromOperation ( ) : int
GetRequired ( PipeMillSizeType millSizeType ) : BindingList

Creates predefined pipe test result for all active required availableTests for concrete pipe mill size type

IsAnyInspectionResult ( ) : int
NewPipe ( ) : void
PipeTestResultsMaxOrder ( ) : int
UpdatePipeSubStatus ( ) : void

This method update pipeSubStatus

UpdateSubStatus ( List allResults, List testsResult ) : PipeMillSubStatus

This method set required subStatus for pipe

orderTestResult ( ) : List

Returns list of ordered Pipe test result

Private Methods

Méthode Description
FormatInspectorList ( IList inspectors ) : string

Customize displaying inspectors name in grid cell : show only last name

FormatWeldersList ( IList welders ) : string
GetAllPipeTestResults ( ) : void

Gets for current pipe all linked pipe test result and sets them to its property

GetAvailableTests ( ) : void

Gets control operations that can be added for current pipe (based on pipe size type)

LoadPipeMillStatuses ( ) : void
MillPipeNewEditViewModel ( IMillRepository repoMill, System.Guid id, IUserNotify notify, ISecurityContext ctx ) : DevExpress.XtraRichEdit.Model

Method Details

ChangePipeStatus() public méthode

Change Pipe status according to pipe test result
public ChangePipeStatus ( List testsResults ) : void
testsResults List
Résultat void

CheckOperationStatus() public méthode

This method find last result for operation
public CheckOperationStatus ( List listOfOperations ) : PipeTestResultStatus
listOfOperations List List of operations with one category type for current pipe
Résultat PipeTestResultStatus

CheckStatus() public méthode

public CheckStatus ( ) : bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetLengthFromOperation() public méthode

public GetLengthFromOperation ( ) : int
Résultat int

GetRequired() public méthode

Creates predefined pipe test result for all active required availableTests for concrete pipe mill size type
public GetRequired ( PipeMillSizeType millSizeType ) : BindingList
millSizeType Prizm.Domain.Entity.Setup.PipeMillSizeType
Résultat BindingList

IsAnyInspectionResult() public méthode

public IsAnyInspectionResult ( ) : int
Résultat int

NewPipe() public méthode

public NewPipe ( ) : void
Résultat void

PipeTestResultsMaxOrder() public méthode

public PipeTestResultsMaxOrder ( ) : int
Résultat int

UpdatePipeSubStatus() public méthode

This method update pipeSubStatus
public UpdatePipeSubStatus ( ) : void
Résultat void

UpdateSubStatus() public méthode

This method set required subStatus for pipe
public UpdateSubStatus ( List allResults, List testsResult ) : PipeMillSubStatus
allResults List all PipeTestResult for current pipe
testsResult List all test result status for current pipe
Résultat PipeMillSubStatus

orderTestResult() public méthode

Returns list of ordered Pipe test result
public orderTestResult ( ) : List
Résultat List

Property Details

AvailableTests public_oe property

public BindingList AvailableTests
Résultat BindingList

TestResultStatuses public_oe property

public BindingList> TestResultStatuses
Résultat BindingList>

listOfInspectors public_oe property

public List> listOfInspectors
Résultat object>>.List

localizedAllType public_oe property

public List localizedAllType
Résultat List

pipeNotifier public_oe property

public IPipeNotifier pipeNotifier
Résultat IPipeNotifier

selectiveOprationPipeNotifier public_oe property

public IPipeNotifier selectiveOprationPipeNotifier
Résultat IPipeNotifier