Produced by Araxis Merge on 8/19/2017 8:21:05 PM Eastern 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | OSCIF_VSE_v1.3.2_SD_5_3_671.zip\ClinSchd\Desktop\ClinSchd.Modules.VAR\Services | VARService.cs | Thu Jun 22 17:00:52 2017 UTC |
2 | OSCIF_VSE_v1.3.2_SD_5_3_671.zip\ClinSchd\Desktop\ClinSchd.Modules.VAR\Services | VARService.cs | Sat Aug 19 13:58:59 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 188 |
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.Globali zation; | |
4 | using Syst em.Collect ions; | |
5 | using Syst em.Linq; | |
6 | using Syst em.Xml.Lin q; | |
7 | using Syst em.Windows ; | |
8 | using Syst em.Windows .Controls; | |
9 | using Micr osoft.Prac tices.Comp osite.Even ts; | |
10 | using Micr osoft.Prac tices.Unit y; | |
11 | ||
12 | using Clin Schd.Infra structure; | |
13 | using Clin Schd.Infra structure. Events; | |
14 | using Clin Schd.Modul es.VAR.Eve nts; | |
15 | using Clin Schd.Modul es.VAR.Mod els; | |
16 | using Clin Schd.Modul es.VAR.Pro cessReques t; | |
17 | using Clin Schd.Modul es.VAR.VAR ; | |
18 | using Clin Schd.Modul es.VAR.VAR Button; | |
19 | ||
20 | namespace ClinSchd.M odules.VAR .Services | |
21 | { | |
22 | pu blic class VARServic e : IVARSe rvice | |
23 | { | |
24 | pr ivate read only IVARW ebServiceA PIService _webServic eAPI; | |
25 | pr ivate IEve ntAggregat or _eventA ggregator; | |
26 | pr ivate IUni tyContaine r _contain er; | |
27 | ||
28 | pu blic VARSe rvice(IEve ntAggregat or eventAg gregator, IUnityCont ainer cont ainer, IVA RWebServic eAPIServic e WebServi ceAPI) | |
29 | { | |
30 | _eventAg gregator = eventAggr egator; | |
31 | _contain er = conta iner; | |
32 | this._ev entAggrega tor.GetEve nt<VAR_IsV ARUserEven t>().Subsc ribe(VARSe tUserSecur ity); | |
33 | _webServ iceAPI = W ebServiceA PI; | |
34 | } | |
35 | ||
36 | pr ivate void VARSetUse rSecurity( bool isVAR RequestUse r) | |
37 | { | |
38 | if (isVA RRequestUs er) | |
39 | { | |
40 | IVAR ButtonPres entationMo del model = _contain er.Resolve <IVARButto nPresentat ionModel>( ); | |
41 | mode l.IsVARReq uestUser = isVARRequ estUser; | |
42 | var view = mod el.View; | |
43 | view .DataConte xt = model ; | |
44 | _eve ntAggregat or.GetEven t<VAR_Butt onViewEven t>().Publi sh((UserCo ntrol)view ); | |
45 | var vse_Inform ation = _c ontainer.R esolve<IVS E_Informat ion>(); | |
46 | vse_ Informatio n.VSE_USER = "vse_us er"; | |
47 | vse_Inform ation.VSE_ USER_ID = " AI "; | |
48 | vse_ Informatio n.VistAUse rIEN = Key s.LoggedIn UserIen; | |
49 | } | |
50 | } | |
51 | ||
52 | #reg ion IVAR M embers | |
53 | ||
54 | publ ic void Sh owDialog<V ARPresenta tionModel> (IVARView view, VARP resentatio nModel vie wModel, Ac tion onDia logClose) | |
55 | { | |
56 | Window w = (Window )view; | |
57 | w.Owner = Infrastr ucture.Key s.MainWind ow; | |
58 | view.D ataContext = viewMod el; | |
59 | ||
60 | if (on DialogClos e != null) | |
61 | { | |
62 | view.Clo sed += (se nder, e) = > onDialog Close(); | |
63 | } | |
64 | view.S how(); | |
65 | } | |
66 | ||
67 | pu blic void ShowDialog <ProcessRe questPrese ntationMod el>(IProce ssRequestV iew view, ProcessReq uestPresen tationMode l viewMode l, Action onDialogCl ose) | |
68 | { | |
69 | Window w = (Window )view; | |
70 | view.Dat aContext = viewModel ; | |
71 | ||
72 | if (onDi alogClose != null) | |
73 | { | |
74 | view .Closed += (sender, e) => onDi alogClose( ); | |
75 | } | |
76 | view.Sho wDialog(); | |
77 | _eventAg gregator.G etEvent<VA R_Refresh> ().Publish ("REFRESH" ); | |
78 | } | |
79 | ||
80 | pu blic void ShowDialog <Appointme ntRequestI temPresent ationModel >(IVARDeta ilView vie w, Appoint mentReques tItemPrese ntationMod el viewMod el, Action onDialogC lose) | |
81 | { | |
82 | //Window w = (Wind ow)view; | |
83 | view.Mod el = (IApp ointmentRe questItemP resentatio nModel)vie wModel; | |
84 | ||
85 | if (onDi alogClose != null) | |
86 | { | |
87 | view .Closed += (sender, e) => onDi alogClose( ); | |
88 | } | |
89 | view.Sho w(); | |
90 | } | |
91 | ||
92 | ||
93 | #e ndregion I VAR Member s | |
94 | } | |
95 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.