SPADB61400_효능조회.xrw 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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>효능조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <efcylist>
  11. <item>
  12. <efcycd/>
  13. <efcynm/>
  14. <efcylevel/>
  15. </item>
  16. </efcylist>
  17. </main>
  18. <send>
  19. <srchcomcd/>
  20. <srchcomnm/>
  21. </send>
  22. <init/>
  23. <hidden>
  24. <receiveref/>
  25. </hidden>
  26. </root>
  27. </instance>
  28. <submission id="TRADB61401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/efcylist"/>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. submit("TRADB61401");
  32. setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
  33. ]]>
  34. </script>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  39. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  40. </xhtml:head>
  41. <xhtml:body pagewidth="535" pageheight="578" guideline="1,1194;2,576;1,517;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  42. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:550px; ">
  43. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  44. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  45. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  46. <button id="btn_sea" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  47. <caption>조회</caption>
  48. <script type="javascript" ev:event="DOMActivate">
  49. <![CDATA[
  50. submit("TRADB61401");
  51. setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
  52. ]]>
  53. </script>
  54. </button>
  55. <caption id="caption2" class="search_name" style="left:165px; top:8px; width:60px; height:17px; ">명칭 :</caption>
  56. <caption id="caption3" class="search_name" style="left:5px; top:8px; width:60px; height:17px; ">코드 :</caption>
  57. <input id="input1" ref="/root/send/srchcomnm" class="input_search" style="left:230px; top:8px; width:190px; height:19px; ">
  58. <script type="javascript" ev:event="onkeyup">
  59. <![CDATA[
  60. if(event.keyCode == "13") {
  61. setInputNodeCurText();
  62. btn_sea.dispatch("DOMActivate");
  63. }
  64. ]]>
  65. </script>
  66. </input>
  67. <input id="input2" ref="/root/send/srchcomcd" class="input_search" style="left:70px; top:8px; width:85px; height:19px; ">
  68. <script type="javascript" ev:event="onkeyup">
  69. <![CDATA[
  70. if(event.keyCode == "13") {
  71. setInputNodeCurText();
  72. btn_sea.dispatch("DOMActivate");
  73. }
  74. ]]>
  75. </script>
  76. </input>
  77. </group>
  78. <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">효능조회</caption>
  79. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  80. <datagrid id="grd_efcylist" nodeset="/root/main/efcylist/item" caption="효능코드^효능명칭^레벨" colsep="^" colwidth="154, 325, 26" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:515px; height:480px; ">
  81. <col ref="efcycd"/>
  82. <col ref="efcynm"/>
  83. <col ref="efcylevel" visibility="hidden"/>
  84. <script type="javascript" ev:event="ondblclick">
  85. <![CDATA[
  86. if ( checkOpener() ) {
  87. //opener.model.setValue("/root/hidden/temp/comcd",model.getValue( "/root/main/grid/item["+grd_com.row+"]/comcd"));
  88. //opener.model.setValue("/root/hidden/temp/comnm",model.getValue( "/root/main/grid/item["+grd_com.row+"]/comnm"));
  89. //opener.model.copyNode(receiveref, "/root/hidden/temp");
  90. //opener.javascript.fSetComCode(model.getValue( "/root/main/grid/item["+grd_com.row+"]/comcd"),model.getValue( "/root/main/grid/item["+grd_com.row+"]/comnm"));
  91. if ( opener.javascript.getParameter("textval") != "Y" ) {
  92. astfInsertGridData(grd_efcylist, opener.grd_efcy, "1", "", "", "efcycd,efcycd");
  93. } else {
  94. opener.model.setValue( model.getValue("/root/hidden/receiveref"), model.getValue("/root/main/efcylist/item["+grd_efcylist.row+"]/efcycd") );
  95. }
  96. opener.model.refresh();
  97. window.close();
  98. } else {
  99. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  100. }
  101. ]]>
  102. </script>
  103. </datagrid>
  104. </group>
  105. <group id="group1" scroll="auto" style="left:0px; top:550px; width:518px; height:27px; ">
  106. <button id="btn_cfm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  107. <caption>확인</caption>
  108. </button>
  109. <button id="btn_cls" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  110. <caption>닫기</caption>
  111. <close ev:event="DOMActivate"/>
  112. </button>
  113. </group>
  114. </xhtml:body>
  115. </xhtml:html>