SMMNW14550_특수주사팀 호출.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <init/>
  10. <main>
  11. <cond>
  12. <pid/>
  13. <calldeptcd/>
  14. <callremfact/>
  15. <callremfactdesc/>
  16. <hngnm/>
  17. <sex/>
  18. <age/>
  19. <roomcd/>
  20. <acptflag/>
  21. <calltm/>
  22. <calldd/>
  23. <callno/>
  24. <capinfo/>
  25. <cnclflag/>
  26. <calltelno/>
  27. <calluserid/>
  28. <orddeptcd/>
  29. </cond>
  30. <paminfo/>
  31. <outflag/>
  32. </main>
  33. <send>
  34. <savedata/>
  35. </send>
  36. <temp>
  37. <patinfo/>
  38. </temp>
  39. <temp2>
  40. <patinfo/>
  41. </temp2>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. // Duty별 특수주사팀 근무자 조회, 진료과 코드 조회
  47. model.makeValue("/root/send/instcd" , getUserInfo("dutplceinstcd"));
  48. model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  49. submit("TRMNW14501");
  50. // 간호공통코드 조회
  51. model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
  52. model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  53. submit("TRMNW00001", false);
  54. // 부서콤보 조회
  55. submit("TRMNW11001", false);
  56. // 외래환자 조회 버튼 활성화, '16.10.14_AYS
  57. var userid = getUserInfo("userid") ;
  58. if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
  59. chk_outflag.visible = true;
  60. } else {
  61. chk_outflag.visible = false;
  62. }
  63. var pid="";
  64. var indd="";
  65. var cretno="";
  66. model.makeNode("/root/main/paminfo");
  67. var node = getGlobalVariable("paminfo");
  68. setCSVToNode("/root/main/paminfo", node);
  69. //팝업화면이 아닐경우 상단에 환자 정보가 있는지 여부를 확인하고
  70. if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
  71. pid = model.getValue("/root/main/paminfo/list/pid");
  72. } else {
  73. //팝업으로 뜬화면인가 여부확인.팝업일 경우 팝업화면 파라메터를 가지고온다.
  74. if(checkOpener()) {
  75. pid = opener.javascript.getParameter("SMMNW14100_PID");
  76. }
  77. }
  78. //환자 등록번호가 존재할 경우에는
  79. if(pid != "") {
  80. model.setValue(ipt_pid.attribute("ref"), pid);
  81. ipt_pid.refresh();
  82. fSearchPatInfo();
  83. }
  84. ]]>
  85. </script>
  86. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
  87. <submission id="TRMNW14501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  88. <submission id="TRMNW14500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/patinfo"/>
  89. <submission id="TXMNW14500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/patinfo"/>
  90. <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
  91. <submission id="TRMNW10902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roominfo"/>
  92. </model>
  93. <script type="javascript">
  94. <![CDATA[
  95. function fSearchPatInfo() {
  96. model.makeValue("/root/send/reqdata/pid", model.getValue(ipt_pid.attribute("ref")));
  97. model.makeValue("/root/send/reqdata/outflag", model.getValue(chk_outflag.attribute("ref"))); //16.10.14_외래환자 조회 추가
  98. submit("TRMNW14500");
  99. model.copyNode("/root/main/cond", "/root/temp/patinfo/patlist");
  100. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/calldeptcd"));
  101. submit("TRMNW10902", false);
  102. if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "0") {
  103. model.setValue("/root/main/cond/capinfo", "호출 하지 않은 환자입니다.");
  104. btn_save.disabled = false;
  105. combo1.visible = false;
  106. combo1.disabled = true;
  107. cmb_calltelno.visible = true;
  108. cmb_calldeptcd.disabled = false;
  109. cmb_orddeptcd.disabled = false;
  110. cmb_callremfact.disabled = false;
  111. tar_callremfactdesc.disabled = false;
  112. cmb_roomcd.disabled = false;
  113. } else if(model.getValue("/root/temp/patinfo/patlist/acptflag") == "1") {
  114. model.setValue("/root/main/cond/capinfo", "이미 호출한 환자입니다.");
  115. btn_save.disabled = true;
  116. combo1.visible = true;
  117. combo1.disabled = true;
  118. cmb_calltelno.visible = false;
  119. cmb_calldeptcd.disabled = true;
  120. cmb_orddeptcd.disabled = true;
  121. cmb_callremfact.disabled = true;
  122. tar_callremfactdesc.disabled = true;
  123. cmb_roomcd.disabled = true;
  124. }else{
  125. model.setValue("/root/main/cond/capinfo", "");
  126. btn_save.disabled = false;
  127. combo1.visible = false;
  128. combo1.disabled = true;
  129. cmb_calltelno.visible = true;
  130. cmb_calldeptcd.disabled = false;
  131. cmb_orddeptcd.disabled = false;
  132. cmb_callremfact.disabled = false;
  133. tar_callremfactdesc.disabled = false;
  134. cmb_roomcd.disabled = false;
  135. }
  136. if(model.getValue("/root/main/cond/orddeptcd") == "" || model.getValue("/root/main/cond/orddeptcd") == "-"){
  137. if(model.getValue("/root/main/cond/pid") == model.getValue("/root/main/paminfo/list/pid")){
  138. model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd")) ;
  139. }
  140. }
  141. if(model.getValue("/root/main/cond/pid") != "" && model.getValue("/root/main/cond/calldeptcd") == ""){
  142. model.setValue("/root/main/cond/calldeptcd", getUserInfo("dutplcecd")) ;
  143. }
  144. model.refresh();
  145. }
  146. ]]>
  147. </script>
  148. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  152. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  153. </xhtml:head>
  154. <xhtml:body pagewidth="385" pageheight="235" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  155. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:365px; height:235px; ">
  156. <caption id="caption6" class="tit_2" style="left:0px; top:5px; width:178px; height:15px; ">특수주사팀 호출</caption>
  157. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:360px; y2:20px; "/>
  158. <select1 id="cmb_callremfact" ref="/root/main/cond/callremfact" appearance="minimal" style="left:77px; top:123px; width:178px; height:19px; ">
  159. <choices>
  160. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I06']">
  161. <label ref="cdnm"/>
  162. <value ref="cdid"/>
  163. </itemset>
  164. </choices>
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. ]]>
  168. </script>
  169. </select1>
  170. <input id="ipt_pid" ref="/root/main/cond/pid" style="left:77px; top:26px; width:100px; height:19px; ">
  171. <script type="javascript" ev:event="onkeypress">
  172. <![CDATA[
  173. if(event.keyCode == 13) {
  174. setInputNodeCurText();
  175. fSearchPatInfo();
  176. }
  177. ]]>
  178. </script>
  179. <script type="javascript" ev:event="DOMFocusOut">
  180. <![CDATA[
  181. setInputNodeCurText();
  182. fSearchPatInfo();
  183. ]]>
  184. </script>
  185. </input>
  186. <input id="ipt_hngnm" ref="/root/main/cond/hngnm" disabled="true" style="left:257px; top:26px; width:100px; height:19px; "/>
  187. <line id="line2" class="line_2" style="x1:0px; y1:47px; x2:360px; y2:47px; "/>
  188. <caption id="caption2" class="cell_1" style="left:0px; top:25px; width:75px; height:23px; text-align:center; ">등록번호</caption>
  189. <caption id="caption3" class="cell_1" style="left:180px; top:25px; width:75px; height:23px; text-align:center; ">환자명</caption>
  190. <select1 id="cmb_calldeptcd" ref="/root/main/cond/calldeptcd" appearance="minimal" style="left:77px; top:50px; width:100px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/deptinfo/deptlist">
  193. <label ref="depthngnm"/>
  194. <value ref="deptcd"/>
  195. </itemset>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. model.setValue("/root/main/cond/roomcd","");
  200. model.removeNodeset("/root/send/reqdata");
  201. model.makeNode("/root/send/reqdata");
  202. model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/calldeptcd"));
  203. submit("TRMNW10902", false);
  204. model.refresh();
  205. ]]>
  206. </script>
  207. </select1>
  208. <line id="line3" class="line_2" style="x1:0px; y1:71px; x2:360px; y2:71px; "/>
  209. <caption id="caption4" class="cell_1" style="left:0px; top:49px; width:75px; height:23px; text-align:center; ">호출부서</caption>
  210. <line id="line6" class="line_2" style="x1:0px; y1:95px; x2:360px; y2:95px; "/>
  211. <caption id="caption1" class="cell_1" style="left:0px; top:122px; width:75px; height:66px; text-align:center; ">호출목적</caption>
  212. <caption id="caption8" class="cell_1" style="left:180px; top:49px; width:75px; height:23px; text-align:center; ">병실(입원)</caption>
  213. <input id="ipt_acptflag" ref="/root/main/cond/acptflag" visibility="hidden" style="left:0px; top:210px; width:100px; height:19px; "/>
  214. <button id="btn_save" class="btn4_letter2" style="left:305px; top:192px; width:56px; height:22px; ">
  215. <caption>호출</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. var pid = model.getValue(ipt_pid.attribute("ref"));
  219. var hngnm = model.getValue(ipt_hngnm.attribute("ref"));
  220. var calltelno = model.getValue(cmb_calltelno.attribute("ref"));
  221. var callremfact = model.getValue(cmb_callremfact.attribute("ref"));
  222. var calldeptcd = model.getValue(cmb_calldeptcd.attribute("ref"));
  223. var calldeptnm = cmb_calldeptcd.label;
  224. var orddeptcd = model.getValue(cmb_orddeptcd.attribute("ref"));
  225. var orddeptnm = cmb_orddeptcd.label;
  226. if(pid == "") {
  227. messageBox("환자를 선택하십시오.", "E");
  228. return;
  229. }
  230. if(hngnm == "") {
  231. messageBox("환자를 선택하십시오.", "E");
  232. return;
  233. }
  234. if(calldeptcd == "" || calldeptnm == "") {
  235. messageBox("호출부서를 선택하십시오.", "E");
  236. return;
  237. }
  238. if(calltelno == "") {
  239. messageBox("호출번호를 선택하십시오.", "E");
  240. return;
  241. }
  242. if(orddeptcd == "" || orddeptnm == "") {
  243. messageBox("진료과를 선택하십시오.", "E");
  244. return;
  245. }
  246. if(callremfact== "") {
  247. messageBox("호출목적을 선택하십시오.", "E");
  248. return;
  249. }
  250. var rtn = messageBox("호출 하시겠습니까?", "Q");
  251. if(rtn=="6") {
  252. if(model.getValue("/root/main/cond/roomcd") == '-'){
  253. model.setValue("/root/main/cond/roomcd",'');
  254. }
  255. model.copyNode("/root/temp2/patinfo", "/root/main/cond");
  256. model.copyNode("/root/send/savedata", "/root/temp2/patinfo");
  257. model.makeValue("/root/send/savedata/calldeptnm", cmb_calldeptcd.label);
  258. model.makeValue("/root/send/savedata/callremfactnm", cmb_callremfact.label);
  259. model.makeValue("/root/send/savedata/orddeptnm", cmb_orddeptcd.label);
  260. if(submit("TXMNW14500")) {
  261. messageBox("저장되었습니다. ", "I");
  262. fSearchPatInfo();
  263. }
  264. }
  265. ]]>
  266. </script>
  267. </button>
  268. <input id="ipt_calldd" ref="/root/main/cond/calldd" visibility="hidden" style="left:180px; top:74px; width:85px; height:19px; "/>
  269. <input id="ipt_calltm" ref="/root/main/cond/calltm" visibility="hidden" style="left:267px; top:74px; width:45px; height:19px; "/>
  270. <input id="ipt_callno" ref="/root/main/cond/callno" visibility="hidden" style="left:315px; top:74px; width:45px; height:19px; "/>
  271. <caption id="caption10" ref="/root/main/cond/capinfo" style="left:0px; top:188px; width:305px; height:20px; font-weight:bold; color:#0000ff; text-align:left; "/>
  272. <select1 id="cmb_acptflag" ref="/root/main/cond/acptflag" disabled="true" appearance="minimal" style="left:257px; top:74px; width:100px; height:19px; ">
  273. <choices>
  274. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I05']">
  275. <label ref="cdnm"/>
  276. <value ref="cdid"/>
  277. </itemset>
  278. </choices>
  279. </select1>
  280. <caption id="caption9" class="cell_1" style="left:180px; top:73px; width:75px; height:23px; text-align:center; ">접수구분</caption>
  281. <line id="line7" class="line_3" style="x1:0px; y1:187px; x2:360px; y2:187px; "/>
  282. <textarea id="tar_callremfactdesc" ref="/root/main/cond/callremfactdesc" style="left:77px; top:144px; width:285px; height:41px; "/>
  283. <caption id="caption7" style="left:335px; top:219px; width:27px; height:14px; ">[표]</caption>
  284. <select1 id="cmb_calltelno" ref="/root/main/cond/calltelno" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
  285. <choices>
  286. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
  287. <label ref="cdnm"/>
  288. <value ref="cdid"/>
  289. </itemset>
  290. </choices>
  291. </select1>
  292. <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:75px; height:23px; text-align:center; ">호출번호</caption>
  293. <input id="ipt_sex" ref="/root/main/cond/sex" visibility="hidden" style="left:195px; top:0px; width:20px; height:19px; "/>
  294. <input id="ipt_age" ref="/root/main/cond/age" visibility="hidden" style="left:220px; top:0px; width:20px; height:19px; "/>
  295. <select1 id="combo1" ref="/root/main/cond/calltelno" visibility="hidden" appearance="minimal" style="left:77px; top:74px; width:100px; height:19px; ">
  296. <choices>
  297. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
  298. <label ref="cdnm"/>
  299. <value ref="cdid"/>
  300. </itemset>
  301. </choices>
  302. </select1>
  303. <input id="ipt_calluserid" ref="/root/main/cond/calluserid" visibility="hidden" style="left:55px; top:74px; width:20px; height:19px; "/>
  304. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:77px; top:98px; width:178px; height:19px; ">
  305. <choices>
  306. <itemset nodeset="/root/init/cmblist/orddeptlist">
  307. <label ref="depthngnm"/>
  308. <value ref="deptcd"/>
  309. </itemset>
  310. </choices>
  311. </select1>
  312. <caption id="caption11" class="cell_1" style="left:0px; top:97px; width:75px; height:23px; text-align:center; ">진료과</caption>
  313. <line id="line4" class="line_2" style="x1:0px; y1:120px; x2:360px; y2:120px; "/>
  314. <select1 id="cmb_roomcd" ref="/root/main/cond/roomcd" appearance="minimal" style="left:257px; top:50px; width:100px; height:19px; ">
  315. <choices>
  316. <itemset nodeset="/root/init/roominfo/room">
  317. <label ref="roomnm"/>
  318. <value ref="roomcd"/>
  319. </itemset>
  320. </choices>
  321. </select1>
  322. <select id="chk_outflag" ref="/root/main/outflag" visibility="hidden" overflow="visible" appearance="full" style="left:265px; top:100px; width:75px; height:15px; border-style:none; ">
  323. <choices>
  324. <item>
  325. <label>외래환자</label>
  326. <value>Y</value>
  327. </item>
  328. </choices>
  329. </select>
  330. </group>
  331. </xhtml:body>
  332. </xhtml:html>