Hierachical.xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  3. <xhtml:head>
  4. <xhtml:title>Untitle</xhtml:title>
  5. <model id="model1">
  6. <instance id="instance1">
  7. <root xmlns="">
  8. <gridData/>
  9. <reqData/>
  10. <resData/>
  11. <formData/>
  12. </root>
  13. </instance>
  14. </model>
  15. <script type="javascript" src="../../js/boaMsg.js"/>
  16. <script type="javascript" src="../../js/boaCommon.js"/>
  17. <script type="javascript" src="../../js/mesCommon.js"/>
  18. <script type="javascript">
  19. <![CDATA[
  20. function findAll() {
  21. model.removenode("/root/reqData");
  22. model.makeNode("/root/reqData");
  23. commSubmit("Hierachical-service" ,"findAll" ,"glueAction.do" );
  24. commAppendData("/root/gridData/ListResult_1_VO" ,"/root/resData/ListResult_1_VO" );
  25. dg1.rebuild();
  26. dg1.outlinelevelcol = dg1.colRef("LEVEL");
  27. // for(var i = 1; i < dg1.rows; i++) {
  28. // dg1.outlinelevel(i) = model.getValue(dg1.nodeset + "["+i+"]/LEVEL");
  29. // }
  30. dg1.outlinecol = dg1.colRef("MAT_SPEC_SEQ");
  31. dg1.treecolor = "red";
  32. dg1.outlinebar = 4;
  33. model.refresh();
  34. }
  35. ]]>
  36. </script>
  37. </xhtml:head>
  38. <xhtml:body>
  39. <caption id="caption1" style="left:10px; top:10px; width:290px; height:25px; font-weight:bold; color:#0000ff; vertical-align:middle; ">2. Hierachical Example</caption>
  40. <button id="button1" style="left:310px; top:10px; width:100px; height:25px; ">
  41. <caption>FindAll</caption>
  42. <script type="javascript" ev:event="DOMActivate">
  43. <![CDATA[
  44. findAll();
  45. ]]>
  46. </script>
  47. </button>
  48. <line id="line1" style="x1:300px; y1:34px; x2:10px; y2:34px; border-color:#0000ff; "/>
  49. <datagrid id="dg1" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="LEVEL^MAT_SPEC_SEQ^PMAT_SPEC_SEQ^MAT_TP^EXP_MAT_NO^WITHIN_SUB_SEQ^CMAT_CNT^FAC_STL_GRD^FAC_STL_GRP^MAT_RT^TREAT_RT_CD^PATH_PROC_CD^LINE_PROC_CD^MAT_THK^MAT_WTH^MAT_LEN^MAT_LEN_MIN^MAT_LEN_MAX^MAT_WGT^CCM_TERM_TIME^WID_CHG_FL^HCR_YN^EMGMTR_YN^SMS_DUEDATE^PRC_LINE^CCM_PRC_LINE^PROG_CD^SLAB_CUT_SEQ^DSG_RATE^OVER_ROLL_YN^SAMPLE_CUT^ORD_FL^ORD_NO^ORD_SEQ^DELV_REQ_DATE^SPM_PROC_YN^SCARPING_PROC_YN^SEND_STS^COMB_YN^COIL_THK^COIL_WTH^COIL_LEN^COIL_WGT^REG_ID^REG_DTIME^MOD_ID^MOD_DTIME^DSN_SLAB_NO^P_DSN_SLAB_NO^GRAVITY^AUTODSN_YN^COIL_INDIA^COIL_OUTDIA^" colsep="^" colwidth="35, 150, 120, 60, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:50px; width:885px; height:450px; ">
  50. <col editable="false" ref="LEVEL" type="input"/>
  51. <col editable="false" ref="MAT_SPEC_SEQ" type="input"/>
  52. <col editable="false" ref="PMAT_SPEC_SEQ" type="input"/>
  53. <col editable="false" ref="MAT_TP" type="input"/>
  54. <col editable="false" ref="EXP_MAT_NO" type="input"/>
  55. <col editable="false" ref="WITHIN_SUB_SEQ" type="input"/>
  56. <col editable="false" ref="CMAT_CNT" type="input"/>
  57. <col editable="false" ref="FAC_STL_GRD" type="input"/>
  58. <col editable="false" ref="FAC_STL_GRP" type="input"/>
  59. <col editable="false" ref="MAT_RT" type="input"/>
  60. <col editable="false" ref="TREAT_RT_CD" type="input"/>
  61. <col editable="false" ref="PATH_PROC_CD" type="input"/>
  62. <col editable="false" ref="LINE_PROC_CD" type="input"/>
  63. <col editable="false" ref="MAT_THK" type="input"/>
  64. <col editable="false" ref="MAT_WTH" type="input"/>
  65. <col editable="false" ref="MAT_LEN" type="input"/>
  66. <col editable="false" ref="MAT_LEN_MIN" type="input"/>
  67. <col editable="false" ref="MAT_LEN_MAX" type="input"/>
  68. <col editable="false" ref="MAT_WGT" type="input"/>
  69. <col editable="false" ref="CCM_TERM_TIME" type="input"/>
  70. <col editable="false" ref="WID_CHG_FL" type="input"/>
  71. <col editable="false" ref="HCR_YN" type="input"/>
  72. <col editable="false" ref="EMGMTR_YN" type="input"/>
  73. <col editable="false" ref="SMS_DUEDATE" type="input"/>
  74. <col editable="false" ref="PRC_LINE" type="input"/>
  75. <col editable="false" ref="CCM_PRC_LINE" type="input"/>
  76. <col editable="false" ref="PROG_CD" type="input"/>
  77. <col editable="false" ref="SLAB_CUT_SEQ" type="input"/>
  78. <col editable="false" ref="DSG_RATE" type="input"/>
  79. <col editable="false" ref="OVER_ROLL_YN" type="input"/>
  80. <col editable="false" ref="SAMPLE_CUT" type="input"/>
  81. <col editable="false" ref="ORD_FL" type="input"/>
  82. <col editable="false" ref="ORD_NO" type="input"/>
  83. <col editable="false" ref="ORD_SEQ" type="input"/>
  84. <col editable="false" ref="DELV_REQ_DATE" type="input"/>
  85. <col editable="false" ref="SPM_PROC_YN" type="input"/>
  86. <col editable="false" ref="SCARPING_PROC_YN" type="input"/>
  87. <col editable="false" ref="SEND_STS" type="input"/>
  88. <col editable="false" ref="COMB_YN" type="input"/>
  89. <col editable="false" ref="COIL_THK" type="input"/>
  90. <col editable="false" ref="COIL_WTH" type="input"/>
  91. <col editable="false" ref="COIL_LEN" type="input"/>
  92. <col editable="false" ref="COIL_WGT" type="input"/>
  93. <col editable="false" ref="REG_ID" type="input"/>
  94. <col editable="false" ref="REG_DTIME" type="input"/>
  95. <col editable="false" ref="MOD_ID" type="input"/>
  96. <col editable="false" ref="MOD_DTIME" type="input"/>
  97. <col editable="false" ref="DSN_SLAB_NO" type="input"/>
  98. <col editable="false" ref="P_DSN_SLAB_NO" type="input"/>
  99. <col editable="false" ref="GRAVITY" type="input"/>
  100. <col editable="false" ref="AUTODSN_YN" type="input"/>
  101. <col editable="false" ref="COIL_INDIA" type="input"/>
  102. <col editable="false" ref="COIL_OUTDIA" type="input"/>
  103. </datagrid>
  104. <select1 id="combo1" appearance="minimal" style="left:450px; top:10px; width:230px; height:25px; ">
  105. <choices>
  106. <item>
  107. <label>combo1</label>
  108. <value>combo1</value>
  109. </item>
  110. </choices>
  111. </select1>
  112. <treeview id="treeview1" style="left:685px; top:10px; width:210px; height:25px; ">
  113. <itemset>
  114. <label/>
  115. <value/>
  116. </itemset>
  117. </treeview>
  118. </xhtml:body>
  119. </xhtml:html>