SMMRI09000_열람승인업무.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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. <readappinfo>
  11. <master>
  12. <readapplist>
  13. <appno/>
  14. <appdd/>
  15. <appdeptcd/>
  16. <appid/>
  17. <apptype/>
  18. <appdetail/>
  19. <status/>
  20. <appreadfromdd/>
  21. <appreadtodd/>
  22. </readapplist>
  23. </master>
  24. <detail>
  25. <apppatlist>
  26. <apppatinfo>
  27. <acpt02/>
  28. <acpt04/>
  29. <acpt05/>
  30. <prntstatus/>
  31. <pid/>
  32. <pnm/>
  33. <orddeptnm/>
  34. <acptcontents/>
  35. </apppatinfo>
  36. </apppatlist>
  37. </detail>
  38. <pdetail>
  39. <patlist/>
  40. </pdetail>
  41. </readappinfo>
  42. <apvlcnt/>
  43. <deptengabbrinfo>
  44. <deptengabbrlist>
  45. <deptengabbr/>
  46. </deptengabbrlist>
  47. </deptengabbrinfo>
  48. <appudtcnt/>
  49. <attfileinfo>
  50. </attfileinfo>
  51. </main>
  52. <send>
  53. <cond>
  54. <appdeptcd/>
  55. <appid/>
  56. <acptstatus>01</acptstatus>
  57. <appfromdd/>
  58. <apptodd/>
  59. <appno/>
  60. <histno/>
  61. <pappyn/>
  62. <chrtflag/>
  63. </cond>
  64. <reqdata>
  65. <acptpatlist/>
  66. </reqdata>
  67. <rsnsrch/>
  68. </send>
  69. <init>
  70. <orddept/>
  71. <userlist/>
  72. <accresn/>
  73. <acptstatusinfo>
  74. <acptstatuslist>
  75. <cdnm>전체</cdnm>
  76. <cdid>-</cdid>
  77. </acptstatuslist>
  78. <acptstatuslist>
  79. <cdnm>신청</cdnm>
  80. <cdid>01</cdid>
  81. </acptstatuslist>
  82. <acptstatuslist>
  83. <cdnm>승인</cdnm>
  84. <cdid>02</cdid>
  85. </acptstatuslist>
  86. <acptstatuslist>
  87. <cdnm>부분승인</cdnm>
  88. <cdid>03</cdid>
  89. </acptstatuslist>
  90. <acptstatuslist>
  91. <cdnm>불가</cdnm>
  92. <cdid>04</cdid>
  93. </acptstatuslist>
  94. <acptstatuslist>
  95. <cdnm>보류</cdnm>
  96. <cdid>05</cdid>
  97. </acptstatuslist>
  98. </acptstatusinfo>
  99. <hardcd/>
  100. <resn>
  101. <resnlist/>
  102. </resn>
  103. <timer>60</timer>
  104. <interval/>
  105. <prntstatusinfo>
  106. <prntstatuslist>
  107. <cdid>01</cdid>
  108. <cdnm>신청</cdnm>
  109. </prntstatuslist>
  110. <prntstatuslist>
  111. <cdid>02</cdid>
  112. <cdnm>승인</cdnm>
  113. </prntstatuslist>
  114. <prntstatuslist>
  115. <cdid>04</cdid>
  116. <cdnm>불가</cdnm>
  117. </prntstatuslist>
  118. <prntstatuslist>
  119. <cdid>05</cdid>
  120. <cdnm>보류</cdnm>
  121. </prntstatuslist>
  122. <prntstatuslist>
  123. <cdid>-</cdid>
  124. <cdnm>-</cdnm>
  125. </prntstatuslist>
  126. </prntstatusinfo>
  127. <deptlist/>
  128. </init>
  129. <initinfo>
  130. <acptstatus>
  131. <cdnm>신청</cdnm>
  132. <cdid>01</cdid>
  133. </acptstatus>
  134. </initinfo>
  135. <temper/>
  136. <hardcode>
  137. </hardcode>
  138. </root>
  139. </instance>
  140. <script type="javascript" ev:event="xforms-ready">
  141. <![CDATA[
  142. fInitialize();
  143. ]]>
  144. </script>
  145. <submission id="TRMRI00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" replace="instance" resultref="/root/main/readprtlist"/>
  146. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  147. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  148. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  149. <submission id="TRMRI08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/master"/>
  150. <submission id="TRMRI08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/detail/apppatlist"/>
  151. <submission id="TRMRI08104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond/trgtno" resultref="/root/init/hardcd"/>
  152. <submission id="TRMQP00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/attachfile"/>
  153. <submission id="TXMRI08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/apvlcnt"/>
  154. <submission id="TRMRI03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsnsrch" resultref="/root/init/resn/resnlist"/>
  155. <submission id="TXMRI08104" mediatype="multipart/form-data" method="form-data-post" ref="/root/main/attfileinfo" resultref="/root/main/appudtcnt"/>
  156. <submission id="TRMRI08107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/detail/apppatlist"/>
  157. <submission id="TRMRI08109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/viewdept" resultref="/root/init/deptlist/viewdept"/>
  158. <submission id="TRMRI08110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/pdetail"/>
  159. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  160. </model>
  161. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  164. <script type="javascript" src="../../../emr/recmngtweb/js/SMMRI09000.js"/>
  165. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  166. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  168. </xhtml:head>
  169. <xhtml:body pagewidth="1200" pageheight="850" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  170. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:130px; height:13px; ">의무기록 열람 승인</caption>
  171. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:592px; y2:38px; "/>
  172. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:44px; width:590px; height:61px; "/>
  173. <caption id="caption21" class="search_name" style="left:16px; top:55px; width:76px; height:17px; font-size:9pt; vertical-align:middle; ">신청부서</caption>
  174. <caption id="caption1" class="search_name" style="left:16px; top:81px; width:76px; height:17px; ">처리구분</caption>
  175. <caption id="caption3" class="search_name" style="left:213px; top:55px; width:67px; height:17px; vertical-align:middle; ">신청자</caption>
  176. <caption id="caption4" class="search_name" style="left:214px; top:81px; width:99px; height:17px; ">신청일</caption>
  177. <caption id="caption5" style="left:380px; top:83px; width:20px; height:20px; text-align:center; ">~</caption>
  178. <button id="btn_srch" class="btn1_letter2" style="left:527px; top:79px; width:56px; height:22px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fSearch();
  183. ]]>
  184. </script>
  185. </button>
  186. <line id="line18" class="line_4" style="x1:522px; y1:49px; x2:522px; y2:99px; border-left-style:solid; "/>
  187. <caption id="caption7" class="tit_2" style="left:598px; top:22px; width:144px; height:13px; ">신청목록</caption>
  188. <datagrid id="grd_apppatlist" nodeset="/root/main/readappinfo/detail/apppatlist/apppatinfo" caption="승인^불가^보류^열람상태^출력^등록번호^성명^진료과^순번^사유^종이차트^종이차트^처리내용^신청자^신청일시^승인자^승인일시^appno^histno^appseqno" colsep="^" colwidth="54, 54, 54, 66, 42, 64, 53, 49, 1, 100, 35, 89, 184, 75, 122, 71, 128, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:595px; top:43px; width:585px; height:731px; text-align:center; padding-bottom:0; ">
  189. <col ref="acpt02" type="checkbox" visibility="hidden"/>
  190. <col ref="acpt04" type="checkbox" visibility="hidden"/>
  191. <col ref="acpt05" type="checkbox" visibility="hidden"/>
  192. <col ref="acptstatus" type="combo">
  193. <choices>
  194. <item>
  195. <label>신청</label>
  196. <value>01</value>
  197. </item>
  198. <item>
  199. <label>승인</label>
  200. <value>02</value>
  201. </item>
  202. <item>
  203. <label>불가</label>
  204. <value>04</value>
  205. </item>
  206. <item>
  207. <label>보류</label>
  208. <value>05</value>
  209. </item>
  210. </choices>
  211. </col>
  212. <col ref="prntstatus" type="combo" visibility="visible">
  213. <choices>
  214. <itemset nodeset="/root/init/prntstatusinfo/prntstatuslist">
  215. <label ref="cdnm"/>
  216. <value ref="cdid"/>
  217. </itemset>
  218. </choices>
  219. </col>
  220. <col ref="pid"/>
  221. <col ref="pnm"/>
  222. <col ref="orddeptnm"/>
  223. <col ref="appseqno" visibility="hidden"/>
  224. <col ref="appdetail"/>
  225. <col ref="pappyn" type="output" style="width:50; text-align:center; "/>
  226. <col ref="pappdetail" type="output"/>
  227. <col ref="acptcontents" type="input"/>
  228. <col ref="apper"/>
  229. <col ref="appdt"/>
  230. <col ref="acpter"/>
  231. <col ref="acptdt"/>
  232. <col ref="appno"/>
  233. <col ref="histno"/>
  234. <col ref="appseqno"/>
  235. <script type="javascript" ev:event="onclick">
  236. <![CDATA[
  237. if ( grd_apppatlist.isCell(event.target) )
  238. {
  239. if(grd_apppatlist.colRef("acptstatus") == '4'){
  240. fClickDetail();
  241. }
  242. if(grd_apppatlist.colRef("prntstatus") =='5'){
  243. fClickPrnDetail();
  244. }
  245. }
  246. if (grd_apppatlist.col == grd_apppatlist.colRef("acptstatus"))
  247. {
  248. var acptstatus = grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("acptstatus"));
  249. model.makeValue("/root/temp/acptstatus",acptstatus);
  250. //model.refresh();
  251. }
  252. if (grd_apppatlist.col == grd_apppatlist.colRef("prntstatus"))
  253. {
  254. var prntstatus = grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("prntstatus"));
  255. model.makeValue("/root/temp/prntstatus",prntstatus);
  256. //model.refresh();
  257. }
  258. ]]>
  259. </script>
  260. <script type="javascript" ev:event="xforms-select">
  261. <![CDATA[
  262. if (grd_apppatlist.col == grd_apppatlist.colRef("acptstatus"))
  263. var row = grd_apppatlist.row;
  264. var acptstatus = grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("acptstatus"))
  265. var pid = grd_apppatlist.valueMatrix( row, grd_apppatlist.colRef("pid"));
  266. var pnm = grd_apppatlist.valueMatrix( row, grd_apppatlist.colRef("pnm"));
  267. var itrgtNodeCnt = getNodeSetCnt("/root/tmp/secretepids/hardcd[hardcd = '" + pid + "']");
  268. if (acptstatus == "02" && itrgtNodeCnt > 0 ) {
  269. messageBox("해당환자("+pid+":"+pnm+")는 비밀유지 요청환자입니다. 참고하시기 바랍니다","I");
  270. }
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="onaftersort">
  274. <![CDATA[
  275. grd_apppatlist.gridToInstance();
  276. ]]>
  277. </script>
  278. </datagrid>
  279. <button id="btn_save" class="btn4_letter2" disabled="false" visibility="hidden" style="left:1125px; top:14px; width:56px; height:22px; ">
  280. <caption>저장</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. fSaveReadExe();
  284. ]]>
  285. </script>
  286. </button>
  287. <select1 id="combo2" ref="/root/send/cond/acptstatus" class="combo_search" appearance="minimal" style="left:101px; top:81px; width:105px; height:19px; ">
  288. <choices>
  289. <itemset nodeset="/root/init/acptstatusinfo/acptstatuslist">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <select1 id="combo3" ref="/root/send/cond/appid" navindex="3" appearance="minimal" style="left:283px; top:54px; width:82px; height:19px; ">
  296. <choices>
  297. <itemset nodeset="/root/init/userlist/usercombo">
  298. <label ref="usernm"/>
  299. <value ref="userid"/>
  300. </itemset>
  301. </choices>
  302. </select1>
  303. <select1 id="cmb_orddeptcd" ref="/root/send/cond/appdeptcd" navindex="2" appearance="minimal" style="left:101px; top:54px; width:105px; height:19px; ">
  304. <choices>
  305. <itemset nodeset="/root/init/deptlist/viewdept">
  306. <label ref="depthngnm"/>
  307. <value ref="deptcd"/>
  308. </itemset>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. model.removeNodeset("/root/init/userlist");
  313. model.makeNode("/root/init/userlist/usercombo");
  314. //조건값을 받아옴
  315. var getdept = model.getValue("/root/main/cond/orddeptcd");
  316. var getuser = model.getValue("/root/main/cond/orddrid");
  317. var getdd = model.getValue("/root/main/cond/orddd");
  318. //진료과를 조회하여 온다
  319. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddeptcd.value, "0330");
  320. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  321. model.setValue("/root/send/cond/appid", "-");
  322. model.refresh();
  323. ]]>
  324. </script>
  325. </select1>
  326. <input id="input18" ref="/root/send/cond/apptodd" class="input_s_essential" inputtype="date" style="left:402px; top:81px; width:95px; height:19px; "/>
  327. <input id="ipt_formrecdtfr" ref="/root/send/cond/appfromdd" class="input_s_essential" inputtype="date" style="left:283px; top:81px; width:95px; height:19px; "/>
  328. <button id="btn_acpt02_bkg" class="btn4_letter2" disabled="true" visibility="hidden" style="left:925px; top:15px; width:56px; height:22px; ">
  329. <caption>승인</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. var acpt02_cnt = instance1.selectNodes("/root/main/readappinfo/detail/apppatlist/apppatinfo[acpt02='true']");
  333. var acpt04_cnt = instance1.selectNodes("/root/main/readappinfo/detail/apppatlist/apppatinfo[acpt04='true']");
  334. var acpt05_cnt = instance1.selectNodes("/root/main/readappinfo/detail/apppatlist/apppatinfo[acpt05='true']");
  335. var checktotlength = acpt02_cnt.length + acpt04_cnt.length + acpt05_cnt.length;
  336. if ( checktotlength < grd_apppatlist.rows-1 )
  337. {
  338. messageBox("처리되지 않은 목록이","I010");
  339. }
  340. btn_save.dispatch("DOMActivate"); //저장 버튼 클릭 dispatch
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="btn_acpt04_bkg" class="btn4_letter2" visibility="hidden" style="left:865px; top:15px; width:56px; height:22px; ">
  345. <caption>불가</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. grd_apppatlist.fixedcellischeck(0, grd_apppatlist.colRef("acpt02")) = false; //승인 모두 언체크
  349. grd_apppatlist.fixedcellischeck(0, grd_apppatlist.colRef("acpt04")) = true; //전체 불가처리
  350. grd_apppatlist.fixedcellischeck(0, grd_apppatlist.colRef("acpt05")) = false; //보류 모두 언체크
  351. btn_save.dispatch("DOMActivate"); //저장 버튼 클릭 dispatch
  352. ]]>
  353. </script>
  354. </button>
  355. <button id="btn_subtime" navindex="31" style="left:473px; top:12px; width:15px; height:20px; ">
  356. <caption>▼</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. if(ipt_timer.currentText > 0) {
  360. model.setValue("/root/init/timer", parseInt(model.getValue("/root/init/timer")) - 1);
  361. }else if(ipt_timer.currentText == 0 && btn_interval.attribute("text") == "수동조회") {
  362. window.clearinterval(gTimerID);
  363. btn_interval.attribute("text") = "자동조회";
  364. }
  365. model.refresh();
  366. ]]>
  367. </script>
  368. </button>
  369. <button id="btn_addtime" navindex="32" style="left:473px; top:21px; width:15px; height:20px; ">
  370. <caption>▲</caption>
  371. <script type="javascript" ev:event="DOMActivate">
  372. <![CDATA[
  373. model.setValue("/root/init/timer", parseInt(model.getValue("/root/init/timer")) + 1);
  374. model.refresh();
  375. ]]>
  376. </script>
  377. </button>
  378. <output id="opt_interval" ref="/root/init/interval" class="output_fix" style="left:490px; top:15px; width:25px; height:19px; "/>
  379. <button id="btn_interval" class="btn2_letter4" navindex="33" style="left:518px; top:15px; width:64px; height:19px; ">
  380. <caption>자동조회</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fSrchStartStop();
  384. ]]>
  385. </script>
  386. </button>
  387. <input id="ipt_timer" ref="/root/init/timer" class="input_search" navindex="30" style="left:444px; top:16px; width:25px; height:19px; text-align:center; ">
  388. <hint>
  389. <![CDATA[단위 : 초]]>
  390. </hint>
  391. </input>
  392. <button id="btn_auto" class="btn2_letter6" visibility="visible" style="left:675px; top:15px; width:86px; height:19px; ">
  393. <caption>자동승인세팅</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. //var chkuser = model.getValue("/root/main/readappinfo/master/readapplist["+grd_readapplist.row+"]/jobkindnm");
  397. //if(chkuser ==''){
  398. // messageBox("권한이 없습니다.","I");
  399. // return;
  400. //}
  401. open("SMMRI07100");
  402. ]]>
  403. </script>
  404. </button>
  405. <button id="button4" class="btn1_letter2" style="left:527px; top:50px; width:56px; height:22px; ">
  406. <caption>엑셀</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. if (switch1.selectedIndex == 0 ) {
  410. fsaveGridToExcel(grd_readapplist);
  411. }
  412. else {
  413. fsaveGridToExcel(grd_readapppaperlist);
  414. }
  415. ]]>
  416. </script>
  417. </button>
  418. <line id="line2" class="line_1" style="x1:596px; y1:38px; x2:1179px; y2:38px; "/>
  419. <button id="btn_case1" class="btn_sw" visibility="visible" group="group" selected="true" style="left:0px; top:16px; width:35px; height:22px; text-align:center; cursor:hand; ">
  420. <caption>전체</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. model.toggle("case1");
  424. model.toggle("case3");
  425. ]]>
  426. </script>
  427. </button>
  428. <switch id="switch1" style="left:0px; top:107px; width:585px; height:673px; ">
  429. <case id="case1" selected="true" style="left:0px; top:0px; width:590px; height:670px; ">
  430. <datagrid id="grd_readapplist" nodeset="/root/main/readappinfo/master/readapplist" class="datagrid2" caption="신청번호^신청번호^종이&#xA;차트^신청일자^신청과^신청자^직종^연락처^신청자id^열람목적코드^열람목적^주제^처리^서약서YN^종이챠트신청내용^이미지path^열람희망일^열람종료일^histstat^신청상태" colsep="^" colwidth="80, 27, 32, 69, 73, 66, 100, 100, 100, 23, 100, 100, 100, 0, 165, 0, 100, 100, 0, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:2px; width:585px; height:663px; ">
  431. <col ref="appno" style="text-align:left; "/>
  432. <col ref="histno" style="text-align:center; "/>
  433. <col ref="pappyn" style="text-align:center; "/>
  434. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  435. <col disabled="true" ref="appdeptcd" type="output" style="text-align:center; "/>
  436. <col ref="appnm" style="text-align:center; "/>
  437. <col ref="jobkindnm" style="text-align:center; "/>
  438. <col ref="apptel"/>
  439. <col ref="appid" visibility="hidden"/>
  440. <col ref="apptype" style="text-align:left; "/>
  441. <col ref="apptypenm"/>
  442. <col ref="appdetail"/>
  443. <col disabled="true" ref="acptstatus" type="combo" style="text-align:center; ">
  444. <choices>
  445. <itemset nodeset="/root/init/acptstatusinfo/acptstatuslist">
  446. <label ref="cdnm"/>
  447. <value ref="cdid"/>
  448. </itemset>
  449. </choices>
  450. </col>
  451. <col ref="pledgeflag" visibility="hidden"/>
  452. <col ref="pappdetail" style="cursor:hand; "/>
  453. <col ref="pledgepath" visibility="hidden"/>
  454. <col ref="appreadfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  455. <col ref="appreadtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  456. <col ref="histstat" visibility="hidden"/>
  457. <col ref="histstatnm" style="text-align:center; "/>
  458. <script type="javascript" ev:event="ondblclick">
  459. <![CDATA[
  460. if ( grd_readapplist.isCell(event.target) && grd_readapplist.row >= grd_readapplist.fixedRows )
  461. {
  462. fClickMaster();
  463. }
  464. ]]>
  465. </script>
  466. <script type="javascript" ev:event="onaftersort">
  467. <![CDATA[
  468. grd_readapplist.gridToInstance();
  469. ]]>
  470. </script>
  471. </datagrid>
  472. </case>
  473. <case id="case2">
  474. <datagrid id="grd_readapppaperlist" nodeset="/root/main/readappinfo/pdetail/patlist" class="datagrid2" caption="신청번호^신청번호^신청일자^신청과^신청자^영상전환^차트번호^환자명^종이신청사유^열람목적코드^열람목적^주제^연락처" colsep="^" colwidth="66, 25, 83, 80, 57, 56, 62, 65, 100, 15, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:2px; width:580px; height:663px; ">
  475. <col ref="appno" style="text-align:center; "/>
  476. <col ref="histno" style="text-align:center; "/>
  477. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  478. <col ref="appdeptcd" style="text-align:center; "/>
  479. <col ref="appid" style="text-align:center; "/>
  480. <col ref="chrtflag" style="text-align:center; "/>
  481. <col ref="pid" style="text-align:right; "/>
  482. <col ref="hngnm" style="text-align:center; "/>
  483. <col ref="pappdetail" style="text-align:left; "/>
  484. <col ref="apptype" style="text-align:left; "/>
  485. <col ref="apptypenm"/>
  486. <col ref="appdetail"/>
  487. <col ref="apptel"/>
  488. <script type="javascript" ev:event="ondblclick">
  489. <![CDATA[
  490. if ( grd_readapppaperlist.isCell(event.target) && grd_readapppaperlist.row >= grd_readapppaperlist.fixedRows )
  491. {
  492. fSearchDetail();
  493. }
  494. ]]>
  495. </script>
  496. <script type="javascript" ev:event="onaftersort">
  497. <![CDATA[
  498. grd_readapppaperlist.gridToInstance();
  499. ]]>
  500. </script>
  501. </datagrid>
  502. </case>
  503. </switch>
  504. <switch id="switch2" class="sw_no_border" style="left:395px; top:50px; width:95px; height:25px; ">
  505. <case id="case3">
  506. <select id="cbx_pappyn" ref="/root/send/cond/pappyn" overflow="visible" appearance="full" style="left:5px; top:5px; width:62px; height:20px; border-style:none; ">
  507. <choices>
  508. <item>
  509. <label>Paper</label>
  510. <value>Y</value>
  511. </item>
  512. </choices>
  513. </select>
  514. </case>
  515. <case id="case4" selected="true">
  516. <select id="cbx_chrtflag" ref="/root/send/cond/chrtflag" overflow="visible" appearance="full" style="left:5px; top:5px; width:70px; height:20px; border-style:none; ">
  517. <choices>
  518. <item>
  519. <label>영상전환</label>
  520. <value>Y</value>
  521. </item>
  522. </choices>
  523. </select>
  524. </case>
  525. </switch>
  526. <button id="btn_case2" class="btn_sw" visibility="visible" group="group" selected="true" style="left:35px; top:16px; width:35px; height:22px; text-align:center; cursor:hand; ">
  527. <caption>색출</caption>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. model.toggle("case2");
  531. model.toggle("case4");
  532. ]]>
  533. </script>
  534. </button>
  535. <button id="button1" class="btn2_letter6" visibility="hidden" style="left:765px; top:15px; width:86px; height:19px; ">
  536. <caption>자동출력세팅</caption>
  537. <script type="javascript" ev:event="DOMActivate">
  538. <![CDATA[
  539. //copyNodeType(reReadappListPath, ReadappListPath, "reflace");
  540. //model.copyNode(reReadappListPath, ReadappListPath);
  541. var AppPatListPath = "/root/main/readappinfo/detail/apppatlist/apppatinfo";
  542. var nodeCnt = getNodesetCount(AppPatListPath);
  543. var ReadappListPath = "/root/main/readappinfo/detail/apppatlist";
  544. var reReadappListPath = "/root/main/readappinfo/detail/apppatlistre";
  545. model.makeNode("/root/main/readappinfo/detail/apppatlistre");
  546. if ( button1.attribute("text") == "자동출력취소" ) {
  547. button1.attribute("text") = "자동출력셋팅";
  548. //model.makeNode("/root/main/readappinfo/detail/apppatlistre");
  549. //model.refresh();
  550. //model.removeNodeset("/root/main/readappinfo/detail/apppatlist");
  551. model.copyNode(ReadappListPath, reReadappListPath);
  552. model.refresh();
  553. } else {
  554. button1.attribute("text") = "자동출력취소";
  555. model.copyNode(reReadappListPath, ReadappListPath);
  556. for(var i = 1; i <= nodeCnt; i++){
  557. if(model.getValue(AppPatListPath + "[" + i + "]/prntstatus") == '01'){
  558. model.setValue(AppPatListPath + "[" + i + "]/prntstatus", "02");
  559. }
  560. }
  561. model.refresh();
  562. }
  563. ]]>
  564. </script>
  565. </button>
  566. </xhtml:body>
  567. </xhtml:html>