tenderEstimate.jsp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <%@ page language="java" 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. <!DOCTYPE html>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  12. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  13. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ux/css/CheckHeader.css" />
  14. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  15. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  16. <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
  17. <style>
  18. .x-column-header{
  19. text-align: center;
  20. }
  21. </style>
  22. <script type="text/javascript">
  23. Ext.Loader.setConfig({
  24. enabled: true
  25. });//开启动态加载
  26. Ext.application({
  27. name: 'erp',//为应用程序起一个名字,相当于命名空间
  28. appFolder: basePath+'app',//app文件夹所在路径
  29. controllers: [//声明所用到的控制层
  30. 'scm.purchase.TenderEstimate'
  31. ],
  32. launch: function() {
  33. Ext.create('erp.view.scm.purchase.TenderEstimate');//创建视图
  34. }
  35. });
  36. var caller = 'TenderEstimate';
  37. var formCondition = getUrlParam('formCondition');
  38. var gridCondition = getUrlParam('gridCondition');
  39. var id = formCondition.substr(formCondition.indexOf('idIS')+4).replace(/[' "]/g,"");
  40. function showTrigger(gridId,val,name,x,y){//明细行文本框
  41. val = unescape(val);
  42. var store = Ext.getCmp(gridId).store;
  43. var record = store.getAt(x);
  44. Ext.MessageBox.minPromptWidth = 600;
  45. Ext.MessageBox.defaultTextHeight = 200;
  46. Ext.MessageBox.style= 'background:#e0e0e0;';
  47. Ext.MessageBox.prompt("详细内容", '',
  48. function(btn, text) {
  49. if (btn == 'ok') {
  50. if (name&&record) {
  51. record.set(name, text);
  52. }
  53. }
  54. },
  55. this, true, //表示文本框为多行文本框
  56. val);
  57. }
  58. </script>
  59. </head>
  60. <body>
  61. </body>
  62. </html>