예제 #1
0
        public DataTable GetComms()
        {
            db.SetConnection();
            string    sSQL = "Select * from LMNetComm";
            DataTable dt   = db.DT(sSQL);

            return(dt);
        }
예제 #2
0
        public DataTable  getDescs()
        {
            string sSQL = "SELECT [id] "
                          + " ,[name] "
                          + " ,[description] "
                          + " FROM " + table;

            return(db.DT(sSQL));
        }
예제 #3
0
파일: acq.cs 프로젝트: tempbottle/INCC6
        // NEXT: figure out difference between use of meas_detector_id and detector_id
        public bool Has(DateTimeOffset measDatetime, string measDetId, string item_type)
        {
            db.SetConnection();
            string sSQL = "select * from acquire_parms_rec where meas_detector_id=" + SQLSpecific.Value(measDetId, true) +
                          " and item_type=" + SQLSpecific.Value(item_type, true);
            DataTable dt = db.DT(sSQL);

            return(dt.Rows.Count > 0);
        }
예제 #4
0
        public bool Has(string DetectorName, string CounterType)
        {
            db.SetConnection();
            Detectors dets = new Detectors(db);
            long      l    = dets.PrimaryKey(DetectorName);
            string    sSQL = "Select * from INNER JOIN LMMultiplicity, CountingParams ON (LMMultiplicity.detector_id=CountingParams.detector_id) " +
                             "where detector_id=" + l.ToString() + " AND " + "counter_type=" + SQLSpecific.QVal(CounterType);
            DataTable dt = db.DT(sSQL);

            return(dt.Rows.Count > 0);
        }
예제 #5
0
파일: acq.cs 프로젝트: tempbottle/INCC6
        public DataTable Get(string measDetId, string item_type)
        {
            db.SetConnection();
            Detectors dets = new Detectors(db);
            long      l    = dets.PrimaryKey(measDetId);
            string    sSQL = "Select * FROM LMAcquireParams";

            sSQL += " where detector_id = " + l.ToString() + " AND item_type=" + SQLSpecific.Value(item_type, true);
            sSQL += " ORDER BY MeasDate DESC";
            DataTable dt = db.DT(sSQL);

            return(dt);
        }
예제 #6
0
        public bool DefinitionExists(ElementList els)
        {
            db.SetConnection();
            string sSQL = "Select * FROM detectors where ";

            sSQL = sSQL + els.ColumnEqValueAndList;
            DataTable dt = db.DT(sSQL);

            return(dt.Rows.Count > 0);
        }
예제 #7
0
        public DataTable Get(string measDetId)
        {
            db.SetConnection();
            string    sSQL = "Select * FROM sr_parms_rec where " + ResolvedKey(measDetId, db);// +" AND sr_type = " + type.ToString();
            DataTable dt   = db.DT(sSQL);

            return(dt);
        }
예제 #8
0
        public DataTable Get(string measDetId)
        {
            db.SetConnection();
            Detectors dets = new Detectors(db);
            long      l    = dets.PrimaryKey(measDetId);
            string    sSQL = "Select * FROM " + table + " where detector_id = " + l.ToString();
            DataTable dt   = db.DT(sSQL);

            return(dt);
        }