コード例 #1
0
 /// <summary>
 ///  获取WebPart组件数据。
 /// </summary>
 /// <param name="employeeID"></param>
 /// <param name="dataType"></param>
 /// <returns></returns>
 public WebPartDataCollection DataSource(string employeeID, string dataType)
 {
     WebPartDataCollection collection = new WebPartDataCollection();
     Poxy.WebPartData[] wpds = this.taskServicePoxy.PendingDataSource(employeeID, dataType);
     if (wpds != null && wpds.Length > 0)
     {
         foreach (Poxy.WebPartData wpd in wpds)
         {
             iPower.Platform.WebPart.WebPartData data = new iPower.Platform.WebPart.WebPartData();
             data.Title = wpd.Title;
             data.Url = wpd.Url;
             collection.Add(data);
         }
     }
     return collection;
 }
コード例 #2
0
 /// <summary>
 /// 获取WebPart组件数据。
 /// </summary>
 /// <param name="employeeID"></param>
 /// <param name="dataType"></param>
 /// <returns></returns>
 public WebPartDataCollection DataSource(string employeeID, string dataType)
 {
     WebPartDataCollection collection = new WebPartDataCollection();
     if (!string.IsNullOrEmpty(employeeID))
     {
         List<FlowInstanceTask> listTask = this.flowInstanceTaskEntity.GetFlowInstanceTask(employeeID, EnumTaskCategory.Pending);
         if (listTask != null && listTask.Count > 0)
         {
             string processInstanceName = string.Empty, stepInstanceName = string.Empty;
             foreach (FlowInstanceTask fit in listTask)
             {
                 if (this.flowStepInstanceEntity.GetInstanceStepName(fit.StepInstanceID, out processInstanceName, out stepInstanceName))
                 {
                     WebPartData data = new WebPartData();
                     data.Title = string.Format("[{0}]-{1}", processInstanceName, stepInstanceName);
                     data.Url = fit.URL;
                     collection.Add(data);
                 }
             }
         }
     }
     return collection;
 }