Measure.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "viewSetting": {
  3. "html": "<table width='100%' border='0' cellpadding='0' cellspacing='0' styles='editTable' id='tabList'></table>"
  4. },
  5. "viewHeadSetting":{
  6. "html":"<thead></thead>"
  7. },
  8. "viewBodySetting":{
  9. "html":"<tbody id='tabBody'></tbody>"
  10. },
  11. "headSetting": {
  12. "html": "<tr styles='viewHeadNode'></tr>"
  13. },
  14. "documentSetting": {
  15. "html": "<tr styles='documentNode'></tr>",
  16. "mouseoverStyles": "documentNode_over",
  17. "action": "open"
  18. },
  19. "items": [
  20. {
  21. "name": "NO",
  22. "head": {
  23. "html": "<th styles='NOThNode' lable='NO'></th>",
  24. "width": "80px"
  25. },
  26. "content": {
  27. "html": "<td styles='NOTdNode' class='dragTr'>" +
  28. " <div item='sequencenumber' styles='documentNOTitle'></div>" +
  29. "</td>",
  30. "width":"80px",
  31. "items": {
  32. "sequencenumber": {}
  33. }
  34. }
  35. },
  36. {
  37. "name": "title",
  38. "head": {
  39. "html": "<th styles='normalThNode' lable='title'></th>",
  40. "width": "250px"
  41. },
  42. "content": {
  43. "html": "<td styles='normalTdNode'>" +
  44. " <div item='title' styles='documentSubject'></div>" +
  45. "</td>",
  46. "width":"250px",
  47. "items": {
  48. "title": {"value":"function(d){return d.measuresinfotitle}"}
  49. }
  50. }
  51. },
  52. {
  53. "name": "department",
  54. "head": {
  55. "html": "<th styles='normalThNode' lable='department'></th>",
  56. "width": "250px"
  57. },
  58. "content": {
  59. "html": "<td styles='normalTdNode'>" +
  60. " <div item='deptlist' styles='documentSubject'></div>" +
  61. "</td>",
  62. "width": "250px",
  63. "items": {
  64. "deptlist": {"value":"function(d){var r='';var vs=d.deptlist;for(i=0;i<vs.length;i++){if(r==''){r=vs[i].split('@')[0]}else{r=r+','+vs[i].split('@')[0]}}return r}"}
  65. }
  66. }
  67. },
  68. {
  69. "name": "content",
  70. "head": {
  71. "html": "<th styles='normalThNode' lable='content'></th>",
  72. "width": ""
  73. },
  74. "content": {
  75. "html": "<td styles='normalTdNode'>" +
  76. " <div item='measuresinfodescribe' styles='documentSubject'></div>" +
  77. "</td>",
  78. "items": {
  79. "measuresinfodescribe": {}
  80. }
  81. }
  82. },
  83. {
  84. "head": {
  85. "html": "<th styles='normalThNode' lable='action'></th>",
  86. "width": "100px"
  87. },
  88. "content": {
  89. "html": "<td styles='normalTdNode'>" +
  90. " <div styles='documentOpenActionNode' id='openDiv' item='action_open'></div>" +
  91. " <div styles='documentEditActionNode' item='action_edit'></div>" +
  92. " <div styles='documentDeleteActionNode' item='action_delete'></div>" +
  93. "</td>",
  94. "width": "100px",
  95. "items": {
  96. "action_open": {
  97. "title": "action_open",
  98. "action": "action_open",
  99. "styles": "documentOpenActionNode",
  100. "condition": "function( d ){return this.openActionReturn(d) }",
  101. "mouseoverStyles": "documentOpenActionNode_over",
  102. "mouseoutStyles": "documentOpenActionNode_out"
  103. },
  104. "action_edit": {
  105. "title": "action_edit",
  106. "action": "action_edit",
  107. "styles": "documentEditActionNode",
  108. "condition": "function( d ){ return this.editActionReturn(d) }",
  109. "mouseoverStyles": "documentEditActionNode_over",
  110. "mousedownStyles": "documentActionNode_down"
  111. },
  112. "action_delete": {
  113. "title": "action_delete",
  114. "action": "action_delete",
  115. "styles": "documentDeleteActionNode",
  116. "condition": "function( d ){ return this.deleteActionReturn(d) }",
  117. "mouseoverStyles": "documentDeleteActionNode_over",
  118. "mousedownStyles": "documentActionNode_down"
  119. }
  120. }
  121. }
  122. }
  123. ]
  124. }