public List <OSAEPropertyHistory> GetPropertyHistory(string objName, string propName, string from, string to, string authkey)
        {
            if (OSAESecurity.Authorize(authkey, objName))
            {
                List <OSAEPropertyHistory> list = new List <OSAEPropertyHistory>();
                DataSet             ds          = OSAEObjectPropertyManager.ObjectPropertyHistoryGet(objName, propName, from, to);
                OSAEPropertyHistory ph          = new OSAEPropertyHistory();
                ph.label = objName + " - " + propName;
                List <List <double> > vals = new List <List <double> >();
                ph.data = vals;

                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    List <double> p = new List <double>();
                    p.Add((double)Common.GetJavascriptTimestamp(DateTime.Parse(dr["history_timestamp"].ToString())));
                    p.Add(double.Parse(dr["property_value"].ToString()));
                    vals.Add(p);
                }
                list.Add(ph);
                return(list);
            }
            else
            {
                return(null);
            }
        }
        public List<OSAEPropertyHistory> GetPropertyHistory(string objName, string propName, string from, string to)
        {
            List<OSAEPropertyHistory> list = new List<OSAEPropertyHistory>();
            DataSet ds = OSAEObjectPropertyManager.ObjectPropertyHistoryGet(objName, propName, from, to);
            OSAEPropertyHistory ph = new OSAEPropertyHistory();
            ph.label = objName + " - " + propName;
            List<List<double>> vals = new List<List<double>>();
            ph.data = vals;

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                List<double> p = new List<double>();
                p.Add((double)Common.GetJavascriptTimestamp(DateTime.Parse(dr["history_timestamp"].ToString())));
                p.Add(double.Parse(dr["property_value"].ToString()));
                vals.Add(p);
            }
            list.Add(ph);
            return list;
        }