SMRFR02900_장비별 처방조회.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <grid>
  11. <rsihopeqlist/>
  12. </grid>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <fromdd/>
  17. <todd/>
  18. <fixasetcd/>
  19. <goodflaghngnm/>
  20. <goodflag>EQ</goodflag>
  21. </send>
  22. <init/>
  23. <temp/>
  24. </root>
  25. </instance>
  26. <submission id="TRRFR02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rsihopeqlist"/>
  27. <bind id="금액계산" ref="/root/main/grid/rfcmeqgdlist/amt" calculate="../goodunitcost * ../qty" type="xsd:int"/>
  28. </model>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. fInitialize();
  32. ]]>
  33. </script>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. function fInitialize()
  43. {
  44. //초기화
  45. misfGridInit(grd_rsihopeqlist);
  46. // 기관코드
  47. misfComboComCdList("Z0007", cmb_instcd);
  48. // 현재 날짜 기본 입력(6개월 간격 설정)
  49. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  50. model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  51. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  52. misfMsterDetailSet(grd_rsihopeqlist, null, "TRRFR02901", "N");
  53. // 기본 사용자 설정값
  54. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  55. model.setValue("/root/send/goodflag", "EQ");
  56. model.refresh();
  57. }
  58. ]]>
  59. </script>
  60. </xhtml:head>
  61. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  62. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  63. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">장비별 처방조회</caption>
  64. </group>
  65. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  66. <group id="group2" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  67. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  68. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:209px; height:19px; text-align:center; ">
  69. <choices>
  70. <itemset>
  71. <label/>
  72. <value/>
  73. </itemset>
  74. </choices>
  75. </select1>
  76. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
  77. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  78. <caption>조회</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. if(!isRequiredControls("cmb_instcd"))return;
  82. if(!isRequiredControls("ipt_fromdd"))return;
  83. if(!isRequiredControls("ipt_todd"))return;
  84. misfGridInit(grd_rsihopeqlist);
  85. //0722
  86. //misfGridInit(grd_prcpexecusecntlist);
  87. //misfGridInit(grd_rfcmeqgdlist);
  88. submit("TRRFR02901");
  89. if(grd_rsihopeqlist.rows != grd_rsihopeqlist.fixedRows)
  90. {
  91. grd_rsihopeqlist.row = grd_rsihopeqlist.fixedRows;
  92. grd_rsihopeqlist.select(grd_rsihopeqlist.row, grd_rsihopeqlist.colRef("fixasetcd")) = true;
  93. grd_rsihopeqlist.dispatch("onrowchanged");
  94. }
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line1" class="line_4" style="x1:1110px; y1:7; x2:1110px; y2:60; "/>
  99. <caption id="cap_fromdd" class="search_name" style="left:573px; top:9px; width:90px; height:17px; ">처방기간 :</caption>
  100. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:663px; top:8px; width:140px; height:19px; text-align:center; "/>
  101. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:823px; top:8px; width:140px; height:19px; text-align:center; "/>
  102. <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:35px; width:97px; height:17px; ">장비명 :</caption>
  103. <button id="btn_fixasetcd" class="icon_search" style="left:244px; top:36px; width:16px; height:16px; ">
  104. <caption/>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. if(!isRequiredControls("cmb_instcd"))return;
  108. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SPRSD00240", "instcd", cmb_instcd.value, "Y");
  109. model.refresh();
  110. ]]>
  111. </script>
  112. </button>
  113. <input id="ipt_goodflaghngnm" ref="/root/send/goodflaghngnm" class="input_default" style="left:265px; top:36px; width:235px; height:19px; text-align:center; ">
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. if(!isRequiredControls("cmb_instcd"))return;
  117. if(ipt_goodflaghngnm.value != "")
  118. {
  119. rszfValidationCheck("TRRSD00241", "rsihopeqlist",
  120. "requirementcd,instcd,requirementnm", "goodflaghngnm," + cmb_instcd.value + "," + ipt_goodflaghngnm.value, "",
  121. "fixasetcd,goodflaghngnm", ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  122. }else{
  123. ipt_fixasetcd.value = "";
  124. }
  125. model.refresh();
  126. ]]>
  127. </script>
  128. </input>
  129. <input id="ipt_fixasetcd" ref="/root/send/fixasetcd" class="input_default" imemode="disabled" style="left:106px; top:35px; width:134px; height:19px; text-align:center; ">
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. if(!isRequiredControls("cmb_instcd"))return;
  133. if(ipt_fixasetcd.value != "")
  134. {
  135. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  136. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
  137. "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  138. }else{
  139. ipt_goodflaghngnm.value = "";
  140. }
  141. model.refresh();
  142. ]]>
  143. </script>
  144. </input>
  145. <caption id="caption8" style="left:806px; top:9px; width:15px; height:20px; ">~</caption>
  146. </group>
  147. <line id="line3" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
  148. <datagrid id="grd_rsihopeqlist" nodeset="/root/main/grid/rsihopeqlist" caption="장비코드^장비명^처방코드^처방명^금액^^^기관코드" colsep="^" colwidth="110, 195, 108, 183, 112, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:607px; ">
  149. <col ref="fixasetcd" style="text-align:left; "/>
  150. <col ref="fixasetnm" style="text-align:left; "/>
  151. <col ref="prcpcd" style="text-align:left; "/>
  152. <col ref="prcpnm" style="text-align:left; "/>
  153. <col ref="prcpcdamt" style="text-align:left; "/>
  154. <col/>
  155. <col/>
  156. <col ref="instcd" visibility="hidden"/>
  157. </datagrid>
  158. <caption id="caption4" class="tit_2" style="left:0px; top:92px; width:295px; height:14px; ">처방내역</caption>
  159. <button id="button1" class="btn2_letter2" style="left:1152px; top:87px; width:42px; height:19px; ">
  160. <caption>엑셀</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. var fileName = window.fileDialog("save", ",", false, "장비별처방내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  164. if(fileName !="")
  165. {
  166. grd_rsihopeqlist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  167. }
  168. ]]>
  169. </script>
  170. </button>
  171. </group>
  172. <group id="group5" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  173. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1068px; top:3; width:56px; height:22px; ">
  174. <caption>저장</caption>
  175. </button>
  176. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  177. <caption>초기화</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fInitialize();
  181. ]]>
  182. </script>
  183. </button>
  184. <line id="line16" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  185. </group>
  186. </xhtml:body>
  187. </xhtml:html>