ILOG 甘特图 ActivityTable 去掉自动属性及其他
2018-02-28 16:55
369 查看
在designer.cs文件中,自定义列之前加上`
this.activityTable1.Columns.Clear();
部分代码:
自定义simGantModel
适配器表名:
列控件:
this.activityTable1.Columns.Clear();
部分代码:
this.activityTable1.Columns.Clear(); this.activityTable1.Columns.AddRange(new ILOG.Views.Windows.Forms.TableColumn[] { this.tableColumn_CompleteState, this.tableColumn11, this.infoColumn1, this.treeColumn1, this.tableColumn15, this.tableColumn19, this.tableColumn10, this.tableColumnDesign, this.tableColumn17, this.tableColumn3, this.tableColumn4, this.tableColumn37, this.tableColumn2, this.tableColumn5, this.tableColumn13, this.tableColumn12, this.tableColumn14, this.tableColumn16, this.tableColumn18, this.tableColumn20});
自定义simGantModel
this.simpleGanttModel.CustomActivityProperties.Add("RealStartTime", typeof(System.DateTime), System.DateTime.Now); this.simpleGanttModel.CustomActivityProperties.Add("RealEndTime", typeof(System.DateTime), System.DateTime.Now); this.simpleGanttModel.CustomActivityProperties.Add("Level", typeof(string), "");
适配器表名:
// // genericGanttModelAdapter // this.genericGanttModelAdapter.ActivitiesTableName = "表名"; this.genericGanttModelAdapter.ActivityIDColumnName = "BAID"; this.genericGanttModelAdapter.ActivityParentIDColumnName = "PID"; this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("PName", "Name")); this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("Durations", "Duration")); this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("StartTime", "StartTime")); this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("CompleteTime", "EndTime")); this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("RealStartTime", "RealStartTime")); this.genericGanttModelAdapter.ActivityProperties.Add(new ILOG.Views.Gantt.Data.GenericGanttModelAdapter.ColumnMapping("RealEndTime", "RealEndTime")); this.genericGanttModelAdapter.AutoMilestone = true; this.genericGanttModelAdapter.ConstraintFromActivityIDColumnName = "约束列名"; this.genericGanttModelAdapter.ConstraintsTableName = "前置表名"; this.genericGanttModelAdapter.ConstraintToActivityIDColumnName = "被约束的列名"; this.genericGanttModelAdapter.GanttModel = this.simpleGanttModel; this.genericGanttModelAdapter.ResourceIDColumnName = "资源列名"; this.genericGanttModelAdapter.ResourceParentIDColumnName = "资源ID"; this.genericGanttModelAdapter.ResourcesTableName = "资源表";
列控件:
private ILOG.Views.Gantt.Windows.Forms.InfoColumn infoColumn1; private ILOG.Views.Windows.Forms.TreeColumn treeColumn1; private ILOG.Views.Windows.Forms.TableColumn tableColumn2;
相关文章推荐
- 如何去掉int字段的“自动增加”属性
- duilib 修复padding属性导致其他控件自动计算宽高度错误的bug和导致自己宽高度错误的bug
- duilib 修复padding属性导致其他控件自动计算宽高度错误的bug和导致自己宽高度错误的bug
- QT 如何在其他类中修改UI控件的属性?
- 自动属性,匿名类,对象初始化器。集合初始化器,lambda表达式
- 倒数 3 秒后自动重定向到其他网页
- 去掉实体类中参数为STRING类型的属性的前后空格
- C# 并行 反射 去掉实体属性多余空格
- 5 -- Hibernate的基本用法 --4 9 其他常用的配置属性
- 本地计算机 上的 MySQL 服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。
- C# 3.0新特性之自动属性(Auto-Implemented Properties)
- android:windowSoftInputMode及其他部分属性用法
- Spring自动获得对象的属性
- 使用自动属性减少代码输入量
- 实现WebForm下面的自动收集对象属性(与MVC下在的UpdateFrom一样)
- 如何去掉XP系统中文件夹的只读属性
- extjs中用户自动拖放以改变某一个区域的大小属性
- 关于5.7.12Mysq 启动失败,本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止?
- 如何去掉Eclipse里面自动追加的一些注释!!!
- windows 10安装mysql 5.7后,启动服务提示“本地计算机上的mysql服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。