public void buildMap(String path, List <String> m_list, String metaname)
        {
            CustomObject customObject = ManageXMLCustomObject.Deserialize(path);

            Console.WriteLine(metaname);
            foreach (String Metafile in m_list)
            {
                String [] customMetaSplit = Metafile.Split(".");
                String    m_nameObject    = customMetaSplit[0];
                Console.WriteLine(m_nameObject);
                String customInMeta = customMetaSplit[1];
                foreach (_BusinessProcess Meta in customObject.BusinessProcesses)
                {
                    if (!m_dictionaryObject.ContainsKey(m_nameObject))
                    {
                        m_dictionaryObject.Add(m_nameObject, new List <_BusinessProcess>());
                    }
                    if (Meta.FullName == customInMeta)
                    {
                        m_dictionaryObject[m_nameObject].Add(Meta);
                    }
                }
            }

            if (m_dictionaryObject.Count == 0)
            {
                throw new Exception("Erro não foi encontrado nenhum valor");
            }
        }
示例#2
0
        public void buildMap(String path, List <String> m_list, String metaname)
        {
            try
            {
                CustomObject customObject = ManageXMLCustomObject.Deserialize(path);
                foreach (String Metafile in m_list)
                {
                    String [] customMetaSplit = Metafile.Split(".");
                    String    m_nameObject    = customMetaSplit[0];
                    String    customInMeta    = customMetaSplit[1];

                    foreach (RecordTypes Meta in customObject.RecordTypes)
                    {
                        if (!m_dictionaryObject.ContainsKey(m_nameObject))
                        {
                            m_dictionaryObject.Add(m_nameObject, new List <RecordTypes>());
                        }
                        if (Meta.FullName == customInMeta)
                        {
                            m_dictionaryObject[m_nameObject].Add(Meta);
                        }
                    }
                }
            }
            catch (System.Exception e)
            {
                ConsoleHelper.WriteErrorLine(e.Message);
            }
        }
示例#3
0
        public override void buildCopy(String metaname, String directoryPath, String directoryTargetFilePath)
        {
            this.buildMap(directoryPath + @"/" + metaname + ".object", this.m_list, this.m_metaname);
            CustomObject m_CustomObject_clean = ManageXMLCustomObject.createNewObject();

            m_CustomObject_clean.CompactLayouts = m_dictionaryObject[metaname];
            ManageXMLCustomObject.doWrite(m_CustomObject_clean, directoryTargetFilePath + @"/", metaname + ".object");
        }
        public override void buildCopy(String metaname, String directoryPath, String directoryTargetFilePath)
        {
            String pathDirectoryFileCustomObject = String.Concat(directoryPath, @"/", metaname, ".object");

            this.buildMap(pathDirectoryFileCustomObject, this.m_list, this.m_metaname);
            CustomObject m_CustomObject_clean = ManageXMLCustomObject.createNewObject();

            m_CustomObject_clean.BusinessProcesses = m_dictionaryObject[metaname];
            ManageXMLCustomObject.doWrite(m_CustomObject_clean, String.Concat(directoryTargetFilePath, @"/"), String.Concat(metaname, ".object"));
        }