Ofcas.Lk.Api.Client - Version 3.0  3.0.0.101
Ofcas.Lk.Api.Client.Ui.ProjectUi Class Reference

ProjectUi is the representation of a LogiKal project and provides methods with user interactions. The children are of type PhaseUi. The children can be received from the InfoList (CoreObject<T>.Infos). More...

Inheritance diagram for Ofcas.Lk.Api.Client.Ui.ProjectUi:
Ofcas.Lk.Api.Client.Core.Project Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< ProjectCenter, ProjectInfo, Phase, PhaseInfo >

Public Member Functions

void Report (ReportItem reportItem, IList< ICoreInfoReportable > items, Dictionary< string, string > parameters)
 Creates a report according to the given report type via user interface. The report is generated for the passed elevations. If an empty list is passed, a report with all elevations of the project is automatically generated. More...
 
IList< ProjectRunnableProgramGetRunnablePrograms ()
 
OperationStatus RunProgram (ProjectRunnableProgram program, Dictionary< string, object > optionalParameters=null)
 Runs the project program specified by the ProjectRunnableProgram. More...
 
new PhaseUi GetPhase (PhaseInfo phaseInfo)
 Returns the corresponding phase based on the given information data. More...
 
void ExportCncFiles (List< ElevationInfo > elevationInfos)
 Opens a user interface to export the given elevations as CNC files. More...
 
- Public Member Functions inherited from Ofcas.Lk.Api.Client.Core.Project
Phase GetPhase (PhaseInfo phaseInfo)
 Returns the corresponding phase based on the given information data. More...
 
PhaseInfo CreatePhase (string name, string description)
 Creates a new Phase to the LogiKal projectvia user interface. More...
 
void DeletePhase (PhaseInfo phaseInfo)
 Deletes a phase from this project. More...
 
IList< ReportCategoryGetAvailableUserReports ()
 Return all available reports. More...
 
override Phase GetChild (PhaseInfo childInfo)
 
ProjectInfo SetParameter (string key, object value)
 Takes the parameter to update the project. More...
 
- Public Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< ProjectCenter, ProjectInfo, Phase, PhaseInfo >
virtual OperationInfo CanEdit (string key, object value)
 
virtual TOwnInfo Edit (string key, object value)
 

Protected Member Functions

override Phase CreateNewInstance (Guid coreObjectId, PhaseInfo phaseInfo)
 
- Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.Project
PhaseInfo GetPhaseInfoFromGuid (Guid phaseGuid)
 
override CoreInfoResponse GetInfoResponse ()
 
- Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< ProjectCenter, ProjectInfo, Phase, PhaseInfo >
 CoreObjectFullyQualified (IApiService apiService, Guid coreObjectId, TParent parent, TOwnInfo ownInfo)
 Creates a new instance of CoreObjectFullyQualified<TParent,TOwnInfo,TChild,TChildInfo> with the given parameters. More...
 

Additional Inherited Members

- Properties inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< ProjectCenter, ProjectInfo, Phase, PhaseInfo >
TParent Parent [get]
 
TOwnInfo CoreInfo [get, protected set]
 

Detailed Description

ProjectUi is the representation of a LogiKal project and provides methods with user interactions. The children are of type PhaseUi. The children can be received from the InfoList (CoreObject<T>.Infos).

Member Function Documentation

◆ ExportCncFiles()

void Ofcas.Lk.Api.Client.Ui.ProjectUi.ExportCncFiles ( List< ElevationInfo elevationInfos)

Opens a user interface to export the given elevations as CNC files.

Parameters
elevationInfosThe list of elevations to be exported.
Exceptions
ApiExceptionOccurs if the method fails.

◆ GetPhase()

new PhaseUi Ofcas.Lk.Api.Client.Ui.ProjectUi.GetPhase ( PhaseInfo  phaseInfo)

Returns the corresponding phase based on the given information data.

Parameters
phaseInfoThe phase information obtained through the CoreObject<T>.Infos function.
Returns
the PhaseUi
Exceptions
ExceptionIf getting elevation failed.

◆ Report()

void Ofcas.Lk.Api.Client.Ui.ProjectUi.Report ( ReportItem  reportItem,
IList< ICoreInfoReportable items,
Dictionary< string, string >  parameters 
)

Creates a report according to the given report type via user interface. The report is generated for the passed elevations. If an empty list is passed, a report with all elevations of the project is automatically generated.

Parameters
reportItemDefines the type of report. Report types can be received with Project.GetAvailableUserReports
itemsList of elevations to be used for the report
parametersA dictionary with parameters can be used to specify reports options. (Not supported)

◆ RunProgram()

OperationStatus Ofcas.Lk.Api.Client.Ui.ProjectUi.RunProgram ( ProjectRunnableProgram  program,
Dictionary< string, object >  optionalParameters = null 
)

Runs the project program specified by the ProjectRunnableProgram.

Parameters
programThe info object of the program to be run.
optionalParametersThe optional parameters for the program to be run.

OBJECTGUID: sets the object guid for special mode, value-type: Guid

PROGRAMMODE: sets the program mode for special mode, value-type: ProgramMode

Returns
Returns an OperationStatus for the running program.
Exceptions
ApiExceptionOccurs if the method fails.

The documentation for this class was generated from the following file: