Class Resource

Class Resource

Tên không gian: Aspose.Tasks Tổng hợp: Aspose.Tasks.dll (25.4.0)

đại diện cho một nguồn lực trong một dự án.

public class Resource : IEquatable<resource>

Inheritance

object Resource

Implements

IEquatable

Thành viên thừa kế

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

Properties

ACWP

Nhận hoặc đặt giá trị của ACWP.

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

Giá trị bất động sản

double

AccrueAt

Nhận hoặc đặt giá trị của AccrueAt.

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

Giá trị bất động sản

CostAccrualType

ActiveDirectoryGuid

Nhận hoặc đặt giá trị của ActiveDirectoryGuid.

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

Giá trị bất động sản

string

ActualCost

Nhận hoặc đặt giá trị của ActualCost.

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

Giá trị bất động sản

decimal

ActualOvertimeCost

Nhận hoặc đặt giá trị của ActualOvertimeCost.

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

Giá trị bất động sản

decimal

ActualOvertimeWork

Nhận hoặc đặt giá trị của ActualOvertimeWork.

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

Giá trị bất động sản

Duration

ActualOvertimeWorkProtected

Nhận hoặc đặt giá trị của ActualOvertimeWorkProtected.

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

Giá trị bất động sản

Duration

ActualWork

Nhận hoặc đặt giá trị của ActualWork.

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

Giá trị bất động sản

Duration

ActualWorkProtected

Nhận hoặc đặt giá trị của ActualWorkProtected.

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

Giá trị bất động sản

Duration

AssignmentOwner

Nhận hoặc đặt giá trị của AssignmentOwner.

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

Giá trị bất động sản

string

AssignmentOwnerGuid

Nhận hoặc đặt giá trị của AssignmentOwnerGuid.

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

Giá trị bất động sản

string

Assignments

Nhận một bộ sưu tập các nhiệm vụ tài nguyên cho đối tượng này.

public ResourceAssignmentCollection Assignments { get; }

Giá trị bất động sản

ResourceAssignmentCollection

AvailabilityPeriods

Nhận một ví dụ của lớp Aspose.Tasks.AvailabilityPeriodCollection.Thu thập các khoảng thời gian trong đó một nguồn lực có sẵn.

public AvailabilityPeriodCollection AvailabilityPeriods { get; }

Giá trị bất động sản

AvailabilityPeriodCollection

AvailableFrom

Nhận hoặc đặt giá trị của AvailableFrom.

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

Giá trị bất động sản

DateTime

AvailableTo

Nhận hoặc đặt giá trị của AvailableTo.

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

Giá trị bất động sản

DateTime

BCWP

Nhận hoặc đặt giá trị của BCWP.

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

Giá trị bất động sản

double

BCWS

Nhận hoặc đặt giá trị của BCWS.

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

Giá trị bất động sản

double

Baselines

Nhận một trường hợp BaselineCollection cho đối tượng này.Các giá trị cơ bản cho một nguồn lực.

public BaselineCollection Baselines { get; }

Giá trị bất động sản

BaselineCollection

BookingType

Nhận hoặc đặt giá trị của BookingType.

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

Giá trị bất động sản

BookingType

BudgetCost

Nhận hoặc đặt giá trị của BudgetCost.

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

Giá trị bất động sản

decimal

BudgetWork

Nhận hoặc đặt giá trị của BudgetWork.

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

Giá trị bất động sản

Duration

CV

Nhận hoặc đặt giá trị của CV.

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

Giá trị bất động sản

double

Calendar

Nhận hoặc đặt một giá trị của Lịch.

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

Giá trị bất động sản

Calendar

CanLevel

Nhận hoặc đặt một giá trị cho biết CanLevel được thiết lập hay không.

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

Giá trị bất động sản

NullableBool

Code

Nhận hoặc đặt giá trị của Mã.

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

Giá trị bất động sản

string

Cost

Nhận hoặc đặt giá trị của Chi phí.

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

Giá trị bất động sản

decimal

CostCenter

Nhận hoặc đặt giá trị của CostCenter.

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

Giá trị bất động sản

string

CostPerUse

Nhận hoặc đặt giá trị của CostPerUse.

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

Giá trị bất động sản

decimal

CostVariance

Nhận hoặc đặt giá trị của CostVariance.

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

Giá trị bất động sản

double

Created

Nhận hoặc đặt một giá trị của được tạo ra.

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

Giá trị bất động sản

DateTime

Địa chỉ email

Nhận hoặc đặt giá trị của EmailAddress.

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

Giá trị bất động sản

string

ExtendedAttributes

Nhận được giá trị của một thuộc tính mở rộng.

public ExtendedAttributeCollection ExtendedAttributes { get; }

Giá trị bất động sản

ExtendedAttributeCollection

Remarks

Hai mảnh dữ liệu là cần thiết - một dấu hiệu trở lại bảng thuộc tính mở rộngđược chỉ định bằng ID duy nhất hoặc ID Field, và giá trịđược chỉ định bằng giá trị, hoặc một dấu hiệu trở lại danh sách giá trị.

Finish

Nhận hoặc đặt giá trị của Finish.

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

Giá trị bất động sản

DateTime

Group

Nhận hoặc đặt một giá trị của nhóm.

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

Giá trị bất động sản

string

Guid

Nhận hoặc đặt một giá trị của Hướng dẫn.

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

Giá trị bất động sản

string

Hyperlink

Nhận hoặc đặt tiêu đề hoặc văn bản giải thích của một hyperlink liên quan đến một tài nguyên.

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

Giá trị bất động sản

string

HyperlinkAddress

Nhận hoặc đặt địa chỉ cho một hyperlink liên quan đến một tài nguyên.

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

Giá trị bất động sản

string

Remarks

Địa chỉ đầy đủ (Hyperlink Href trong Microsoft Project) của hyperlink là sự kết hợp của HyperlinkAddress và HyperlinkSubAddress.

HyperlinkSubAddress

Nhận hoặc đặt vị trí cụ thể trong một tài liệu trong một hyperlink liên quan đến một tài nguyên.

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

Giá trị bất động sản

string

Remarks

Địa chỉ đầy đủ (Hyperlink Href trong Microsoft Project) của hyperlink là sự kết hợp của HyperlinkAddress và HyperlinkSubAddress.

Id

Nhận hoặc đặt một giá trị ID.

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

Giá trị bất động sản

int

Inactive

Nhận hoặc đặt một giá trị chỉ ra liệu Inactive được đặt hay không.

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

Giá trị bất động sản

NullableBool

Initials

Nhận hoặc đặt giá trị của Initials.

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

Giá trị bất động sản

string

IsBudget

Nhận hoặc đặt một giá trị cho biết IsBudget được thiết lập hay không.

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

Giá trị bất động sản

NullableBool

IsCostResource

Nhận hoặc đặt một giá trị cho biết IsCostResource được thiết lập hay không.

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

Giá trị bất động sản

NullableBool

IsEnterprise

Nhận hoặc đặt một giá trị cho thấy IsEnterprise được thiết lập hay không.

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

Giá trị bất động sản

NullableBool

IsGeneric

Nhận hoặc đặt một giá trị cho thấy IsGeneric được đặt hay không.

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

Giá trị bất động sản

NullableBool

IsNull

Nhận hoặc đặt một giá trị cho thấy IsNull được đặt hay không.

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

Giá trị bất động sản

NullableBool

IsRoot

Nó nhận được lá cờ cho thấy liệu tài nguyên là một nguồn gốc hay không.Nguồn gốc là một nguồn tài nguyên đặc biệt được thiết kế để hỗ trợ nội bộ củaCác định dạng của MS Project và không được sử dụng trực tiếp từ mã của người dùng.

public virtual bool IsRoot { get; }

Giá trị bất động sản

bool

IsTeamAssignmentPool

Nhận hoặc đặt một giá trị cho biết IsTeamAssignmentPool được thiết lập hay không.

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

Giá trị bất động sản

bool

MaterialLabel

Nhận hoặc đặt một giá trị của MaterialLabel.

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

Giá trị bất động sản

string

MaxUnits

Nhận hoặc đặt giá trị của MaxUnits.

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

Giá trị bất động sản

double

Name

Nhận hoặc đặt một giá trị của Tên.

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

Giá trị bất động sản

string

Thông tin RTF

Nhận hoặc đặt giá trị của NotesRTF.

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

Giá trị bất động sản

string

NotesText

Nhận hoặc đặt giá trị của NotesText.

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

Giá trị bất động sản

string

OutlineCode

Nhận một OutlineCodeCollection đối tượng.Giá trị của một mã outline.

public OutlineCodeCollection OutlineCode { get; }

Giá trị bất động sản

OutlineCodeCollection

Remarks

Hai mảnh dữ liệu là cần thiết - một dấu hiệu cho bảng mã nguồn màđược xác định bởi FieldID, và giá trị được xác định bởiđánh dấu ValueID hoặc ValueGUID vào danh sách giá trị.

Overallocated

Nhận hoặc đặt một giá trị cho thấy liệu Overallocated được đặt hay không.

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

Giá trị bất động sản

NullableBool

OvertimeCost

Nhận hoặc đặt giá trị của OvertimeCost.

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

Giá trị bất động sản

decimal

OvertimeRate

Nhận hoặc đặt giá trị của OvertimeRate.

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

Giá trị bất động sản

decimal

OvertimeRateFormat

Nhận hoặc đặt một giá trị của OvertimeRateFormat.

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

Giá trị bất động sản

RateFormatType

OvertimeWork

Nhận hoặc đặt giá trị của OvertimeWork.

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

Giá trị bất động sản

Duration

ParentProject

Nhận dự án mẹ cho container này.

public Project ParentProject { get; }

Giá trị bất động sản

Project

PeakUnits

Nhận hoặc đặt giá trị của PeakUnits.

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

Giá trị bất động sản

double

PercentWorkComplete

Nhận hoặc đặt giá trị của PercentWorkComplete.

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

Giá trị bất động sản

int

Phonetics

Nhận hoặc đặt một giá trị của Phonetics.

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

Giá trị bất động sản

string

Rates

Nhận một ví dụ của lớp Aspose.Tasks.RateCollection cho đối tượng này.Thu thập các khoảng thời gian và tỷ lệ liên quan đến mỗi.

public RateCollection Rates { get; }

Giá trị bất động sản

RateCollection

RegularWork

Nhận hoặc đặt một giá trị của RegularWork.

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

Giá trị bất động sản

Duration

RemainingCost

Nhận hoặc đặt giá trị của RemainingCost.

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

Giá trị bất động sản

decimal

RemainingOvertimeCost

Nhận hoặc đặt giá trị của RemainingOvertimeCost.

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

Giá trị bất động sản

decimal

RemainingOvertimeWork

Nhận hoặc đặt giá trị của RemainingOvertimeWork.

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

Giá trị bất động sản

Duration

RemainingWork

Nhận hoặc đặt giá trị của RemainingWork.

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

Giá trị bất động sản

Duration

SV

Nhận hoặc đặt giá trị của SV.

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

Giá trị bất động sản

double

StandardRate

Nhận hoặc đặt giá trị của StandardRate.

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

Giá trị bất động sản

decimal

StandardRateFormat

Nhận hoặc đặt giá trị của StandardRateFormat.

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

Giá trị bất động sản

RateFormatType

Start

Nhận hoặc đặt giá trị Start.

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

Giá trị bất động sản

DateTime

TimephasedData

Nhận hoặc đặt một trường hợp của lớp Aspose.Tasks.TimephasedDataCollection cho đối tượng này.

public TimephasedDataCollection TimephasedData { get; set; }

Giá trị bất động sản

TimephasedDataCollection

Remarks

Đọc được hỗ trợ chỉ cho định dạng XML.

Type

Nhận hoặc đặt một giá trị của Type.

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

Giá trị bất động sản

ResourceType

Uid

Nhận hoặc đặt một giá trị của Uid.

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

Giá trị bất động sản

int

WindowsUserAccount

Nhận hoặc đặt giá trị của WindowsUserAccount.

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

Giá trị bất động sản

string

Work

Nhận hoặc đặt giá trị của công việc.

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

Giá trị bất động sản

Duration

WorkVariance

Nhận hoặc đặt giá trị của WorkVariance.

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

Giá trị bất động sản

double

Workgroup

Nhận hoặc đặt một giá trị của nhóm làm việc.

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

Giá trị bất động sản

WorkGroupType

Methods

Delete()

Xóa một tài nguyên và các nhiệm vụ của nó từ dự án.

public void Delete()

Equals(Resource)

Quay lại một giá trị cho thấy liệu trường hợp này có bằng một trường hợp cụ thể của lớp Aspose.Tasks.Resource hay không.

public bool Equals(Resource other)

Parameters

other Resource

Ví dụ cụ thể của lớp Aspose.Tasks.Resource để so sánh với ví dụ này.

Returns

bool

True nếu mẫu cụ thể của lớp Aspose.Tasks.Resource có giá trị Uid tương tự như mẫu này; nếu không, giả.

Equals(đối tượng)

Quay lại một giá trị cho thấy liệu trường hợp này có bằng đối tượng cụ thể hay không.

public override bool Equals(object obj)

Parameters

obj object

Đối tượng để so sánh với trường hợp này.

Returns

bool

True nếu đối tượng được chỉ định là một Tài nguyên có giá trị Uid tương tự như ví dụ này; nếu không, giả.

Đặt T>(Key<t, rsckey=» » »)

Quay lại giá trị mà tài sản được mapped trong container này.

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

Parameters

key Key <t, rsckey ="">

Chìa khóa tài sản được chỉ định. Aspose.Tasks.Rsc để có được chìa khóa tài sản.

Returns

T

giá trị mà tài sản được mapped trong container này.

Loại Parameters

T

Loại của giá trị bản đồ.

GetHashCode()

Quay lại giá trị mã hash cho ví dụ của lớp Aspose.Tasks.Resource.

public override int GetHashCode()

Returns

int

trả lại giá trị mã hash cho đối tượng này.

GetTimephasedData(Thời gian, thời gian, thời gian, thời gian)

Quay lại một ví dụ của lớp Aspose.Tasks.TimephasedDataCollection cho đối tượng này với Aspose.Tasks.Resource.TimephasedData giá trị trong ngày bắt đầu và kết thúc cụ thể của Aspose.Tasks.TimephasedDataType.

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

Parameters

start DateTime

Ngày bắt đầu cho dữ liệu giai đoạn thời gian.

end DateTime

Ngày kết thúc cho dữ liệu giai đoạn thời gian.

timephasedType TimephasedDataType

Loại dữ liệu giai đoạn thời gian (Aspose.Tasks.TimephasedDataType).

Returns

TimephasedDataCollection

Danh sách Aspose.Tasks.Resource.TimephasedData.

GetTimephasedData(Thời gian, DateTime)

Trả về Aspose.Tasks.TimephasedDataCollection cho đối tượng này với Aspose.Tasks.Resource.TimephasedDatavalues trong các ngày bắt đầu và kết thúc nhất định.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)

Parameters

start DateTime

Ngày bắt đầu cho dữ liệu giai đoạn thời gian.

end DateTime

Ngày kết thúc cho dữ liệu giai đoạn thời gian.

Returns

TimephasedDataCollection

Danh sách Aspose.Tasks.TimephasedData.

Đặt t>(Key<t, rsckey=» » T)

Bản đồ tài sản cụ thể đến giá trị cụ thể trong container này.

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

Parameters

key Key <t, rsckey ="">

Chìa khóa tài sản được chỉ định. Aspose.Tasks.Rsc để có được chìa khóa tài sản.

val T

giá trị .

Loại Parameters

T

Loại của giá trị bản đồ.

Set(Khóa<datetime, rsckey=» Thời gian hẹn)

Bản đồ tài sản cụ thể đến giá trị cụ thể trong container này.

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

Parameters

key Key < DateTime , RscKey >

Chìa khóa tài sản được chỉ định. Aspose.Tasks.Rsc để có được chìa khóa tài sản.

val DateTime

giá trị .

ToString()

Trở lại đại diện dòng ngắn của ví dụ của lớp Aspose.Tasks.Resource.Các chi tiết chính xác của đại diện không được xác định và có thể thay đổi.

public override string ToString()

Returns

string

Sợi ngắn đại diện cho tài nguyên đối tượng.</datetime,></datetime,></t,></t,></t,></t,></t,></t,>

 Tiếng Việt