SPAEB00402_조영제약품코드조회(MIS).xrw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. <goodlist>
  11. <item>
  12. <goodcd/>
  13. <goodnm/>
  14. <speccd/>
  15. <safestocqty/>
  16. <instcd/>
  17. <suppdeptcd/>
  18. </item>
  19. </goodlist>
  20. </main>
  21. <send>
  22. <srch>
  23. <srchgoodcd/>
  24. <srchgoodnm/>
  25. </srch>
  26. <globalinstance>
  27. <instance1/>
  28. </globalinstance>
  29. <req>
  30. <data>
  31. </data>
  32. <suppdeptcd/>
  33. </req>
  34. </send>
  35. <hidden>
  36. <item>
  37. </item>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. aezfSetSuppDeptcd();
  44. model.removeNodeset("/root/main/goodlist/item");
  45. model.refresh();
  46. //2010.01.12 수가기준으로 조회해옴으로 주석처리(mis에서 가지고 오면주석해제) - 박재영
  47. //btn_sea.dispatch("DOMActivate");
  48. ]]>
  49. </script>
  50. <submission id="TRAEB00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
  51. </model>
  52. <script type="javascript">
  53. <![CDATA[
  54. function fGetgoodList(){
  55. if( input8.value.length < 3 && input1.value.length == 0 ){
  56. messageBox("검색어를 세자이상 " , "C001");
  57. model.setFocus("input8");
  58. return ;
  59. }
  60. if( input1.value.length < 3 && input8.value.length == 0 ){
  61. messageBox("검색어를 세자이상 " , "C001");
  62. model.setFocus("input1");
  63. return ;
  64. }
  65. submit("TRAEB00402");
  66. }
  67. ]]>
  68. </script>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  71. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="731" pageheight="555" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:550px; ">
  76. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:21px; width:690px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  77. <caption id="caption1" class="tit_2" style="left:0px; top:4px; width:145px; height:14px; ">약품코드조회</caption>
  78. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:700; y2:63px; "/>
  79. <group id="group1" scroll="auto" style="left:0px; top:523px; width:700; height:27px; ">
  80. <button id="btn_confirm" class="btn4_letter2" style="left:587px; top:5px; width:56px; height:22px; ">
  81. <caption>확인</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. misfPopUpListReturn(grd_prodcmpylist);
  85. ]]>
  86. </script>
  87. </button>
  88. <button id="btn_cancel" class="btn4_letter2" style="left:644px; top:5px; width:56px; height:22px; ">
  89. <caption>취소</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. window.close();
  93. ]]>
  94. </script>
  95. </button>
  96. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700; y2:0px; "/>
  97. </group>
  98. <input id="input8" ref="/root/send/srch/srchgoodcd" class="input_search" style="left:110px; top:28px; width:100px; height:19px; ">
  99. <script type="javascript" ev:event="onkeydown">
  100. <![CDATA[
  101. if ( event.keyCode == 13 ) {
  102. setInputNodeCurText();
  103. //submit("TRAEB00402");
  104. fGetgoodList();
  105. }
  106. ]]>
  107. </script>
  108. </input>
  109. <caption id="caption2" class="search_name" style="left:17px; top:30px; width:99px; height:17px; ">약품코드 :</caption>
  110. <caption id="caption3" class="search_name" style="left:257px; top:31px; width:99px; height:17px; ">약품명 :</caption>
  111. <button id="btn_sea" class="btn1_letter2" style="left:625px; top:28px; width:56px; height:22px; ">
  112. <caption>조회</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. //submit("TRAEB00402");
  116. fGetgoodList();
  117. ]]>
  118. </script>
  119. </button>
  120. <input id="input1" ref="/root/send/srch/srchgoodnm" class="input_search" style="left:338px; top:29px; width:100px; height:19px; ">
  121. <script type="javascript" ev:event="onkeydown">
  122. <![CDATA[
  123. if ( event.keyCode == 13 ) {
  124. setInputNodeCurText();
  125. //submit("TRAEB00402");
  126. fGetgoodList();
  127. }
  128. ]]>
  129. </script>
  130. </input>
  131. <datagrid id="grd_goodlist" nodeset="/root/main/goodlist/item" caption="약품코드^약품명^안전재고량^용량^" colsep="^" colwidth="137, 313, 109, 118, 79, 121, 68, 68" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:700px; height:455px; ">
  132. <col editable="false" ref="goodcd" type="output"/>
  133. <col ref="goodnm" type="output"/>
  134. <col ref="safestocqty" type="output" format="#,###" style="text-align:right; "/>
  135. <col ref="speccd" type="output" style="text-align:center; "/>
  136. <col ref="instcd" visibility="hidden"/>
  137. <col ref="suppdeptcd" visibility="hidden"/>
  138. <col ref="itemflag" visibility="hidden"/>
  139. <col ref="itemcd" visibility="hidden"/>
  140. <script type="javascript" ev:event="ondblclick">
  141. <![CDATA[
  142. opener.model.setValue("/root/temp/goodcd", model.getValue("/root/main/goodlist/item[" + grd_goodlist.row + "]/goodcd"));
  143. opener.model.setValue("/root/temp/goodnm", model.getValue("/root/main/goodlist/item[" + grd_goodlist.row + "]/goodnm"));
  144. opener.model.setValue("/root/temp/safestocqty", model.getValue("/root/main/goodlist/item[" + grd_goodlist.row + "]/safestocqty"));
  145. opener.model.setValue("/root/temp/speccd", model.getValue("/root/main/goodlist/item[" + grd_goodlist.row + "]/speccd"));
  146. window.close();
  147. ]]>
  148. </script>
  149. </datagrid>
  150. </group>
  151. </xhtml:body>
  152. </xhtml:html>