SPRSD00270_성분코드HELP.xrw 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <comlist>
  11. <com/>
  12. <comnm/>
  13. </comlist>
  14. </main>
  15. <target/>
  16. <init>
  17. <refcond>
  18. <label>성분코드</label>
  19. <value>com</value>
  20. <label>성분명칭</label>
  21. <value>comnm</value>
  22. </refcond>
  23. </init>
  24. <send>
  25. <refcond/>
  26. <comnm/>
  27. <com/>
  28. <instcd/>
  29. </send>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. //model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  35. model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd") );
  36. // rdo_refcond.select(1);
  37. model.setValue(rdo_refcond.attribute("ref"),"com");
  38. btn_search.dispatch("DOMActivate");
  39. model.setFocus("ipt_refcond");
  40. ]]>
  41. </script>
  42. <submission id="TRRSD00271" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main"/>
  43. </model>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. </xhtml:head>
  48. <xhtml:body pagewidth="631" pageheight="550" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  49. <group id="group3" scroll="auto" style="left:8px; top:0px; width:600px; height:540; ">
  50. <group id="group2" style="left:0px; top:5; width:600; height:35; ">
  51. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:600; height:35; "/>
  52. <input id="ipt_refcond" ref="/root/send/comnm" class="input_s_essential" style="left:262px; top:8px; width:135px; height:19px; ">
  53. <script type="javascript" ev:event="onkeyup">
  54. <![CDATA[
  55. inputEnterKey("btn_search", "DOMActivate");
  56. ]]>
  57. </script>
  58. </input>
  59. <button id="btn_search" class="btn1_letter2" style="left:529px; top:6px; width:56px; height:22px; ">
  60. <caption>조회</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. if(rdo_refcond.value == "comnm") {
  64. model.setValue("/root/send/comnm",ipt_refcond.label);
  65. }
  66. else {
  67. model.setValue("/root/send/com",ipt_refcond.label);
  68. }
  69. submit("TRRSD00271");
  70. ]]>
  71. </script>
  72. </button>
  73. <line id="line13" class="line_4" style="x1:514px; y1:2px; x2:514px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  74. <caption id="caption2" class="search_name" style="left:177px; top:9; width:86px; height:17px; ">조회조건 :</caption>
  75. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:15; top:9; width:145px; height:20px; border-style:solid; ">
  76. <choices>
  77. <itemset nodeset="/root/init/refcond">
  78. <label ref="label"/>
  79. <value ref="value"/>
  80. </itemset>
  81. </choices>
  82. <script type="javascript" ev:event="xforms-select">
  83. <![CDATA[
  84. if(rdo_refcond.value == "comnm") {
  85. ipt_refcond.attribute("imemode") = "comnm";
  86. }
  87. else if (rdo_refcond.value == "com") {
  88. ipt_refcond.attribute("imemode") = "disabled";
  89. }
  90. else {
  91. ipt_refcond.attribute("imemode") = "disabled";
  92. }
  93. model.setFocus("ipt_refcond");
  94. ]]>
  95. </script>
  96. </select1>
  97. </group>
  98. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:145px; height:13px; ">성분코드 리스트</caption>
  99. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:600; y2:64px; "/>
  100. <datagrid id="grd_comlist" nodeset="/root/main/comlist" class="grd_prodcmpylist" caption="성분코드^성분명칭" colwidth="172, 298" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:69px; width:600px; height:440px; ">
  101. <col ref="com"/>
  102. <col ref="comnm"/>
  103. <script type="javascript" ev:event="ondblclick">
  104. <![CDATA[
  105. if( grd_comlist.isCell( event.target ) && grd_comlist.row >= grd_comlist.fixedRows ) {
  106. btn_confirm.dispatch("DOMActivate");
  107. }
  108. ]]>
  109. </script>
  110. <script type="javascript" ev:event="onaftersort">
  111. <![CDATA[
  112. grd_comlist.gridToInstance();
  113. ]]>
  114. </script>
  115. </datagrid>
  116. <group id="group1" scroll="auto" style="left:0px; top:513px; width:600; height:27px; ">
  117. <button id="btn_confirm" class="btn4_letter2" style="left:487px; top:5px; width:56px; height:22px; ">
  118. <caption>확인</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. misfPopUpListReturn(grd_comlist);
  122. ]]>
  123. </script>
  124. </button>
  125. <button id="btn_cancel" class="btn4_letter2" style="left:544px; top:5px; width:56px; height:22px; ">
  126. <caption>취소</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. window.close();
  130. ]]>
  131. </script>
  132. </button>
  133. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:600; y2:0px; "/>
  134. </group>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>