- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
if(Model.User != null && Model.User.t_ApplicationPropertyValue != null && Model.User.t_ApplicationPropertyValue.Count > 0)
{
foreach (var applicationPropertyValue in Model.User.t_ApplicationPropertyValue)
{
if (applicationPropertyValue.t_ApplicationProperty != null && applicationPropertyValue.t_ApplicationProperty.t_DisplayType != null
&& propertyValues.ContainsKey(applicationPropertyValue.t_ApplicationProperty.PropertyName + "_" +
applicationPropertyValue.t_ApplicationProperty.t_DisplayType.DisplayTypeName) == false
&& String.IsNullOrEmpty(applicationPropertyValue.PropertyValue) == false)
propertyValues.Add(applicationPropertyValue.t_ApplicationProperty.PropertyName + "_" +
applicationPropertyValue.t_ApplicationProperty.t_DisplayType.DisplayTypeName, applicationPropertyValue.PropertyValue);
else if (applicationPropertyValue.t_ApplicationProperty != null && applicationPropertyValue.t_ApplicationProperty.t_DisplayType != null
&& propertyValues.ContainsKey(applicationPropertyValue.t_ApplicationProperty.PropertyName + "_" +
applicationPropertyValue.t_ApplicationProperty.t_DisplayType.DisplayTypeName) == false
&& String.IsNullOrEmpty(applicationPropertyValue.PropertyValue) == true && string.IsNullOrEmpty(applicationPropertyValue.t_ApplicationProperty.DefaultValue) == false)
propertyValues.Add(applicationPropertyValue.t_ApplicationProperty.PropertyName + "_" +
applicationPropertyValue.t_ApplicationProperty.t_DisplayType.DisplayTypeName, applicationPropertyValue.t_ApplicationProperty.DefaultValue);
}
}
user654321 02.09.2010 15:32 # +4
Анонимус 05.09.2010 14:51 # +1