Пример #1
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     ConvertXml(parameters);
     if (string.CompareOrdinal("RuntimeCalculatedColumn", parameters.XmlNodeName) == 0)
     {
         parameters.NodeType = typeof(IModelColumn);
         string name = parameters.Values["Id"];
         if (parameters.Values.ContainsKey("CalcPropertyName"))
         {
             name = parameters.Values["CalcPropertyName"];
             parameters.Values.Remove("CalcPropertyName");
         }
         parameters.Values.Add("PropertyName", name);
     }
     if (typeof(IModelListViewLoadWhenFiltered).IsAssignableFrom(parameters.NodeType) && parameters.Values.ContainsKey("LoadWhenFiltered"))
     {
         if (parameters.Values["LoadWhenFiltered"] == "True")
         {
             parameters.Values["LoadWhenFiltered"] = LoadWhenFiltered.FilterAndCriteria.ToString();
         }
         else if (parameters.Values["LoadWhenFiltered"] == "False")
         {
             parameters.Values["LoadWhenFiltered"] = LoadWhenFiltered.No.ToString();
         }
     }
 }
Пример #2
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     ConvertXml(parameters);
     if (parameters.XmlNodeName == "GridColumnOptions")
     {
         parameters.NodeType = typeof(IModelOptionsColumnGridView);
     }
 }
Пример #3
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     if (typeof(IModelListView).IsAssignableFrom(parameters.NodeType)&&parameters.ContainsKey("IsClonable")) {
         var value = parameters.Values["IsClonable"];
         parameters.Values.Remove("IsClonable");
         parameters.Values.Add(new KeyValuePair<string, string>("IsViewClonable",value));
     }
 }
 public void ConvertXml(ConvertXmlParameters parameters) {
     if (typeof(IModelListView).IsAssignableFrom(parameters.NodeType) &&
         parameters.Values.ContainsKey("EditorTypeName")) {
         if (parameters.Values["EditorTypeName"] ==
             "Xpand.ExpressApp.TreeListEditors.Win.XpandCategorizedListEditor")
             parameters.Values["EditorTypeName"] =
                 "Xpand.ExpressApp.TreeListEditors.Win.ListEditor.XpandCategorizedListEditor";
     }
 }
Пример #5
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     ConvertXml(parameters);
     if (typeof(IModelListView).IsAssignableFrom(parameters.NodeType) && parameters.ContainsKey("IsClonable"))
     {
         var value = parameters.Values["IsClonable"];
         parameters.Values.Remove("IsClonable");
         parameters.Values.Add(new KeyValuePair <string, string>("IsViewClonable", value));
     }
 }
Пример #6
0
 public void ConvertXml(ConvertXmlParameters parameters)
 {
     if (typeof(IModelListView).IsAssignableFrom(parameters.NodeType) && parameters.Values.ContainsKey("EditorTypeName"))
     {
         if (parameters.Values["EditorTypeName"] == "Xpand.ExpressApp.TreeListEditors.Win.XpandCategorizedListEditor")
         {
             parameters.Values["EditorTypeName"] = "Xpand.ExpressApp.TreeListEditors.Win.ListEditor.XpandCategorizedListEditor";
         }
     }
 }
Пример #7
0
 public void ConvertXml(ConvertXmlParameters parameters) {
     if (typeof(IModelExecutionContext).IsAssignableFrom(parameters.NodeType)) {
         switch (parameters.Values["Name"]) {
             case "ViewControlAdding":
                 parameters.Values["Name"] = ExecutionContext.ViewChanged.ToString();
                 break;
             case "ObjectChanged":
                 parameters.Values["Name"] = ExecutionContext.ObjectSpaceObjectChanged.ToString();
                 break;
         }
     }
 }
Пример #8
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     if (typeof(IModelMapView).IsAssignableFrom(parameters.NodeType))
     {
         const string oldPropertyName = "InfoWindowText";
         if (parameters.ContainsKey(oldPropertyName))
         {
             parameters.Values["InfoWindowTextMember"] = parameters.Values[oldPropertyName];
             parameters.Values.Remove(oldPropertyName);
         }
     }
 }
Пример #9
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     if (typeof(IModelMapView).IsAssignableFrom(parameters.NodeType))
     {
         const string oldPropertyName = "InfoWindowText";
         if (parameters.ContainsKey(oldPropertyName))
         {
             parameters.Values["InfoWindowTextMember"] = parameters.Values[oldPropertyName];
             parameters.Values.Remove(oldPropertyName);
         }
     }
 }
Пример #10
0
 public void ConvertXml(ConvertXmlParameters parameters)
 {
     if (typeof(IModelMember).IsAssignableFrom(parameters.NodeType))
     {
         if (parameters.Values.ContainsKey("IsRuntimeMember") && parameters.XmlNodeName == "Member" && parameters.Values["IsRuntimeMember"].ToLower() == "true")
         {
             parameters.NodeType = typeof(IModelMemberPersistent);
         }
     }
     if (parameters.XmlNodeName == "CalculatedRuntimeMember")
     {
         parameters.NodeType = typeof(IModelMemberCalculated);
     }
 }
Пример #11
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     switch (parameters.XmlNodeName) {
         case "ConditionalDetailView":
             parameters.NodeType = typeof(IModelLogicConditionalObjectView);
             break;
         case "ConditionalDetailViewRule":
             parameters.NodeType = typeof(IModelObjectViewRule);
             break;
         case "ConditionalObjectViewRule":
             parameters.NodeType = typeof(IModelObjectViewRule);
             break;
     }
 }
Пример #12
0
        public void ConvertXml(ConvertXmlParameters parameters)
        {
            if (typeof(IModelExecutionContext).IsAssignableFrom(parameters.NodeType))
            {
                switch (parameters.Values["Name"])
                {
                case "ViewControlAdding":
                    parameters.Values["Name"] = ExecutionContext.ViewChanged.ToString();
                    break;

                case "ObjectChanged":
                    parameters.Values["Name"] = ExecutionContext.ObjectSpaceObjectChanged.ToString();
                    break;
                }
            }
        }
Пример #13
0
        void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
        {
            ConvertXml(parameters);
            switch (parameters.XmlNodeName)
            {
            case "ConditionalDetailView":
                parameters.NodeType = typeof(IModelLogicConditionalObjectView);
                break;

            case "ConditionalDetailViewRule":
                parameters.NodeType = typeof(IModelObjectViewRule);
                break;

            case "ConditionalObjectViewRule":
                parameters.NodeType = typeof(IModelObjectViewRule);
                break;
            }
        }
Пример #14
0
 public void ConvertXml(ConvertXmlParameters parameters) {
     if (typeof(IModelMember).IsAssignableFrom(parameters.NodeType)) {
         if (parameters.Values.ContainsKey("IsRuntimeMember") && parameters.XmlNodeName == "Member" && parameters.Values["IsRuntimeMember"].ToLower() == "true")
             parameters.NodeType = typeof(IModelRuntimeMember);
     }
     if (parameters.XmlNodeName == "CalculatedRuntimeMember") {
         parameters.NodeType = typeof(IModelRuntimeCalculatedMember);
     }
 }
Пример #15
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     var currentVersion = new Version(XpandAssemblyInfo.Version);
     if (currentVersion>new Version("0.0.0.0")&&currentVersion<new Version("14.1.5.2")){
         if (string.CompareOrdinal("RuntimeCalculatedColumn", parameters.XmlNodeName)==0){
             parameters.NodeType = typeof (IModelColumn);
             string name = parameters.Values["Id"];
             if (parameters.Values.ContainsKey("CalcPropertyName")) {
                 name = parameters.Values["CalcPropertyName"];
                 parameters.Values.Remove("CalcPropertyName");
             }
             parameters.Values.Add("PropertyName",name);
         }
         if (typeof(IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType) && parameters.Values.ContainsKey("PreventLoadingData")) {
             if (parameters.Values["LoadWhenFiltered"] == "True") {
                 parameters.Values["LoadWhenFiltered"] = "FilterAndCriteria";
             }
             else if (parameters.Values["LoadWhenFiltered"] == "False") {
                 parameters.Values["LoadWhenFiltered"] = "No";
             }
         }
     }
     if (currentVersion > new Version("14.1.5.1")){
         if (typeof (IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType)){
             if (parameters.Values.ContainsKey("LoadWhenFiltered")){
                 string value = parameters.Values["LoadWhenFiltered"];
                 if (!string.IsNullOrEmpty(value)){
                     if (value == "No")
                         parameters.Values["PreventLoadingData"] = "Never";
                     else if (value=="Filter")
                         parameters.Values["PreventLoadingData"] = "FiltersEmpty";
                     else if (value == "FilterAndCriteria")
                         parameters.Values["PreventLoadingData"] = "SearchOrFiltersOrCriteriaEmpty";
                     else{
                         parameters.Values["PreventLoadingData"] = value;
                     }
                 }
             }
         }
     }
     if (currentVersion > new Version("14.1.5.3")){
         if (typeof (IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType)){
             if (parameters.Values.ContainsKey("SearchAndFiltersEmpty")) {
                 string value = parameters.Values["SearchAndFiltersEmpty"];
                 if (!string.IsNullOrEmpty(value)){
                     parameters.Values["SearchAndFiltersEmpty"] = "FiltersEmpty";
                 }
             }
             if (parameters.Values.ContainsKey("SearchAndFiltersAndCriteriaEmpty")) {
                 string value = parameters.Values["SearchAndFiltersAndCriteriaEmpty"];
                 if (!string.IsNullOrEmpty(value)){
                     parameters.Values["SearchAndFiltersAndCriteriaEmpty"] = "FiltersAndCriteriaEmpty";
                 }
             }
         }
     }
 }
Пример #16
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     if (string.CompareOrdinal("RuntimeCalculatedColumn", parameters.XmlNodeName)==0){
         parameters.NodeType = typeof (IModelColumn);
         string name = parameters.Values["Id"];
         if (parameters.Values.ContainsKey("CalcPropertyName")) {
             name = parameters.Values["CalcPropertyName"];
             parameters.Values.Remove("CalcPropertyName");
         }
         parameters.Values.Add("PropertyName",name);
     }
 }
Пример #17
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
 {
     ConvertXml(parameters);
 }
Пример #18
0
        void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters)
        {
            ConvertXml(parameters);
            var currentVersion = new Version(XpandAssemblyInfo.Version);

            if (currentVersion > new Version("0.0.0.0") && currentVersion < new Version("14.1.5.2"))
            {
                if (string.CompareOrdinal("RuntimeCalculatedColumn", parameters.XmlNodeName) == 0)
                {
                    parameters.NodeType = typeof(IModelColumn);
                    string name = parameters.Values["Id"];
                    if (parameters.Values.ContainsKey("CalcPropertyName"))
                    {
                        name = parameters.Values["CalcPropertyName"];
                        parameters.Values.Remove("CalcPropertyName");
                    }
                    parameters.Values.Add("PropertyName", name);
                }
                if (typeof(IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType) && parameters.Values.ContainsKey("PreventLoadingData"))
                {
                    if (parameters.Values["LoadWhenFiltered"] == "True")
                    {
                        parameters.Values["LoadWhenFiltered"] = "FilterAndCriteria";
                    }
                    else if (parameters.Values["LoadWhenFiltered"] == "False")
                    {
                        parameters.Values["LoadWhenFiltered"] = "No";
                    }
                }
            }
            if (currentVersion > new Version("14.1.5.1"))
            {
                if (typeof(IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType))
                {
                    if (parameters.Values.ContainsKey("LoadWhenFiltered"))
                    {
                        string value = parameters.Values["LoadWhenFiltered"];
                        if (!string.IsNullOrEmpty(value))
                        {
                            if (value == "No")
                            {
                                parameters.Values["PreventLoadingData"] = "Never";
                            }
                            else if (value == "Filter")
                            {
                                parameters.Values["PreventLoadingData"] = "FiltersEmpty";
                            }
                            else if (value == "FilterAndCriteria")
                            {
                                parameters.Values["PreventLoadingData"] = "SearchOrFiltersOrCriteriaEmpty";
                            }
                            else
                            {
                                parameters.Values["PreventLoadingData"] = value;
                            }
                        }
                    }
                }
            }
            if (currentVersion > new Version("14.1.5.3"))
            {
                if (typeof(IModelListViewPreventDataLoading).IsAssignableFrom(parameters.NodeType))
                {
                    if (parameters.Values.ContainsKey("SearchAndFiltersEmpty"))
                    {
                        string value = parameters.Values["SearchAndFiltersEmpty"];
                        if (!string.IsNullOrEmpty(value))
                        {
                            parameters.Values["SearchAndFiltersEmpty"] = "FiltersEmpty";
                        }
                    }
                    if (parameters.Values.ContainsKey("SearchAndFiltersAndCriteriaEmpty"))
                    {
                        string value = parameters.Values["SearchAndFiltersAndCriteriaEmpty"];
                        if (!string.IsNullOrEmpty(value))
                        {
                            parameters.Values["SearchAndFiltersAndCriteriaEmpty"] = "FiltersAndCriteriaEmpty";
                        }
                    }
                }
            }
        }
Пример #19
0
 public void ConvertXml(ConvertXmlParameters parameters) {
     if (typeof(IModelExecutionContext).IsAssignableFrom(parameters.NodeType))
         if (parameters.Values["Name"] == "ViewControlAdding") {
             parameters.Values["Name"] = ExecutionContext.ViewChanged.ToString();
         }
 }
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     if (parameters.XmlNodeName == "GridColumnOptions")
         parameters.NodeType = typeof (IModelOptionsColumnGridView);
     
 }
Пример #21
0
 void IModelXmlConverter.ConvertXml(ConvertXmlParameters parameters) {
     ConvertXml(parameters);
     if (string.CompareOrdinal("RuntimeCalculatedColumn", parameters.XmlNodeName)==0){
         parameters.NodeType = typeof (IModelColumn);
         string name = parameters.Values["Id"];
         if (parameters.Values.ContainsKey("CalcPropertyName")) {
             name = parameters.Values["CalcPropertyName"];
             parameters.Values.Remove("CalcPropertyName");
         }
         parameters.Values.Add("PropertyName",name);
     }
     if (typeof(IModelListViewLoadWhenFiltered).IsAssignableFrom(parameters.NodeType) && parameters.Values.ContainsKey("LoadWhenFiltered")) {
         if (parameters.Values["LoadWhenFiltered"] == "True"){
             parameters.Values["LoadWhenFiltered"] = LoadWhenFiltered.FilterAndCriteria.ToString();
         }
         else if (parameters.Values["LoadWhenFiltered"] == "False"){
             parameters.Values["LoadWhenFiltered"] = LoadWhenFiltered.No.ToString();
         }
     }
 }