SPMNG04100_응급CCDBAG물품코드HELP.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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>응급CCDBAG 물품코드 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <goodlist>
  11. <erbgcd/>
  12. <prcpnm/>
  13. <allsizespecid/>
  14. <payflagcd/>
  15. <chkyn/>
  16. </goodlist>
  17. </main>
  18. <target/>
  19. <init>
  20. </init>
  21. <send>
  22. <reqdata>
  23. <goodcd/>
  24. <goodflag/>
  25. </reqdata>
  26. </send>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. btn_search.dispatch("DOMActivate");
  32. ]]>
  33. </script>
  34. <script type="javascript">
  35. <![CDATA[
  36. function fSettingGoodList(pnode) {
  37. var codynode = instance1.selectNodes(pnode + "/*");
  38. var addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  39. for (var j = 1; j <= codynode.length; j++)
  40. {
  41. if(addRow > grd_deptlist.rows - grd_deptlist.fixedRows)
  42. {
  43. misfGridIUD(grd_deptlist,"A");
  44. addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  45. }
  46. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/deptcd"));
  47. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/depthngnm"));
  48. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptcd" , cmb_dept.value);
  49. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptnm" , cmb_dept.label);
  50. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/userid" , getUserInfo("userid"));
  51. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
  52. addRow = addRow + 1;
  53. }
  54. model.recalculate();
  55. model.refresh();
  56. }
  57. ]]>
  58. </script>
  59. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  60. <submission id="TRMNG00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
  61. <submission id="TXMNG00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/temp"/>
  62. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrreqdeptlist"/>
  63. <submission id="TXMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/temp"/>
  64. <submission id="TRMNG04100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/goodlist"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. </xhtml:head>
  71. <xhtml:body pagewidth="600" pageheight="550" guideline="1,622;2,552;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  72. <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
  73. <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
  74. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
  75. <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
  76. <caption>조회</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. if (ipt_good.value != null && ipt_good.value != "") {
  80. if (radio1.value == null || radio1.value == "") {
  81. alert("조회조건을 선택하세요");
  82. return;
  83. }
  84. }
  85. submit("TRMNG04100");
  86. ]]>
  87. </script>
  88. </button>
  89. <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  90. <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">조회조건:</caption>
  91. <select1 id="radio1" ref="/root/send/reqdata/goodflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:5px; width:130px; height:20px; border-style:none; ">
  92. <choices>
  93. <item>
  94. <label>물품코드</label>
  95. <value>A</value>
  96. </item>
  97. <item>
  98. <label>처방명</label>
  99. <value>B</value>
  100. </item>
  101. </choices>
  102. </select1>
  103. <input id="ipt_good" ref="/root/send/reqdata/goodcd" class="input_search" style="left:235px; top:5px; width:155px; height:19px; "/>
  104. </group>
  105. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:131px; height:14px; ">수술실 물품 리스트</caption>
  106. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:580px; y2:60px; "/>
  107. <datagrid id="grd_goodlist" nodeset="/root/main/goodlist" caption="^물품코드^처방명" colsep="^" colwidth="20,140, 200" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:580px; height:455px; ">
  108. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  109. <col editable="false" ref="goodcd"/>
  110. <col ref="prcpnm"/>
  111. <col ref="allsizespecid" visibility="hidden"/>
  112. <col ref="payflagcd" visibility="hidden"/>
  113. <script type="javascript" ev:event="onaftersort">
  114. <![CDATA[
  115. grd_deptlist.gridToInstance();
  116. ]]>
  117. </script>
  118. <script type="javascript" ev:event="ondblclick">
  119. <![CDATA[
  120. if( grd_goodlist.isCell(event.target) && grd_goodlist.row >= grd_goodlist.fixedRows )
  121. {
  122. btn_confirm.dispatch("DOMActivate");
  123. }
  124. ]]>
  125. </script>
  126. </datagrid>
  127. </group>
  128. <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
  129. <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
  130. <caption>확인</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. if(grd_goodlist.rows - grd_goodlist.fixedRows == 0)
  134. {
  135. messageBox("적용할 내역이","I004");
  136. window.close();
  137. return;
  138. }
  139. var iParam = model.getValue(grd_goodlist.nodeset);
  140. var nodelist = instance1.selectNodes(grd_goodlist.nodeset + "[chkyn='Y']");
  141. var rCVS = getNodeListCSV(nodelist);
  142. if ( checkOpener() ) {
  143. opener.javascript.setParameter("SPMNG04100_", rCVS);
  144. } else {
  145. var rtn = messageBox("상위화면을 찾을 수", "E001");
  146. }
  147. window.close();
  148. // misfPopUpListReturn(grd_deptlist);
  149. ]]>
  150. </script>
  151. </button>
  152. <button id="btn_cancel" class="btn4_letter2" style="left:520px; top:2px; width:56px; height:22px; ">
  153. <caption>취소</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. misfPopUpListCancel();
  157. ]]>
  158. </script>
  159. </button>
  160. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  161. </group>
  162. </xhtml:body>
  163. </xhtml:html>