Example #1
0
        //由系统类型:SIS、PACS、HIS和LIS,决定获取配置文件的数据连接信息,形成数据库对象
        public DBControl(string conn)
        {
            switch (conn)
            {
            case "SIS":
                cp = GetConfig.GetSisConnStr();
                break;

            case "PACS":
                cp = GetConfig.GetPacsConnStr();
                break;

            case "HIS":
                cp = GetConfig.GetHisConnStr();
                break;

            case "LIS":
                cp = GetConfig.GetLisConnStr();
                break;
            }
            this.dbF = new DBGetter(cp).getDatabase();
            this.dbg = new DBGetter(cp);
        }
Example #2
0
 //由数据库连接信息形成数据库对象
 public DBControl(ConParam cps)
 {
     cp       = cps;
     this.dbF = new DBGetter(cp).getDatabase();
     this.dbg = new DBGetter(cp);
 }