Exemple #1
0
 public void MoveReports(string reportIDs, int?folderID)
 {
     if (folderID != null)
     {
         ReportFolder folder = ReportFolders.GetReportFolder(TSAuthentication.GetLoginUser(), (int)folderID);
         if (folder.OrganizationID != TSAuthentication.OrganizationID)
         {
             return;
         }
     }
     int[] ids = JsonConvert.DeserializeObject <int[]>(reportIDs);
     for (int i = 0; i < ids.Length; i++)
     {
         Reports.AssignFolder(TSAuthentication.GetLoginUser(), folderID, TSAuthentication.OrganizationID, ids[i]);
     }
 }