SMAEA03310_부서코드HELP.xrw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>부서코드 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <deptcodelist>
  11. <deptcd/>
  12. <deptnm/>
  13. </deptcodelist>
  14. </main>
  15. <target>
  16. <defaultvalue>
  17. <instcd/>
  18. <prcpcd/>
  19. </defaultvalue>
  20. </target>
  21. <init>
  22. <refcond>
  23. </refcond>
  24. </init>
  25. <send>
  26. <instcd/>
  27. <prcpcd/>
  28. </send>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. astfGridInit(grd_deptlist);
  34. model.resetInstanceNode("/root/send");
  35. model.copyNode("root/main","/root/target/validation");
  36. model.setValue("/root/send/instcd",model.getValue("/root/target/defaultvalue/instcd"));
  37. model.setValue("/root/send/prcpcd",model.getValue("/root/target/defaultvalue/prcpcd"));
  38. btn_search.dispatch("DOMActivate");
  39. model.refresh();
  40. /* if(instance1.selectNodes("/root/target/validation/deptcodelist").length == 0)
  41. {
  42. // btn_search.dispatch("DOMActivate");
  43. }
  44. model.refresh();
  45. */
  46. ]]>
  47. </script>
  48. <submission id="TRAEA03311" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../ast/examcureweb/js/HELP0001.js"/>
  53. </xhtml:head>
  54. <xhtml:body pagewidth="600" pageheight="550" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  55. <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
  56. <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
  57. <![CDATA[>]]>
  58. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
  59. <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
  60. <caption>조회</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. submit("TRAEA03311");
  64. model.refresh();
  65. ]]>
  66. </script>
  67. </button>
  68. <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  69. <caption id="caption2" class="search_name" style="left:200px; top:6px; width:86px; height:17px; ">처방코드:</caption>
  70. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" style="left:90px; top:5px; width:100px; height:19px; "/>
  71. <caption id="caption3" class="search_name" style="left:6px; top:5px; width:86px; height:17px; ">기관코드:</caption>
  72. <output id="opt_prcpcd" ref="/root/send/prcpcd" class="output_fix" style="left:285px; top:5px; width:99px; height:19px; "/>
  73. </group>
  74. <caption id="caption1" class="tit_2" style="left:5px; top:35px; width:95px; height:14px; ">부서 리스트</caption>
  75. <line id="line1" class="line_1" style="x1:0px; y1:50px; x2:580px; y2:50px; "/>
  76. <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="부서코드^부서명" colwidth="128, 409" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:55px; width:580px; height:465px; ">
  77. <col ref="deptcd"/>
  78. <col ref="deptnm"/>
  79. <script type="javascript" ev:event="ondblclick">
  80. <![CDATA[
  81. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  82. {
  83. btn_confirm.dispatch("DOMActivate");
  84. }
  85. ]]>
  86. </script>
  87. <script type="javascript" ev:event="onaftersort">
  88. <![CDATA[
  89. grd_deptlist.gridToInstance();
  90. ]]>
  91. </script>
  92. </datagrid>
  93. </group>
  94. <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
  95. <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
  96. <caption>확인</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. astfPopUpListReturn(grd_deptlist);
  100. ]]>
  101. </script>
  102. </button>
  103. <button id="btn_cancel" class="btn4_letter2" style="left:520px; top:2px; width:56px; height:22px; ">
  104. <caption>취소</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. astfPopUpListCancel();
  108. ]]>
  109. </script>
  110. </button>
  111. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  112. </group>
  113. </xhtml:body>
  114. </xhtml:html>