SMMNR10600_배액감시.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <pid/>
  14. <orddd/>
  15. <cretno/>
  16. <wardcd/>
  17. <pname/>
  18. </cond>
  19. <drainchkinfo/>
  20. <paminfo/>
  21. </main>
  22. <send>
  23. <reqdata/>
  24. </send>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. var dt = getCurrentDate();
  31. var sPamInfo = getGlobalVariable("paminfo");
  32. setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
  33. var sPID = model.getValue("/root/main/paminfo/pamlist/pid");
  34. var sORDDD= model.getValue("/root/main/paminfo/pamlist/indd");
  35. var sCRETNO= model.getValue("/root/main/paminfo/pamlist/cretno");
  36. var sWARDCD= model.getValue("/root/main/paminfo/pamlist/wardcd");
  37. var sPNAME= model.getValue("/root/main/paminfo/pamlist/hngnm2");
  38. var sDschnotidt= model.getValue("/root/main/paminfo/pamlist/dschnotidt");
  39. if(sDschnotidt != null && sDschnotidt != '-'){
  40. var sDschnotidd = sDschnotidt.substring(0,8);
  41. model.setValue("root/main/cond/todd", sDschnotidd);
  42. }else{
  43. model.setValue("root/main/cond/todd", dt);
  44. }
  45. model.setValue("root/main/cond/fromdd", sORDDD);
  46. model.setValue("/root/main/cond/pid",sPID);
  47. model.setValue("/root/main/cond/orddd",sORDDD);
  48. model.setValue("/root/main/cond/cretno",sCRETNO);
  49. model.setValue("/root/main/cond/wardcd",sWARDCD);
  50. model.setValue("/root/main/cond/pname",sPNAME);
  51. ipt_pid.refresh();
  52. ipt_fromdd.refresh();
  53. ipt_todd.refresh();
  54. if(model.getValue("/root/main/cond/pid") == null || model.getValue("/root/main/cond/pid") == ""){
  55. messageBox("환자를 선택해주십시오.", "I");
  56. window.close();
  57. }else{
  58. fSearch();
  59. }
  60. ]]>
  61. </script>
  62. <submission id="TRMNR12000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/drainchkinfo"/>
  63. <submission id="TRMNR12001" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/temp/tmInfo"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fSearch() {
  72. model.removeNodeset("/root/tmp");
  73. var cnt = [];
  74. var k = 1;
  75. if(model.getValue("/root/main/cond/fromdd") == "" || model.getValue("/root/main/cond/fromdd") == null || model.getValue("/root/main/cond/todd") == "" || model.getValue("/root/main/cond/todd") == null){
  76. messageBox("업무일자를 입력하십시오.", "I");
  77. return;
  78. }else{
  79. model.copyNode("/root/send/reqdata", "/root/main/cond");
  80. if(submit("TRMNR12001")==true){
  81. submit("TRMNR12000");
  82. caption5.visible = true;
  83. caption6.visible = true;
  84. output1.visible = true;
  85. output2.visible = true;
  86. if(getNodesetCount("/root/main/drainchkinfo/drainchklist") > 0){
  87. for (i=1 ; i <= getNodesetCount("/root/main/drainchkinfo/drainchklist"); i++) {
  88. if (model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagendnm") == '제거' ) {
  89. var dd = model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/dd"); // 제거일자
  90. var seqnogubun= model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/seqnogubun"); //제거한 삽입부위
  91. for( j=i; j <= getNodesetCount("/root/main/drainchkinfo/drainchklist"); j++) {
  92. if(dd < model.getValue("/root/main/drainchkinfo/drainchklist[" + j + "]/dd")){ // 제거일자 이후
  93. if(seqnogubun == model.getValue("/root/main/drainchkinfo/drainchklist[" + j + "]/seqnogubun") ){ // 같은 삽입부위
  94. cnt[j] = j;
  95. }
  96. }
  97. }
  98. }
  99. // 삽관 제거 이후 자료는 제외(삽관부위별)한 나머지 자료만 추출
  100. if(cnt[i] == null){
  101. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/dd", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/dd"));
  102. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/itemnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/itemnm"));
  103. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/loc", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/loc"));
  104. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/opflagnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagnm"));
  105. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/quantity", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/quantity"));
  106. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/numcnt", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/numcnt"));
  107. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/rmk", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/rmk"));
  108. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/charcnt", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/charcnt"));
  109. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/seqnogubun", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/seqnogubun"));
  110. model.makeValue("/root/tmp/drainchkinfo/drainchklist[" + k + "]/opflagendnm", model.getValue("/root/main/drainchkinfo/drainchklist[" + i + "]/opflagendnm"));
  111. k++;
  112. }
  113. }
  114. model.refresh();
  115. }
  116. }
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body pagewidth="1050" pageheight="750" style="font-family:굴림, Arial; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group" style="left:0px; top:0px; width:1030px; height:720px; font-family:굴림; vertical-align:middle; ">
  124. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; font-family:굴림; vertical-align:middle; ">배액감시</caption>
  125. <group id="grp_sea" style="left:0px; top:25px; width:1030px; height:40px; font-family:굴림; vertical-align:top; ">
  126. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1030px; height:40px; font-family:굴림; "/>
  127. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" disabled="true" style="left:465px; top:10px; width:65px; height:19px; font-family:굴림; "/>
  128. <caption id="caption2" class="search_name" style="left:330px; top:10px; width:132px; height:17px; font-family:굴림; ">등록번호/환자명 :</caption>
  129. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:86px; height:17px; font-family:굴림; ">업무일자 :</caption>
  130. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  131. <caption id="caption4" style="left:193px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  132. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:210px; top:10px; width:95px; height:19px; font-family:굴림; "/>
  133. <button id="button2" class="btn1_letter2" style="left:960px; top:10px; width:56px; height:22px; font-family:굴림; ">
  134. <caption>출력</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. model.removeNodeset("/root/send/prtinfo");
  138. model.makeNode("/root/send/prtinfo");
  139. model.copyNode("/root/send/prtinfo","/root/main/drainchkinfo");
  140. exeReportPreview("RPMNR09000", "XMLSTR");
  141. ]]>
  142. </script>
  143. </button>
  144. <input id="input1" ref="/root/main/cond/pname" class="input_search" disabled="true" style="left:535px; top:10px; width:100px; height:19px; font-family:굴림; "/>
  145. </group>
  146. <button id="button1" class="btn1_letter2" navindex="7" style="left:900px; top:35px; width:56px; height:22px; font-family:굴림; ">
  147. <caption>조회</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. fSearch() ;
  151. ]]>
  152. </script>
  153. </button>
  154. <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:135px; height:14px; font-family:굴림; ">배액감시 리스트</caption>
  155. <line id="line4" class="line_1" style="x1:0px; y1:90px; x2:1030px; y2:90px; font-family:굴림; "/>
  156. <datagrid id="grd_drainchklist" nodeset="/root/tmp/drainchkinfo/drainchklist" caption="업무일자^배액종류^삽입부위^삽입/교환/제거^배액량^일자별기록건수(배액량)^기타^일자별기록건수(기타)" colsep="^" colwidth="85, 139, 120, 90, 80, 140, 150, 130" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:1030px; height:625px; font-family:굴림; ">
  157. <col ref="dd" format="yyyy-mm-dd" style="font-family:굴림; text-align:center; "/>
  158. <col ref="itemnm" style="font-family:굴림; "/>
  159. <col ref="loc" style="font-family:굴림; "/>
  160. <col ref="opflagnm" style="font-family:굴림; "/>
  161. <col ref="quantity" style="font-family:굴림; text-align:right; "/>
  162. <col ref="numcnt" style="font-family:굴림; text-align:right; "/>
  163. <col ref="rmk" style="font-family:굴림; "/>
  164. <col ref="charcnt" style="font-family:굴림; text-align:right; "/>
  165. </datagrid>
  166. <line id="line2" class="line_4" style="x1:890px; y1:35px; x2:890px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  167. </group>
  168. <caption id="caption5" visibility="hidden" style="left:0px; top:725px; width:325px; height:20px; font-family:굴림; color:#0000ff; ">* 삽관/교환/제거 : 당일 00:00~당일 23:59 * 용량 : 당일</caption>
  169. <output id="output1" ref="/root/temp/temp/tmInfo/dfromtm" visibility="hidden" format="hh:nn" style="left:325px; top:725px; width:30px; height:19px; color:#0000ff; "/>
  170. <output id="output2" ref="/root/temp/temp/tmInfo/ntotm" visibility="hidden" format="hh:nn" style="left:390px; top:725px; width:30px; height:19px; color:#0000ff; "/>
  171. <caption id="caption6" visibility="hidden" style="left:355px; top:725px; width:35px; height:20px; color:#0000ff; ">~익일</caption>
  172. </xhtml:body>
  173. </xhtml:html>