forked from Baud-UCS/DEF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed build error (re-run T4 templates), improved Edit screens. Relat…
…es to Baud-UCS#27
- Loading branch information
Showing
8 changed files
with
383 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
185 changes: 185 additions & 0 deletions
185
src/Server/DeploymentFramework/Web/Security.PositionsController.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
// <auto-generated /> | ||
// This file was generated by a T4 template. | ||
// Don't change it directly as your change would get overwritten. Instead, make changes | ||
// to the .tt file (i.e. the T4 template) and save it to regenerate this file. | ||
|
||
// Make sure the compiler doesn't complain about missing Xml comments | ||
#pragma warning disable 1591 | ||
#region T4MVC | ||
|
||
using System; | ||
using System.Diagnostics; | ||
using System.CodeDom.Compiler; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
using System.Threading.Tasks; | ||
using System.Web; | ||
using System.Web.Hosting; | ||
using System.Web.Mvc; | ||
using System.Web.Mvc.Ajax; | ||
using System.Web.Mvc.Html; | ||
using System.Web.Routing; | ||
using T4MVC; | ||
using Baud.Deployment.Web.Framework.Security; | ||
namespace Baud.Deployment.Web.Areas.Security.Controllers | ||
{ | ||
public partial class PositionsController | ||
{ | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
protected PositionsController(Dummy d) { } | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
protected RedirectToRouteResult RedirectToAction(ActionResult result) | ||
{ | ||
var callInfo = result.GetT4MVCResult(); | ||
return RedirectToRoute(callInfo.RouteValueDictionary); | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
protected RedirectToRouteResult RedirectToAction(Task<ActionResult> taskResult) | ||
{ | ||
return RedirectToAction(taskResult.Result); | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
protected RedirectToRouteResult RedirectToActionPermanent(ActionResult result) | ||
{ | ||
var callInfo = result.GetT4MVCResult(); | ||
return RedirectToRoutePermanent(callInfo.RouteValueDictionary); | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
protected RedirectToRouteResult RedirectToActionPermanent(Task<ActionResult> taskResult) | ||
{ | ||
return RedirectToActionPermanent(taskResult.Result); | ||
} | ||
|
||
[NonAction] | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public virtual System.Web.Mvc.ActionResult Index() | ||
{ | ||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Index); | ||
} | ||
[NonAction] | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public virtual System.Web.Mvc.ActionResult Detail() | ||
{ | ||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Detail); | ||
} | ||
[NonAction] | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public virtual System.Web.Mvc.ActionResult Edit() | ||
{ | ||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Edit); | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public PositionsController Actions { get { return MVC.Security.Positions; } } | ||
[GeneratedCode("T4MVC", "2.0")] | ||
public readonly string Area = "Security"; | ||
[GeneratedCode("T4MVC", "2.0")] | ||
public readonly string Name = "Positions"; | ||
[GeneratedCode("T4MVC", "2.0")] | ||
public const string NameConst = "Positions"; | ||
|
||
static readonly ActionNamesClass s_actions = new ActionNamesClass(); | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public ActionNamesClass ActionNames { get { return s_actions; } } | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public class ActionNamesClass | ||
{ | ||
public readonly string Index = "Index"; | ||
public readonly string Detail = "Detail"; | ||
public readonly string Edit = "Edit"; | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public class ActionNameConstants | ||
{ | ||
public const string Index = "Index"; | ||
public const string Detail = "Detail"; | ||
public const string Edit = "Edit"; | ||
} | ||
|
||
|
||
static readonly ViewsClass s_views = new ViewsClass(); | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public ViewsClass Views { get { return s_views; } } | ||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public class ViewsClass | ||
{ | ||
static readonly _ViewNamesClass s_ViewNames = new _ViewNamesClass(); | ||
public _ViewNamesClass ViewNames { get { return s_ViewNames; } } | ||
public class _ViewNamesClass | ||
{ | ||
public readonly string Detail = "Detail"; | ||
public readonly string Edit = "Edit"; | ||
public readonly string Index = "Index"; | ||
} | ||
public readonly string Detail = "~/Areas/Security/Views/Positions/Detail.cshtml"; | ||
public readonly string Edit = "~/Areas/Security/Views/Positions/Edit.cshtml"; | ||
public readonly string Index = "~/Areas/Security/Views/Positions/Index.cshtml"; | ||
} | ||
} | ||
|
||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode] | ||
public partial class T4MVC_PositionsController : Baud.Deployment.Web.Areas.Security.Controllers.PositionsController | ||
{ | ||
public T4MVC_PositionsController() : base(Dummy.Instance) { } | ||
|
||
[NonAction] | ||
partial void IndexOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Baud.Deployment.Web.Areas.Security.Models.Positions.IndexFilter filter, Baud.Deployment.Web.Framework.Web.PagingData paging); | ||
|
||
[NonAction] | ||
public override System.Web.Mvc.ActionResult Index(Baud.Deployment.Web.Areas.Security.Models.Positions.IndexFilter filter, Baud.Deployment.Web.Framework.Web.PagingData paging) | ||
{ | ||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Index); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "filter", filter); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "paging", paging); | ||
IndexOverride(callInfo, filter, paging); | ||
return callInfo; | ||
} | ||
|
||
[NonAction] | ||
partial void DetailOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, short id); | ||
|
||
[NonAction] | ||
public override System.Web.Mvc.ActionResult Detail(short id) | ||
{ | ||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Detail); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id); | ||
DetailOverride(callInfo, id); | ||
return callInfo; | ||
} | ||
|
||
[NonAction] | ||
partial void EditOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, short id); | ||
|
||
[NonAction] | ||
public override System.Web.Mvc.ActionResult Edit(short id) | ||
{ | ||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Edit); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id); | ||
EditOverride(callInfo, id); | ||
return callInfo; | ||
} | ||
|
||
[NonAction] | ||
partial void EditOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, short id, System.Web.Mvc.FormCollection form); | ||
|
||
[NonAction] | ||
public override System.Web.Mvc.ActionResult Edit(short id, System.Web.Mvc.FormCollection form) | ||
{ | ||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Edit); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id); | ||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "form", form); | ||
EditOverride(callInfo, id, form); | ||
return callInfo; | ||
} | ||
|
||
} | ||
} | ||
|
||
#endregion T4MVC | ||
#pragma warning restore 1591 |
Oops, something went wrong.