示例#1
0
        public IndexedHashtable query(string daoName, string methodName, object[] args)
        {
            if (myCxns == null || myCxns.Count == 0)
            {
                throw new NotConnectedException();
            }
            QueryTemplate qt = new QueryQuery(this);

            qt.QueryMethod(daoName, methodName, args);
            return(buildResults());
        }
示例#2
0
        public IndexedHashtable setLocalPids(string globalPid)
        {
            if (String.IsNullOrEmpty(globalPid))
            {
                throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid ICN or Empty ICN");
            }


            if (!StringUtils.isNumericChar(globalPid[0]))
            {
                throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid ICN or Empty ICN");
            }


            QueryTemplate qt = new QueryQuery(this);

            qt.QueryMethod("IPatientDao", "getLocalPid", new object[] { globalPid });
            return(buildResults());
        }
示例#3
0
        public IndexedHashtable setLocalPids(string globalPid)
        {
            if (String.IsNullOrEmpty(globalPid))
            {
                throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid ICN or Empty ICN");
            }

            if (!StringUtils.isNumericChar(globalPid[0]))
            {
                throw new MdoException(MdoExceptionCode.ARGUMENT_INVALID, "Invalid ICN or Empty ICN");
            }

            QueryTemplate qt = new QueryQuery(this);
            qt.QueryMethod("IPatientDao", "getLocalPid", new object[] { globalPid });
            return buildResults();
        }
示例#4
0
 public IndexedHashtable query(string daoName, string methodName, object[] args)
 {
     if (myCxns == null || myCxns.Count == 0)
     {
         throw new NotConnectedException();
     }
     QueryTemplate qt = new QueryQuery(this);
     qt.QueryMethod(daoName, methodName, args);
     return buildResults();
 }