Class Resource

Class Resource

Nazwa przestrzeń: Aspose.Tasks Zgromadzenie: Aspose.Tasks.dll (25.4.0)

Przedstawia zasoby w projekcie.

public class Resource : IEquatable<resource>

Inheritance

object Resource

Implements

IEquatable

Dziedziczeni członkowie

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

ACWP

Otrzymuje lub ustawia wartość ACWP.

[EntityField]
public double ACWP { get; set; }

Wartość nieruchomości

double

AccrueAt

Otrzymuje lub ustawia wartość AccrueAt.

[EntityField]
public CostAccrualType AccrueAt { get; set; }

Wartość nieruchomości

CostAccrualType

ActiveDirectoryGuid

Otrzymuje lub ustawia wartość ActiveDirectoryGuid.

[EntityField]
public string ActiveDirectoryGuid { get; set; }

Wartość nieruchomości

string

ActualCost

Otrzymuje lub ustawia wartość ActualCost.

[EntityField]
public decimal ActualCost { get; set; }

Wartość nieruchomości

decimal

ActualOvertimeCost

Otrzymuje lub ustawia wartość ActualOvertimeCost.

[EntityField]
public decimal ActualOvertimeCost { get; set; }

Wartość nieruchomości

decimal

ActualOvertimeWork

otrzymuje lub ustawia wartość ActualOvertimeWork.

[EntityField]
public Duration ActualOvertimeWork { get; set; }

Wartość nieruchomości

Duration

ActualOvertimeWorkProtected

Otrzymuje lub ustawia wartość ActualOvertimeWorkProtected.

[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }

Wartość nieruchomości

Duration

ActualWork

Otrzymuje lub ustawia wartość ActualWork.

[EntityField]
public Duration ActualWork { get; set; }

Wartość nieruchomości

Duration

ActualWorkProtected

otrzymuje lub ustawia wartość ActualWorkProtected.

[EntityField]
public Duration ActualWorkProtected { get; set; }

Wartość nieruchomości

Duration

AssignmentOwner

Otrzymuje lub ustawia wartość AssignmentOwner.

[EntityField]
public string AssignmentOwner { get; set; }

Wartość nieruchomości

string

AssignmentOwnerGuid

Otrzymuje lub ustawia wartość AssignmentOwnerGuid.

[EntityField]
public string AssignmentOwnerGuid { get; set; }

Wartość nieruchomości

string

Assignments

Otrzymuje zbiór zadań zasobów dla tego obiektu.

public ResourceAssignmentCollection Assignments { get; }

Wartość nieruchomości

ResourceAssignmentCollection

AvailabilityPeriods

Otrzymuje przykład klasy Aspose.Tasks.AvailabilityPeriodCollection.Zbiór okresów, w których dostępny jest zasób.

public AvailabilityPeriodCollection AvailabilityPeriods { get; }

Wartość nieruchomości

AvailabilityPeriodCollection

AvailableFrom

Otrzymuje lub ustawia wartość dostępną.

[EntityField]
public DateTime AvailableFrom { get; set; }

Wartość nieruchomości

DateTime

AvailableTo

otrzymuje lub ustawia wartość dostępną.

[EntityField]
public DateTime AvailableTo { get; set; }

Wartość nieruchomości

DateTime

BCWP

Otrzymuje lub ustawia wartość BCWP.

[EntityField]
public double BCWP { get; set; }

Wartość nieruchomości

double

BCWS

Otrzymuje lub ustawia wartość BCWS.

[EntityField]
public double BCWS { get; set; }

Wartość nieruchomości

double

Baselines

Otrzymuje przykłady BaselineCollection dla tego obiektu.Wartości bazowe dla zasobów.

public BaselineCollection Baselines { get; }

Wartość nieruchomości

BaselineCollection

BookingType

Otrzymuje lub ustawia wartość BookingType.

[EntityField]
public BookingType BookingType { get; set; }

Wartość nieruchomości

BookingType

BudgetCost

Otrzymuje lub ustala wartość budżetu.

[EntityField]
public decimal BudgetCost { get; set; }

Wartość nieruchomości

decimal

BudgetWork

Otrzymuje lub ustala wartość budżetu.

[EntityField]
public Duration BudgetWork { get; set; }

Wartość nieruchomości

Duration

CV

Otrzymuje lub ustawia wartość CV.

[EntityField]
public double CV { get; set; }

Wartość nieruchomości

double

Calendar

Otrzymuje lub ustawia wartość kalendarza.

[EntityField]
public Calendar Calendar { get; set; }

Wartość nieruchomości

Calendar

CanLevel

Otrzymuje lub ustawia wartość wskazującą, czy CanLevel jest ustawiony, czy nie.

[EntityField]
public NullableBool CanLevel { get; set; }

Wartość nieruchomości

NullableBool

Code

otrzymuje lub ustawia wartość kodu.

[EntityField]
public string Code { get; set; }

Wartość nieruchomości

string

Cost

Otrzymuje lub ustala wartość kosztów.

[EntityField]
public decimal Cost { get; set; }

Wartość nieruchomości

decimal

CostCenter

Otrzymuje lub ustawia wartość CostCenter.

[EntityField]
public string CostCenter { get; set; }

Wartość nieruchomości

string

CostPerUse

Otrzymuje lub ustawia wartość CostPerUse.

[EntityField]
public decimal CostPerUse { get; set; }

Wartość nieruchomości

decimal

CostVariance

Otrzymuje lub ustawia wartość CostVariance.

[EntityField]
public double CostVariance { get; set; }

Wartość nieruchomości

double

Created

Otrzymuje lub ustawia wartość stworzoną.

[EntityField]
public DateTime Created { get; set; }

Wartość nieruchomości

DateTime

adres e-mail

Otrzymuje lub ustawia wartość EMailAddress.

[EntityField]
public string EMailAddress { get; set; }

Wartość nieruchomości

string

ExtendedAttributes

Otrzymuje wartości rozszerzonego atrybutu.

public ExtendedAttributeCollection ExtendedAttributes { get; }

Wartość nieruchomości

ExtendedAttributeCollection

Remarks

Potrzebne są dwa kawałki danych - wskaźnik z powrotem do rozszerzonej tabeli atrybutówktóre są określone albo przez unikalny ID lub ID pola, a także wartośćktóry jest określony albo wartością, albo wskaźnikiem z powrotem do listy wartości.

Finish

Otrzymuje lub ustawia wartość końcową.

[EntityField]
public DateTime Finish { get; set; }

Wartość nieruchomości

DateTime

Group

otrzymuje lub ustanawia wartość grupy.

[EntityField]
public string Group { get; set; }

Wartość nieruchomości

string

Guid

Otrzymuje lub ustawia wartość przewodnika.

[EntityField]
public string Guid { get; set; }

Wartość nieruchomości

string

Hyperlink

otrzymuje lub ustawia tytuł lub tekst wyjaśniający hiperłącza powiązanego z zasobem.

[EntityField]
public string Hyperlink { get; set; }

Wartość nieruchomości

string

HyperlinkAddress

Otrzymuje lub ustawia adres dla hiperłącza powiązanego z zasobem.

[EntityField]
public string HyperlinkAddress { get; set; }

Wartość nieruchomości

string

Remarks

Pełna adresa (Hyperlink Href w programie Microsoft Project) hiperłącza to połączenie HyperlinkAddress i HyperlinkSubAddress.

HyperlinkSubAddress

Otrzymuje lub ustawia określoną lokalizację w dokumencie w hiperłącze powiązanej z zasobem.

[EntityField]
public string HyperlinkSubAddress { get; set; }

Wartość nieruchomości

string

Remarks

Pełna adresa (Hyperlink Href w programie Microsoft Project) hiperłącza to połączenie HyperlinkAddress i HyperlinkSubAddress.

Id

Otrzymuje lub ustawia wartość ID.

[EntityField]
public int Id { get; set; }

Wartość nieruchomości

int

Inactive

Otrzymuje lub ustawia wartość wskazującą, czy Inaktywny jest ustawiony, czy nie.

[EntityField]
public NullableBool Inactive { get; set; }

Wartość nieruchomości

NullableBool

Initials

Otrzymuje lub ustawia wartość Initials.

[EntityField]
public string Initials { get; set; }

Wartość nieruchomości

string

IsBudget

Otrzymuje lub ustawia wartość wskazującą, czy budżet IsBudget jest ustawiony, czy nie.

[EntityField]
public NullableBool IsBudget { get; set; }

Wartość nieruchomości

NullableBool

IsCostResource

Otrzymuje lub ustawia wartość wskazującą, czy IsCostResource jest ustawiony, czy nie.

[EntityField]
public NullableBool IsCostResource { get; set; }

Wartość nieruchomości

NullableBool

IsEnterprise

Otrzymuje lub ustawia wartość wskazującą, czy IsEnterprise jest ustawiony, czy nie.

[EntityField]
public NullableBool IsEnterprise { get; set; }

Wartość nieruchomości

NullableBool

IsGeneric

Otrzymuje lub ustawia wartość wskazującą, czy IsGeneric jest ustawiony, czy nie.

[EntityField]
public NullableBool IsGeneric { get; set; }

Wartość nieruchomości

NullableBool

IsNull

Otrzymuje lub ustawia wartość wskazującą, czy IsNull jest ustawiony, czy nie.

[EntityField]
public NullableBool IsNull { get; set; }

Wartość nieruchomości

NullableBool

IsRoot

Otrzymuje flagę wskazującą, czy zasób jest źródłem korzeniowym.Źródło korzeniowe jest specjalnym zasobem, który ma na celu wsparcie wewnętrznychFormaty MS Project i nie mają być używane bezpośrednio z kodu użytkownika.

public virtual bool IsRoot { get; }

Wartość nieruchomości

bool

IsTeamAssignmentPool

Otrzymuje lub ustawia wartość wskazującą, czy IsTeamAssignmentPool jest ustawiony, czy nie.

[EntityField]
public bool IsTeamAssignmentPool { get; set; }

Wartość nieruchomości

bool

MaterialLabel

Otrzymuje lub ustawia wartość materiału.

[EntityField]
public string MaterialLabel { get; set; }

Wartość nieruchomości

string

MaxUnits

Otrzymuje lub ustawia wartość MaxUnits.

[EntityField]
public double MaxUnits { get; set; }

Wartość nieruchomości

double

Name

otrzymuje lub ustawia wartość nazwy.

[EntityField]
public string Name { get; set; }

Wartość nieruchomości

string

NotesRTF

Otrzymuje lub ustawia wartość NotesRTF.

[EntityField]
public string NotesRTF { get; set; }

Wartość nieruchomości

string

NotesText

Otrzymuje lub ustawia wartość NotesText.

[EntityField]
public string NotesText { get; set; }

Wartość nieruchomości

string

OutlineCode

Otrzymuje obiekt OutlineCodeCollection.Wartość kodu wyjściowego.

public OutlineCodeCollection OutlineCode { get; }

Wartość nieruchomości

OutlineCodeCollection

Remarks

Potrzebne są dwa kawałki danych - wskaźnik do tabeli kodów wyjściowych, któryjest określony przez FieldID, a wartość, która jest określona przezwskaźnik ValueID lub ValueGUID do listy wartości.

Overallocated

Otrzymuje lub ustawia wartość wskazującą, czy Overallocated jest ustawiony, czy nie.

[EntityField]
public NullableBool Overallocated { get; set; }

Wartość nieruchomości

NullableBool

OvertimeCost

Otrzymuje lub ustawia wartość OvertimeCost.

[EntityField]
public decimal OvertimeCost { get; set; }

Wartość nieruchomości

decimal

OvertimeRate

Otrzymuje lub ustawia wartość OvertimeRate.

[EntityField]
public decimal OvertimeRate { get; set; }

Wartość nieruchomości

decimal

OvertimeRateFormat

Otrzymuje lub ustawia wartość OvertimeRateFormat.

[EntityField]
public RateFormatType OvertimeRateFormat { get; set; }

Wartość nieruchomości

RateFormatType

OvertimeWork

Otrzymuje lub ustawia wartość OvertimeWork.

[EntityField]
public Duration OvertimeWork { get; set; }

Wartość nieruchomości

Duration

ParentProject

Otrzymujemy projekt rodzinny dla tego kontenera.

public Project ParentProject { get; }

Wartość nieruchomości

Project

PeakUnits

Otrzymuje lub ustawia wartość PeakUnits.

[EntityField]
public double PeakUnits { get; set; }

Wartość nieruchomości

double

PercentWorkComplete

Otrzymuje lub ustawia wartość PercentWorkComplete.

[EntityField]
public int PercentWorkComplete { get; set; }

Wartość nieruchomości

int

Phonetics

Otrzymuje lub ustawia wartość Phonetics.

[EntityField]
public string Phonetics { get; set; }

Wartość nieruchomości

string

Rates

Otrzymuje przykład klasy Aspose.Tasks.RateCollection dla tego obiektu.Zbiór okresów i stawek związanych z każdym z nich.

public RateCollection Rates { get; }

Wartość nieruchomości

RateCollection

RegularWork

Otrzymuje lub ustawia wartość RegularWork.

[EntityField]
public Duration RegularWork { get; set; }

Wartość nieruchomości

Duration

RemainingCost

Otrzymuje lub ustawia wartość RemainingCost.

[EntityField]
public decimal RemainingCost { get; set; }

Wartość nieruchomości

decimal

RemainingOvertimeCost

Otrzymuje lub ustawia wartość RemainingOvertimeCost.

[EntityField]
public decimal RemainingOvertimeCost { get; set; }

Wartość nieruchomości

decimal

RemainingOvertimeWork

Otrzymuje lub ustawia wartość RemainingOvertimeWork.

[EntityField]
public Duration RemainingOvertimeWork { get; set; }

Wartość nieruchomości

Duration

RemainingWork

Otrzymuje lub ustawia wartość RemainingWork.

[EntityField]
public Duration RemainingWork { get; set; }

Wartość nieruchomości

Duration

SV

Otrzymuje lub ustawia wartość SV.

[EntityField]
public double SV { get; set; }

Wartość nieruchomości

double

StandardRate

Otrzymuje lub ustawia wartość StandardRate.

[EntityField]
public decimal StandardRate { get; set; }

Wartość nieruchomości

decimal

StandardRateFormat

Otrzymuje lub ustawia wartość StandardRateFormat.

[EntityField]
public RateFormatType StandardRateFormat { get; set; }

Wartość nieruchomości

RateFormatType

Start

Otrzymuje lub ustawia wartość Start.

[EntityField]
public DateTime Start { get; set; }

Wartość nieruchomości

DateTime

TimephasedData

Uzyskaj lub ustaw instancję klasy Aspose.Tasks.TimephasedDataCollection dla tego obiektu.

public TimephasedDataCollection TimephasedData { get; set; }

Wartość nieruchomości

TimephasedDataCollection

Remarks

Czytanie jest obsługiwane tylko w formacie XML.

Type

otrzymuje lub ustawia wartość typu.

[EntityField]
public ResourceType Type { get; set; }

Wartość nieruchomości

ResourceType

Uid

Otrzymuje lub ustawia wartość Uid.

[EntityField]
public int Uid { get; set; }

Wartość nieruchomości

int

WindowsUserAccount

Otrzymuje lub ustawia wartość konta WindowsUserAccount.

[EntityField]
public string WindowsUserAccount { get; set; }

Wartość nieruchomości

string

Work

otrzymuje lub ustanawia wartość pracy.

[EntityField]
public Duration Work { get; set; }

Wartość nieruchomości

Duration

WorkVariance

Otrzymuje lub ustawia wartość WorkVariance.

[EntityField]
public double WorkVariance { get; set; }

Wartość nieruchomości

double

Workgroup

otrzymuje lub ustala wartość grupy roboczej.

[EntityField]
public WorkGroupType Workgroup { get; set; }

Wartość nieruchomości

WorkGroupType

Methods

Delete()

Usunąć zasób i jego zadania z projektu.

public void Delete()

Equals(Resource)

Powraca wartość wskazującą, czy ta instancja jest równa określonej instancji klasy Aspose.Tasks.Resource.

public bool Equals(Resource other)

Parameters

other Resource

Przykład określony w klasie Aspose.Tasks.Resource do porównania z tą instancją.

Returns

bool

True w przypadku, gdy określona instancja Aspose.Tasks.Klasy zasobów ma taką samą wartość Uid jak ta; w przeciwnym razie, fałszywe.

Equals(Obiekt)

Powraca wartość wskazującą, czy ta instancja jest równa określonemu przedmiotowi.

public override bool Equals(object obj)

Parameters

obj object

Celem jest porównanie z tą instancją.

Returns

bool

True jeżeli określony obiekt jest zasobem, który ma taką samą wartość Uid jak ta instancja; w przeciwnym razie, fałszywe.

Zdobądź>(Kluczowe, rsckey=» » »)

Zwraca wartość, do której nieruchomość jest mapowana w tym pojemniku.

public T Get<t>(Key<t, rsckey=""> key)

Parameters

key Key <t, rsckey ="">

określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.

Returns

T

wartość, do której nieruchomość jest mapowana w tym pojemniku.

Rodzaj parametrów

T

Rodzaj mapowanej wartości.

GetHashCode()

Powraca wartość kodu hash na przykład klasy Aspose.Tasks.Resource.

public override int GetHashCode()

Returns

int

zwraca wartość kodu hash dla tego obiektu.

GetTimephasedData(DataType, DataType, DataType)

Powraca przykład klasy Aspose.Tasks.TimephasedDataCollection dla tego obiektu z Aspose.Tasks.Resource.TimephasedData wartości w danym terminie rozpoczęcia i zakończenia określonego Aspose.Tasks.TimephasedDataType.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)

Parameters

start DateTime

Data rozpoczęcia daty fazy czasu.

end DateTime

Data zakończenia daty fazy czasu.

timephasedType TimephasedDataType

Rodzaj danych fazy czasu (Aspose.Tasks.TimephasedDataType).

Returns

TimephasedDataCollection

Zestaw danych Aspose.Tasks.Resource.TimephasedData.

GetTimephasedData(Data czasu, data czasu)

Powrót Aspose.Tasks.TimephasedDataCollection dla tego obiektu z Aspose.Tasks.Resource.TimephasedDatavalues w danym terminie rozpoczęcia i zakończenia.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)

Parameters

start DateTime

Data rozpoczęcia daty fazy czasu.

end DateTime

Data zakończenia daty fazy czasu.

Returns

TimephasedDataCollection

Zestaw danych Aspose.Tasks.TimephasedData.

Zestaw T>(Kluczowe, rsckey=» » » T)

Pokaż określony obiekt do określonej wartości w tym pojemniku.

public void Set<t>(Key<t, rsckey=""> key, T val)

Parameters

key Key <t, rsckey ="">

określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.

val T

I wartość .

Rodzaj parametrów

T

Rodzaj mapowanej wartości.

Set(Kluczowy<datetime, rsckey=„Data czasu”)

Pokaż określony obiekt do określonej wartości w tym pojemniku.

public void Set(Key<datetime, rsckey=""> key, DateTime val)

Parameters

key Key • < DateTime , RscKey >

określony klucz nieruchomości. Aspose.Tasks.Rsc, aby uzyskać klucz nieruchomości.

val DateTime

I wartość .

ToString()

Powróci krótka łańcuchowa reprezentacja instancji klasy Aspose.Tasks.Resource.Dokładne szczegóły prezentacji nie są określone i podlegają zmianie.

public override string ToString()

Returns

string

Krótka strona, która reprezentuje obiekt zasobów.</datetime,></datetime,></t,></t,></t,></t,></t,></t,>

 Polski