SMMNW14560_특수주사팀 호출 현황관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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. <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','I13'");
  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:180px; height:13px; font-family:굴림; ">특수주사팀 호출 현황관리</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:195px; height:13px; font-family:굴림; ">특수주사팀 호출 현황 리스트</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;(입원)^부서번호^등록번호^성명^S/A^진료과^감염정보^감염정보^감염정보^감염정보^감염정보^감염정보^호출일시^호출일시^IV목적^호출목적^구분^호출번호^특수주사팀&#xA;Remark^완료일시^완료일시" colsep="^" colwidth="27, 0, 85, 50, 100, 55, 65, 45, 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="sexage" style="text-align:left; "/>
  218. <col ref="orddeptnm"/>
  219. <col ref="disp1img"/>
  220. <col ref="disp2img"/>
  221. <col ref="disp3img"/>
  222. <col ref="disp1" visibility="hidden" style="text-align:center; "/>
  223. <col ref="disp2" visibility="hidden" style="text-align:center; "/>
  224. <col ref="disp3" visibility="hidden" style="text-align:center; "/>
  225. <col ref="calldd" format="yyyy-mm-dd" style="text-align:center; "/>
  226. <col ref="calltm" format="hh:nn" style="text-align:center; "/>
  227. <col disabled="true" ref="callremfact" type="combo" style="text-align:center; ">
  228. <choices>
  229. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I06']">
  230. <label ref="cdnm"/>
  231. <value ref="cdid"/>
  232. </itemset>
  233. </choices>
  234. </col>
  235. <col ref="callremfactdesc" type="output" style="text-align:left; "/>
  236. <col disabled="true" ref="acptflag" type="combo" style="text-align:center; ">
  237. <choices>
  238. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I05']">
  239. <label ref="cdnm"/>
  240. <value ref="cdid"/>
  241. </itemset>
  242. </choices>
  243. </col>
  244. <col disabled="true" ref="calltelno" type="combo" style="text-align:center; ">
  245. <choices>
  246. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='I13']">
  247. <label ref="cdnm"/>
  248. <value ref="cdid"/>
  249. </itemset>
  250. </choices>
  251. </col>
  252. <col ref="ivremfact" type="input"/>
  253. <col ref="cmpltdd" format="yyyy-mm-dd" style="text-align:center; "/>
  254. <col ref="cmplttm" format="hh:nn" style="text-align:center; "/>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. if(grd_ivinfo.col == grd_ivinfo.colRef("ivremfact")) {
  258. grd_ivinfo.valueMatrix(grd_ivinfo.row, grd_ivinfo.colRef("chkyn")) = "Y";
  259. }
  260. ]]>
  261. </script>
  262. <script type="javascript" ev:event="onaftersort">
  263. <![CDATA[
  264. grd_ivinfo.gridToInstance();
  265. ]]>
  266. </script>
  267. </datagrid>
  268. <button id="btn_cmpl" class="btn2_letter2" style="left:1106px; top:70px; width:42px; height:19px; ">
  269. <caption>완료</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. var chkyn;
  273. var acptflag;
  274. var chkcnt = 0;
  275. var cnt = 0;
  276. var cnclcnt = 0;
  277. var xIvListPath = "/root/main/ivinfo/ivlist";
  278. for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
  279. chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
  280. acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
  281. if(chkyn == "Y" && acptflag == "3") {
  282. cnclcnt++;
  283. }
  284. if(chkyn == "Y" && acptflag == "2" ) {
  285. chkcnt++;
  286. }
  287. if(chkyn == "Y") {
  288. cnt++;
  289. }
  290. if(model.getValue("/root/main/cond/multicheck") == "true"){
  291. data = grd_ivinfo.getupdatedataAll("i")
  292. }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
  293. data = getGridUpdateData(grd_ivinfo);
  294. }
  295. }
  296. if(chkyn == 0) {
  297. messageBox("완료 처리할 환자를 선택하여 주십시오.", "I");
  298. return;
  299. }
  300. if(cnclcnt >0) {
  301. messageBox("취소된 환자는 완료하실 수 없습니다.", "E");
  302. return;
  303. }
  304. if(chkcnt > 0) {
  305. messageBox("이미 완료된 환자는 완료하실 수 없습니다.", "E");
  306. return;
  307. }
  308. model.makeValue("/root/send/savedata/ivlist", data);
  309. model.makeValue("/root/send/savedata/saveflag", "2");
  310. submit("TXMNW14511");
  311. fSearch() ;
  312. ]]>
  313. </script>
  314. </button>
  315. <button id="btn_savrem" class="btn2_letter6" style="left:1018px; top:70px; width:86px; height:19px; ">
  316. <caption>Remark저장</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. model.makeValue("/root/send/savedata/ivlist", getGridUpdateData(grd_ivinfo));
  320. model.makeValue("/root/send/savedata/saveflag", "1");
  321. submit("TXMNW14511");
  322. fSearch() ;
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="button1" class="btn2_letter7" style="left:919px; top:70px; width:97px; height:19px; ">
  327. <caption>특수주사팀 호출</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. open("SMMNW14550");
  331. ]]>
  332. </script>
  333. </button>
  334. <caption id="caption6" style="left:1166px; top:767px; width:27px; height:15px; ">[표]</caption>
  335. <select id="checkbox1" ref="/root/main/cond/exceptflag" overflow="visible" appearance="full" style="left:905px; top:34px; width:66px; height:13px; border-style:none; ">
  336. <choices>
  337. <item>
  338. <label>완료제외</label>
  339. <value>Y</value>
  340. </item>
  341. </choices>
  342. <script type="javascript" ev:event="xforms-value-changed">
  343. <![CDATA[
  344. fSearch() ;
  345. ]]>
  346. </script>
  347. </select>
  348. <bool id="bool1" navindex="19" ref="/root/main/cond/multicheck" style="left:24px; top:99px; width:20px; height:30px; font-family:굴림; ">
  349. <script type="javascript" ev:event="xforms-value-changed">
  350. <![CDATA[
  351. var multicheck = model.getValue("/root/main/cond/multicheck");
  352. var xIvListPath = "/root/main/ivinfo/ivlist";
  353. var nodeCnt = getNodesetCount(xIvListPath);
  354. for(var i = 1; i <= nodeCnt; i++){
  355. if(multicheck == "true"){
  356. model.setValue(xIvListPath + "[" + i + "]/chkyn", "Y");
  357. }else{
  358. model.setValue(xIvListPath + "[" + i + "]/chkyn", "N");
  359. }
  360. }
  361. ]]>
  362. </script>
  363. </bool>
  364. <button id="btn_cncl" class="btn5_letter2" style="left:1150px; top:70px; width:42px; height:19px; ">
  365. <caption>취소</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. var chkyn;
  369. var acptflag;
  370. var chkcnt = 0;
  371. var cnt = 0;
  372. var cnclcnt = 0;
  373. var xIvListPath = "/root/main/ivinfo/ivlist";
  374. for(var i=grd_ivinfo.fixedRows; i <grd_ivinfo.rows; i++) {
  375. chkyn = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("chkyn"));
  376. acptflag = grd_ivinfo.valueMatrix(i, grd_ivinfo.colRef("acptflag"));
  377. if(chkyn == "Y" && acptflag == "3") {
  378. cnclcnt++;
  379. }
  380. if(chkyn == "Y" && acptflag == "2" ) {
  381. chkcnt++;
  382. }
  383. if(chkyn == "Y") {
  384. cnt++;
  385. }
  386. if(model.getValue("/root/main/cond/multicheck") == "true"){
  387. data = grd_ivinfo.getupdatedataAll("i")
  388. }else if(model.getValue(xIvListPath + "[" + i + "]/chkyn") == "Y"){
  389. data = getGridUpdateData(grd_ivinfo);
  390. }
  391. }
  392. if(chkyn == 0) {
  393. messageBox("취소 처리할 환자를 선택하여 주십시오.", "I");
  394. return;
  395. }
  396. if(cnclcnt >0) {
  397. messageBox("이미 취소된 환자는 취소하실 수 없습니다.", "E");
  398. return;
  399. }
  400. if(chkcnt > 0) {
  401. messageBox("완료된 환자는 취소하실 수 없습니다.", "E");
  402. return;
  403. }
  404. model.makeValue("/root/send/savedata/ivlist", data);
  405. model.makeValue("/root/send/savedata/saveflag", "3");
  406. submit("TXMNW14511");
  407. fSearch() ;
  408. ]]>
  409. </script>
  410. </button>
  411. <select id="checkbox2" ref="/root/main/cond/exceptflag2" overflow="visible" appearance="full" style="left:977px; top:34px; width:71px; height:13px; border-style:none; ">
  412. <choices>
  413. <item>
  414. <label>취소제외</label>
  415. <value>Y</value>
  416. </item>
  417. </choices>
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. fSearch() ;
  421. ]]>
  422. </script>
  423. </select>
  424. </group>
  425. </xhtml:body>
  426. </xhtml:html>