Beispiel #1
0
        private void CreateDTsSetDS(DataConfigType configtype)
        {
            dtAdd = new DataTable();
            dtAdd.Columns.Add("Table", System.Type.GetType("System.String"));
            dtAdd.Columns.Add("Columns", System.Type.GetType("System.String"));
            dtAdd.Columns.Add("Values", System.Type.GetType("System.String"));

            dtEdit = new DataTable();
            dtEdit.Columns.Add("Table", System.Type.GetType("System.String"));
            dtEdit.Columns.Add("Column", System.Type.GetType("System.String"));
            dtEdit.Columns.Add("From", System.Type.GetType("System.String"));
            dtEdit.Columns.Add("To", System.Type.GetType("System.String"));

            dtDelete = new DataTable();
            dtDelete.Columns.Add("Table", System.Type.GetType("System.String"));
            dtDelete.Columns.Add("Columns", System.Type.GetType("System.String"));
            dtDelete.Columns.Add("Values", System.Type.GetType("System.String"));

            switch (configtype)
            {
            case DataConfigType.WorkflowActivityCongif:
                dsACConfig = AtMng.acMng.DB;
                break;

            case DataConfigType.DataDictionnary:
                dsAtrium = AtMng.DB;
                AtMng.SecurityManager.LoadAll(true);
                dsSecurity = AtMng.SecurityManager.DB;
                break;
            }
        }
Beispiel #2
0
        public void Init(string filename, DataConfigType configtype, atriumBE.atriumManager atmng)
        {
            AtMng = atmng;
            lblConfigFile.Text = filename;
            lblDB.Text         = AtMng.AppMan.ServerInfo.serverName;
            ConfigType         = configtype;
            CreateDTsSetDS(configtype);

            configFileDataset = new DataSet();
            configFileDataset.ReadXml(filename);

            DoCompare(configtype);
        }
Beispiel #3
0
 private void DoCompare(DataConfigType configtype)
 {
     if (configtype == DataConfigType.WorkflowActivityCongif)
     {
         DoWorkflowCompare();
     }
     else if (configtype == DataConfigType.DataDictionnary)
     {
         DoDataDictionnaryCompare();
     }
     else if (configtype == DataConfigType.OtherCodes)
     {
         DoOtherCodesCompare();
     }
     else
     {
         MessageBox.Show("Something has gone wrong ... DataConfigType is not specified");
     }
 }