SMMNR04102_삽관현황리스트.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>삽관유지 환자리스트</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <cdgrupid/>
  12. <recflag/>
  13. <wardcd/>
  14. <searchdd/>
  15. </cond>
  16. <stdinfo>
  17. <stdlist/>
  18. </stdinfo>
  19. </main>
  20. <init>
  21. <codeinfo/>
  22. </init>
  23. <send>
  24. <reqdata/>
  25. </send>
  26. <hidden/>
  27. <temp>
  28. </temp>
  29. </root>
  30. </instance>
  31. <script type="javascript">
  32. <![CDATA[
  33. function fInit(){
  34. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  35. //model.setValue("/root/main/cond/settingrnid", "");
  36. //model.setValue("/root/main/cond/userid", getUserId());
  37. //model.setValue("/root/main/cond/usernm", getUserName());
  38. model.setValue("/root/main/cond/searchdd", getCurrentDate());
  39. model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
  40. model.removeNodeset("/root/send/reqdata");
  41. model.makeNode("/root/send/reqdata");
  42. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
  43. submit("TRMNW00101");
  44. // model.setValue("/root/main/cond/settingrnid", "");
  45. // for(i=1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  46. // if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  47. // model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  48. // }
  49. // }
  50. cmb_wardcd.refresh();
  51. // cmb_settingrnid.refresh();
  52. fGetCathPatientList();
  53. }
  54. function fGetCathPatientList(){
  55. var searchdd = model.getValue("/root/main/cond/searchdd");
  56. var wardcd = model.getValue("/root/main/cond/wardcd");
  57. alert("searchdd : " + searchdd + " wardcd : " + wardcd);
  58. if (wardcd == null || wardcd == "") {
  59. messageBox("병동을 선택 후 다시 조회하십시오.", "E999");
  60. return;
  61. }
  62. if (searchdd == null || searchdd == "" ) {
  63. messageBox("업무일자를 다시 설정 후 조회하십시오 .", "E999");
  64. return;
  65. }
  66. model.removeNodeset("/root/send/reqdata");
  67. model.makeNode("/root/send/reqdata");
  68. model.makeValue("/root/send/reqdata/wardcd" , wardcd);
  69. model.makeValue("/root/send/reqdata/searchdd", searchdd);
  70. // 내환자 세팅 관련(추후 요청시 사용)
  71. //model.makeValue("/root/send/reqdata/settingrnid", model.getValue("/root/main/cond/settingrnid"));
  72. // 예약내역 초기화
  73. model.removeNodeset("/root/main/cathlist");
  74. model.makeNode("/root/main/cathlist");
  75. grd_cathinfo.refresh();
  76. //grd_cathinfo.rebuild();
  77. if(submit("TRMNR04118")){
  78. //if (getNodesetCount("/root/main_om/testrsltinfo/rsltlist") == 0) {
  79. if (getNodesetCount("/root/main/cathlist/cathinfo") == 0) {
  80. messageBox("출력할 데이터가 존재하지 않습니다.", "I");
  81. return;
  82. }
  83. }
  84. }
  85. ]]>
  86. </script>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. // var flag = model.property("flag");
  93. // var sRecflag = opener.javascript.model.getValue("/root/main/cond/trnsinfo/recflag");
  94. // alert(sRecflag);
  95. // model.makeValue("/root/main/cond/recflag", sRecflag);
  96. //
  97. // grd_stdinfo.colWidth(grd_stdinfo.colRef("lnkcd")) = 0;
  98. // grd_stdinfo.colWidth(grd_stdinfo.colRef("cdnm")) = 205;
  99. // if(flag == "popup") {
  100. // var cdgrupid = model.property("cdgrupid");
  101. //
  102. // cmb_cdgrupid.value = cdgrupid;
  103. // cmb_cdgrupid.disabled = true;
  104. //
  105. // btn_add.visible = false;
  106. // btn_del.visible = false;
  107. // btn_sav.visible = false;
  108. //
  109. // btn_search.dispatch("DOMActivate");
  110. //
  111. // } else {
  112. // model.removeNodeset(grd_stdinfo.nodeset);
  113. // grd_stdinfo.refresh();
  114. // cmb_cdgrupid.select(0);
  115. // btn_add.visible = true;
  116. // btn_del.visible = true;
  117. // btn_sav.visible = true;
  118. // }
  119. //
  120. //
  121. // model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
  122. // model.makeValue("/root/send/reqdata/cdgrupid", "'U27'");
  123. //
  124. // submit("TRMNW00001");
  125. grd_cathinfo.mergeCol(5) = false;
  126. grd_cathinfo.mergeCol(6) = false;
  127. grd_cathinfo.mergeCol(7) = false;
  128. grd_cathinfo.mergeCol(8) = false;
  129. grd_cathinfo.mergeCol(9) = false;
  130. grd_cathinfo.mergeCol(10) = false;
  131. grd_cathinfo.mergeCol(11) = false;
  132. grd_cathinfo.mergeCol(12) = false;
  133. grd_cathinfo.mergeCol(13) = false;
  134. grd_cathinfo.mergeCol(14) = false;
  135. grd_cathinfo.mergeCol(15) = false;
  136. fInit();
  137. ]]>
  138. </script>
  139. <submission id="TRMNN03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/stdinfo"/>
  140. <submission id="TXMNN03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  141. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
  142. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
  143. <submission id="TRMNR04118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cathinfo"/>
  144. </model>
  145. </xhtml:head>
  146. <xhtml:body pagewidth="450" pageheight="440" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  147. <group id="grp_tle" style="left:0px; top:0px; width:405px; height:13px; ">
  148. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; font-family:돋움체; ">삽관유지 환자리스트</caption>
  149. </group>
  150. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:430px; height:382px; ">
  151. <group id="grp_sea" style="left:0px; top:5px; width:425px; height:30px; font-family:돋움체; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
  152. <button id="btn_search" class="btn1_letter2" style="left:365px; top:4px; width:56px; height:22px; font-family:돋움체; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. fGetCathPatientList();
  157. ]]>
  158. </script>
  159. </button>
  160. </group>
  161. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:425px; y2:65px; font-family:돋움체; "/>
  162. <datagrid id="grd_cathinfo" nodeset="/root/main/cathlist/cathinfo" class="datagrid2" caption="병실^환자명^등록번호^S/A^item^시행일시^시행일시" colsep="^" colwidth="43, 59, 0, 41, 129, 73, 43" mergecells="byrestriccol" mergecellsfixedrows="byrowrec" rowheader="select" rowsep="|" tooltip="true" style="left:0px; top:70px; width:425px; height:310px; font-family:돋움체; ">
  163. <col ref="roomcd" style="text-align:center; "/>
  164. <col ref="hngnm" style="text-align:center; "/>
  165. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  166. <col ref="sexage"/>
  167. <col ref="itemnm"/>
  168. <col ref="opdd" format="yyyy-mm-dd"/>
  169. <col ref="optm" format="hh:mm"/>
  170. </datagrid>
  171. <caption id="caption12" class="tit_2" style="left:0px; top:50px; width:175px; height:14px; font-family:돋움체; ">삽관유지 환자리스트</caption>
  172. <caption id="caption2" class="search_name" style="left:10px; top:10px; width:105px; height:17px; ">병동:</caption>
  173. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:70px; top:10px; width:85px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/ward/">
  176. <label ref="wardnm"/>
  177. <value ref="wardcd"/>
  178. </itemset>
  179. </choices>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. ]]>
  183. </script>
  184. </select1>
  185. <input id="ipt_searchdd" ref="/root/main/cond/searchdd" class="input_default" inputtype="date" style="left:255px; top:10px; width:95px; height:19px; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. ]]>
  189. </script>
  190. </input>
  191. <caption id="caption1" class="search_name" style="left:170px; top:10px; width:105px; height:17px; ">업무일자:</caption>
  192. </group>
  193. </xhtml:body>
  194. </xhtml:html>