Exemple #1
0
        /// <summary>
        /// 基础的统计对象的虚拟表
        /// </summary>
        /// <returns></returns>
        public static DataTable CreateBaseDataTable()
        {
            Dictionary <string, ColType> Dir = new Dictionary <string, ColType>();

            Dir.Add("Date", ColType.NTSString);
            Dir.Add("ObjectID", ColType.NTSString);
            Dir.Add("ObjectName", ColType.NTSString);
            Dir.Add("Starttime", ColType.NTSString);
            Dir.Add("Endtime", ColType.NTSString);
            Dir.Add("ItemCode", ColType.NTSString);
            Dir.Add("EneryValue", ColType.NTSDecimal);
            return(TableTool.CreateTable(Dir));
        }
Exemple #2
0
        /// <summary>
        /// 基础的统计对象的虚拟表
        /// </summary>
        /// <returns></returns>
        public static DataTable CreateBaseDataTableAll()
        {
            Dictionary <string, ColType> Dir = new Dictionary <string, ColType>();

            Dir.Add("Date", ColType.NTSString);
            Dir.Add("ObjectID", ColType.NTSString);
            Dir.Add("ObjectName", ColType.NTSString);
            Dir.Add("Starttime", ColType.NTSString);
            Dir.Add("Endtime", ColType.NTSString);
            for (int i = 0; i < 5; i++) // 转换对象个数
            {
                Dir.Add("E" + i.ToString(), ColType.NTSDecimal);
            }
            return(TableTool.CreateTable(Dir));
        }