⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appdata.cs

📁 EpiInfo 开源的导航系统远程序,不知道在哪里下的了,分享一下,有兴趣的
💻 CS
📖 第 1 页 / 共 5 页
字号:
using System;
using System.Collections;
using System.Data;
using System.Data.OleDb;
using System.IO;
using System.Text;
using Epi;
using Epi.Data;
using Epi.DataSets;

namespace Epi.Data.Services
{
	/// <summary>
	/// Manages AppData database.
	/// </summary>
	public class AppData 
	{		
		#region Private Data
		private  ArrayList fieldTypes = null;
        //private  DataSets.AppDataSet.SettingsDataTable settingsDataTable;
        //private  DataSets.AppDataSet.ModulesDataTable modulesDataTable;
        //private  DataSets.AppDataSet.RecordProcessingScopesDataTable recordProcessingScopesDataTable;
        //private  DataSets.AppDataSet.RepresentationsOfMissingDataTable representationsOfMissingDataTable;
        //private  DataSets.AppDataSet.RepresentationsOfNoDataTable representationsOfNoDataTable;
        //private  DataSets.AppDataSet.RepresentationsOfYesDataTable representationsOfYesDataTable;
        //private  DataSets.AppDataSet.StatisticsLevelsDataTable statisticsLevelsDataTable;
        //private  DataSets.AppDataSet.DataPatternsDataTable dataPatternsDataTable;
        //private  DataSets.AppDataSet.DataTypesDataTable dataTypesDataTable;
        //private  DataSets.AppDataSet.FieldTypesDataTable fieldTypesDataTable;
        //private  DataSets.AppDataSet.FontStylesDataTable fontStylesDataTable;
        //private  DataSets.AppDataSet.ListTreatmentTypesDataTable listTreatmentTypesDataTable;
        //private  DataSets.AppDataSet.SourceControlTypesDataTable sourceControlTypesDataTable;
        //private  DataSets.AppDataSet.CommandGroupsDataTable commandGroupsDataTable;
        //private  DataSets.AppDataSet.CommandsDataTable commandsDataTable;
        //private  DataSets.AppDataSet.DialogFormatsDataTable dialogFormatsDataTable;
        //private  DataSets.AppDataSet.VariableScopesDataTable variableScopesDataTable;
        //private  DataSets.AppDataSet.SupportedAggregatesDataTable supportedAggregatesDataTable;
        //private  DataSets.AppDataSet.ReservedWordsDataTable reservedWordsDataTable;
        //private DataSets.AppDataSet.LayerRenderTypesDataTable layerRenderTypesDataTable;
		
		#endregion Private Data

		#region Constructors
        private static AppData instance;
        public static AppData Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new AppData();
                }
                return instance;
            }
        }
       
     
		#endregion Constructors

        #region Public Properties
        #region Generated Code
        private DataSets.AppDataSet.CommandGroupsDataTable commandGroupsDataTable;
        public DataSets.AppDataSet.CommandGroupsDataTable CommandGroupsDataTable
        {
            get
            {
                if (commandGroupsDataTable == null)
                {
                    commandGroupsDataTable = new DataSets.AppDataSet.CommandGroupsDataTable();
                    commandGroupsDataTable.AddCommandGroupsRow(1, @"Data", 1);
                    commandGroupsDataTable.AddCommandGroupsRow(2, @"Variables", 2);
                    commandGroupsDataTable.AddCommandGroupsRow(3, @"Select/If", 3);
                    commandGroupsDataTable.AddCommandGroupsRow(4, @"Statistics", 4);
                    commandGroupsDataTable.AddCommandGroupsRow(5, @"Advanced Statistics", 5);
                    commandGroupsDataTable.AddCommandGroupsRow(6, @"Output", 6);
                    commandGroupsDataTable.AddCommandGroupsRow(7, @"User-Defined Commands", 7);
                    commandGroupsDataTable.AddCommandGroupsRow(8, @"User Interaction", 8);
                    commandGroupsDataTable.AddCommandGroupsRow(9, @"Options", 9);
                }
                return (commandGroupsDataTable);
            }
        }



        private DataSets.AppDataSet.CommandsDataTable commandsDataTable;
        public DataSets.AppDataSet.CommandsDataTable CommandsDataTable
        {
            get
            {
                if (commandsDataTable == null)
                {
                    commandsDataTable = new DataSets.AppDataSet.CommandsDataTable();
                    commandsDataTable.AddCommandsRow(1, @"Read (Import)", 1, 1);
                    commandsDataTable.AddCommandsRow(2, @"Relate", 2, 1);
                    commandsDataTable.AddCommandsRow(3, @"Write (Export)", 3, 1);
                    commandsDataTable.AddCommandsRow(4, @"Merge", 4, 1);
                    commandsDataTable.AddCommandsRow(5, @"Delete File/Table", 5, 1);
                    commandsDataTable.AddCommandsRow(6, @"Delete Records", 6, 1);
                    commandsDataTable.AddCommandsRow(7, @"Undelete Records", 7, 1);
                    commandsDataTable.AddCommandsRow(1, @"Define", 1, 2);
                    commandsDataTable.AddCommandsRow(3, @"Undefine", 3, 2);
                    commandsDataTable.AddCommandsRow(4, @"Assign", 4, 2);
                    commandsDataTable.AddCommandsRow(5, @"Recode", 5, 2);
                    commandsDataTable.AddCommandsRow(6, @"Display", 6, 2);
                    commandsDataTable.AddCommandsRow(1, @"Select", 1, 3);
                    commandsDataTable.AddCommandsRow(2, @"Cancel Select", 2, 3);
                    commandsDataTable.AddCommandsRow(3, @"If", 3, 3);
                    commandsDataTable.AddCommandsRow(4, @"Sort", 4, 3);
                    commandsDataTable.AddCommandsRow(5, @"Cancel Sort", 5, 3);
                    commandsDataTable.AddCommandsRow(1, @"List", 1, 4);
                    commandsDataTable.AddCommandsRow(2, @"Frequencies", 2, 4);
                    commandsDataTable.AddCommandsRow(3, @"Tables", 3, 4);
                    commandsDataTable.AddCommandsRow(4, @"Match", 4, 4);
                    commandsDataTable.AddCommandsRow(5, @"Means", 5, 4);
                    commandsDataTable.AddCommandsRow(6, @"Summarize", 6, 4);
                    commandsDataTable.AddCommandsRow(7, @"Graph", 7, 4);
                    commandsDataTable.AddCommandsRow(8, @"Map", 8, 4);
                    commandsDataTable.AddCommandsRow(1, @"Linear Regression", 1, 5);
                    commandsDataTable.AddCommandsRow(2, @"Logistic Regression", 2, 5);
                    commandsDataTable.AddCommandsRow(3, @"Kaplan-Meier Survival", 3, 5);
                    commandsDataTable.AddCommandsRow(4, @"Cox Proportional Hazards", 4, 5);
                    commandsDataTable.AddCommandsRow(5, @"Complex Sample Frequencies", 5, 5);
                    commandsDataTable.AddCommandsRow(6, @"Complex Sample Tables", 6, 5);
                    commandsDataTable.AddCommandsRow(7, @"Complex Sample Means", 7, 5);
                    commandsDataTable.AddCommandsRow(1, @"Header", 1, 6);
                    commandsDataTable.AddCommandsRow(2, @"Type", 2, 6);
                    commandsDataTable.AddCommandsRow(3, @"RouteOut", 3, 6);
                    commandsDataTable.AddCommandsRow(4, @"CloseOut", 4, 6);
                    commandsDataTable.AddCommandsRow(5, @"PrintOut", 5, 6);
                    commandsDataTable.AddCommandsRow(6, @"Reports", 6, 6);
                    commandsDataTable.AddCommandsRow(7, @"Storing Output", 7, 6);
                    commandsDataTable.AddCommandsRow(1, @"Define Command", 1, 7);
                    commandsDataTable.AddCommandsRow(2, @"User Command", 2, 7);
                    commandsDataTable.AddCommandsRow(3, @"Run Saved Program", 3, 7);
                    commandsDataTable.AddCommandsRow(4, @"Execute File", 4, 7);
                    commandsDataTable.AddCommandsRow(1, @"Dialog", 1, 8);
                    commandsDataTable.AddCommandsRow(2, @"Beep", 2, 8);
                    commandsDataTable.AddCommandsRow(3, @"Help", 3, 8);
                    commandsDataTable.AddCommandsRow(4, @"Quit Program", 4, 8);
                    commandsDataTable.AddCommandsRow(1, @"Set", 1, 9);
                    commandsDataTable.AddCommandsRow(2, @"Define Group", 2, 2);
                }
                return (commandsDataTable);
            }
        }



        private DataSets.AppDataSet.DataPatternsDataTable dataPatternsDataTable;
        public DataSets.AppDataSet.DataPatternsDataTable DataPatternsDataTable
        {
            get
            {
                if (dataPatternsDataTable == null)
                {
                    dataPatternsDataTable = new DataSets.AppDataSet.DataPatternsDataTable();
                    dataPatternsDataTable.AddDataPatternsRow(1, 1, @"#", @"#", @"#");
                    dataPatternsDataTable.AddDataPatternsRow(2, 1, @"##", @"##", @"##");
                    dataPatternsDataTable.AddDataPatternsRow(3, 1, @"###", @"###", @"###");
                    dataPatternsDataTable.AddDataPatternsRow(4, 1, @"####", @"####", @"####");
                    dataPatternsDataTable.AddDataPatternsRow(5, 1, @"##.##", @"##.##", @"##.##");
                    dataPatternsDataTable.AddDataPatternsRow(6, 1, @"##.###", @"##.###", @"##.###");
                    dataPatternsDataTable.AddDataPatternsRow(7, 7, @"###-###-####", @"###-###-####", @"###-###-####");
                    dataPatternsDataTable.AddDataPatternsRow(8, 7, @"###-####", @"###-####", @"###-####");
                    dataPatternsDataTable.AddDataPatternsRow(9, 3, @"MM-DD-YYYY", @"##-##-####", @"MM-dd-yyyy");
                    dataPatternsDataTable.AddDataPatternsRow(10, 3, @"MM-DD", @"##-##", @"MM-dd");
                    dataPatternsDataTable.AddDataPatternsRow(11, 3, @"DD-MM-YYYY", @"##-##-####", @"dd-MM-yyyy");
                    dataPatternsDataTable.AddDataPatternsRow(12, 3, @"DD-MM", @"##-##", @"dd-MM");
                    dataPatternsDataTable.AddDataPatternsRow(13, 3, @"YYYY-MM-DD", @"####-##-##", @"yyyy-MM-dd");
                    dataPatternsDataTable.AddDataPatternsRow(14, 4, @"HH:MM:SS AMPM", @"##:##:## ??", @"hh:mm:ss tt");
                    dataPatternsDataTable.AddDataPatternsRow(15, 4, @"HH:MM:SS", @"##:##:##", @"hh:mm:ss");
                    dataPatternsDataTable.AddDataPatternsRow(16, 5, @"MM-DD-YYYY HH:MM:SS AMPM", @"##-##-#### ##:##:## ??", @"MM-dd-yyyy hh:mm:ss tt");
                    dataPatternsDataTable.AddDataPatternsRow(17, 5, @"DD-MM-YYYY HH:MM:SS AMPM", @"##-##-#### ##:##:## ??", @"dd-MM-yyyy hh:mm:ss tt");
                    dataPatternsDataTable.AddDataPatternsRow(18, 5, @"YYYY-MM-DD HH:MM:SS AMPM", @"####-##-## ##:##:## ??", @"yyyy-MM-dd hh:mm:ss tt");
                }
                return (dataPatternsDataTable);
            }
        }



        private DataSets.AppDataSet.DataTypesDataTable dataTypesDataTable;
        public DataSets.AppDataSet.DataTypesDataTable DataTypesDataTable
        {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -