SMMNW14510_IV팀 호출 현황관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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>소아IV팀 호출 현황관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <deptcd/>
  12. <pid/>
  13. <fromdd/>
  14. <todd/>
  15. <acptflag/>
  16. <exceptflag>Y</exceptflag>
  17. <multicheck/>
  18. <exceptflag2>Y</exceptflag2>
  19. </cond>
  20. <ivinfo>
  21. <ivlist/>
  22. </ivinfo>
  23. </main>
  24. <send>
  25. <reqdata/>
  26. <savedata/>
  27. </send>
  28. <init/>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. //grd_ivinfo.fixedcellcheckbox(0, grd_ivinfo.colRef("chkyn")) = true;
  34. model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07'");
  35. model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  36. submit("TRMNW00001", false);
  37. var userid = getUserInfo("userid") ;
  38. //IV팀이면. 활성화
  39. if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
  40. btn_cmpl.disabled = false;
  41. btn_savrem.disabled = false;
  42. btn_cncl.disabled = false;
  43. } else { // IV팀이 아니면 비활성화
  44. btn_cmpl.disabled = true;
  45. btn_savrem.disabled = true;
  46. btn_cncl.disabled = true;
  47. }
  48. var instcd = getUserInfo("dutplceinstcd");
  49. var standard_yn = "orduseyn";
  50. var ord_deptflag = 'W';
  51. var rslt_ref = "/root/init/dept";
  52. var sort_field = "depthngnm";
  53. var sort_method = "asc";
  54. var dt = getCurrentDate();
  55. submit("TRMNW11001", false);
  56. addComboItem("cmb_deptcd", "전 체", "", "above");
  57. model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
  58. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  59. ipt_fromdd.refresh();
  60. ipt_todd.refresh();
  61. if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
  62. } else { // IV팀이 아니면 비활성화
  63. if(getUserInfo("userid") == "ENR") {
  64. model.setValue(cmb_deptcd.attribute("ref"), "");
  65. cmb_deptcd.refresh();
  66. } else {
  67. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  68. cmb_deptcd.refresh();
  69. }
  70. }
  71. fSearch() ;
  72. ]]>
  73. </script>
  74. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  75. <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
  76. <submission id="TRMNW14511" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/ivinfo"/>
  77. <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  78. <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
  79. </model>
  80. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  81. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. function fSearch() {
  89. model.copyNode("/root/send/reqdata", "/root/main/cond");
  90. submit("TRMNW14511");
  91. var nodePath = grd_ivinfo.nodeset;
  92. for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
  93. if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
  94. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  95. }else{
  96. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
  97. }
  98. if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
  99. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  100. }else{
  101. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
  102. }
  103. if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
  104. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  105. }else{
  106. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
  107. }
  108. }
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  115. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:165px; height:13px; font-family:굴림; ">소아IV팀 호출 현황관리</caption>
  116. <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:40px; vertical-align:top; ">
  117. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
  118. <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1070px; top:11px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. fSearch() ;
  123. ]]>
  124. </script>
  125. </button>
  126. <caption id="caption3" class="search_name" style="left:215px; top:11px; width:69px; height:17px; font-family:굴림; ">기 간 :</caption>
  127. <line id="line2" class="line_4" style="x1:1060px; y1:10px; x2:1060px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  128. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:284px; top:11px; width:95px; height:19px; font-family:굴림; ">
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. ]]>
  132. </script>
  133. </input>
  134. <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
  135. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:11px; width:125px; height:19px; font-family:굴림; ">
  136. <choices>
  137. <itemset nodeset="/root/init/deptinfo/deptlist">
  138. <label ref="depthngnm"/>
  139. <value ref="deptcd"/>
  140. </itemset>
  141. </choices>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. fSearch();
  145. ]]>
  146. </script>
  147. </select1>
  148. <caption id="caption1" class="search_name" style="left:499px; top:11px; width:71px; height:17px; font-family:굴림; ">구 분 :</caption>
  149. <caption id="caption2" class="search_name" style="left:750px; top:11px; width:91px; height:17px; font-family:굴림; ">등록번호 :</caption>
  150. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" navindex="4" appearance="minimal" style="left:840px; top:11px; width:55px; height:19px; font-family:굴림; ">
  151. <choices>
  152. <itemset nodeset="/root/init/ward">
  153. <label ref="depthngnm"/>
  154. <value ref="deptcd"/>
  155. </itemset>
  156. </choices>
  157. <script type="javascript" ev:event="onkeyup">
  158. <![CDATA[
  159. inputEnterKey("btn_ref", "DOMActivate");
  160. ]]>
  161. </script>
  162. </input>
  163. <button id="button2" class="btn1_letter2" navindex="8" style="left:1128px; top:11px; width:56px; height:22px; ">
  164. <caption>엑셀</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. var fileName = window.fileDialog("save", ",", false, "소아IV팀 호출 현황 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  168. grd_ivinfo.saveExcel(fileName, "sheetname;colhiddenextend:true;exportfalsecols:1,2,8,9,10;col_3:label;col_16:label;col_18:label;col_19:label;");
  169. ]]>
  170. </script>
  171. </button>
  172. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:394px; top:11px; width:95px; height:19px; font-family:굴림; "/>
  173. <caption id="caption4" style="left:377px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
  174. <select1 id="rdo_acptflag" ref="/root/main/cond/acptflag" appearance="full" cols="6" overflow="visible" style="left:569px; top:11px; width:176px; height:15px; font-family:굴림; border-style:none; ">
  175. <choices>
  176. <item>
  177. <label>전체</label>
  178. <value/>
  179. </item>
  180. <item>
  181. <label>호출</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>완료</label>
  186. <value>2</value>
  187. </item>
  188. <item>
  189. <label>취소</label>
  190. <value>3</value>
  191. </item>
  192. </choices>
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. fSearch() ;
  196. ]]>
  197. </script>
  198. </select1>
  199. </group>
  200. <caption id="caption5" class="tit_2" style="left:5px; top:75px; width:180px; height:13px; font-family:굴림; ">소아IV팀 호출 현황 리스트</caption>
  201. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
  202. <datagrid id="grd_ivinfo" nodeset="/root/main/ivinfo/ivlist" class="datagrid2" caption="^no^호출부서^병실&#xA;(입원)^부서번호^등록번호^성명^진료과^감염정보^감염정보^감염정보^감염정보^감염정보^감염정보^호출일시^호출일시^IV목적^IV목적^구분^호출 IV팀^IV팀 Remark^완료일시^완료일시" colsep="^" colwidth="27, 0, 85, 50, 100, 55, 65, 95, 23, 23, 23, 23, 23, 23, 70, 45, 65, 105, 45, 60, 105, 70, 45" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:95px; width:1194px; height:670px; ">
  203. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  204. <col ref="callno"/>
  205. <col disabled="true" ref="calldeptcd" type="combo" style="text-align:left; ">
  206. <choices>
  207. <itemset nodeset="/root/init/deptinfo/deptlist">
  208. <label ref="depthngnm"/>
  209. <value ref="deptcd"/>
  210. </itemset>
  211. </choices>
  212. </col>
  213. <col ref="roomcd" style="text-align:center; "/>
  214. <col ref="depttel" style="text-align:left; "/>
  215. <col ref="pid" style="text-align:center; "/>
  216. <col ref="hngnm" style="text-align:left; "/>
  217. <col ref="orddeptnm"/>
  218. <col ref="disp1img"/>
  219. <col ref="disp2img"/>
  220. <col ref="disp3img"/>
  221. <col ref="disp1" visibility="hidden" style="text-align:center; "/>
  222. <col ref="disp2" visibility="hidden" style="text-align:center; "/>
  223. <col ref="disp3" visibility="hidden" style="text-align:center; "/>
  224. <col ref="calldd" format="yyyy-mm-dd" style="text-align:center; "/>
  225. <col ref="calltm" format="hh:nn" style="text-align:center; "/>
  226. <col disabled="true" ref="callremfact" type="combo" style="text-align:center; ">
  227. <choices>
  228. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I06']">
  229. <label ref="cdnm"/>
  230. <value ref="cdid"/>
  231. </itemset>
  232. </choices>
  233. </col>
  234. <col ref="callremfactdesc" type="output" style="text-align:left; "/>
  235. <col disabled="true" ref="acptflag" type="combo" style="text-align:center; ">
  236. <choices>
  237. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I05']">
  238. <label ref="cdnm"/>
  239. <value ref="cdid"/>
  240. </itemset>
  241. </choices>
  242. </col>
  243. <col disabled="true" ref="calltelno" type="combo" style="text-align:center; ">
  244. <choices>
  245. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I07']">
  246. <label ref="cdnm"/>
  247. <value ref="cdid"/>
  248. </itemset>
  249. </choices>
  250. </col>
  251. <col ref="ivremfact" type="input"/>
  252. <col ref="cmpltdd" format="yyyy-mm-dd" style="text-align:center; "/>
  253. <col ref="cmplttm" format="hh:nn" style="text-align:center; "/>
  254. <script type="javascript" ev:event="xforms-value-changed">
  255. <![CDATA[
  256. if(grd_ivinfo.col == grd_ivinfo.colRef("ivremfact")) {
  257. grd_ivinfo.valueMatrix(grd_ivinfo.row, grd_ivinfo.colRef("chkyn")) = "Y";
  258. }
  259. ]]>
  260. </script>
  261. <script type="javascript" ev:event="onaftersort">
  262. <![CDATA[
  263. grd_ivinfo.gridToInstance();
  264. ]]>
  265. </script>
  266. </datagrid>
  267. <button id="btn_cmpl" class="btn2_letter2" style="left:1106px; top:70px; width:42px; height:19px; ">
  268. <caption>완료</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. var chkyn;
  272. var acptflag;
  273. var chkcnt = 0;
  274. var cnt = 0;
  275. var cnclcnt = 0;
  276. var xIvListPath = "/root/main/ivinfo/ivlist";
  277. for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
  278. chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
  279. acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
  280. if(chkyn == "Y" && acptflag == "3") {
  281. cnclcnt++;
  282. }
  283. if(chkyn == "Y" && acptflag == "2" ) {
  284. chkcnt++;
  285. }
  286. if(chkyn == "Y") {
  287. cnt++;
  288. }
  289. if(model.getValue("/root/main/cond/multicheck") == "true"){
  290. data = grd_ivinfo.getupdatedataAll("i")
  291. }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
  292. data = getGridUpdateData(grd_ivinfo);
  293. }
  294. }
  295. if(chkyn == 0) {
  296. messageBox("완료 처리할 환자를 선택하여 주십시오.", "I");
  297. return;
  298. }
  299. if(cnclcnt >0) {
  300. messageBox("취소된 환자는 완료하실 수 없습니다.", "E");
  301. return;
  302. }
  303. if(chkcnt > 0) {
  304. messageBox("이미 완료된 환자는 완료하실 수 없습니다.", "E");
  305. return;
  306. }
  307. model.makeValue("/root/send/savedata/ivlist", data);
  308. model.makeValue("/root/send/savedata/saveflag", "2");
  309. submit("TXMNW14511");
  310. fSearch() ;
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_savrem" class="btn2_letter6" style="left:1018px; top:70px; width:86px; height:19px; ">
  315. <caption>Remark저장</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. model.makeValue("/root/send/savedata/ivlist", getGridUpdateData(grd_ivinfo));
  319. model.makeValue("/root/send/savedata/saveflag", "1");
  320. submit("TXMNW14511");
  321. fSearch() ;
  322. ]]>
  323. </script>
  324. </button>
  325. <button id="button1" class="btn2_letter7" style="left:919px; top:70px; width:97px; height:19px; ">
  326. <caption>소아IV팀 호출</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. open("SMMNW14500");
  330. ]]>
  331. </script>
  332. </button>
  333. <caption id="caption6" style="left:1166px; top:767px; width:27px; height:15px; ">[표]</caption>
  334. <select id="checkbox1" ref="/root/main/cond/exceptflag" overflow="visible" appearance="full" style="left:905px; top:34px; width:66px; height:13px; border-style:none; ">
  335. <choices>
  336. <item>
  337. <label>완료제외</label>
  338. <value>Y</value>
  339. </item>
  340. </choices>
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. fSearch() ;
  344. ]]>
  345. </script>
  346. </select>
  347. <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:24px; top:99px; width:20px; height:30px; font-family:굴림; ">
  348. <script type="javascript" ev:event="xforms-value-changed">
  349. <![CDATA[
  350. var multicheck = model.getValue("/root/main/cond/multicheck");
  351. var xIvListPath = "/root/main/ivinfo/ivlist";
  352. var nodeCnt = getNodesetCount(xIvListPath);
  353. for(var i = 1; i <= nodeCnt; i++){
  354. if(multicheck == "true"){
  355. model.setValue(xIvListPath + "[" + i + "]/chkyn", "Y");
  356. }else{
  357. model.setValue(xIvListPath + "[" + i + "]/chkyn", "N");
  358. }
  359. }
  360. ]]>
  361. </script>
  362. </bool>
  363. <button id="btn_cncl" class="btn5_letter2" style="left:1150px; top:70px; width:42px; height:19px; ">
  364. <caption>취소</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. var chkyn;
  368. var acptflag;
  369. var chkcnt = 0;
  370. var cnt = 0;
  371. var cnclcnt = 0;
  372. var xIvListPath = "/root/main/ivinfo/ivlist";
  373. for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
  374. chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
  375. acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
  376. if(chkyn == "Y" && acptflag == "3") {
  377. cnclcnt++;
  378. }
  379. if(chkyn == "Y" && acptflag == "2" ) {
  380. chkcnt++;
  381. }
  382. if(chkyn == "Y") {
  383. cnt++;
  384. }
  385. if(model.getValue("/root/main/cond/multicheck") == "true"){
  386. data = grd_ivinfo.getupdatedataAll("i")
  387. }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
  388. data = getGridUpdateData(grd_ivinfo);
  389. }
  390. }
  391. if(chkyn == 0) {
  392. messageBox("취소 처리할 환자를 선택하여 주십시오.", "I");
  393. return;
  394. }
  395. if(cnclcnt >0) {
  396. messageBox("이미 취소된 환자는 취소하실 수 없습니다.", "E");
  397. return;
  398. }
  399. if(chkcnt > 0) {
  400. messageBox("완료된 환자는 취소하실 수 없습니다.", "E");
  401. return;
  402. }
  403. model.makeValue("/root/send/savedata/ivlist", data);
  404. model.makeValue("/root/send/savedata/saveflag", "3");
  405. submit("TXMNW14511");
  406. fSearch() ;
  407. ]]>
  408. </script>
  409. </button>
  410. <select id="checkbox2" ref="/root/main/cond/exceptflag2" overflow="visible" appearance="full" style="left:977px; top:34px; width:71px; height:13px; border-style:none; ">
  411. <choices>
  412. <item>
  413. <label>취소제외</label>
  414. <value>Y</value>
  415. </item>
  416. </choices>
  417. <script type="javascript" ev:event="xforms-value-changed">
  418. <![CDATA[
  419. fSearch() ;
  420. ]]>
  421. </script>
  422. </select>
  423. </group>
  424. </xhtml:body>
  425. </xhtml:html>