source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet.EHR/BMXNetOverCiaLib.cs@ 1400

Last change on this file since 1400 was 1146, checked in by Sam Habiel, 14 years ago

Initial Import of BMX4

File size: 1.6 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using CIA_CSS;
5using CSS_User;
6
7namespace IndianHealthService.BMXNet.CIA
8{
9 internal class BMXNetOverCiaLib : BMXNetLib
10 {
11 public static BMXNetLib OpenOn(ICSS_Session aCssSession,ICSS_User aCiaUser)
12 {
13 BMXNetOverCiaLib answer = new BMXNetOverCiaLib();
14 answer.CiaSession= aCssSession;
15 answer.CiaUser=aCiaUser;
16 return answer;
17 }
18
19 private ICSS_User _ciaUser;
20
21 public ICSS_User CiaUser
22 {
23 get { return _ciaUser; }
24 set
25 {
26 _ciaUser = value;
27 if (value != null)
28 {
29 this.UserName = value.Name;
30 this.DUZ = value.Handle.ToString();
31 }
32 }
33 }
34
35 private ICSS_Session _ciaSession;
36
37 public ICSS_Session CiaSession
38 {
39 get { return _ciaSession; }
40 set { _ciaSession = value;}
41 }
42
43
44 protected override string SendReceiveString(string sendString, string multi)
45 {
46 return this.DecodeReceiveString(this.CiaSession.CallRPCText("VEN RPC^CIABMX", this.EncodeSendString(sendString, this.EncodeSendString(this.ADEEncryp(this.AppContext==null ? "BMXRPC" : this.AppContext),multi)))).Trim();
47 }
48
49 public override string GetLoginFacility()
50 {
51 throw new NotImplementedException();
52 }
53
54 public override bool IsConnected
55 {
56 get { return this.CiaSession != null; }
57 }
58 }
59}
Note: See TracBrowser for help on using the repository browser.