SPPMI05200_임상각과입원관리담당의사명단.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <send>
  10. <sess_posinstcd/>
  11. <ioflag/>
  12. <data>
  13. <orddeptcd/>
  14. <position/>
  15. <hngnm/>
  16. <nzone/>
  17. <officetel/>
  18. <note/>
  19. </data>
  20. <orddd/>
  21. <idflag/>
  22. <data2>
  23. <grd_pdtt/>
  24. </data2>
  25. </send>
  26. <main>
  27. <chk>
  28. <wardnm/>
  29. <roomcd/>
  30. <bedcd/>
  31. <bedcnt/>
  32. <chartnum/>
  33. <indd/>
  34. <hngnm/>
  35. <orddeptnm/>
  36. <atdoctid/>
  37. <medispclid/>
  38. <outdd/>
  39. <partindd/>
  40. <insukind/>
  41. <wardid/>
  42. </chk>
  43. <inpatmanage>
  44. <orddeptcd/>
  45. <position/>
  46. <hngnm/>
  47. <nzone/>
  48. <officetel/>
  49. <note/>
  50. </inpatmanage>
  51. </main>
  52. <hidden>
  53. </hidden>
  54. <temp>
  55. </temp>
  56. <init>
  57. <orddeptcd>
  58. <cd/>
  59. <nm/>
  60. </orddeptcd>
  61. </init>
  62. <source>
  63. <flag/>
  64. </source>
  65. </root>
  66. </instance>
  67. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  68. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  69. <submission id="TRPMI05230" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  70. <submission id="TRPAO00000" mediatype="application/x-www-form-urlencoded" method="post"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. model.setValue("/root/send/orddd","20100101");
  82. if(model.getValue("/root/source/flag") == "chk") {
  83. btn_chanchk.dispatch("onclick");
  84. }
  85. fShowBox();
  86. fGetUserInfosSampling();//세션정보
  87. model.setValue("/root/send/sess_posinstcd",model.getValue("/root/hidden/session/sess_dutplceinstcd"));
  88. model.setValue("/root/send/ioflag","I");
  89. model.refresh();
  90. submit("TRPMI00106");
  91. zbcfGetCodeList(new Array("P0101","P0028","P0038"),new Array("/root/init1/P0101list","/root/init1/P0028list","/root/init1/P0038list"));
  92. btn_sijac.dispatch("onclick");
  93. model.refresh();
  94. ]]>
  95. </script>
  96. <script type="javascript">
  97. <![CDATA[
  98. function fShowBox() {
  99. if(model.getValue("/root/source/flag") == "inmanage") {
  100. cap_inmanage.visible = true;
  101. cap_chk.visible = false;
  102. cap_tinmanage.visible = true;
  103. cap_tchk.visible = false;
  104. btn_print.visible = true;
  105. btn_insrow.visible = true;
  106. btn_delrow.visible = true;
  107. btn_savedb.visible = true;
  108. }else if(model.getValue("/root/source/flag") == "chk") {
  109. cap_inmanage.visible = false;
  110. cap_chk.visible = true;
  111. cap_tinmanage.visible = false;
  112. cap_tchk.attribute("left") = "10px";
  113. cap_tchk.visible = true;
  114. btn_print.visible = false;
  115. btn_insrow.visible = false;
  116. btn_delrow.visible = false;
  117. btn_savedb.visible = false;
  118. }
  119. }
  120. ]]>
  121. </script>
  122. </xhtml:head>
  123. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  124. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  125. <caption id="cap_inmanage" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">임상각과 입원관리 담당의사 명단</caption>
  126. <caption id="cap_chk" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">중복된 병상조회</caption>
  127. </group>
  128. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:700px; ">
  129. <switch id="swt_aipmmngt" style="left:5px; top:25px; width:1170px; height:670px; ">
  130. <case id="case_instand" selected="true" style="left:0px; top:0px; width:1192px; height:670px; ">
  131. <datagrid id="grd_instand" nodeset="/root/main/inpatmanage" caption="과명^직위^이름^NZone^연구실 or H.P^비고" colsep="^" colwidth="120, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1170px; height:665px; text-align:center; ">
  132. <col ref="orddeptcd" type="combo">
  133. <choices>
  134. <itemset nodeset="/root/init/orddeptcd">
  135. <label ref="nm"/>
  136. <value ref="cd"/>
  137. </itemset>
  138. </choices>
  139. </col>
  140. <col ref="position" type="input"/>
  141. <col ref="hngnm" type="input" style="left:200px; top:23px; width:100px; height:23px; "/>
  142. <col ref="nzone" type="input"/>
  143. <col ref="officetel" type="input"/>
  144. <col ref="note" type="input"/>
  145. </datagrid>
  146. <script type="javascript">
  147. <![CDATA[
  148. grd_instand.isSelected(1) = true;
  149. ]]>
  150. </script>
  151. </case>
  152. <case id="case_chk" style="left:0px; top:0px; width:1192px; height:600px; ">
  153. <datagrid id="datagrid1" nodeset="/root/main/chk" scroll="auto" autoresize="true" caption="병동^병실^병상^Bed^차트번호^입원일^이름^진료과^전공의^주치의^퇴원일자^분할입원일^유형^WardId" colsep="^" colwidth="120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1170px; height:640px; ">
  154. <col ref="wardnm" style="text-align:center; "/>
  155. <col ref="roomcd"/>
  156. <col ref="bedcd"/>
  157. <col ref="bedcnt"/>
  158. <col ref="chartnum"/>
  159. <col ref="indd"/>
  160. <col ref="hngnm"/>
  161. <col ref="orddeptnm"/>
  162. <col ref="atdoctid"/>
  163. <col ref="medispclid"/>
  164. <col ref="outdd"/>
  165. <col ref="partindd"/>
  166. <col ref="insukind"/>
  167. <col ref="wardid"/>
  168. </datagrid>
  169. </case>
  170. </switch>
  171. <caption id="cap_tinmanage" class="tit_2" style="left:10px; top:9px; width:214px; height:13px; ">임상각과 입원관리 담당의사 명단</caption>
  172. <line id="line19" class="line_1" style="x1:5px; y1:25px; x2:1175px; y2:25px; "/>
  173. <button id="btn_insrow" class="btn2_letter3" style="left:1020px; top:5px; width:53px; height:19px; ">
  174. <caption>행추가</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. grd_instand.insertRow(grd_instand.row , "below");
  178. if(grd_instand.rows <= 1) {
  179. grd_instand.addRow();
  180. }
  181. model.refresh();
  182. model.setValue("/root/send/idflag" , "I");
  183. //grd_instand.addRow();
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="btn_delrow" class="btn2_letter3" style="left:1075px; top:5px; width:53px; height:19px; ">
  188. <caption>행삭제</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. if(grd_instand.rows >=1) {
  192. grd_instand.deleteRow(grd_instand.row);
  193. model.refresh();
  194. }
  195. model.setValue("/root/send/idflag" , "D");
  196. ]]>
  197. </script>
  198. </button>
  199. <button id="btn_savedb" class="btn2_letter2" style="left:1130px; top:5px; width:42px; height:19px; ">
  200. <caption>저장</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. var cur_row = grd_instand.row;
  204. if (cur_row > 0) {
  205. // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
  206. var updtdata = getGridUpdateData(grd_instand);
  207. model.setValue("/root/send/data2/grd_pdtt",updtdata);
  208. var updchk = model.getValue("/root/send/data2/grd_pdtt");
  209. // alert(updchk);
  210. if (updchk == null || updchk == "" || updchk == " ") {
  211. messageBox("변경사항이","I004");
  212. return false;
  213. } else {
  214. model.setValue("/root/send/data2/grd_pdtt",grd_patinfolist.getUpdateData());
  215. submit("TRPMI05230");
  216. model.refresh();
  217. }
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="btn_print" class="btn2_letter2" style="left:975px; top:5px; width:42px; height:19px; ">
  223. <caption>출력</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. exeReportPreview("RPPMI05290", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_chanchk" style="left:840px; top:5px; width:10px; height:10px; ">
  231. <caption>.</caption>
  232. <toggle case="case_chk" ev:event="xforms-activate"/>
  233. </button>
  234. <caption id="cap_tchk" class="tit_2" style="left:225px; top:9px; width:214px; height:14px; ">중복된 병상조회</caption>
  235. <button id="btn_sijac" style="left:850px; top:5px; width:15px; height:20px; ">
  236. <caption>.</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. submit("TRPMI05230");
  240. ]]>
  241. </script>
  242. </button>
  243. </group>
  244. </xhtml:body>
  245. </xhtml:html>