Very close to having SRU working.
This commit is contained in:
parent
ae09844508
commit
9d09c248d0
3 changed files with 51 additions and 37 deletions
|
|
@ -9,8 +9,8 @@
|
|||
Transform ADL into (partial) controller classes
|
||||
|
||||
$Author: sb $
|
||||
$Revision: 1.27 $
|
||||
$Date: 2009-02-06 17:48:58 $
|
||||
$Revision: 1.28 $
|
||||
$Date: 2009-02-19 15:29:27 $
|
||||
-->
|
||||
|
||||
<!-- WARNING WARNING WARNING: Do NOT reformat this file!
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
//
|
||||
// Automatically generated abstract super class for controllers for the
|
||||
// <xsl:value-of select="/adl:application/@name"/> application; generated using
|
||||
// adl2controllerclasses.xslt version <xsl:value-of select="substring( '$Revision: 1.27 $', 10)"/>
|
||||
// adl2controllerclasses.xslt version <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>
|
||||
//
|
||||
// <xsl:value-of select="/adl:application/@revision"/>
|
||||
//
|
||||
|
|
@ -109,9 +109,8 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="$authentication-layer = 'Application'"/>
|
||||
<xsl:when test="$authentication-layer = 'Database'">
|
||||
public <xsl:value-of select="concat( 'Abstract', /adl:application/@name, 'Controller')"/>(){
|
||||
dbSessionProvider = new DBLayerSessionProvider();
|
||||
}
|
||||
/* authentication layer is requested to be 'database', but in fact database-layer
|
||||
authentication does not work well with NHibernate so this is being ignored. */
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:message terminate="yes">
|
||||
|
|
@ -181,7 +180,7 @@
|
|||
//
|
||||
// Controller for auto-generated forms for editing <xsl:value-of select="@name"/>s
|
||||
// Automatically generated from application description using
|
||||
// adl2controllerclasses.xslt version <xsl:value-of select="substring( '$Revision: 1.27 $', 10)"/>
|
||||
// adl2controllerclasses.xslt version <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>
|
||||
//
|
||||
// This file is automatically generated; DO NOT EDIT IT.
|
||||
//
|
||||
|
|
@ -435,7 +434,8 @@
|
|||
<xsl:variable name="entityname" select="@entity"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="//adl:entity[@name=$entityname]">
|
||||
if ( ! String.IsNullOrEmpty( Form["<xsl:value-of select="concat( 'instance.', @name)"/>"]))
|
||||
if ( ! String.IsNullOrEmpty( Form["<xsl:value-of select="concat( 'instance.', @name)"/>"]) &&
|
||||
! EntityMenuControl<<xsl:value-of select="concat( $entityns, '.', @entity)"/>>.NULLMARKER.Equals ( Form["<xsl:value-of select="concat( 'instance.', @name)"/>"]))
|
||||
{
|
||||
record.<xsl:value-of select="@name"/> = <xsl:call-template name="fetch-property-instance">
|
||||
<xsl:with-param name="property" select="."/>
|
||||
|
|
@ -939,12 +939,6 @@
|
|||
{
|
||||
ISession hibernator = GetDBSession();
|
||||
|
||||
if ( record == null ){
|
||||
record = new <xsl:value-of select="concat($entityns, '.', ancestor::adl:entity/@name)"/>();
|
||||
|
||||
BindObjectInstance( record, ParamStore.Form, "instance");
|
||||
}
|
||||
|
||||
TypedPropertyBag = new {
|
||||
<xsl:call-template name="formmenus">
|
||||
<xsl:with-param name="form" select="."/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue