SPMMD02700_성분코드조회.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. <condition>
  11. <srchflag/>
  12. <srchnm/>
  13. <scrid>SPMMD2700</scrid>
  14. </condition>
  15. <masterinfo>
  16. </masterinfo>
  17. </main>
  18. <send>
  19. <reqdata/>
  20. </send>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. model.makeNode( rdo_srchflag.attribute("ref"));
  26. model.setValue(rdo_srchflag.attribute("ref"), "C");
  27. submit("TRMMD02801");
  28. //submit("TRADB00201");
  29. // grd_masterinfo.insertColumn(0, "ref:chk; type:checkbox;checkvalue:Y,N;", "before");
  30. // grd_masterinfo.caption = "선택^성분코드^성분명^레벨";
  31. // grd_masterinfo.colWidth(0)= "38";
  32. // grd_masterinfo.colWidth(1)= "164";
  33. // grd_masterinfo.colWidth(2)= "310";
  34. // grd_masterinfo.colWidth(3)= "52";
  35. grd_masterinfo.fixedcellcheckbox(0, grd_masterinfo.colRef("chk")) = true;
  36. //setTree(grd_masterinfo, grd_masterinfo.colRef("comlevel"),grd_masterinfo.colRef("comcd"), true );
  37. ]]>
  38. </script>
  39. <submission id="TRADB00201" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/masterinfo"/>
  40. <submission id="TRMMD02801" ref="/root/main/condition" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/masterinfo"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. function fAddOpener(){
  47. var checkNodeList = instance1.selectNodes("/root/main/masterinfo/list2700[chk='Y']");
  48. if( checkNodeList != null && checkNodeList.length > 0 ){
  49. var csv = getNodeListCSV(checkNodeList);
  50. opener.javascript.setParameter("saveparam", csv);
  51. }
  52. opener.javascript.fSetAntibioComcd();
  53. }
  54. ]]>
  55. </script>
  56. </xhtml:head>
  57. <xhtml:body pagewidth="626" pageheight="705" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  58. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:610px; height:675px; ">
  59. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:25px; width:605px; height:30px; "/>
  60. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:115px; height:13px; ">성분코드조회</caption>
  61. <line id="line1" class="line_1" style="x1:0px; y1:57px; x2:605px; y2:57px; "/>
  62. <datagrid id="grd_masterinfo" nodeset="/root/main/masterinfo/list2700" allowselection="true" autoresize="true" caption="^성분코드^본원사용여부^성분명^확장코드" colwidth="35, 94, 87, 324, 52" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" selectionmode="byrow" rowsep="|" colsep="^" style="left:0px; top:60px; width:605px; height:615px; ">
  63. <col ref="chk" type="checkbox" checkvalue="Y,N"/>
  64. <col ref="comcd"/>
  65. <col ref="hospuseyn"/>
  66. <col ref="comnm"/>
  67. <col ref="comexcd" visibility="hidden"/>
  68. <script type="javascript" ev:event="ondblclick">
  69. <![CDATA[
  70. var selRow = grd_masterinfo.row;
  71. if( selRow > 0 && selRow <= grd_masterinfo.rows ){
  72. model.setValue("/root/main/masterinfo/list2700["+selRow+"]/chk", "Y");
  73. model.refresh();
  74. fAddOpener();
  75. model.setValue("/root/main/masterinfo/list2700["+selRow+"]/chk", "N");
  76. model.refresh();
  77. }
  78. ]]>
  79. </script>
  80. </datagrid>
  81. <line id="line13" style="x1:529px; y1:30px; x2:529px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  82. <caption id="caption2" class="search_name" style="left:15px; top:31px; width:86px; height:17px; ">검색조건 :</caption>
  83. <input id="ipt_srchnm" ref="/root/main/condition/srchnm" navindex="2" class="input_search" style="left:230px; top:31px; width:290px; height:19px; ">
  84. <script type="javascript" ev:event="onkeyup">
  85. <![CDATA[
  86. inputEnterKey("btn_search", "DOMActivate");
  87. ]]>
  88. </script>
  89. </input>
  90. <select1 id="rdo_srchflag" ref="/root/main/condition/srchflag" visibility="1" overflow="visible" appearance="full" cols="3" style="left:105px; top:31px; width:125px; height:20px; border-style:none; ">
  91. <choices>
  92. <item>
  93. <label>성분코드</label>
  94. <value>C</value>
  95. </item>
  96. <item>
  97. <label>성분명</label>
  98. <value>N</value>
  99. </item>
  100. </choices>
  101. <script type="javascript" ev:event="xforms-value-changed">
  102. <![CDATA[
  103. //model.setValue("/root/main/condition/srchnm","");
  104. model.setFocus("ipt_srchnm");
  105. model.refresh();
  106. ]]>
  107. </script>
  108. </select1>
  109. <button id="btn_search" navindex="3" class="btn1_letter2" style="left:540px; top:30px; width:56px; height:22px; ">
  110. <caption>조회</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. var strCdNm = model.getValue("/root/main/condition/srchnm");
  114. if( strCdNm.length > 0 && strCdNm.length < 2 ){
  115. messageBox("두자리 이상 ","C001");
  116. return;
  117. }
  118. submit("TRMMD02801");
  119. ]]>
  120. </script>
  121. </button>
  122. </group>
  123. <group id="grp_btn" scroll="auto" style="left:0px; top:676px; width:610px; height:27px; ">
  124. <button id="button4" class="btn4_letter2" style="left:490px; top:3px; width:56px; height:17px; ">
  125. <caption>확인</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. fAddOpener();
  129. window.close();
  130. ]]>
  131. </script>
  132. </button>
  133. <button id="button9" class="btn4_letter2" style="left:549px; top:3px; width:56px; height:17px; ">
  134. <caption>닫기</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. window.close();
  138. ]]>
  139. </script>
  140. </button>
  141. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:610px; y2:0px; "/>
  142. </group>
  143. </xhtml:body>
  144. </xhtml:html>