Exemplo n.º 1
0
 public void RegisterCRMResources()
 {
     Master
     .AddStyles(ResolveUrl, "~/products/crm/app_themes/default/css/common.less",
                "~/products/crm/app_themes/default/css/contacts.less")
     .AddBodyScripts(ResolveUrl,
                     "~/products/crm/js/contacts.js",
                     "~/products/crm/js/common.js");
 }
        protected void WriteClientScripts()
        {
            WriteProjectResources();

            if (Page is GanttChart)
            {
                Master.AddBodyScripts(ResolveUrl, "~/js/third-party/jquery/jquery.autosize.js");
                Master.AddBodyScripts(PathProvider.GetFileStaticRelativePath,
                                      "jq_projects_extensions.js",
                                      "common.js",
                                      "taskaction.js",
                                      "milestoneaction.js",
                                      "ganttchart_min.js",
                                      "ganttchartpage.js");
                return;
            }

            Master.AddStyles(PathProvider.GetFileStaticRelativePath,
                             "common.css",
                             "allprojects.less",
                             "projectaction.css",
                             "milestones.less",
                             "tasks.css",
                             "alltasks.less",
                             "discussions.css",
                             "timetracking.css",
                             "projectteam.less",
                             "projecttemplates.css",
                             "import.css",
                             "reports.css");

            Master.AddBodyScripts(PathProvider.GetFileStaticRelativePath,
                                  "jq_projects_extensions.js",
                                  "common.js",
                                  "base.js",
                                  "navsidepanel.js",
                                  "taskaction.js",
                                  "milestoneaction.js",
                                  "projectnavpanel.js",
                                  "common_filter_projects.js",
                                  "subtasks.js",
                                  "tasks.js",
                                  "taskdescription.js",
                                  "projects.js",
                                  "projecttemplates.js",
                                  "projectteam.js",
                                  "milestones.js",
                                  "discussions.js",
                                  "timetracking.js",
                                  "apitimetraking.js");

            Master.AddBodyScripts(ResolveUrl, "~/js/third-party/jquery/jquery.autosize.js", "~/js/uploader/ajaxupload.js");
        }