Ejemplo n.º 1
0
        public static ImatchInterface Create(string type)
        {
            try
            {
                ImatchInterface imatch = null;
                switch (type)
                {
                case "Nccm":
                    imatch = new matchNccmInterface();
                    break;

                case "CxHn":
                    imatch = new matchCxNhInterface();
                    break;

                case "Hygeia":
                    imatch = new matchHygeiaInterface();
                    break;
                }
                return(imatch);
            }
            catch
            {
                throw new Exception("接口调用失败!");
            }
        }
Ejemplo n.º 2
0
        public AbstractDataMatch(HIS.SYSTEM.DatabaseAccessLayer.RelationalDatabase _OleDb)
        {
            _oleDb = _OleDb;

            idatamatch_dao       = DaoFactory.GetObject <ICxHndatamatch>(typeof(DataMatchDao));
            idatamatch_dao.oleDb = oleDb;
            match_sys            = matchFactory.Create("CxHn");
        }
Ejemplo n.º 3
0
        public AbstractDataMatch()
        {
            _oleDb = BaseBLL.oleDb;

            idatamatch_dao       = DaoFactory.GetObject <ICxHndatamatch>(typeof(DataMatchDao));
            idatamatch_dao.oleDb = oleDb;
            match_sys            = matchFactory.Create("CxHn");
        }