甘特图后台赋值报错
1,999次浏览
编辑于2016年06月15日 09:56:53
甘特图后台赋值报错
代码:
EntryEntity entryEntity = this.Model.BillBusinessInfo.GetEntryEntity("FGanttChart");
Kingdee.BOS.Orm.DataEntity.DynamicObjectCollection entityDataObject = this.Model.GetEntityDataObject(entryEntity);
DynamicObjectCollection DC = DBUtils.ExecuteDynamicObject(this.Context, @"select FID Id,FEntryId,FTASKNAME Content,FSTART Start,FFINISH Finish,FISMILESTONE IsMilestone,FISCOMPLETED IsCompleted
,FCOMPLETION Completion,FPREDECESSORS Predecessors,FASSIGNMENTS AssignmentsContent,FINDENTATION Indentation,FCOMPLETEDFINISH CompletedFinish from MXR_t_Cust_Entry");
entityDataObject.Clear();
foreach (Kingdee.BOS.Orm.DataEntity.DynamicObject current3 in DC)
{
entityDataObject.Add(current3);
}
this.View.Model.SetEntryCurrentRowIndex("FGanttChart", 0);
this.View.UpdateView("FGanttChart");
报错
代码:
EntryEntity entryEntity = this.Model.BillBusinessInfo.GetEntryEntity("FGanttChart");
Kingdee.BOS.Orm.DataEntity.DynamicObjectCollection entityDataObject = this.Model.GetEntityDataObject(entryEntity);
DynamicObjectCollection DC = DBUtils.ExecuteDynamicObject(this.Context, @"select FID Id,FEntryId,FTASKNAME Content,FSTART Start,FFINISH Finish,FISMILESTONE IsMilestone,FISCOMPLETED IsCompleted
,FCOMPLETION Completion,FPREDECESSORS Predecessors,FASSIGNMENTS AssignmentsContent,FINDENTATION Indentation,FCOMPLETEDFINISH CompletedFinish from MXR_t_Cust_Entry");
entityDataObject.Clear();
foreach (Kingdee.BOS.Orm.DataEntity.DynamicObject current3 in DC)
{
entityDataObject.Add(current3);
}
this.View.Model.SetEntryCurrentRowIndex("FGanttChart", 0);
this.View.UpdateView("FGanttChart");
报错
推荐阅读