Beispiel #1
0
        //────────────────────────────────────────

        public static XmlToConfigurationtree_C15_Elm GetTranslatorByFncName(string sName_Fnc, Log_Reports log_Reports)
        {
            if (null == XmlToConfigurationtree_Collection.dictionary_FncVer)
            {
                Dictionary <string, XmlToConfigurationtree_C15_Elm> d = new Dictionary <string, XmlToConfigurationtree_C15_Elm>();

                {
                    //a-display
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_4ADisplayImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_TYPE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_DISPLAY, xToS);
                }
                {
                    //select-record
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_4ASelectRecordImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_FIELD_KEY.Name_Attribute);
                    a.Add(PmNames.S_VALUE_KEY.Name_Attribute);
                    a.Add(PmNames.S_REQUIRED.Name_Attribute);
                    a.Add(PmNames.S_STORAGE.Name_Attribute);
                    a.Add(PmNames.S_FROM.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_SELECT_RECORD, xToS);
                }
                {
                    //all-fields-is-empty
                    XmlToConfigurationtree_V_5FAllFieldsIsEmptyImpl_ xToS = new XmlToConfigurationtree_V_5FAllFieldsIsEmptyImpl_();
                    d.Add(NamesFnc.S_VLD_ALL_FIELDS_IS_EMPTY, xToS);
                }
                {
                    //f-all-true
                    XmlToConfigurationtree_V_5FAllTrueImpl_ xToS = new XmlToConfigurationtree_V_5FAllTrueImpl_();
                    d.Add(NamesFnc.S_ALL_TRUE, xToS);
                }
                {
                    //a-emtpy-field
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_6AEmptyFieldImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_TYPE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_EMPTY_FIELD, xToS);
                }

                XmlToConfigurationtree_Collection.dictionary_FncVer = d;
            }

            XmlToConfigurationtree_C15_Elm result;

            XmlToConfigurationtree_Collection.dictionary_FncVer.TryGetValue(sName_Fnc, out result);
            return(result);
        }
        //────────────────────────────────────────
        public static XmlToConfigurationtree_C15_Elm GetTranslatorByFncName(string sName_Fnc, Log_Reports log_Reports)
        {
            if (null == XmlToConfigurationtree_Collection.dictionary_FncVer)
            {
                Dictionary<string, XmlToConfigurationtree_C15_Elm> d = new Dictionary<string, XmlToConfigurationtree_C15_Elm>();

                {
                    //a-display
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_4ADisplayImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_TYPE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_DISPLAY, xToS);
                }
                {
                    //select-record
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_4ASelectRecordImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_FIELD_KEY.Name_Attribute);
                    a.Add(PmNames.S_VALUE_KEY.Name_Attribute);
                    a.Add(PmNames.S_REQUIRED.Name_Attribute);
                    a.Add(PmNames.S_STORAGE.Name_Attribute);
                    a.Add(PmNames.S_FROM.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_SELECT_RECORD, xToS);
                }
                {
                    //all-fields-is-empty
                    XmlToConfigurationtree_V_5FAllFieldsIsEmptyImpl_ xToS = new XmlToConfigurationtree_V_5FAllFieldsIsEmptyImpl_();
                    d.Add(NamesFnc.S_VLD_ALL_FIELDS_IS_EMPTY, xToS);
                }
                {
                    //f-all-true
                    XmlToConfigurationtree_V_5FAllTrueImpl_ xToS = new XmlToConfigurationtree_V_5FAllTrueImpl_();
                    d.Add(NamesFnc.S_ALL_TRUE, xToS);
                }
                {
                    //a-emtpy-field
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_6AEmptyFieldImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_TYPE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesFnc.S_VLD_EMPTY_FIELD, xToS);
                }

                XmlToConfigurationtree_Collection.dictionary_FncVer = d;
            }

            XmlToConfigurationtree_C15_Elm result;
            XmlToConfigurationtree_Collection.dictionary_FncVer.TryGetValue(sName_Fnc, out result);
            return result;
        }