C# Class Disco.Services.JobExtensions

Exibir arquivo Open project: garysharp/Disco

Public Methods

Method Description
AvailableDocumentTemplatePackages ( this j, DiscoDataContext Database, User TechnicianUser ) : List
AvailableDocumentTemplates ( this j, DiscoDataContext Database, User User, System.DateTime TimeStamp ) : List
CalculateStatusId ( this j ) : string
EvaluateOnCloseExpression ( this job, DiscoDataContext Database ) : string
EvaluateOnCreateExpression ( this job, DiscoDataContext Database ) : string
FilterCreatableTypePermissions ( this JobTypes, AuthorizationToken Authorization ) : IQueryable
GenerateFaultDescription ( this j, DiscoDataContext Database ) : string
GenerateFaultDescriptionFooter ( this j, DiscoDataContext Database, PluginFeatureManifest WarrantyProviderDefinition ) : string
JobStatusDescription ( string StatusId, Job j = null ) : string
JobStatusDescription ( string StatusId, JobTableStatusItemModel j = null ) : string
Status ( this j ) : string>.Tuple
ToJobTableStatusItemModel ( this j ) : JobTableStatusItemModel
UpdateSubTypes ( this j, DiscoDataContext Database, List SubTypes, bool AddComponents, User TechUser ) : void
ValidateDateAfterOpened ( this j, System.DateTime d ) : System.DateTime

Private Methods

Method Description
FilterCreatableTypePermissions ( AuthorizationToken Authorization ) : List

Method Details

AvailableDocumentTemplatePackages() public static method

public static AvailableDocumentTemplatePackages ( this j, DiscoDataContext Database, User TechnicianUser ) : List
j this
Database Disco.Data.Repository.DiscoDataContext
TechnicianUser Disco.Models.Repository.User
return List

AvailableDocumentTemplates() public static method

public static AvailableDocumentTemplates ( this j, DiscoDataContext Database, User User, System.DateTime TimeStamp ) : List
j this
Database Disco.Data.Repository.DiscoDataContext
User Disco.Models.Repository.User
TimeStamp System.DateTime
return List

CalculateStatusId() public static method

public static CalculateStatusId ( this j ) : string
j this
return string

EvaluateOnCloseExpression() public static method

public static EvaluateOnCloseExpression ( this job, DiscoDataContext Database ) : string
job this
Database Disco.Data.Repository.DiscoDataContext
return string

EvaluateOnCreateExpression() public static method

public static EvaluateOnCreateExpression ( this job, DiscoDataContext Database ) : string
job this
Database Disco.Data.Repository.DiscoDataContext
return string

FilterCreatableTypePermissions() public static method

public static FilterCreatableTypePermissions ( this JobTypes, AuthorizationToken Authorization ) : IQueryable
JobTypes this
Authorization Disco.Services.Authorization.AuthorizationToken
return IQueryable

GenerateFaultDescription() public static method

public static GenerateFaultDescription ( this j, DiscoDataContext Database ) : string
j this
Database Disco.Data.Repository.DiscoDataContext
return string

GenerateFaultDescriptionFooter() public static method

public static GenerateFaultDescriptionFooter ( this j, DiscoDataContext Database, PluginFeatureManifest WarrantyProviderDefinition ) : string
j this
Database Disco.Data.Repository.DiscoDataContext
WarrantyProviderDefinition PluginFeatureManifest
return string

JobStatusDescription() public static method

public static JobStatusDescription ( string StatusId, Job j = null ) : string
StatusId string
j Disco.Models.Repository.Job
return string

JobStatusDescription() public static method

public static JobStatusDescription ( string StatusId, JobTableStatusItemModel j = null ) : string
StatusId string
j Disco.Models.Services.Jobs.JobLists.JobTableStatusItemModel
return string

Status() public static method

public static Status ( this j ) : string>.Tuple
j this
return string>.Tuple

ToJobTableStatusItemModel() public static method

public static ToJobTableStatusItemModel ( this j ) : JobTableStatusItemModel
j this
return Disco.Models.Services.Jobs.JobLists.JobTableStatusItemModel

UpdateSubTypes() public static method

public static UpdateSubTypes ( this j, DiscoDataContext Database, List SubTypes, bool AddComponents, User TechUser ) : void
j this
Database Disco.Data.Repository.DiscoDataContext
SubTypes List
AddComponents bool
TechUser Disco.Models.Repository.User
return void

ValidateDateAfterOpened() public static method

public static ValidateDateAfterOpened ( this j, System.DateTime d ) : System.DateTime
j this
d System.DateTime
return System.DateTime