예제 #1
0
protected void GenerateAction(ActionInfo action)
{
        
        #line default
        #line hidden
        
        #line 29 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write("ED47.Stack.Controllers.");

        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.ControllerInfo.ControllerType.Name));

        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(".");

        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(action.Name));

        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(" = function(");

        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
GenerateParameters(action);
        
        #line default
        #line hidden
        
        #line 30 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write("callBack, context){\t\r\n\tED47.Ajax.request(\"");

        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(action.GetUrl()));

        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write("\", \"");

        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(action.Verb));

        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write("\" , { ");

        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
GenerateParameterObject(action);
        
        #line default
        #line hidden
        
        #line 31 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
this.Write(" }, callBack, null, context);\r\n}\r\n");

        
        #line default
        #line hidden
        
        #line 33 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsMvcController.tt"
}
예제 #2
0
        protected void GenerateAction(ActionInfo action)
        {
        #line default
        #line hidden

        #line 42 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write("ED47.Stack.Controllers.");


        #line default
        #line hidden

        #line 43 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.ControllerInfo.ControllerType.Name));


        #line default
        #line hidden

        #line 43 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(".");


        #line default
        #line hidden

        #line 43 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(action.Name));


        #line default
        #line hidden

        #line 43 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(" = function(parameters, callBack, context){\r\n\twindow.ajaxRequest.request(\"");


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(action.GetUrl()));


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write("\", \"");


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(action.Verb));


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write("\" , parameters, callBack, null, context, ");


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(action.EnableClientCaching.ToString().ToLower()));


        #line default
        #line hidden

        #line 44 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
            this.Write(");\t\r\n}\r\n");


        #line default
        #line hidden

        #line 46 "D:\projets\Grc.Tool\ED47.Stack\ED47.Stack.Reflector\Templates\JsApiController.tt"
        }