SMPMC01200_중증환자관리.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. <result/>
  11. <serdiagspec>
  12. <serdiagspeclist/>
  13. </serdiagspec>
  14. </main>
  15. <send>
  16. <pid/>
  17. <insuflag/>
  18. <suppkind/>
  19. <fromdd/>
  20. <instcd/>
  21. <updatedata>
  22. <datalist/>
  23. </updatedata>
  24. </send>
  25. <init>
  26. <P0317list>
  27. <P0317>
  28. <cdnm/>
  29. <cdid/>
  30. </P0317>
  31. </P0317list>
  32. <P0016list>
  33. <P0016>
  34. <cdnm/>
  35. <cdid/>
  36. </P0016>
  37. </P0016list>
  38. <P0315list>
  39. <P0315>
  40. <cdnm/>
  41. <cdid/>
  42. </P0315>
  43. </P0315list>
  44. </init>
  45. <hidden>
  46. <tmp/>
  47. </hidden>
  48. </root>
  49. </instance>
  50. <submission id="TRPMC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/serdiagspec"/>
  51. <submission id="TXPMC01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden/tmp"/>
  52. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. zbcfGetCodeList( new Array("P0317", "P0016", "P0315"), new Array("/root/init/P0317list", "/root/init/P0016list", "/root/init/P0315list") );
  60. //2007.7.23 - 이동식 추가
  61. //다른곳에서 화면 호출 조회
  62. var pid = model.getValue("/root/source/pid");
  63. if( pid != ""){
  64. ipt_pid.currentText = pid;
  65. fSearchPatInfo();
  66. }
  67. model.refresh();
  68. ]]>
  69. </script>
  70. <script type="javascript">
  71. <![CDATA[
  72. //중증도 내역 검색
  73. function fSearch(){
  74. if( model.getValue("/root/main/popupendflag") == "ok" ){
  75. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  76. if( pid.length <= 0 ){
  77. messageBox("환자번호가 정확이 입력되지", "E007");
  78. return false;
  79. }
  80. model.setValue("/root/send/pid", pid);
  81. submit("TRPMC01201");
  82. var rowCnt = grd_serDiag.rows - grd_serDiag.fixedRows + 1;
  83. if(rowCnt < 2){
  84. fAddRow();
  85. }
  86. }
  87. }
  88. //중증도내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
  89. function fAddRow(){
  90. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  91. if( pid.length >= 0 ){
  92. grd_serDiag.addRow();
  93. var bottom = grd_serDiag.bottomRow;
  94. model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/pid" , pid);
  95. var curDate = getCurrentDate();
  96. model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/fromdd", curDate);
  97. model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/todd", getDateTime( curDate.toDate().getAddDate(5, "Y"), "D"));
  98. return true;
  99. }else{
  100. messageBox("환자번호가 정확이 입력되지", "E007");
  101. return false;
  102. }
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  109. <caption id="caption6" class="tit_1" style="left:5px; top:0px; width:189px; height:13px; ">중증도환자관리</caption>
  110. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  111. </group>
  112. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  113. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
  114. <group id="group6" style="left:0px; top:197px; width:1195px; height:538px; ">
  115. <caption id="caption46" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">중증도내역 리스트</caption>
  116. <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  117. <button id="btn_addRow" class="btn2_letter3" style="left:996px; top:4px; width:53px; height:19px; ">
  118. <caption>행추가</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. fAddRow();
  122. ]]>
  123. </script>
  124. </button>
  125. <button id="btn_delRow" class="btn5_letter3" style="left:1052px; top:4px; width:53px; height:19px; ">
  126. <caption>행삭제</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. if(messageBox("선택된 행의 중증도내역을", "Q001") != 6) return;
  130. var cur_row = grd_serDiag.row;
  131. if( cur_row > 0 ){
  132. //디비에 저장되지 않은 데이타는 그냥 삭제한다.
  133. if (grd_serDiag.rowStatus(cur_row) == "1" || grd_serDiag.rowStatus(cur_row) == "3" ){
  134. grd_serDiag.deleteItem(cur_row);
  135. //grd_serDiag.rebuild();
  136. return;
  137. }
  138. grd_serDiag.addStatus( cur_row, "delete");
  139. model.setValue("/root/send/updatedata/datalist", grd_serDiag.getUpdateData("delete"));
  140. if ( submit("TXPMC01202") ) {
  141. grd_serDiag.deleteItem( cur_row );
  142. //grd_serDiag.rebuild();
  143. }else grd_serDiag.removeStatus( cur_row, "delete");
  144. model.refresh();
  145. }
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="btn_save" class="btn5_letter6" style="left:1108px; top:4px; width:86px; height:19px; ">
  150. <caption>중증내역저장</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. model.setValue("/root/send/updatedata/datalist",grd_serDiag.getUpdateData());
  154. if ( submit("TXPMC01202") ) {
  155. //grd_serDiag.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  156. model.copyNode("/root/main/serdiagspec", "/root/hidden/tmp");
  157. grd_serDiag.rebuild();
  158. }
  159. ]]>
  160. </script>
  161. </button>
  162. <datagrid id="grd_serDiag" nodeset="/root/main/serdiagspec/serdiagspeclist" autoresize="true" caption="보험구분^보조유형^시작일자^종료일자^중증등록번호^신청자명^관계^참고사항^접수일자^접수시간^접수자ID^최종수정자ID^최종수정일시^환자등록번호^최초등록자ID^최초등록일시^일련번호" colsep="^" colwidth="80, 84, 84, 84, 100, 65, 60, 120, 84, 84, 80, 80, 120, 85, 85, 100, 67" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="byrowrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1194px; height:508px; ">
  163. <col disabled="true" ref="insuflag" type="combo">
  164. <choices>
  165. <itemset nodeset="/root/init/P0315list/P0315">
  166. <label ref="cdnm"/>
  167. <value ref="cdid"/>
  168. </itemset>
  169. </choices>
  170. </col>
  171. <col disabled="true" ref="suppkind" type="combo">
  172. <choices>
  173. <itemset nodeset="/root/init/P0317list/P0317">
  174. <label ref="cdnm"/>
  175. <value ref="cdid"/>
  176. </itemset>
  177. </choices>
  178. </col>
  179. <col ref="fromdd" type="inputdate"/>
  180. <col disabled="true" ref="todd" type="inputdate"/>
  181. <col ref="seridiagno" type="input"/>
  182. <col ref="apppsnnm" type="input"/>
  183. <col ref="rela" type="combo">
  184. <choices>
  185. <itemset nodeset="/root/init/P0016list/P0016">
  186. <label ref="cdnm"/>
  187. <value ref="cdid"/>
  188. </itemset>
  189. </choices>
  190. </col>
  191. <col ref="remfact" type="input"/>
  192. <col ref="acptdd" format="yyyy-mm-dd"/>
  193. <col ref="acpttm" format="hh:nn:ss"/>
  194. <col ref="acptid"/>
  195. <col ref="lastupdtrid"/>
  196. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  197. <col ref="pid" visibility="hidden"/>
  198. <col ref="fstrgstrid" visibility="hidden"/>
  199. <col ref="fstrgstdt" visibility="hidden"/>
  200. <col ref="seqno" visibility="hidden"/>
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. var cur_row = grd_serDiag.row;
  204. if(cur_row > 0 ){
  205. if( grd_serDiag.valueMatrix( cur_row, 7 ) == '1' ){
  206. grd_serDiag.valueMatrix( cur_row, 6 ) = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  207. }
  208. }
  209. ]]>
  210. </script>
  211. </datagrid>
  212. </group>
  213. <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:0px; width:1195px; height:197px; "/>
  214. </group>
  215. </group>
  216. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  217. <button id="btn_copyRow0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  218. <caption>초기화</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. model.resetInstanceNode("/root/main/serdiagspec/serdiagspeclist");
  222. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  223. model.setFocus("ipt_pid");
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </button>
  228. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  229. <line id="line20" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  230. </group>
  231. </xhtml:body>
  232. </xhtml:html>