SMMRI00300_의사별통계.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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. <main>
  10. <cond>
  11. <unprepdrbase>
  12. <dschflag>D</dschflag>
  13. <unprepstat>1 3</unprepstat>
  14. <unprepdrnm/>
  15. <unprepdrid/>
  16. <doctkindflag/>
  17. <srchflag>dschdd</srchflag>
  18. <fromdd/>
  19. <todd/>
  20. <deptflag>unprep</deptflag>
  21. <orddeptcd>-</orddeptcd>
  22. <unprepstatlist/>
  23. <unprepsign/>
  24. <dayflag>N</dayflag>
  25. <orderby/>
  26. <scrnflag/>
  27. <alldoctkindflag>-</alldoctkindflag>
  28. <staff>Y</staff>
  29. <resident/>
  30. <intern/>
  31. <total/>
  32. </unprepdrbase>
  33. </cond>
  34. <unprepdrstatistics>
  35. <unprepdrstatistics>
  36. <depthngnm/>
  37. <doctkindflag/>
  38. <orddrnm/>
  39. <t1/>
  40. <t2/>
  41. </unprepdrstatistics>
  42. </unprepdrstatistics>
  43. <unprepdrinfo>
  44. <unprepdrlist/>
  45. </unprepdrinfo>
  46. <prntcond>
  47. <prnttitl/>
  48. <grdtitl1/>
  49. <grdtitl2/>
  50. <condtitl/>
  51. <fromdd/>
  52. <todd/>
  53. <tot1/>
  54. <tot2/>
  55. <tot3/>
  56. <datacnt/>
  57. <insttitl/>
  58. </prntcond>
  59. </main>
  60. <send>
  61. <reqdata/>
  62. </send>
  63. <init>
  64. <orddept/>
  65. <userlist/>
  66. </init>
  67. <temp>
  68. <userinfo/>
  69. </temp>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
  75. addComboItem("cmb_orddept", "전체", "-", "above");
  76. model.removeNodeset("/root/main/unprepdrstatistics");
  77. model.setValue("/root/main/cond/unprepdrbase/fromdd", getCurrentDate());
  78. model.setValue("/root/main/cond/unprepdrbase/todd" , getCurrentDate());
  79. model.setValue("/root/main/cond/unprepdrbase/orddeptcd" , "-");
  80. model.setValue("/root/main/prntcond/insttitl", getUserInfo("dutplceinstnm") + " " + getUserInfo("dutplcenm"));
  81. model.refresh();
  82. ]]>
  83. </script>
  84. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  85. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  86. <submission id="TRMRI00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unprepdrstatistics"/>
  87. <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  94. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  95. <script type="javascript" src="../../../emr/unprepmngtweb/js/SMMRI00300.js"/>
  96. <script type="javascript">
  97. <![CDATA[
  98. /**
  99. * @desc 미비의사 조회
  100. */
  101. function fReqGetUnPrepDrSmplList(srchflag, srchdata){
  102. model.removeNodeset("/root/send/reqdata");
  103. model.makeValue("/root/send/reqdata/srchflag", srchflag);
  104. model.makeValue("/root/send/reqdata/srchdata", srchdata);
  105. if(submit("TRMRI02901")){
  106. }
  107. }
  108. /**
  109. * @desc 서식명 조회
  110. */
  111. function fReqGetFormList(){
  112. if(submit("TRMRI01804")){ //서식명콤보 조회
  113. addComboItem("cmb_formcd","전체","-");
  114. }
  115. }
  116. /**
  117. * @desc 미비항목코드 조회
  118. */
  119. function fReqGetFormItemList(formcd){
  120. model.removeNodeset("/root/send/reqdata");
  121. model.makeNode("/root/send/reqdata");
  122. model.makeValue("/root/send/reqdata/formcd", formcd);
  123. if(submit("TRMRI01805")){
  124. addComboItem("cmb_itemcd","전체","-");
  125. }
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">의사별통계</caption>
  132. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:80px; "/>
  133. <button id="btn_req" class="btn1_letter2" style="left:1130px; top:50px; width:56px; height:22px; ">
  134. <caption>조회</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. fSearch();
  138. ]]>
  139. </script>
  140. </button>
  141. <line id="line5" style="x1:1120px; y1:30px; x2:1120px; y2:91px; border-color:#ffe4bb; border-left-style:solid; "/>
  142. <caption id="caption20" class="tit_2" style="left:3px; top:111px; width:108px; height:13px; ">의사별통계</caption>
  143. <line id="line1" class="line_1" style="x1:0px; y1:126px; x2:1194px; y2:126px; "/>
  144. <datagrid id="grd_unpreplist" nodeset="/root/main/unprepdrstatistics/unprepdrstatistics" caption="센터과^상위과^분과^의사구분^의사명^현재미정리환자수^실제미정리환자수^인덱스" colsep="^" colwidth="100, 100, 100, 100, 100, 130, 130" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:131px; width:1194px; height:648px; ">
  145. <col ref="centernm" visibility="hidden"/>
  146. <col ref="supdepthngnm"/>
  147. <col ref="underdepthngnm"/>
  148. <col ref="doctkindflag"/>
  149. <col ref="orddrnm"/>
  150. <col ref="t1"/>
  151. <col ref="t2" style="vertical-align:top; "/>
  152. </datagrid>
  153. <button id="btn_ex" class="btn2_letter2" style="left:1145px; top:104px; width:42px; height:19px; ">
  154. <caption>엑셀</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  158. if (fileName != ""){
  159. grd_unpreplist.saveExcel(fileName, "colhiddenextend:false;col_0:label;col_1:label;col_2:label;col_3:label;");
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. <select id="chk_unprepflagA" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:96px; top:67px; width:45px; height:20px; border-style:none; ">
  165. <choices>
  166. <item>
  167. <label>전체</label>
  168. <value>-</value>
  169. </item>
  170. </choices>
  171. <script type="javascript" ev:event="xforms-select">
  172. <![CDATA[
  173. chk_unprepflagB.disabled = true;
  174. chk_unprepflagB.deselect(0);
  175. chk_unprepflagC.disabled = true;
  176. chk_unprepflagC.deselect(0);
  177. chk_unprepflagD.disabled = true;
  178. chk_unprepflagD.deselect(0);
  179. chk_unprepflagR.disabled = true;
  180. chk_unprepflagR.deselect(0);
  181. chk_unprepflagS.disabled = true;
  182. chk_unprepflagS.deselect(0);
  183. ]]>
  184. </script>
  185. <script type="javascript" ev:event="xforms-deselect">
  186. <![CDATA[
  187. chk_unprepflagB.disabled = false;
  188. chk_unprepflagC.disabled = false;
  189. chk_unprepflagD.disabled = false;
  190. chk_unprepflagR.disabled = false;
  191. chk_unprepflagS.disabled = false;
  192. ]]>
  193. </script>
  194. </select>
  195. <select id="chk_unprepflagR" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:339px; top:67px; width:56px; height:20px; border-style:none; ">
  196. <choices>
  197. <item>
  198. <label>재미비</label>
  199. <value>3</value>
  200. </item>
  201. </choices>
  202. <script type="javascript" ev:event="xforms-select">
  203. <![CDATA[
  204. chk_unprepflagA.deselect(0);
  205. ]]>
  206. </script>
  207. </select>
  208. <select id="chk_unprepflagB" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:142px; top:67px; width:65px; height:20px; border-style:none; ">
  209. <choices>
  210. <item>
  211. <label>배치미비</label>
  212. <value>0</value>
  213. </item>
  214. </choices>
  215. <script type="javascript" ev:event="xforms-select">
  216. <![CDATA[
  217. chk_unprepflagA.deselect(0);
  218. ]]>
  219. </script>
  220. </select>
  221. <select id="chk_unprepflagS" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:396px; top:67px; width:46px; height:20px; border-style:none; ">
  222. <choices>
  223. <item>
  224. <label>완료</label>
  225. <value>4</value>
  226. </item>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-select">
  229. <![CDATA[
  230. chk_unprepflagA.deselect(0);
  231. ]]>
  232. </script>
  233. </select>
  234. <select id="chk_unprepflagC" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:207px; top:67px; width:66px; height:20px; border-style:none; ">
  235. <choices>
  236. <item>
  237. <label>미비확인</label>
  238. <value>1</value>
  239. </item>
  240. </choices>
  241. <script type="javascript" ev:event="xforms-select">
  242. <![CDATA[
  243. chk_unprepflagA.deselect(0);
  244. ]]>
  245. </script>
  246. </select>
  247. <select id="chk_unprepflagD" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:273px; top:67px; width:65px; height:20px; color:transparent; border-style:none; ">
  248. <choices>
  249. <item>
  250. <label>의사확인</label>
  251. <value>2</value>
  252. </item>
  253. </choices>
  254. <script type="javascript" ev:event="xforms-select">
  255. <![CDATA[
  256. chk_unprepflagA.deselect(0);
  257. ]]>
  258. </script>
  259. </select>
  260. <select1 id="cmb_inoutddflag" ref="/root/main/cond/unprepdrbase/srchflag" disabled="true" appearance="minimal" style="left:611px; top:68px; width:78px; height:19px; ">
  261. <choices>
  262. <item>
  263. <label>퇴원일자</label>
  264. <value>dschdd</value>
  265. </item>
  266. <item>
  267. <label>입원일자</label>
  268. <value>indd</value>
  269. </item>
  270. <item>
  271. <label>진료일자</label>
  272. <value>orddd</value>
  273. </item>
  274. </choices>
  275. </select1>
  276. <input id="ipt_unprepdrnm" ref="/root/main/cond/unprepdrbase/unprepdrnm" style="left:747px; top:25px; width:77px; height:19px; ">
  277. <script type="javascript" ev:event="onkeydown">
  278. <![CDATA[
  279. //enter입력시
  280. if(event.keyCode == 13){
  281. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", ipt_unprepdrnm.currentText);
  282. var unprepdrnm = ipt_unprepdrnm.currentText;
  283. if(isNumber(unprepdrnm.charAt(0))){
  284. fReqGetUnPrepDrSmplList("id", unprepdrnm);
  285. }else{
  286. fReqGetUnPrepDrSmplList("nm", unprepdrnm);
  287. }
  288. var nodelist = model.instances(0).selectNodes("/root/main/unprepdrinfo/unprepdrlist");
  289. if(nodelist.length == 0){
  290. messageBox("의사 정보가", "I004");
  291. return;
  292. }else if(nodelist.length == 1){
  293. model.setValue("/root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
  294. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
  295. }else if(nodelist.length > 1){
  296. setParameter("SPMRI02900_stnddd" , getCurrentDate());
  297. setParameter("SPMRI02900_orddrnm", ipt_unprepdrnm.currentText);
  298. modal("SPMRI02900");
  299. if(getParameter("SPMRI02900_useyn")=="Y"){
  300. var doctinfo = getParameter("SPMRI02900_rtnparam");
  301. doctinfo = doctinfo.split("^");
  302. model.setValue("root/main/cond/unprepdrbase/unprepdrid", doctinfo[3]);
  303. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", doctinfo[4]);
  304. }
  305. }else{
  306. model.setValue("root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrid"));
  307. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrnm"));
  308. }
  309. model.refresh();
  310. }
  311. ]]>
  312. </script>
  313. </input>
  314. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/dayflag" style="left:531px; top:67px; width:30px; height:20px; ">
  315. <script type="javascript" ev:event="xforms-value-changed">
  316. <![CDATA[
  317. if(bool1.value == "Y"){
  318. cmb_inoutddflag.disabled = false;
  319. ipt_fromdd.disabled = false;
  320. ipt_todd.disabled = false;
  321. }else{
  322. cmb_inoutddflag.disabled = true;
  323. ipt_fromdd.disabled = true;
  324. ipt_todd.disabled = true;
  325. }
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </bool>
  330. <caption id="caption1" style="left:781px; top:68px; width:15px; height:15px; ">~</caption>
  331. <select1 id="rdo_inoutflag" ref="/root/main/cond/unprepdrbase/dschflag" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:97px; top:45px; width:199px; height:20px; border-style:none; ">
  332. <choices>
  333. <item>
  334. <label>퇴원</label>
  335. <value>D</value>
  336. </item>
  337. <item>
  338. <label>재원</label>
  339. <value>I</value>
  340. </item>
  341. <item>
  342. <label>외래</label>
  343. <value>O</value>
  344. </item>
  345. <item>
  346. <label>응급실</label>
  347. <value>E</value>
  348. </item>
  349. </choices>
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. //재원구분 퇴원
  353. if(rdo_inoutflag.value == "D"){
  354. model.setValue("/root/main/cond/unprepdrbase/srchflag", "dsch");
  355. }else if(rdo_inoutflag.value == "I"){
  356. model.setValue("/root/main/cond/unprepdrbase/srchflag", "indd");
  357. }else if(rdo_inoutflag.value == "O"){
  358. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  359. }else if(rdo_inoutflag.value == "E"){
  360. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  361. }
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </select1>
  366. <caption id="caption2" class="search_name" style="left:10px; top:45px; width:86px; height:17px; ">재원구분 :</caption>
  367. <caption id="caption4" class="search_name" style="left:10px; top:67px; width:86px; height:17px; ">미비구분 :</caption>
  368. <caption id="cap_reqflag" class="search_name" style="left:450px; top:68px; width:86px; height:17px; ">조회구분 :</caption>
  369. <input id="ipt_todd" ref="/root/main/cond/unprepdrbase/todd" disabled="true" inputtype="date" style="left:795px; top:68px; width:90px; height:19px; "/>
  370. <caption id="caption15" style="left:556px; top:68px; width:50px; height:20px; ">날짜조회</caption>
  371. <caption id="caption6" class="search_name" style="left:10px; top:25px; width:99px; height:17px; ">의사구분 :</caption>
  372. <caption id="caption8" class="search_name" style="left:660px; top:26px; width:89px; height:17px; ">미비의사 :</caption>
  373. <select1 id="rdo_deptflag" ref="/root/main/cond/unprepdrbase/deptflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:388px; top:25px; width:115px; height:20px; border-style:none; ">
  374. <choices>
  375. <item>
  376. <label>미비과</label>
  377. <value>unprep</value>
  378. </item>
  379. <item>
  380. <label>퇴원과</label>
  381. <value>dsch</value>
  382. </item>
  383. </choices>
  384. </select1>
  385. <select1 id="cmb_orddept" ref="/root/main/cond/unprepdrbase/orddeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:504px; top:25px; width:137px; height:19px; ">
  386. <choices>
  387. <itemset nodeset="/root/init/orddept/dept">
  388. <label ref="depthngnm"/>
  389. <value ref="deptcd"/>
  390. </itemset>
  391. </choices>
  392. <script type="javascript" ev:event="xforms-select">
  393. <![CDATA[
  394. ]]>
  395. </script>
  396. </select1>
  397. <input id="ipt_fromdd" ref="/root/main/cond/unprepdrbase/fromdd" disabled="true" inputtype="date" style="left:691px; top:68px; width:90px; height:19px; "/>
  398. <button id="button1" class="btn2_letter2" style="left:1100px; top:104px; width:42px; height:19px; ">
  399. <caption>출력</caption>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. var rexid = "";
  403. //출력물 메인타이틀 설정
  404. if(model.getValue("/root/main/cond/unprepdrbase/doctkindflag") == "St"){
  405. model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Staff)◈");
  406. rexid = "RPMRI00300";
  407. }else{
  408. if(model.getValue("/root/main/cond/unprepdrbase/resident") == "Y" && model.getValue("/root/main/cond/unprepdrbase/intern") == "Y"){
  409. model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Resident,Intern)◈");
  410. }else{
  411. if(model.getValue("/root/main/cond/unprepdrbase/resident") == "Y"){
  412. model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Resident)◈");
  413. }
  414. if(model.getValue("/root/main/cond/unprepdrbase/intern") == "Y"){
  415. model.setValue("/root/main/prntcond/prnttitl", "◈과별 의사별 미정리 현황(Intern)◈");
  416. }
  417. }
  418. rexid = "RPMRI00500";
  419. //rexid = "RPMRI00700";
  420. }
  421. //날짜조회가 Y인 경우
  422. if(model.getValue("/root/main/cond/unprepdrbase/dayflag")=="Y"){
  423. model.setValue("/root/main/prntcond/condtitl", cmb_inoutddflag.label);
  424. model.setValue("/root/main/prntcond/fromdd", model.getValue("/root/main/cond/unprepdrbase/fromdd"));
  425. model.setValue("/root/main/prntcond/todd", model.getValue("/root/main/cond/unprepdrbase/todd"));
  426. }else{
  427. model.setValue("/root/main/prntcond/condtitl", "전체");
  428. }
  429. model.setValue("/root/main/prntcond/grdtitl1", grd_unpreplist.valueMatrix(0, 5));
  430. model.setValue("/root/main/prntcond/grdtitl2", grd_unpreplist.valueMatrix(0, 6));
  431. model.setValue("/root/main/prntcond/tot1", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t1"));
  432. model.setValue("/root/main/prntcond/tot2", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t2"));
  433. model.setValue("/root/main/prntcond/tot3", model.getValue("/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']/t3"));
  434. var SubTotalList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']");
  435. if(SubTotalList.length == 0)
  436. {
  437. model.makeValue("/root/main/prntcond/subtotal", "0"); // 합계 숨기기
  438. }
  439. else
  440. {
  441. model.makeValue("/root/main/prntcond/subtotal", "1"); // 합계 보이기
  442. }
  443. // 2009-08-20 이경희
  444. // Resident 미비 조회시 출력물에 수련의 전체 총계 의사명수 count 누락 수정
  445. if(bool3.value == "Y" || bool4.value == "Y")
  446. {
  447. var SubSumList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='합계']");
  448. var cnt = 0;
  449. var sum = 0;
  450. var finalsum = 0;
  451. if(SubSumList.length > 0)
  452. {
  453. for( i = 0; i < SubSumList.length; i++) {
  454. var SubNode = SubSumList.item(i);
  455. cnt = SubNode.selectSingleNode("orddrnm").text;
  456. // "명" 글자 제거
  457. cnt = cnt.setReplaceWord("명", "");
  458. // SUM
  459. sum += parseInt(cnt);
  460. }
  461. }
  462. model.makeValue("/root/main/prntcond/tot3", sum);
  463. var FinalSumList = findNodeset(model, "/root/main/unprepdrstatistics/unprepdrstatistics[underdepthngnm='총계']");
  464. if(FinalSumList.length > 0)
  465. {
  466. var node = FinalSumList.item(0);
  467. finalsum = node.selectSingleNode("orddrnm").text;
  468. model.makeValue("/root/main/prntcond/finalsum", finalsum);
  469. }
  470. }
  471. model.setValue("/root/main/prntcond/datacnt", grd_unpreplist.rows - 2);
  472. //model.setValue("/root/main/prntcond/insttitl", getUserInfo("dutplceinstnm") + " " + getUserInfo("dutplcenm"));
  473. exeReportPreview(rexid, "XMLSTR"); //미리보기만 가능
  474. ]]>
  475. </script>
  476. </button>
  477. <bool id="bool2" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/staff" style="left:144px; top:25px; width:20px; height:20px; ">
  478. <script type="javascript" ev:event="xforms-value-changed">
  479. <![CDATA[
  480. if(bool2.value == "Y"){
  481. bool3.value = "N";
  482. bool4.value = "N";
  483. grd_unpreplist.caption = "센터과^상위과^분과^의사구분^의사명^현재미정리환자수^실제미정리환자수";
  484. }
  485. model.refresh();
  486. ]]>
  487. </script>
  488. </bool>
  489. <bool id="bool3" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/resident" style="left:207px; top:25px; width:20px; height:20px; ">
  490. <script type="javascript" ev:event="xforms-value-changed">
  491. <![CDATA[
  492. if(bool3.value == "Y"){
  493. bool2.value = "N";
  494. grd_unpreplist.caption = "센터과^상위과^분과^의사구분^의사명^현재미정리환자수^미정리환자수";
  495. }
  496. model.refresh();
  497. ]]>
  498. </script>
  499. </bool>
  500. <bool id="bool4" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/intern" style="left:282px; top:25px; width:20px; height:20px; ">
  501. <script type="javascript" ev:event="xforms-value-changed">
  502. <![CDATA[
  503. if(bool4.value == "Y"){
  504. bool2.value = "N";
  505. grd_unpreplist.caption = "센터과^상위과^분과^의사구분^의사명^현재미정리환자수^미정리환자수";
  506. }
  507. model.refresh();
  508. ]]>
  509. </script>
  510. </bool>
  511. <caption id="caption3" style="left:164px; top:25px; width:40px; height:20px; ">스태프</caption>
  512. <caption id="caption5" style="left:227px; top:25px; width:50px; height:20px; ">레지던트</caption>
  513. <caption id="caption7" style="left:302px; top:25px; width:35px; height:20px; ">인턴</caption>
  514. <bool id="bool5" disabled="true" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/total" style="left:96px; top:25px; width:20px; height:20px; ">
  515. <script type="javascript" ev:event="xforms-value-changed">
  516. <![CDATA[
  517. ]]>
  518. </script>
  519. </bool>
  520. <caption id="caption9" style="left:115px; top:25px; width:30px; height:20px; ">전체</caption>
  521. </xhtml:body>
  522. </xhtml:html>