Class TimephasedData
ชื่อพื้นที่: Aspose.Tasks การประกอบ: Aspose.Tasks.dll (25.4.0)
แสดงให้เห็นถึงข้อมูลขั้นตอนเวลา
[ClassInterface(ClassInterfaceType.AutoDual)]
public class TimephasedData
Inheritance
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TimephasedData()
เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Tasks.TimephasedData
public TimephasedData()
Properties
Finish
ได้รับหรือตั้งค่าวันที่สิ้นสุดของระยะเวลาข้อมูลระยะเวลา
public DateTime Finish { get; set; }
คุณสมบัติมูลค่า
Start
ได้รับหรือตั้งค่าวันที่เริ่มต้นของระยะเวลาข้อมูลระยะเวลา
public DateTime Start { get; set; }
คุณสมบัติมูลค่า
TimephasedDataType
ได้รับหรือตั้งค่าประเภทของข้อมูลขั้นตอนเวลา
public TimephasedDataType TimephasedDataType { get; set; }
คุณสมบัติมูลค่า
Remarks
Aspose.Tasks.TimephasedData.Value คุณสมบัติจะถูกทําความสะอาดถ้าไม่เหมาะสมสําหรับประเภทที่ระบุไว้ที่นี่
Uid
รับหรือตั้งค่าตัวระบุเอกลักษณ์ของข้อมูลขั้นตอนเวลา
public int Uid { get; set; }
คุณสมบัติมูลค่า
Unit
รับหรือตั้งค่าหน่วยเวลาของระยะเวลาข้อมูลระยะเวลา
public TimeUnitType Unit { get; set; }
คุณสมบัติมูลค่า
Value
ได้รับหรือตั้งค่าค่าต่อหน่วยเวลาสําหรับระยะเวลาข้อมูลขั้นตอนเวลา
public string Value { get; set; }
คุณสมบัติมูลค่า
Exceptions
เมื่อค่าไม่ถูกต้องสําหรับ Aspose.Tasks.TimephasedData.TimephasedDataType หรือมีค่าเชิงลบ
ValueToCost
ได้รับ System.Double instance ซึ่งแสดงค่า string ของวัตถุนี้
public double ValueToCost { get; set; }
คุณสมบัติมูลค่า
ValueToDuration
รับตัวอย่าง System.TimeSpan ซึ่งแสดงค่า string ของวัตถุนี้
public TimeSpan ValueToDuration { get; }
คุณสมบัติมูลค่า
ValueToUnits
รับตัวอย่าง System.Double ซึ่งหมายถึงมูลค่าเครนของวัตถุนี้สําหรับข้อมูลขั้นตอนเวลาตามหน่วย
public double ValueToUnits { get; }
คุณสมบัติมูลค่า
Methods
CreateCostTimephased(int, DateTime, DateTime, คู่, TimeUnitType, TimephasedDataType)
สร้างและเริ่มต้นตัวอย่างใหม่ของ Aspose.Tasks.Timephased ประเภทข้อมูลสําหรับข้อมูลขั้นตอนเวลาตามค่าใช้จ่าย
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimeUnitType timeUnit, TimephasedDataType type)
Parameters
uid
int
UID ของงาน
start
DateTime
เวลาเริ่มต้น
finish
DateTime
วันที่สิ้นสุด
value
double
ราคาค่า
timeUnit
TimeUnitType
ประเภทหน่วยเวลา
type
TimephasedDataType
ประเภทข้อมูลระยะเวลา
Returns
ตัวอย่างของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาตามค่าใช้จ่าย
Exceptions
หากค่าใช้จ่ายเชิงลบจะระบุไว้
CreateCostTimephased(int, DateTime, DateTime, คู่, TimephasedDataType)
สร้างและเริ่มต้นตัวอย่างใหม่ของ Aspose.Tasks.Timephased ประเภทข้อมูลสําหรับข้อมูลขั้นตอนเวลาตามค่าใช้จ่าย
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimephasedDataType type)
Parameters
uid
int
UID ของงาน
start
DateTime
เวลาเริ่มต้น
finish
DateTime
วันที่สิ้นสุด
value
double
ราคาค่า
type
TimephasedDataType
ประเภทข้อมูลระยะเวลา
Returns
ตัวอย่างของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาตามค่าใช้จ่าย
Exceptions
หากค่าใช้จ่ายเชิงลบจะระบุไว้
CreateUnitTimephased(int, DateTime, DateTime, คู่, TimephasedDataType)
สร้างและเริ่มต้นตัวอย่างใหม่ของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาตามหน่วยของคําสั่งของทรัพยากรวัสดุ
public static TimephasedData CreateUnitTimephased(int uid, DateTime start, DateTime finish, double units, TimephasedDataType type)
Parameters
uid
int
UID ของงาน
start
DateTime
เวลาเริ่มต้น
finish
DateTime
วันที่สิ้นสุด
units
double
จํานวนหน่วย
type
TimephasedDataType
ประเภทข้อมูลระยะเวลา
Returns
ตัวอย่างของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาตามค่าใช้จ่าย
Exceptions
ถ้าจํานวนของหน่วยเชิงลบจะระบุ
CreateWorkTimephased(int, DateTime, DateTime, TimeSpan, TimeUnitType, TimephasedDataType)
สร้างและเริ่มต้นตัวอย่างใหม่ของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาตามงาน
public static TimephasedData CreateWorkTimephased(int uid, DateTime start, DateTime finish, TimeSpan value, TimeUnitType timeUnit, TimephasedDataType type)
Parameters
uid
int
UID ของงาน
start
DateTime
เวลาเริ่มต้น
finish
DateTime
วันที่สิ้นสุด
value
TimeSpan
ค่าใช้จ่าย Timespan
timeUnit
TimeUnitType
ประเภทหน่วยเวลา
type
TimephasedDataType
ประเภทข้อมูลระยะเวลา
Returns
ตัวอย่างของคลาสข้อมูล Aspose.Tasks.Timephased สําหรับข้อมูลขั้นตอนเวลาที่ใช้ในการทํางาน
Exceptions
ถ้าค่าการทํางานเชิงลบจะระบุ