Class TimephasedData
Nazwa przestrzeń: Aspose.Tasks Zgromadzenie: Aspose.Tasks.dll (25.5.0)
Znajdują się one w fazie czasu.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class TimephasedDataInheritance
Dziedziczeni członkowie
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TimephasedData()
Inicjalizuje nową instancję klasy Aspose.Tasks.TimephasedData.
public TimephasedData()Properties
Finish
Otrzymuje lub ustawia datę zakończenia okresu danych fazy czasu.
public DateTime Finish { get; set; }Wartość nieruchomości
Start
Otrzymuje lub ustawia datę rozpoczęcia okresu danych fazy czasu.
public DateTime Start { get; set; }Wartość nieruchomości
TimephasedDataType
Otrzymuje lub ustawia typ danych fazy czasu.
public TimephasedDataType TimephasedDataType { get; set; }Wartość nieruchomości
Remarks
Właściwość Aspose.Tasks.TimephasedData.Value zostanie usunięta, jeśli nie nadaje się do typu, określonego tutaj.
Uid
otrzymuje lub ustawia unikalny identyfikator danych fazy czasu
public int Uid { get; set; }Wartość nieruchomości
Unit
Otrzymuje lub ustawia jednostkę czasu okresu danych fazy czasu.
public TimeUnitType Unit { get; set; }Wartość nieruchomości
Value
Otrzymuje lub ustawia wartość na jednostkę czasu na czas fazowy okres danych.
public string Value { get; set; }Wartość nieruchomości
Exceptions
W przypadku gdy wartość jest nieprawidłowa dla określonego Aspose.Tasks.TimephasedData.TimephasedDataType lub mają wartość negatywną.
ValueToCost
Otrzymuje System.Double instancję, która reprezentuje wartość strumienia tego obiektu.
public double ValueToCost { get; set; }Wartość nieruchomości
ValueToDuration
Otrzymuje instancję System.TimeSpan, która reprezentuje wartość łańcucha tego obiektu.
public TimeSpan ValueToDuration { get; }Wartość nieruchomości
ValueToUnits
Otrzymuje System.Dwukrotne przykłady, które reprezentują wartość łańcucha tego obiektu dla danych fazy czasu opartych na jednostkach.
public double ValueToUnits { get; }Wartość nieruchomości
Methods
CreateCostTimephased(int, DateTime, DateTime, podwójne, TimeUnitType, TimephasedDataType)
Tworzenie i inicjalizacja nowej instancji klasy Aspose.Tasks.TimephasedData dla opartych na kosztach danych fazy czasu.
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimeUnitType timeUnit, TimephasedDataType type)Parameters
uid int
UID z zadania.
start DateTime
Czas rozpoczęcia daty.
finish DateTime
Zakończenie terminu.
value double
Wartość kosztów .
timeUnit TimeUnitType
Typ jednostki czasu.
type TimephasedDataType
Typ danych czasowych.
Returns
Przykład klasy Aspose.Tasks.TimephasedData dla danych fazowych opartych na kosztach.
Exceptions
Jeśli określono wartość kosztów negatywnych.
CreateCostTimephased(int, DateTime, DateTime, podwójne, TimephasedDataType)
Tworzenie i inicjalizacja nowej instancji klasy Aspose.Tasks.TimephasedData dla opartych na kosztach danych fazy czasu.
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimephasedDataType type)Parameters
uid int
UID z zadania.
start DateTime
Czas rozpoczęcia daty.
finish DateTime
Zakończenie terminu.
value double
Wartość kosztów .
type TimephasedDataType
Typ danych czasowych.
Returns
Przykład klasy Aspose.Tasks.TimephasedData dla danych fazowych opartych na kosztach.
Exceptions
Jeśli określono wartość kosztów negatywnych.
CreateUnitTimephased(int, DateTime, DateTime, podwójne, TimephasedDataType)
Tworzy i inicjalizuje nową instancję klasy Aspose.Tasks.TimephasedData dla jednostek opartych na danych fazowych czasu przyznania zasobów materialnych.
public static TimephasedData CreateUnitTimephased(int uid, DateTime start, DateTime finish, double units, TimephasedDataType type)Parameters
uid int
UID z zadania.
start DateTime
Zacznij od daty.
finish DateTime
Zakończenie terminu.
units double
Ilość jednostek.
type TimephasedDataType
Typ danych czasowych.
Returns
Przykład klasy Aspose.Tasks.TimephasedData dla danych fazowych opartych na kosztach.
Exceptions
Jeśli określono negatywną liczbę jednostek.
CreateWorkTimephased(int, DateTime, DateTime, TimeSpan, TimeUnitType, TimephasedDataType)
Tworzenie i inicjalizacja nowej instancji klasy Aspose.Tasks.TimephasedData dla danych fazy czasu opartych na pracy.
public static TimephasedData CreateWorkTimephased(int uid, DateTime start, DateTime finish, TimeSpan value, TimeUnitType timeUnit, TimephasedDataType type)Parameters
uid int
UID z zadania.
start DateTime
Czas rozpoczęcia daty.
finish DateTime
Zakończenie terminu.
value TimeSpan
Wartość Timespan.
timeUnit TimeUnitType
Typ jednostki czasu.
type TimephasedDataType
Typ danych czasowych.
Returns
Przykład klasy Aspose.Tasks.TimephasedData dla danych fazowych opartych na czasie pracy.
Exceptions
Jeśli określono negatywną wartość pracy.