Click here to Skip to main content
15,886,666 members
Articles / Web Development / HTML

Signum Framework Tutorials Part 3 - Southwind Load

Rate me:
Please Sign up or sign in to vote.
4.62/5 (7 votes)
21 Nov 2012CPOL23 min read 24.4K   319   10  
In this part we'll write the loading application to move data from Northwind to Southwind.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.235
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ASP
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using Signum.Utilities;
    using Signum.Entities;
    using Signum.Web;
    using System.Collections;
    using System.Collections.Specialized;
    using System.ComponentModel.DataAnnotations;
    using System.Configuration;
    using System.Text;
    using System.Text.RegularExpressions;
    using System.Web.Caching;
    using System.Web.DynamicData;
    using System.Web.SessionState;
    using System.Web.Profile;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using System.Xml.Linq;
    using Signum.Entities.Reflection;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("MvcRazorClassGenerator", "1.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Signum/Views/PopupOkControl.cshtml")]
    public class _Page_Signum_Views_PopupOkControl_cshtml : System.Web.Mvc.WebViewPage<TypeContext>
    {


        public _Page_Signum_Views_PopupOkControl_cshtml()
        {
        }
        protected System.Web.HttpApplication ApplicationInstance
        {
            get
            {
                return ((System.Web.HttpApplication)(Context.ApplicationInstance));
            }
        }
        public override void Execute()
        {


WriteLiteral("<div id=\"");


    Write(Model.Compose("panelPopup"));

WriteLiteral("\" data-title=\"");


                                              Write(Navigator.Manager.GetTypeTitle(Model.UntypedValue as ModifiableEntity));

WriteLiteral("\">\r\n    <h2><span class=\"sf-entity-title\">");


                                  Write(ViewBag.Title ?? Model.UntypedValue.TryToString());

WriteLiteral("</span></h2>\r\n    <div class=\"sf-button-bar\">\r\n        <button id=\"");


               Write(Model.Compose("btnOk"));

WriteLiteral("\" class=\"sf-entity-button sf-ok-button\" ");


                                                                               Write(ViewData[ViewDataKeys.OnOk] != null ? Html.Raw("onclick=\"" + ViewData[ViewDataKeys.OnOk] + "\"") : null);

WriteLiteral(">\r\n                OK</button>                \r\n    </div>\r\n    ");


Write(Html.ValidationSummaryAjax(Model));

WriteLiteral("\r\n    ");


Write(Html.PopupHeader());

WriteLiteral("\r\n    <div id=\"");


        Write(Model.Compose("divMainControl"));

WriteLiteral("\" class=\"sf-main-control\">\r\n");


           Html.RenderPartial(ViewData[ViewDataKeys.PartialViewName].ToString(), Model);

WriteLiteral("    </div>\r\n</div>\r\n");


        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Signum Software
Spain Spain
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.

www.signumframework.com

I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...

Comments and Discussions