15. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/31/2018 11:26:34 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

15.1 Files compared

# Location File Last Modified
1 BMS_Source.zip\Source\Sources\BMS.Web\Reporting PPBPReportViewer.aspx.cs Thu Aug 30 14:52:12 2018 UTC
2 BMS_Source.zip\Source\Sources\BMS.Web\Reporting PPBPReportViewer.aspx.cs Fri Aug 31 11:27:38 2018 UTC

15.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 300
Changed 1 2
Inserted 0 0
Removed 0 0

15.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

15.4 Active regular expressions

No regular expressions were active.

15.5 Comparison detail

  1   using Syst em;
  2   using Syst em.Collect ions.Gener ic;
  3   using Syst em.Linq;
  4   using Syst em.Web;
  5   using Syst em.Web.UI;
  6   using Micr osoft.Repo rting.WebF orms;
  7   using BMS. Web.App_Gl obalResour ce;
  8   using BMS. Facade;
  9   using BMS. Utils;
  10   using BMS. Web.Report ing;
  11   using BMS. Facade.Dat a;
  12   using BMS. ServicesWr apper.Secu rity;
  13   using Info World.HL7. ITS;
  14   using BMS. Web.Contro llers.Shar ed;
  15  
  16   namespace  BMS.Web.Re ports
  17   {
  18       /// <s ummary>
  19       /// Pa ge respons ible for c alling the  Report Vi ewer with  the approp riate cred entials an d paramete rs
  20       /// </ summary>
  21       public  partial c lass PPBPR eportViewe r : System .Web.UI.Pa ge
  22       {
  23           pr otected vo id Page_Lo ad(object  sender, Ev entArgs e)
  24           {
  25                DateTime  entryInLo gMethodTim e = DateTi me.UtcNow;
  26                if (Info World.Trac ing.IWTrac e.IsEntryE nabled)
  27                {
  28                    Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime);
  29                }
  30                try
  31                {
  32                    //if  (Request  == null ||  Request.Q ueryString  == null | | Request. QueryStrin g.Count ==  0)
  33                    //     return;
  34  
  35                      ReportView erControl. ServerRepo rt.ReportS erverUrl =  new Uri(" http:// DNS /ReportSer ver");
  36                    Repo rtViewerCo ntrol.Serv erReport.R eportPath  = "/BMS/Ot hers/Natio nalPPBP_Ne w";
  37  
  38                    //if  (!string. IsNullOrEm pty(txtIna ctive.Inne rHtml))
  39                    //     return;
  40  
  41                    if ( this.IsPos tBack)
  42                         ScriptMana ger.Regist erClientSc riptBlock( this, this .GetType() , "key", " ResizeForm ();", true );
  43                    else
  44                    {
  45                         ReportView erControl. ServerRepo rt.ReportS erverCrede ntials =
  46                         (
  47                             new Cu stomReport Credential s("BMSv2SR VDev", "iP ePp3+z$tEN ", "acc")
  48                         );
  49  
  50                         List<Repor tParameter > param =  new List<R eportParam eter>();
  51                         param.Add( new Report Parameter( Strings.Us erID, Secu rityFactor y.Instance Windows.Ge tFullUserN ame(System .Web.HttpC ontext.Cur rent.User. Identity.N ame), fals e));
  52                         //ReportPa rameterInf oCollectio n coll = n ull;
  53                        
  54                         try
  55                         {
  56                             //coll  = ReportV iewerContr ol.ServerR eport.GetP arameters( );
  57                             //if ( coll.First OrDefault( p => strin g.Equals(p .Name, Str ings.UserI D, StringC omparison. InvariantC ultureIgno reCase)) ! = null)
  58                             //     param.Add( new Report Parameter( Strings.Us erID, repo rtUtil.Use rId, false ));
  59  
  60                             //fore ach (var p aramName i n reportUt il.Paramet ers.Keys)
  61                             //     if (coll.F irstOrDefa ult(p => s tring.Equa ls(p.Name,  paramName , StringCo mparison.I nvariantCu ltureIgnor eCase)) !=  null)
  62                             //         param. Add(new Re portParame ter(paramN ame, repor tUtil.Para meters[par amName], t rue));
  63  
  64                             ////ad ds all the  parameter  values pa ssed throu gh the que ry string,  excepting  UserID an d Applicat ionURL tha t are trea ted separa tely above  and below .
  65                             //fore ach (Repor tParameter Info param Name in co ll)
  66                             //     if (coll.F irstOrDefa ult(p => s tring.Equa ls(p.Name,  paramName .Name, Str ingCompari son.Invari antCulture IgnoreCase )) != null )
  67                             //     {
  68                             //         if (Re quest.Quer yString[pa ramName.Na me] != nul l)
  69                             //             pa ram.Add(ne w ReportPa rameter(pa ramName.Na me, Reques t.QueryStr ing[paramN ame.Name],  true));
  70                             //     }
  71  
  72                             //if ( coll.First OrDefault( p => strin g.Equals(p .Name, Str ings.Appli cationURL,  StringCom parison.In variantCul tureIgnore Case)) !=  null)
  73                             //{
  74                             //     string url  = HttpCon text.Curre nt.Request .Url.ToStr ing();
  75                             //     int rpt =  url.IndexO f("/" + St rings.Repo rtsFolder) ;
  76                             //     if (rpt >  -1)
  77                             //     {
  78                             //         url =  url.Substr ing(0, rpt );
  79                             //         param. Add(new Re portParame ter(String s.Applicat ionURL, ur l, false)) ;
  80                             //     }
  81                             //}
  82  
  83  
  84                             Report ViewerCont rol.Server Report.Set Parameters (param);
  85                             //Repo rtViewerCo ntrol.Heig ht = 1000;
  86                             //Repo rtViewerCo ntrol.Zoom Mode = Zoo mMode.Perc ent;
  87                             //Repo rtViewerCo ntrol.Zoom Percent =  225;
  88                         }
  89                         catch (Mic rosoft.Rep orting.Web Forms.Repo rtServerEx ception rs Exception)
  90                         {
  91                             OnErro r(rsExcept ion.ErrorC ode + "\t"  + rsExcep tion.Messa ge);
  92                         }
  93  
  94                    }
  95                }
  96                finally
  97                {
  98                    if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled)
  99                    {
  100                         InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(),  DateTime.U tcNow, ent ryInLogMet hodTime);
  101                    }
  102                }
  103           }
  104           pr otected vo id OnError (String me ssage)
  105           {
  106                DateTime  entryInLo gMethodTim e = DateTi me.UtcNow;
  107                if (Info World.Trac ing.IWTrac e.IsEntryE nabled)
  108                {
  109                    Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime);
  110                }
  111                try
  112                {
  113                    Sess ion[Consta nts.REPORT S_ERROR_ME SSAGE_SESS ION_KEY] =  message;
  114                    Resp onse.Redir ect("Repor tError.asp x");
  115                }
  116                finally
  117                {
  118                    if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled)
  119                    {
  120                         InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(),  DateTime.U tcNow, ent ryInLogMet hodTime);
  121                    }
  122                }
  123           }
  124  
  125           pr otected vo id ReportV iewerContr ol_ReportE rror(objec t sender,  ReportErro rEventArgs  e)
  126           {
  127                DateTime  entryInLo gMethodTim e = DateTi me.UtcNow;
  128                if (Info World.Trac ing.IWTrac e.IsEntryE nabled)
  129                {
  130                    Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime);
  131                }
  132                try
  133                {
  134                    if ( e.Exceptio n != null  &&
  135                         e.Exceptio n.InnerExc eption !=  null &&
  136                         e.Exceptio n.InnerExc eption.Inn erExceptio n != null)
  137                    {
  138                         e.Handled  = true;
  139                         OnError(e. Exception. InnerExcep tion.Inner Exception. Message);
  140                    }
  141                }
  142                finally
  143                {
  144                    if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled)
  145                    {
  146                         InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(),  DateTime.U tcNow, ent ryInLogMet hodTime);
  147                    }
  148                }
  149           }
  150       }
  151   }