SyncL2WithL3.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <CoilNo>%</CoilNo>
  13. </formData>
  14. </root>
  15. </instance>
  16. </model>
  17. <script type="javascript" src="../../js/boaMsg.js"/>
  18. <script type="javascript" src="../../js/boaCommon.js"/>
  19. <script type="javascript" src="../../js/mesCommon.js"/>
  20. <script type="javascript">
  21. <![CDATA[
  22. function execute() {
  23. commSendReq("/root/formData");
  24. commSubmit("SyncL2WithL3-service" ,"success" ,"glueAction.do" );
  25. commAppendData("/root/gridData/ListResult_2_VO" ,"/root/resData/ListResult_2_VO" );
  26. dg1.rebuild();
  27. dg1.outlinelevelcol = dg1.colRef("LEVEL");
  28. // for(var i = 1; i < dg1.rows; i++) {
  29. // dg1.outlinelevel(i) = model.getValue(dg1.nodeset + "["+i+"]/LEVEL");
  30. // }
  31. dg1.outlinecol = dg1.colRef("MAT_SPEC_SEQ");
  32. dg1.treecolor = "red";
  33. dg1.outlinebar = 4;
  34. model.refresh();
  35. }
  36. ]]>
  37. </script>
  38. </xhtml:head>
  39. <xhtml:body>
  40. <caption id="caption1" style="left:10px; top:10px; width:290px; height:25px; font-weight:bold; color:#0000ff; vertical-align:middle; ">2. SyncL2WithL3 Example</caption>
  41. <button id="button1" style="left:725px; top:15px; width:170px; height:21px; ">
  42. <caption>Synchronize Start</caption>
  43. <script type="javascript" ev:event="DOMActivate">
  44. <![CDATA[
  45. execute();
  46. ]]>
  47. </script>
  48. </button>
  49. <line id="line1" style="x1:300px; y1:34px; x2:10px; y2:34px; border-color:#0000ff; "/>
  50. <datagrid id="dg1" nodeset="/root/gridData/ListResult_2_VO/ListResult_2_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; ">
  51. <col editable="false" ref="LEVEL" type="input"/>
  52. <col editable="false" ref="COIL_NO" type="input"/>
  53. <col editable="false" ref="SLAB_NO" type="input"/>
  54. <col editable="false" ref="MAT_TP" type="input"/>
  55. <col editable="false" ref="EXP_MAT_NO" type="input"/>
  56. <col editable="false" ref="WITHIN_SUB_SEQ" type="input"/>
  57. <col editable="false" ref="CMAT_CNT" type="input"/>
  58. <col editable="false" ref="FAC_STL_GRD" type="input"/>
  59. <col editable="false" ref="FAC_STL_GRP" type="input"/>
  60. <col editable="false" ref="MAT_RT" type="input"/>
  61. <col editable="false" ref="TREAT_RT_CD" type="input"/>
  62. <col editable="false" ref="PATH_PROC_CD" type="input"/>
  63. <col editable="false" ref="LINE_PROC_CD" type="input"/>
  64. <col editable="false" ref="MAT_THK" type="input"/>
  65. <col editable="false" ref="MAT_WTH" type="input"/>
  66. <col editable="false" ref="MAT_LEN" type="input"/>
  67. <col editable="false" ref="MAT_LEN_MIN" type="input"/>
  68. <col editable="false" ref="MAT_LEN_MAX" type="input"/>
  69. <col editable="false" ref="MAT_WGT" type="input"/>
  70. <col editable="false" ref="CCM_TERM_TIME" type="input"/>
  71. <col editable="false" ref="WID_CHG_FL" type="input"/>
  72. <col editable="false" ref="HCR_YN" type="input"/>
  73. <col editable="false" ref="EMGMTR_YN" type="input"/>
  74. <col editable="false" ref="SMS_DUEDATE" type="input"/>
  75. <col editable="false" ref="PRC_LINE" type="input"/>
  76. <col editable="false" ref="CCM_PRC_LINE" type="input"/>
  77. <col editable="false" ref="PROG_CD" type="input"/>
  78. <col editable="false" ref="SLAB_CUT_SEQ" type="input"/>
  79. <col editable="false" ref="DSG_RATE" type="input"/>
  80. <col editable="false" ref="OVER_ROLL_YN" type="input"/>
  81. <col editable="false" ref="SAMPLE_CUT" type="input"/>
  82. <col editable="false" ref="ORD_FL" type="input"/>
  83. <col editable="false" ref="ORD_NO" type="input"/>
  84. <col editable="false" ref="ORD_SEQ" type="input"/>
  85. <col editable="false" ref="DELV_REQ_DATE" type="input"/>
  86. <col editable="false" ref="SPM_PROC_YN" type="input"/>
  87. <col editable="false" ref="SCARPING_PROC_YN" type="input"/>
  88. <col editable="false" ref="SEND_STS" type="input"/>
  89. <col editable="false" ref="COMB_YN" type="input"/>
  90. <col editable="false" ref="COIL_THK" type="input"/>
  91. <col editable="false" ref="COIL_WTH" type="input"/>
  92. <col editable="false" ref="COIL_LEN" type="input"/>
  93. <col editable="false" ref="COIL_WGT" type="input"/>
  94. <col editable="false" ref="REG_ID" type="input"/>
  95. <col editable="false" ref="REG_DTIME" type="input"/>
  96. <col editable="false" ref="MOD_ID" type="input"/>
  97. <col editable="false" ref="MOD_DTIME" type="input"/>
  98. <col editable="false" ref="DSN_SLAB_NO" type="input"/>
  99. <col editable="false" ref="P_DSN_SLAB_NO" type="input"/>
  100. <col editable="false" ref="GRAVITY" type="input"/>
  101. <col editable="false" ref="AUTODSN_YN" type="input"/>
  102. <col editable="false" ref="COIL_INDIA" type="input"/>
  103. <col editable="false" ref="COIL_OUTDIA" type="input"/>
  104. </datagrid>
  105. <input id="input1" ref="/root/formData/CoilNo" style="left:560px; top:15px; width:155px; height:21px; "/>
  106. </xhtml:body>
  107. </xhtml:html>