Skip to content

Commit

Permalink
Merge pull request #236 from SeriaWei/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
SeriaWei authored Oct 24, 2018
2 parents 16ac87f + e465154 commit 3eb984e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Binary file modified DataBase/InitialData/dbo.Language.Table.sql
Binary file not shown.
2 changes: 1 addition & 1 deletion DataBase/MySql/Dump3.1.1.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion DataBase/MySql/Dump3.1.2.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/EasyFrameWork/ViewPort/Validator/RegularValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RegularValidator : ValidatorBase
public RegularValidator(string expression)
{
this.Expression = expression;
BaseErrorMessage = "{0}的输入的值不舒合要求";
BaseErrorMessage = "{0}的输入的值不符合要求";
}
public string Expression { get; set; }

Expand Down
14 changes: 7 additions & 7 deletions src/ZKEACMS/Filter/WidgetAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace ZKEACMS.Filter
{
public class WidgetAttribute : ActionFilterAttribute, IActionFilter
{

private const string UnknownZone = "UnknownZone";
public virtual PageEntity GetPage(ActionExecutedContext filterContext)
{
string path = filterContext.RouteData.GetPath();
Expand Down Expand Up @@ -103,13 +103,13 @@ public override void OnActionExecuted(ActionExecutedContext filterContext)
WidgetViewModelPart part = partDriver.Display(widget, filterContext);
if (part != null)
{
if (layout.ZoneWidgets.ContainsKey(part.Widget.ZoneID))
if (layout.ZoneWidgets.ContainsKey(part.Widget.ZoneID ?? UnknownZone))
{
layout.ZoneWidgets[part.Widget.ZoneID].TryAdd(part);
layout.ZoneWidgets[part.Widget.ZoneID ?? UnknownZone].TryAdd(part);
}
else
{
layout.ZoneWidgets.Add(part.Widget.ZoneID, new WidgetCollection { part });
layout.ZoneWidgets.Add(part.Widget.ZoneID ?? UnknownZone, new WidgetCollection { part });
}
}
partDriver.Dispose();
Expand All @@ -135,13 +135,13 @@ public override void OnActionExecuted(ActionExecutedContext filterContext)
if (part != null && zone != null)
{
part.Widget.ZoneID = zone.HeadingCode;
if (layout.ZoneWidgets.ContainsKey(part.Widget.ZoneID))
if (layout.ZoneWidgets.ContainsKey(part.Widget.ZoneID ?? UnknownZone))
{
layout.ZoneWidgets[part.Widget.ZoneID].TryAdd(part);
layout.ZoneWidgets[part.Widget.ZoneID ?? UnknownZone].TryAdd(part);
}
else
{
layout.ZoneWidgets.Add(part.Widget.ZoneID, new WidgetCollection { part });
layout.ZoneWidgets.Add(part.Widget.ZoneID ?? UnknownZone, new WidgetCollection { part });
}

}
Expand Down

0 comments on commit 3eb984e

Please sign in to comment.