SchedulerResource.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%@ page language="java" import="java.util.*,java.text.SimpleDateFormat" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <%SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
  8. String date=format.format(new Date());%>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13. <link href="<%=basePath %>resource/gnt/resources/css/ext-all-gray.css" rel="stylesheet" type="text/css" />
  14. <link href="<%=basePath %>resource/gnt/css/sch-gantt-all.css" rel="stylesheet" type="text/css" />
  15. <link href="<%=basePath %>resource/gnt/css/examples.css" rel="stylesheet" type="text/css" />
  16. <script src="<%=basePath %>resource/gnt/ext-all.js" type="text/javascript"></script>
  17. <script src="<%=basePath %>resource/gnt/sch-all-debug.js" type="text/javascript"></script>
  18. <script src="<%=basePath %>app/util/BaseUtil.js" type="text/javascript"></script>
  19. <script src="<%=basePath %>resource/i18n/i18n.js" type="text/javascript"></script>
  20. <script type="text/javascript">
  21. Ext.Loader.setConfig({
  22. enabled: true
  23. });//开启动态加载
  24. Ext.application({
  25. name: 'erp',//为应用程序起一个名字,相当于命名空间
  26. appFolder: basePath+'app',//app文件夹所在路径
  27. controllers: [//声明所用到的控制层
  28. 'oa.SchedulerResource'
  29. ],
  30. launch: function() {
  31. Ext.create('erp.view.oa.SchedulerResource');//创建视图
  32. }
  33. });
  34. var caller = getUrlParam('caller');
  35. var triggerId = getUrlParam('trigger');
  36. var trigger = parent.Ext.getCmp(triggerId);
  37. </script>
  38. </head>
  39. <body>
  40. <div id="north">
  41. </div>
  42. </body>
  43. </html>