If e.DataCol.Name = "专业部室" Then 'OrElse e.DataCol.Name = "任务策划" Then '工作策划主表对应项目编号增加的专业部室列汇总到项目策划书 Dim pdr As DataRow = DataTables("项目策划书").find("项目编号 = '" & e.DataRow("项目编号") & "'") If pdr IsNot Nothing Then Dim str As String = "" For Each s As String In DataTables("工作策划主表").GetValues("专业部室", "项目编号 = '" & e.DataRow("项目编号") & "'") str & = s & "," Next pdr("专业部室") = str.trim(",") End If End If
|