コード例 #1
0
        public List<Detector> QueryDataCacheByMachine(string machineId)
        {
            List<Detector> results = new List<Detector>();

            DetectorHibernate hibernate = new DetectorHibernate();
            results = hibernate.QueryDataCacheByMachine(machineId);

            return results;
        }
コード例 #2
0
        public List<Detector> QueryNormalDataCacheByMachine(string machineId, DateTime beginDate, DateTime endDate)
        {
            List<Detector> results = new List<Detector>();

            DetectorHibernate hibernate = new DetectorHibernate();
            results = hibernate.QueryNormalDataCacheByMachine(machineId, beginDate, endDate);

            return results;
        }
コード例 #3
0
        public List<Module.Environmental.Detector> QueryByMachine(string machineId)
        {
            List<Detector> results = new List<Detector>();

            DetectorHibernate hibernate = new DetectorHibernate();
            results = hibernate.QueryByMachine(machineId);

            return results;
        }
コード例 #4
0
        public Detector QueryByGuid(string guid)
        {
            Detector result = null;

            DetectorHibernate hibernate = new DetectorHibernate();
            result = hibernate.QueryByGuid(guid);

            return result;
        }
コード例 #5
0
        public bool Insert(Detector value)
        {
            bool result = false;

            DetectorHibernate hibernate = new DetectorHibernate();
            result = hibernate.Insert(value);

            return result;
        }
コード例 #6
0
        public bool Delete(Detector value)
        {
            bool result = false;

            DetectorHibernate hibernate = new DetectorHibernate();
            result = hibernate.Delete(value);

            return result;
        }
コード例 #7
0
        public bool UpdatePosition(List<Detector> detectors)
        {
            bool result = false;

            DetectorHibernate hibernate = new DetectorHibernate();
            result = hibernate.UpdatePosition(detectors);

            return result;
        }