Produced by Araxis Merge on 1/19/2019 1:19:08 PM Eastern Standard 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | VIRP_Build_6_Dec_2018_CG.zip\Registries VIRP Web Site\Common | Patient.aspx.cs | Thu Jan 17 17:39:58 2019 UTC |
| 2 | VIRP_Build_6_Dec_2018_CG.zip\Registries VIRP Web Site\Common | Patient.aspx.cs | Sat Jan 19 18:02:24 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 450 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 Syst em.Web.UI. WebControl s; | |
| 7 | using VIRP _WEB.SoaSe rvices; | |
| 8 | using VIRP _WEB.BaseC ode; | |
| 9 | ||
| 10 | namespace VIRP_WEB.C ommon | |
| 11 | { | |
| 12 | public partial c lass Patie nt : BaseP age | |
| 13 | { | |
| 14 | pr otected ov erride voi d Page_Loa d(object s ender, Eve ntArgs e) | |
| 15 | { | |
| 16 | if (!Pag e.IsPostBa ck) | |
| 17 | Serv iceInterfa ceManager. LogInforma tion("PAGE _LOAD", St ring.Forma t("{0}.{1} ", System. Reflection .MethodBas e.GetCurre ntMethod() .Declaring Type.FullN ame, Syste m.Reflecti on.MethodB ase.GetCur rentMethod ().Name), HttpContex t.Current. User.Ident ity.Name, UserSessio n.CurrentR egistryId) ; | |
| 18 | ||
| 19 | try | |
| 20 | { | |
| 21 | base .Page_Load (sender, e ); | |
| 22 | ||
| 23 | lblR esult.Text = string. Empty; | |
| 24 | ||
| 25 | if ( UserSessio n == null || UserSes sion.Curre ntRegistry Id <= 0) | |
| 26 | { | |
| 27 | Response.R edirect("~ /Default.a spx", fals e); | |
| 28 | } | |
| 29 | else if (UserS ession.Cur rentPatien tId <= 0) | |
| 30 | { | |
| 31 | Response.R edirect("~ /Common/Pa tients.asp x", false) ; | |
| 32 | } | |
| 33 | else | |
| 34 | { | |
| 35 | if (Servic eInterface Manager.US ER_ROLES_G ET_BY_REGI STRYID_USE RNAME_SET_ READONLY(H ttpContext .Current.U ser.Identi ty.Name, U serSession .CurrentRe gistryId)) | |
| 36 | { | |
| 37 | gridRe gistry.Col umns[0].Vi sible = fa lse; | |
| 38 | SetRea dOnly(); | |
| 39 | } | |
| 40 | if (!Page. IsPostBack ) | |
| 41 | { | |
| 42 | //Buil dCommonMen u(); | |
| 43 | LoadFo rm(); | |
| 44 | } | |
| 45 | } | |
| 46 | ||
| 47 | //Ad ded for 50 8 complian ce with Gr idView col umn header s and foot er | |
| 48 | Page .ClientScr ipt.Regist erStartupS cript(this .GetType() , "UpdateG ridView", "UpdateGri dView('" + gridRegis try.Client ID + "');" , true); | |
| 49 | } | |
| 50 | catch (E xception e x) | |
| 51 | { | |
| 52 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 53 | thro w ex; | |
| 54 | } | |
| 55 | } | |
| 56 | ||
| 57 | pr ivate void SetReadOn ly() | |
| 58 | { | |
| 59 | btnMvi.E nabled = f alse; | |
| 60 | linkEdit .Visible = false; | |
| 61 | lblResul t.Text = " You are no t able to edit infor mation on this page. <br /><br />"; | |
| 62 | } | |
| 63 | ||
| 64 | pr otected vo id LinkEdi t_Click(ob ject sende r, EventAr gs e) | |
| 65 | { | |
| 66 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 67 | ||
| 68 | try | |
| 69 | { | |
| 70 | User Session.Pa geMode = P ageModes.E dit; | |
| 71 | Resp onse.Redir ect("~/Com mon/Patien ts.aspx", false); | |
| 72 | } | |
| 73 | catch (E xception e x) | |
| 74 | { | |
| 75 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 76 | thro w ex; | |
| 77 | } | |
| 78 | } | |
| 79 | ||
| 80 | pr otected ov erride voi d Ds_Selec ting(objec t sender, ObjectData SourceSele ctingEvent Args e) | |
| 81 | { | |
| 82 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 83 | ||
| 84 | try | |
| 85 | { | |
| 86 | e.In putParamet ers.Clear( ); | |
| 87 | ||
| 88 | stri ng searchC olumn = dd lSearch.Se lectedValu e; | |
| 89 | stri ng searchT ext = txtS earch.Text ; | |
| 90 | ||
| 91 | e.In putParamet ers.Add("C URRENT_USE R", HttpCo ntext.Curr ent.User.I dentity.Na me); | |
| 92 | e.In putParamet ers.Add("C URRENT_REG ISTRY_ID", UserSessi on.Current RegistryId ); | |
| 93 | e.In putParamet ers.Add("P ATIENT_ID" , UserSess ion.Curren tPatientId ); | |
| 94 | e.In putParamet ers.Add("S EARCH_COLU MN", searc hColumn); | |
| 95 | e.In putParamet ers.Add("S EARCH_TEXT ", searchT ext); | |
| 96 | } | |
| 97 | catch (E xception e x) | |
| 98 | { | |
| 99 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 100 | thro w ex; | |
| 101 | } | |
| 102 | } | |
| 103 | ||
| 104 | pr otected vo id BtnSear ch_Click(o bject send er, EventA rgs e) | |
| 105 | { | |
| 106 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 107 | try | |
| 108 | { | |
| 109 | grid Registry.D ataBind(); | |
| 110 | } | |
| 111 | catch (E xception e x) | |
| 112 | { | |
| 113 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 114 | thro w ex; | |
| 115 | } | |
| 116 | } | |
| 117 | ||
| 118 | pr otected vo id BtnClea r_Click(ob ject sende r, EventAr gs e) | |
| 119 | { | |
| 120 | txtSearc h.Text = " "; | |
| 121 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 122 | try | |
| 123 | { | |
| 124 | grid Registry.D ataBind(); | |
| 125 | } | |
| 126 | catch (E xception e x) | |
| 127 | { | |
| 128 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 129 | thro w ex; | |
| 130 | } | |
| 131 | } | |
| 132 | ||
| 133 | pr otected vo id LinkSel ect_Click( object sen der, Event Args e) | |
| 134 | { | |
| 135 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 136 | ||
| 137 | try | |
| 138 | { | |
| 139 | Link Button lb = (LinkBut ton)sender ; | |
| 140 | if ( lb != null ) | |
| 141 | { | |
| 142 | int id = 0 ; | |
| 143 | ||
| 144 | if (int.Tr yParse(lb. CommandArg ument, out id)) | |
| 145 | { | |
| 146 | REFERR AL r = Ser viceInterf aceManager .REFERRAL_ GET(HttpCo ntext.Curr ent.User.I dentity.Na me, UserSe ssion.Curr entRegistr yId, id); | |
| 147 | if (r != null) | |
| 148 | { | |
| 149 | // D N S - Added c heck to va lidate a u ser has ac cess to th e referral they sele cted | |
| 150 | if (ServiceI nterfaceMa nager.USER _ROLES_ACC ESS_BY_REG ISTRYID_US ERNAME(Htt pContext.C urrent.Use r.Identity .Name, r.S TD_REGISTR Y_ID)) | |
| 151 | { | |
| 152 | UserSess ion.Curren tRegistryI d = r.STD_ REGISTRY_I D; | |
| 153 | UserSess ion.Curren tReferralI d = r.REFE RRAL_ID; | |
| 154 | UserSess ion.Curren tPatientId = r.PATIE NT_ID; | |
| 155 | UserSess ion.Curren tProviderI d = r.PROV IDER_ID.Ge tValueOrDe fault(); | |
| 156 | ||
| 157 | Response .Redirect( "~/Common/ Referral.a spx", fals e); | |
| 158 | } | |
| 159 | el se | |
| 160 | { | |
| 161 | lblResul t.Text = " Your curre nt role co nfiguratio n does not allow acc ess to the selected referral.< br /><br / >"; | |
| 162 | } | |
| 163 | } | |
| 164 | } | |
| 165 | } | |
| 166 | } | |
| 167 | catch (E xception e x) | |
| 168 | { | |
| 169 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 170 | thro w ex; | |
| 171 | } | |
| 172 | } | |
| 173 | ||
| 174 | pr ivate void LoadForm( ) | |
| 175 | { | |
| 176 | bool mvi Enabled = false; | |
| 177 | ||
| 178 | //Not in cluding MV I interfac e in VIRP at this ti me | |
| 179 | //AppSet tings sett ings = Ser viceInterf aceManager .APPSETTIN GS_GET(Htt pContext.C urrent.Use r.Identity .Name, Use rSession.C urrentRegi stryId); | |
| 180 | //if (se ttings != null) | |
| 181 | // mv iEnabled = settings. MviEnabled ; | |
| 182 | ||
| 183 | tblLayou t.Rows[0]. Cells[1].V isible = m viEnabled; | |
| 184 | ||
| 185 | viewPati ent.LoadFo rm(UserSes sion.Curre ntPatientI d); | |
| 186 | } | |
| 187 | ||
| 188 | pr otected vo id BtnMvi_ Click(obje ct sender, EventArgs e) | |
| 189 | { | |
| 190 | ServiceI nterfaceMa nager.LogI nformation ("POSTBACK _EVENT", S tring.Form at("{0}.{1 }", System .Reflectio n.MethodBa se.GetCurr entMethod( ).Declarin gType.Full Name, Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Name), HttpConte xt.Current .User.Iden tity.Name, UserSessi on.Current RegistryId ); | |
| 191 | ||
| 192 | try | |
| 193 | { | |
| 194 | if ( UserSessio n.CurrentR egistryId > 0 && Use rSession.C urrentPati entId > 0) | |
| 195 | { | |
| 196 | bool objRe turn = fal se; | |
| 197 | int mviTyp eId = 0; | |
| 198 | int.TryPar se(ddlMvi. SelectedVa lue, out m viTypeId); | |
| 199 | ||
| 200 | objReturn = ServiceI nterfaceMa nager.PRPA _IN201305U V02(HttpCo ntext.Curr ent.User.I dentity.Na me, UserSe ssion.Curr entRegistr yId, UserS ession.Cur rentPatien tId, mviTy peId); | |
| 201 | ||
| 202 | if (objRet urn) | |
| 203 | { | |
| 204 | LoadFo rm(); | |
| 205 | gridRe gistry.Dat aBind(); | |
| 206 | ||
| 207 | lblRes ult.Text = "An MVI m atch was f ound and t his patien t's inform ation has been updat ed<br /><b r />"; | |
| 208 | } | |
| 209 | else | |
| 210 | { | |
| 211 | lblRes ult.Text = "An error occurred or an MVI match was not found. This pat ient's inf ormation h as not bee n updated< br /><br / >"; | |
| 212 | } | |
| 213 | } | |
| 214 | else | |
| 215 | { | |
| 216 | lblResult. Text = "An unexpecte d error oc curred. P lease try again or r eturn to t he Referra ls/Patient s page to select the patient a gain.<br / ><br />"; | |
| 217 | } | |
| 218 | } | |
| 219 | catch (E xception e x) | |
| 220 | { | |
| 221 | Serv iceInterfa ceManager. LogError(e x.Message, String.Fo rmat("{0}. {1}", Syst em.Reflect ion.Method Base.GetCu rrentMetho d().Declar ingType.Fu llName, Sy stem.Refle ction.Meth odBase.Get CurrentMet hod().Name ), HttpCon text.Curre nt.User.Id entity.Nam e, UserSes sion.Curre ntRegistry Id); | |
| 222 | thro w ex; | |
| 223 | } | |
| 224 | } | |
| 225 | } | |
| 226 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.