Inheritance: IfcTimeOrRatioSelect
Esempio n. 1
0
		internal IfcResourceTime(DatabaseIfc m, string name, IfcDataOriginEnum orig, string userOrigin, IfcDuration schedWork, double schedUsage, DateTime schedStart,
			DateTime schedFinish, string schedContour, IfcDuration levelingDelay, bool isOverAllocated, DateTime statusTime, IfcDuration actualWork, double actualUsage,
			DateTime actualStart, DateTime actualFinish, IfcDuration remainingWork, double remainingUsage, double fractionComplete)
			: base(m, name, orig, userOrigin)
		{
			if (schedWork != null)
				mScheduleWork = schedWork.ToString();
			mScheduleUsage = schedUsage;
			if (schedStart != DateTime.MinValue)
				mScheduleStart = IfcDateTime.Convert(schedStart);
			if (schedFinish != DateTime.MinValue)
				mScheduleFinish = IfcDateTime.Convert(schedFinish);
			if (!string.IsNullOrEmpty(schedContour))
				mScheduleContour = schedContour.Replace("'", "");
			if (levelingDelay != null)
				mLevelingDelay = levelingDelay.ToString();
			mIsOverAllocated = isOverAllocated;
			if (statusTime != DateTime.MinValue)
				mStatusTime = IfcDateTime.Convert(statusTime);
			if (actualWork != null)
				mActualWork = actualWork.ToString();
			mActualUsage = actualUsage;
			if (actualStart != DateTime.MinValue)
				mActualStart = IfcDateTime.Convert(actualStart);
			if (actualFinish != DateTime.MinValue)
				mActualFinish = IfcDateTime.Convert(actualFinish);
			if (remainingWork != null)
				mRemainingWork = remainingWork.ToString();
			mRemainingUsage = remainingUsage;
			mCompletion = fractionComplete;
		}
Esempio n. 2
0
		internal IfcTaskTime(DatabaseIfc m, string name, IfcDataOriginEnum orig, string userOrigin, IfcTaskDurationEnum durationtype, IfcDuration schedDuration, DateTime schedStart, DateTime schedFinish,
			DateTime earlyStart, DateTime earlyFinish, DateTime lateStart, DateTime lateFinish, IfcDuration freeFloat, IfcDuration totalFloat, bool isCritical, IfcDuration actualDuration, DateTime actualStart,
			DateTime actualFinish, IfcDuration remainingTime, double fractionComplete)
			: base(m, name, orig, userOrigin)
		{
			mDurationType = durationtype;
			if (schedDuration != null)
				mScheduleDuration = schedDuration.ToString();
			if (schedStart != DateTime.MinValue)
				mScheduleStart = IfcDateTime.Convert(schedStart);
			if (schedFinish != DateTime.MinValue)
				mScheduleFinish = IfcDateTime.Convert(schedFinish);
			if (earlyStart != DateTime.MinValue)
				mEarlyStart = IfcDateTime.Convert(earlyStart);
			if (earlyFinish != DateTime.MinValue)
				mEarlyFinish = IfcDateTime.Convert(earlyFinish);
			if (lateStart != DateTime.MinValue)
				mLateStart = IfcDateTime.Convert(lateStart);
			if (lateFinish != DateTime.MinValue)
				mLateFinish = IfcDateTime.Convert(lateFinish);
			if (freeFloat != null)
				mFreeFloat = freeFloat.ToString();
			if (totalFloat != null)
				mTotalFloat = totalFloat.ToString();
			mIsCritical = isCritical;
			if (actualDuration != null)
				mActualDuration = actualDuration.ToString();
			if (actualStart != DateTime.MinValue)
				mActualStart = IfcDateTime.Convert(actualStart);
			if (actualFinish != DateTime.MinValue)
				mActualFinish = IfcDateTime.Convert(actualFinish);
			if (remainingTime != null)
				mRemainingTime = remainingTime.ToString();
			mCompletion = fractionComplete;
		}
Esempio n. 3
0
		public static string Convert(IfcDuration d) { return (d == null ? "$" : d.ToString()); }