Beispiel #1
0
        public static ValuesDataSet GetValuesDataSet(int siteID, W3CDateTime BeginDateTime, W3CDateTime EndDateTime)
        {
            ValuesDataSet         ds = basicValuesDataSet();
            VariablesTableAdapter variablesTableAdapter = new VariablesTableAdapter();

            variablesTableAdapter.Connection.ConnectionString = odws.Config.ODDB();
            DataTable Variables = variablesTableAdapter.GetDataBySiteID(siteID);

            foreach (DataRow row in Variables.Rows)
            {
                return(getDataValues(siteID, 1, BeginDateTime.DateTime, EndDateTime.DateTime));
            }

            return(ds);
        }
Beispiel #2
0
        public static ValuesDataSet GetValuesDataSet(int siteID)
        {
            ValuesDataSet         ds = basicValuesDataSet();
            VariablesTableAdapter variablesTableAdapter = new VariablesTableAdapter();

            variablesTableAdapter.Connection.ConnectionString = odws.Config.ODDB();
            DataTable Variables = variablesTableAdapter.GetDataBySiteID(siteID);

            foreach (DataRow row in Variables.Rows)
            {
                return(getDataValues(siteID, Convert.ToInt32(row["VariableID"]), new DateTime(1900, 01, 01), DateTime.Now));
            }

            return(ds);
        }