gov.va.medora.mdo.api.ToolsApi.getVariableValue C# (CSharp) 메소드

getVariableValue() 공개 메소드

public getVariableValue ( ConnectionSet cxns, string arg ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
arg string
리턴 IndexedHashtable
        public IndexedHashtable getVariableValue(ConnectionSet cxns, string arg)
        {
            return cxns.query("IToolsDao", "getVariableValue", new object[] { arg });
        }

Same methods

ToolsApi::getVariableValue ( gov.va.medora.mdo.dao.AbstractConnection cxn, string arg ) : string

Usage Example

예제 #1
0
파일: ToolsLib.cs 프로젝트: OSEHRA/mdws
        public TextTO getVariableValue(string sitecode, string arg)
        {
            TextTO result = new TextTO();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            if (result.fault != null)
            {
                return result;
            }

            if (sitecode == null)
            {
                sitecode = mySession.ConnectionSet.BaseSiteId;
            }

            try
            {
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                ToolsApi api = new ToolsApi();
                string s = api.getVariableValue(cxn, arg);
                result = new TextTO(s);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }