示例#1
0
 protected void define_styles( )
 {
    AddThemeStyleSheetFile("", context.GetTheme( )+".css", "?"+GetCacheInvalidationToken( ));
    if ( ! ( WebComp_Generalwc == null ) )
    {
       if ( StringUtil.Len( WebComp_Generalwc_Component) != 0 )
       {
          WebComp_Generalwc.componentthemes();
       }
    }
    bool outputEnabled = isOutputEnabled( ) ;
    if ( context.isSpaRequest( ) )
    {
       enableOutput();
    }
    idxLst = 1;
    while ( idxLst <= Form.Jscriptsrc.Count )
    {
       context.AddJavascriptSource(StringUtil.RTrim( ((String)Form.Jscriptsrc.Item(idxLst))), "?20202271159673", true);
       idxLst = (int)(idxLst+1);
    }
    if ( ! outputEnabled )
    {
       if ( context.isSpaRequest( ) )
       {
          disableOutput();
       }
    }
    /* End function define_styles */
 }
示例#2
0
 protected void define_styles( )
 {
     AddThemeStyleSheetFile("", context.GetTheme( ) + ".css", "?738724");
     if (!(WebComp_Generalwc == null))
     {
         if (StringUtil.Len(WebComp_Generalwc_Component) != 0)
         {
             WebComp_Generalwc.componentthemes();
         }
     }
     idxLst = 1;
     while (idxLst <= Form.Jscriptsrc.Count)
     {
         context.AddJavascriptSource(StringUtil.RTrim(((String)Form.Jscriptsrc.Item(idxLst))), "?20151207382255");
         idxLst = (int)(idxLst + 1);
     }
     /* End function define_styles */
 }