SMMNE09000_진료과별당직관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>진료과별 의사 당직 관리 (ICU)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grpmasterinfo>
  11. <grpmasterinfolist>
  12. <shownm/>
  13. <grtype/>
  14. <staffid/>
  15. <orddeptcd/>
  16. </grpmasterinfolist>
  17. </grpmasterinfo>
  18. <drinfo>
  19. <drinfolist>
  20. <drnm/>
  21. <drid/>
  22. <deptcd/>
  23. <phone/>
  24. <bbtel/>
  25. </drinfolist>
  26. </drinfo>
  27. <workerinfo>
  28. <workerinfolist/>
  29. </workerinfo>
  30. <titleinfo>
  31. <worktitle/>
  32. <grpmtitle/>
  33. <staffnm/>
  34. <staffid/>
  35. <fromtm/>
  36. <totm/>
  37. </titleinfo>
  38. <drdetlinfo>
  39. <drnm/>
  40. <drid/>
  41. <deptcd/>
  42. <phone/>
  43. <bbtel/>
  44. </drdetlinfo>
  45. </main>
  46. <cond>
  47. <srchym/>
  48. <orddeptcd/>
  49. <gbn>I</gbn>
  50. <icutype/>
  51. <icucd/>
  52. </cond>
  53. <init>
  54. <orddeptinfo>
  55. <orddeptinfolist>
  56. <orddeptcd/>
  57. <orddeptnm/>
  58. </orddeptinfolist>
  59. </orddeptinfo>
  60. <menu>
  61. <item>
  62. <name>추가</name>
  63. <func>fAddWorkDr</func>
  64. </item>
  65. <item>
  66. <name>삭제</name>
  67. <func>fSetWorkDr</func>
  68. </item>
  69. <item>
  70. <name>새로고침</name>
  71. <func>fRefreshWorkDr</func>
  72. </item>
  73. </menu>
  74. </init>
  75. <send/>
  76. </root>
  77. </instance>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. fInit();
  81. ]]>
  82. </script>
  83. <script type="javascript" ev:event="xforms-close">
  84. <![CDATA[
  85. //20090629 dhkim
  86. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  87. var isRefresh = isScheduleRefresh(true);
  88. if(isRefresh == 'N'){
  89. grd_grpmaster.row = curRow;
  90. return;
  91. }else{
  92. window.close();
  93. }
  94. ]]>
  95. </script>
  96. <submission id="TRMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddeptinfo/orddeptinfolist"/>
  97. <submission id="TRMNE05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drinfo/drinfolist"/>
  98. <submission id="TRMNE05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  99. <submission id="TRMNE09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  100. <submission id="TRMNE09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  101. <submission id="TRMNE09003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/icuinfo"/>
  102. <submission id="TRMNE09004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/dutytime"/>
  103. <submission id="TRMNE09006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  104. <submission id="TRMNE09007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  105. <submission id="TRMNE09008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  106. <submission id="TXMNE09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  107. <submission id="TXMNE09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldata" resultref="/root/main/workerinfo/workerinfolist"/>
  108. <!--submission id="TXMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/-->
  109. <!--submission id="TXMNE05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldata" resultref="/root/main/workerinfo/workerinfolist"/-->
  110. <!--submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/-->
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  116. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  117. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  118. <script type="javascript" src="../../../emr/ercareweb/js/SMMNE09000.js"/>
  119. <script type="javascript">
  120. <![CDATA[
  121. //이전 셀의 행,열 인덱스를 저장하는 변수
  122. var col = 0;
  123. var row = 0;
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body pagewidth="1020" pageheight="950" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  128. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1px; top:103px; width:319px; height:35px; background-color:#ccffff; border-color:#33cccc; "/>
  129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">진료과별 의사 당직 관리</caption>
  130. <datagrid id="grd_drlist" nodeset="/root/main/drinfo/drinfolist" allowselection="false" caption="사번^이름^nzone^Hp No^" colsep="^" colwidth="70, 80, 50, 100, 0" defaultrows="0" focuscolor="#7fef0f" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:146px; width:319px; height:725px; ">
  131. <col ref="drid"/>
  132. <col ref="drnm"/>
  133. <col ref="nzone"/>
  134. <col ref="hpno"/>
  135. <col ref="orddeptcd"/>
  136. <script type="javascript" ev:event="onmouseover">
  137. <![CDATA[
  138. //데이터 셀에 마우스가 올라오면 스타일을 바꾼다
  139. if(grd_drlist.isCell(event.target) && grd_drlist.mouseRow >= grd_drlist.fixedRows && grd_drlist.mouseCol >= grd_drlist.fixedCols)
  140. {
  141. grd_drlist.rebuildStyle(row, col);
  142. grd_drlist.cellStyle("background-color", grd_drlist.mouseRow, grd_drlist.mouseCol) = "#ece1ec";
  143. row = grd_drlist.mouseRow;
  144. col = grd_drlist.mouseCol;
  145. }
  146. ]]>
  147. </script>
  148. <script type="javascript" ev:event="onmouseout">
  149. <![CDATA[
  150. grd_drlist.rebuildStyle(row, col);
  151. ]]>
  152. </script>
  153. <script type="javascript" ev:event="onmousemove">
  154. <![CDATA[
  155. for(var i = 1; i <= grd_drlist.rows; i++){
  156. if (i > 1) {
  157. j = i - 1;
  158. oldposcd = model.getValue("/root/main/drinfo/drinfolist[" + j + "]/jobposcd");
  159. newposcd = model.getValue("/root/main/drinfo/drinfolist[" + i + "]/jobposcd");
  160. if (oldposcd != newposcd) {
  161. grd_drlist.cellstyle("border-bottom-color", j, 0, j, 4) = '#ff0000';
  162. } else {
  163. grd_drlist.cellstyle("border-bottom-color", j, 0, j, 4) = '#C0C0C0';
  164. }
  165. }
  166. }
  167. ]]>
  168. </script>
  169. </datagrid>
  170. <caption id="caption3" class="tit_2" style="left:2px; top:88px; width:288px; height:13px; ">당직 의사 선택</caption>
  171. <group id="group4" style="left:1px; top:18px; width:995px; height:45px; vertical-align:top; ">
  172. <select1 id="radio1" ref="/root/cond/icutype" visibility="hidden" appearance="full" cellspacing="10" cols="6" overflow="visible" style="left:350px; top:10px; width:421px; height:20px; font-weight:bold; border-style:none; ">
  173. <choices>
  174. <!--item>
  175. <label>전체</label>
  176. <value>X</value>
  177. </item>
  178. <item>
  179. <label>ICU</label>
  180. <value>O</value>
  181. </item>
  182. <item>
  183. <label>응급실</label>
  184. <value>R</value>
  185. </item>
  186. <item>
  187. <label>병동</label>
  188. <value>W</value>
  189. </item-->
  190. <item>
  191. <label>소아관련ICU</label>
  192. <value>1</value>
  193. </item>
  194. <item>
  195. <label>내과관련ICU</label>
  196. <value>2</value>
  197. </item>
  198. <item>
  199. <label>SICU</label>
  200. <value>3</value>
  201. </item>
  202. <item>
  203. <label>NSICU</label>
  204. <value>4</value>
  205. </item>
  206. <item>
  207. <label>CICU</label>
  208. <value>5</value>
  209. </item>
  210. <item>
  211. <label>SU</label>
  212. <value>6</value>
  213. </item>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. //fInit();
  218. btn_search.dispatch('DOMActivate');
  219. ]]>
  220. </script>
  221. </select1>
  222. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:995px; height:45px; "/>
  223. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:852px; top:12px; width:56px; height:22px; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  228. var isRefresh = isScheduleRefresh(false);
  229. if(isRefresh == 'N'){
  230. grd_grpmaster.row = curRow;
  231. return;
  232. }
  233. fGetWorkScheduleList(); //선택된 구분의 당직 스케줄 조회
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption4" class="search_name" style="left:5px; top:13px; width:91px; height:17px; ">당직년월 :</caption>
  238. <input id="ipt_srchym" ref="/root/cond/srchym" class="input_search" navindex="1" format="yyyy-mm" style="left:126px; top:12px; width:88px; height:19px; text-align:center; "/>
  239. <button id="btn_bfyear" class="icon_pre_year" style="left:90px; top:14px; width:16px; height:16px; ">
  240. <caption/>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. fClkBfYear(model.getValue('/root/cond/srchym'));
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="btn_bfmonth" class="icon_pre_month" style="left:108px; top:14px; width:16px; height:16px; ">
  248. <caption/>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fClkBfMonth(model.getValue('/root/cond/srchym'));
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_afmonth" class="icon_next_month" style="left:217px; top:14px; width:16px; height:16px; ">
  256. <caption/>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. fClkAfMonth(model.getValue('/root/cond/srchym'));
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption2" class="search_name" style="left:305px; top:13px; width:130px; height:17px; ">중환자실:</caption>
  264. <button id="btn_afyear" class="icon_next_year" style="left:235px; top:14px; width:16px; height:16px; ">
  265. <caption/>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. fClkAfYear(model.getValue('/root/cond/srchym'));
  269. ]]>
  270. </script>
  271. </button>
  272. <line id="line1" style="x1:839px; y1:12px; x2:839px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  273. <button id="button1" class="btn1_letter4" navindex="3" style="left:909px; top:12px; width:80px; height:22px; ">
  274. <caption>변경이력</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. modal("SMMNE09002");
  278. ]]>
  279. </script>
  280. </button>
  281. <select1 id="cmb_icu" ref="/root/cond/icucd" navindex="2" appearance="minimal" style="left:395px; top:12px; width:205px; height:19px; text-align:left; ">
  282. <choices>
  283. <itemset nodeset="/root/init/icuinfo/iculist">
  284. <label ref="icunm"/>
  285. <value ref="icucd"/>
  286. </itemset>
  287. </choices>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. //당직 기준 진료과 가져오기
  291. var srchym = model.getValue("/root/cond/srchym");
  292. var gbn = model.getValue("/root/cond/gbn");
  293. var icucd = model.getValue("/root/cond/icucd").substr(0, 10);
  294. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  295. model.makeValue("/root/send/srchym", srchym);
  296. model.makeValue("/root/send/gbn", gbn);
  297. model.makeValue("/root/send/icucd", icucd);
  298. model.makeValue("/root/send/csflag", csflag);
  299. submit("TRMNE09004"); // 중환자실 별 당직 기준 시간 가져오기
  300. gDStime = model.getValue("/root/init/dutytime/dstime");
  301. gDEtime = model.getValue("/root/init/dutytime/detime");
  302. gD2Stime = model.getValue("/root/init/dutytime/d2stime");
  303. gD2Etime = model.getValue("/root/init/dutytime/d2etime");
  304. gNStime = model.getValue("/root/init/dutytime/nstime");
  305. gNEtime = model.getValue("/root/init/dutytime/netime");
  306. var sDStime = model.getValue("/root/init/dutytime/dstimenm");
  307. var sDEtime = model.getValue("/root/init/dutytime/detimenm");
  308. var sD2Stime = model.getValue("/root/init/dutytime/d2stimenm");
  309. var sD2Etime = model.getValue("/root/init/dutytime/d2etimenm");
  310. var sNStime = model.getValue("/root/init/dutytime/nstimenm");
  311. var sNEtime = model.getValue("/root/init/dutytime/netimenm");
  312. cap_worktime.text = "※ 근무시간: DAY - " + sDStime + " ~ " + sDEtime + ", DAY2 - " + sD2Stime + " ~ " + sD2Etime + ", NIGHT - " + sNStime + " ~ " + sNEtime;
  313. cap_worktime.refresh();
  314. submit("TRMNE05401"); // 중환자실 부서 조회
  315. model.removenode("/root/main/drinfo");
  316. btn_search.dispatch('DOMActivate');
  317. //당직표 수정 가능 부서를 제외하고는 저장 기능을 제한한다.
  318. if (gModifyAuth == 'N') {
  319. var nodeList = instance1.selectNodes("/root/init/orddeptinfo/orddeptinfolist[deptcd ="+ getUserInfo("dutplcecd") +"]");
  320. if( nodeList.length > 0) {
  321. //수정가능
  322. btn_save.disabled = false;
  323. } else {
  324. //수정불가능
  325. btn_save.disabled = true;
  326. }
  327. }
  328. ]]>
  329. </script>
  330. </select1>
  331. </group>
  332. <button id="btn_save" class="btn4_letter2" style="left:473px; top:65px; width:56px; height:22px; ">
  333. <caption>저장</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fSaveWorkDr();//당직자스케줄을저장한다
  337. ]]>
  338. </script>
  339. </button>
  340. <line id="line2" class="line_1" style="x1:1px; y1:140px; x2:320px; y2:140px; "/>
  341. <line id="line3" class="line_1" style="x1:322px; y1:103px; x2:995px; y2:103px; "/>
  342. <button id="btn_prt" class="btn4_letter5" style="left:530px; top:65px; width:92px; height:22px; ">
  343. <caption>리스트출력</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. var srchym = model.getValue("/root/cond/srchym");
  347. var monthcnt = getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)); //조회년월의 마지막일
  348. var sdate = srchym + '01';
  349. var edate = srchym + monthcnt;
  350. var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
  351. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  352. model.makeValue("/root/send/sdate", sdate);
  353. model.makeValue("/root/send/edate", edate);
  354. model.makeValue("/root/send/placecd", placecd);
  355. model.makeValue("/root/send/csflag", csflag);
  356. submit("TRMNE09006");
  357. exeReportPreview("RPMNE09000", "XMLSTR","","","");
  358. ]]>
  359. </script>
  360. </button>
  361. <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="일자^요일^구분^위치^의사^의사^의사^비고^drid_d^drid_d2^drid_n^ddeptcd^ddeptnm^d2deptcd^d2deptnm^ndeptcd^ndeptnm^placecd|일자^요일^구분^위치^Day^Day2^Night^비고^drid_d^drid_d2^drid_n^ddeptcd^ddeptnm^d2deptcd^d2deptnm^ndeptcd^ndeptnm^placecd" colsep="^" colwidth="75, 45, 70, 170, 80, 84, 80, 115, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" defaultrows="0" focuscolor="#ece1ec" mergecells="byrestriccol" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:322px; top:109px; width:673px; height:762px; vertical-align:middle; ">
  362. <col ref="workdd" format="yyyy-mm-dd"/>
  363. <col ref="datenm"/>
  364. <col disabled="true" ref="gbn" type="combo" visibility="hidden">
  365. <choices>
  366. <item>
  367. <label>당직</label>
  368. <value>T</value>
  369. </item>
  370. <item>
  371. <label>OnCall</label>
  372. <value>O</value>
  373. </item>
  374. <item>
  375. <label>중환자실</label>
  376. <value>I</value>
  377. </item>
  378. <item>
  379. <label>응급실</label>
  380. <value>R</value>
  381. </item>
  382. <item>
  383. <label>병동</label>
  384. <value>W</value>
  385. </item>
  386. </choices>
  387. </col>
  388. <col ref="placenm"/>
  389. <col ref="drnm_d"/>
  390. <col ref="drnm_d2"/>
  391. <col ref="drnm_n"/>
  392. <col ref="bigo" type="input"/>
  393. <col ref="drid_d" visibility="hidden"/>
  394. <col ref="drid_d2" visibility="hidden"/>
  395. <col ref="drid_n" visibility="hidden"/>
  396. <col ref="ddeptcd" visibility="hidden"/>
  397. <col ref="ddeptnm" visibility="hidden"/>
  398. <col ref="d2deptcd" visibility="hidden"/>
  399. <col ref="d2deptnm" visibility="hidden"/>
  400. <col ref="ndeptcd" visibility="hidden"/>
  401. <col ref="ndeptnm" visibility="hidden"/>
  402. <col ref="placecd" visibility="hidden"/>
  403. <script type="javascript" ev:event="onmousedown">
  404. <![CDATA[
  405. if(event.button == 3){
  406. var curRow = grd_workerlist.mouseRow - 1;
  407. if (curRow < 1) return;
  408. var sCol = grd_workerlist.mouseCol;
  409. var sColNm = grd_workerlist.colAttribute(sCol, "ref");
  410. var del_workdd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/workdd");
  411. var del_gbn = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/gbn");
  412. var del_placecd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/placecd");
  413. var del_deptcd = ""
  414. var del_drnm = "";
  415. var del_duty = "";
  416. if (sColNm == "drnm_d") {
  417. del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/ddeptcd");
  418. del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_d");
  419. del_duty = "D";
  420. } else if (sColNm == "drnm_d2") {
  421. del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/d2deptcd");
  422. del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_d2");
  423. del_duty = "D2";
  424. } else if (sColNm == "drnm_n") {
  425. del_deptcd = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/ndeptcd");
  426. del_drnm = model.getValue("/root/main/workerinfo/workerinfolist[" + curRow + "]/drnm_n");
  427. del_duty = "N";
  428. } else {
  429. return;
  430. }
  431. var vbYes = messageBox("[" + del_workdd + "/" + del_duty + "/" + del_drnm + "] 일정을", "Q001");
  432. if (vbYes == 6) {
  433. fDelWorkDr (del_workdd, del_gbn, del_deptcd, del_placecd, del_duty);
  434. }
  435. }
  436. ]]>
  437. </script>
  438. <script type="javascript" ev:event="onclick">
  439. <![CDATA[
  440. var col = grd_workerlist.mouseCol;
  441. var clickColNm = grd_workerlist.colAttribute(col, "ref");
  442. if(clickColNm == "drnm_d" || clickColNm == "drnm_d2" || clickColNm == "drnm_n"){
  443. fSetWorkDr('ADD');//당직리스트에 선택된 당직대상자를 그리드에 세팅
  444. }
  445. ]]>
  446. </script>
  447. </datagrid>
  448. <caption id="cpt_worktitle" ref="/root/main/titleinfo/worktitle" class="tit_2" style="left:322px; top:88px; width:393px; height:13px; ">당직 리스트</caption>
  449. <caption id="caption1" style="left:10px; top:111px; width:91px; height:17px; font-weight:bold; ">진 료 과 :</caption>
  450. <select1 id="cmb_orddeptcd" ref="/root/cond/orddeptcd" navindex="2" appearance="minimal" style="left:95px; top:111px; width:205px; height:19px; text-align:left; ">
  451. <choices>
  452. <itemset nodeset="/root/init/orddeptinfo/orddeptinfolist">
  453. <label ref="deptnm"/>
  454. <value ref="deptcd"/>
  455. </itemset>
  456. <!--itemset nodeset="/root/init/deptlist/orddept">
  457. <label ref="deptnm"/>
  458. <value ref="deptcd"/>
  459. </itemset-->
  460. </choices>
  461. <script type="javascript" ev:event="xforms-value-changed">
  462. <![CDATA[
  463. // //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  464. // var isRefresh = isScheduleRefresh(false);
  465. //
  466. // if(isRefresh == 'N'){
  467. // grd_grpmaster.row = curRow;
  468. // return;
  469. // }
  470. // btn_search.dispatch('DOMActivate');
  471. fGetDrInfo();
  472. ]]>
  473. </script>
  474. </select1>
  475. <button id="btn_info" class="btn3_letter4" navindex="3" visibility="hidden" style="left:190px; top:65px; width:80px; height:22px; ">
  476. <caption>유의사항</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. open("SMMNE09003");
  480. ]]>
  481. </script>
  482. </button>
  483. <button id="button2" class="btn3_letter4" disabled="true" navindex="3" visibility="hidden" style="left:107px; top:65px; width:80px; height:22px; ">
  484. <caption>처방현황</caption>
  485. <script type="javascript" ev:event="DOMActivate">
  486. <![CDATA[
  487. ]]>
  488. </script>
  489. </button>
  490. <button id="button3" class="btn3_letter7" navindex="3" style="left:356px; top:65px; width:116px; height:22px; ">
  491. <caption>진료일정(외래)</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. modal("SMPMB01900");
  495. ]]>
  496. </script>
  497. </button>
  498. <button id="button4" class="btn3_letter4" navindex="3" style="left:275px; top:65px; width:80px; height:22px; ">
  499. <caption>휴진일정</caption>
  500. <script type="javascript" ev:event="DOMActivate">
  501. <![CDATA[
  502. modal("SMPMB00900");
  503. ]]>
  504. </script>
  505. </button>
  506. <caption id="cap_worktime" style="left:10px; top:875px; width:985px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 근무시간: DAY - 08:00 ~ 14:00, DAY2 - 14:00 ~ 20:00, NIGHT - 20:00 ~ 익일 08:00</caption>
  507. <caption id="caption7" style="left:10px; top:900px; width:985px; height:20px; font-size:12pt; font-weight:bold; color:#0000ff; ">※ 동일 근무시간 대에 휴진등록이 되어있으면 등록 불가, 동일 근무시간 대에 다른 중환자실/병동/응급실 중복 등록 불가</caption>
  508. <button id="button5" class="btn4_letter2" style="left:940px; top:65px; width:56px; height:22px; ">
  509. <caption>Excel</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var srchym = model.getValue("/root/cond/srchym");
  513. var monthcnt = getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)); //조회년월의 마지막일
  514. var sdate = srchym + '01';
  515. var edate = srchym + monthcnt;
  516. var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
  517. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  518. model.makeValue("/root/send/sdate", sdate);
  519. model.makeValue("/root/send/edate", edate);
  520. model.makeValue("/root/send/placecd", placecd);
  521. model.makeValue("/root/send/csflag", csflag);
  522. submit("TRMNE09006");
  523. var SheetName = srchym + " " + cmb_icu.label + "당직표";
  524. if(isNull(SheetName)) SheetName = "Sheet1";
  525. var fileName = window.fileDialog("save", ",", false, SheetName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  526. grd_excel.saveExcel(fileName, SheetName, false, false, "", "");
  527. ]]>
  528. </script>
  529. </button>
  530. <datagrid id="grd_excel" nodeset="/root/temp/excelinfo" visibility="hidden" caption="중환자실명^당직일^구분^진료과목^의사형태^전담의^면허번호^사번" colsep="^" colwidth="180, 90, 50, 130, 80, 80, 70, 70" defaultrows="0" focuscolor="#ece1ec" rowsep="|" style="left:165px; top:235px; width:770px; height:246px; vertical-align:middle; ">
  531. <col ref="wardnm"/>
  532. <col ref="workdd" format="yyyy-mm-dd"/>
  533. <col ref="duty" style="text-align:center; "/>
  534. <col ref="deptnm"/>
  535. <col ref="jobposcd"/>
  536. <col ref="drnm"/>
  537. <col ref="licnsno"/>
  538. <col ref="drid"/>
  539. </datagrid>
  540. <button id="btn_prt2" class="btn4_letter6" style="left:625px; top:65px; width:104px; height:22px; ">
  541. <caption>근무표출력1</caption>
  542. <script type="javascript" ev:event="DOMActivate">
  543. <![CDATA[
  544. var srchym = model.getValue("/root/cond/srchym");
  545. var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
  546. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  547. if(isNull(placecd)) {
  548. messageBox("중환자실이 선택되지 않았습니다.", "E999");
  549. return;
  550. }
  551. model.makeValue("/root/send/gubun", "D"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
  552. model.makeValue("/root/send/srchym", srchym);
  553. model.makeValue("/root/send/placecd", placecd);
  554. model.makeValue("/root/send/csflag", csflag);
  555. submit("TRMNE09008");
  556. var desNode = "/root/temp/printinfo";
  557. exeReportPreview("RPMNE09001", "XMLSTR", desNode);
  558. ]]>
  559. </script>
  560. </button>
  561. <button id="button6" class="btn4_letter6" style="left:730px; top:65px; width:104px; height:22px; ">
  562. <caption>근무표출력2</caption>
  563. <script type="javascript" ev:event="DOMActivate">
  564. <![CDATA[
  565. var srchym = model.getValue("/root/cond/srchym");
  566. var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
  567. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  568. if(isNull(placecd)) {
  569. messageBox("중환자실이 선택되지 않았습니다.", "E999");
  570. return;
  571. }
  572. model.makeValue("/root/send/gubun", "A"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
  573. model.makeValue("/root/send/srchym", srchym);
  574. model.makeValue("/root/send/placecd", placecd);
  575. model.makeValue("/root/send/csflag", csflag);
  576. submit("TRMNE09008");
  577. var desNode = "/root/temp/printinfo";
  578. exeReportPreview("RPMNE09002", "XMLSTR", desNode);
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="button7" class="btn4_letter6" style="left:835px; top:65px; width:104px; height:22px; ">
  583. <caption>근무표출력3</caption>
  584. <script type="javascript" ev:event="DOMActivate">
  585. <![CDATA[
  586. var srchym = model.getValue("/root/cond/srchym");
  587. var placecd = model.getValue("/root/cond/icucd").substr(0, 10);
  588. var csflag = model.getValue("/root/cond/icucd").substr(10, 1);
  589. if(isNull(placecd)) {
  590. messageBox("중환자실이 선택되지 않았습니다.", "E999");
  591. return;
  592. }
  593. model.makeValue("/root/send/gubun", "C"); // 프린트구분 표시근무(D:[D,D2] A:[D,D2,N])
  594. model.makeValue("/root/send/srchym", srchym);
  595. model.makeValue("/root/send/placecd", placecd);
  596. model.makeValue("/root/send/csflag", csflag);
  597. submit("TRMNE09008");
  598. var desNode = "/root/temp/printinfo";
  599. exeReportPreview("RPMNE09003", "XMLSTR", desNode);
  600. ]]>
  601. </script>
  602. </button>
  603. </xhtml:body>
  604. </xhtml:html>