[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Sheets.GanttSheet

Namespace: GanttSheet

Spread.Sheets.GanttSheet

Table of contents

Enumerations

Classes

Type aliases

Type aliases

Duration

Ƭ Duration: Object

表示调度中的持续时间。要创建有效的持续时间,请调用project.parseDuration方法。

property value - 表示持续时间的单位值。

property unit - 表示值的单位。如果未指定,将使用{@link GC.Spread.Sheets.GanttSheet.CalendarSettings}中的默认单位。

property time - 表示实际的持续时间(以毫秒为单位)。

Type declaration

Name Type
time? number
unit? DurationUnit
value? number

DurationUnit

Ƭ DurationUnit: "Month" | "Week" | "Day" | "Hour" | "Minute"

description 表示持续时间的单位。


GanttGridline

Ƭ GanttGridline: Object

表示如何在甘特图上绘制网格线。

property lineType - 线条的类型。

property lineColor - 线条的颜色。

Type declaration

Name Type
lineColor ColorString
lineType GanttGridlineType

GanttGridlineInterval

Ƭ GanttGridlineInterval: Object

表示如何在甘特图上绘制带间隔的网格线。

property lineType - 普通线条的类型。

property lineColor - 普通线条的颜色。

property interval - 间隔计数。间隔值的倍数处的线条将使用intervalType和intervalColor。

property intervalLineType - 间隔线条的类型。

property intervalLineColor - 间隔线条的颜色。

Type declaration

Name Type
interval? number
intervalLineColor? ColorString
intervalLineType? GanttGridlineType
lineColor ColorString
lineType GanttGridlineType

GridStyle

Ƭ GridStyle: Object

表示任务网格的样式。

property font - 表示文本的字体。

property color - 表示文本的颜色。

property backColor - 表示文本的背景颜色。

property textDecoration - 表示文本的装饰。

Type declaration

Name Type
backColor? string
color? string
font? string
textDecoration? TextDecorationType

IGanttSheetOptions

Ƭ IGanttSheetOptions: Object

表示甘特表选项

property enableGanttColumn - 是否显示甘特图列。默认为true.

property allowAddNew - 是否允许添加新的空行。

property sheetTabColor - 用于表示工作表标签颜色的颜色字符串,如"red"、"#FFFF00"、"rgb(255,0,0)"、"Accent 5"等。

property defaultMode - 默认任务模式。

Type declaration

Name Type Description
allowAddNew? boolean 是否允许添加新的空行。
defaultMode? TaskScheduleMode 默认任务模式。
enableGanttColumn? boolean 是否显示甘特图列。默认为true.
sheetTabColor? string 用于表示工作表标签颜色的颜色字符串,如"red"、"#FFFF00"、"rgb(255,0,0)"、"Accent 5"等。

IProgressLine

Ƭ IProgressLine: Object

表示甘特图上的进度线配置。

property display - 指示是否显示进度线。

property {"statusDate" | "currentDate"} referenceDate - 指示进度线的参考日期模式。

property pathType - 指示进度线的路径类型。

property lineStyle - 指示进度线的线条样式。

property pointStyle - 指示进度点样式。

property dateLabelStyle - 指示进度线日期标签样式。

Type declaration

Name Type
dateLabelStyle? IProgressLineDateLabelStyle
display boolean
lineStyle GanttGridline
pathType IProgressLinePathType
pointStyle IProgressPointStyle
referenceDate "statusDate" | "currentDate"

IProgressLineDateLabelStyle

Ƭ IProgressLineDateLabelStyle: Object

表示进度线日期标签的样式。

property display - 指示是否显示进度线日期标签。

property format - 指示进度线日期标签的日期格式。

property font - 指示进度线日期标签的字体。

Type declaration

Name Type
display boolean
font string
format string

IProgressLinePathType

Ƭ IProgressLinePathType: Object

表示进度线路径的走向行为。

property returnToReferenceDate - 指示路径是否在每个进度点之后返回参考日期锚点。

property {"orthogonal" | "diagonal"} pointConnectionType - 指示点连接是否使用正交线段或对角线线段。

Type declaration

Name Type
pointConnectionType "orthogonal" | "diagonal"
returnToReferenceDate boolean

IProgressPointStyle

Ƭ IProgressPointStyle: Object

表示进度点的样式。

property shape - 指示进度点的形状。

property color - 指示进度点的颜色。

Type declaration

Name Type
color ColorString
shape ProgressPointShape

ITaskData

Ƭ ITaskData: Object

表示用于创建任务的数据。用于项目的添加、插入和更新任务方法中。

property name - 表示任务的名称。

property start - 表示任务的开始日期。

property finish - 表示任务的结束日期。

property duration - 表示任务的持续时间。

property mode - 表示任务的调度模式。

property {Object.<string, GC.Spread.Sheets.GanttSheet.TaskbarStyle>} barStyles - 表示任务的条形图样式。

Type declaration

Name Type
barStyles? { [key: string]: TaskbarStyle; }
duration? Duration
finish? Date
mode? TaskScheduleMode
name? string
start? Date

ITaskDependency

Ƭ ITaskDependency: Object

表示添加任务依赖关系的一组参数。

property fromTaskNumber - 表示依赖关系来源的任务编号。

property toTaskNumber - 表示依赖关系目标的任务编号。

property type - 可选。表示依赖类型。默认为'FS'(完成到开始)。

Type declaration

Name Type
fromTaskNumber number
toTaskNumber number
type? TaskDependencyType

NonWorkingTimeDrawMode

Ƭ NonWorkingTimeDrawMode: "Behind" | "None"

description 表示如何在甘特图中绘制非工作时间区域。


ProgressLinePointConnectionType

Ƭ ProgressLinePointConnectionType: "orthogonal" | "diagonal"

表示进度线如何连接相邻的进度点。


ProgressLineReferenceDate

Ƭ ProgressLineReferenceDate: "statusDate" | "currentDate"

表示进度线使用哪个项目级日期作为参考日期。


ProgressPointShape

Ƭ ProgressPointShape: TaskbarEndShape

表示进度点的形状。


TaskDependencyType

Ƭ TaskDependencyType: "FS" | "SS" | "FF" | "SF"

description 表示任务依赖关系的类型。


TaskScheduleMode

Ƭ TaskScheduleMode: "Auto" | "Manual"

description 表示任务的调度模式。


TaskStyle

Ƭ TaskStyle: Object

表示任务的样式。

property name - 表示任务样式的名称。

property taskbarStyle - 表示任务条部分的样式。

property gridStyle - 表示任务网格部分的样式。

Type declaration

Name Type
gridStyle? GridStyle
name? string
taskbarStyle? TaskbarStyle

TaskbarEndShape

Ƭ TaskbarEndShape: "arrowDown" | "arrowUp" | "caretDownTop" | "caretUpBottom" | "circle" | "circleArrowDown" | "circleArrowUp" | "circleDiamond" | "circleTriangleDown" | "circleTriangleUp" | "diamond" | "houseDown" | "houseUp" | "leftBracket" | "leftFade" | "lineShape" | "rightBracket" | "rightFade" | "square" | "star" | "triangleDown" | "triangleLeft" | "triangleRight" | "triangleUp"

description 表示任务条起始部分和结束部分的形状。


TaskbarEndType

Ƭ TaskbarEndType: "solid" | "dashed" | "framed"

description 表示任务条结束形状的绘制类型。


TaskbarFillPattern

Ƭ TaskbarFillPattern: "hollow" | "solidFill" | "lightFill" | "mediumFill" | "darkFill" | "diagonalRight" | "diagonalLeft" | "diagonalCross" | "lineVertical" | "lineHorizontal" | "lineCross" | "dashedBorder"

description 表示甘特图中任务条中间部分或非工作时间区域的填充图案。


TaskbarLinkMode

Ƭ TaskbarLinkMode: "noLinks" | "toEnd" | "toTop"

description 表示如何绘制任务条之间的连接线。


TaskbarMiddleShape

Ƭ TaskbarMiddleShape: "rectangleBar" | "lineTop" | "lineMiddle" | "lineBottom" | "rectangleTop" | "rectangleMiddle" | "rectangleBottom"

description 表示任务条中间部分的形状。


TaskbarStyle

Ƭ TaskbarStyle: Object

表示任务条的样式。

property startShape - 表示起始部分的形状。

property startType - 表示起始部分的类型。

property startColor - 表示起始部分的颜色。

property endShape - 表示结束部分的形状。

property endType - 表示结束部分的类型。

property endColor - 表示结束部分的颜色。

property middleShape - 表示中间部分的形状。

property middlePattern - 表示中间部分的填充图案。

property middleColor - 表示中间部分的颜色。

property leftText - 表示任务字段或公式的名称,其值将显示在任务条左侧的文本中。

property leftTextStyle - 表示任务条左侧任务字段的样式。

property rightText - 表示任务字段或公式的名称,其值将显示在任务条右侧的文本中。

property rightTextStyle - 表示任务条右侧任务字段的样式。

property topText - 表示任务字段或公式的名称,其值将显示在任务条上方的文本中。

property topTextStyle - 表示任务条上方任务字段的样式。

property bottomText - 表示任务字段或公式的名称,其值将显示在任务条下方的文本中。

property bottomTextStyle - 表示任务条下方任务字段的样式。

property insideText - 表示任务字段或公式的名称,其值将显示在任务条内部的文本中。

property insideTextStyle - 表示任务条内部任务字段的样式。

Type declaration

Name Type
bottomText? string
bottomTextStyle? TextStyle
endColor? ColorString
endShape? TaskbarEndShape
endType? TaskbarEndType
insideText? string
insideTextStyle? TextStyle
leftText? string
leftTextStyle? TextStyle
middleColor? ColorString
middlePattern? TaskbarFillPattern
middleShape? TaskbarMiddleShape
rightText? string
rightTextStyle? TextStyle
startColor? ColorString
startShape? TaskbarEndShape
startType? TaskbarEndType
topText? string
topTextStyle? TextStyle

TaskbarStyleRuleName

Ƭ TaskbarStyleRuleName: "projectSummary" | "summary" | "manualSummary" | "task" | "manualTask" | "milestone" | "manualMilestone" | "progress" | "manualProgress" | "startOnly" | "finishOnly" | "durationOnly" | "startOnlyMilestone" | "finishOnlyMilestone" | "durationOnlyMilestone"

description 表示内置任务条样式规则的名称。用于project.taskStyleRules.getRule方法。


TextStyle

Ƭ TextStyle: Object

表示甘特图上的时间刻度线和任务条的文本样式。

property font - 表示文本的字体。

property color - 表示文本的颜色。

property textDecoration - 表示文本的装饰。

Type declaration

Name Type
color? ColorString
font? string
textDecoration? TextDecorationType

Time

Ƭ Time: Object

表示包含小时和分钟的时间值。

property hour - 表示小时。可以是0到24。

property minute - 表示分钟。可以是0到59。

Type declaration

Name Type
hour number
minute number

TimeScaleAutoFitMode

Ƭ TimeScaleAutoFitMode: "none" | "project"

description 表示时间刻度的自动适应模式。


TimescaleLabelFormatter

Ƭ TimescaleLabelFormatter: (date: Date, project: Project) => string

Type declaration

▸ (date, project): string

用于格式化时间刻度标签的回调函数。

Parameters
Name Type Description
date Date 指定要格式化的日期。
project Project 时间刻度所属的项目。可以用于格式化,如使用开始日期、日历设置或其他数据。
Returns

string


WorkDay

Ƭ WorkDay: WorkTime[]

表示一天中的工作时间段。


WorkTime

Ƭ WorkTime: Object

表示一天中的工作时间段。

property start - 表示开始时间。可以是0:00到23:59。

property end - 表示结束时间。可以是0:01到24:00。

Type declaration

Name Type
end Time
start Time