Rev | Line | |
---|
[1146] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using CIA_CSS;
|
---|
| 5 | using CSS_User;
|
---|
| 6 |
|
---|
| 7 | namespace 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.