SMMRI08000_의무기록열람신청및조회.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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. <readappinfo>
  11. <master>
  12. <readapplist>
  13. <appno/>
  14. <appdd/>
  15. <appdeptcd/>
  16. <appid/>
  17. <apptype/>
  18. <appdetail/>
  19. <acptstatus/>
  20. <appreadfromdd/>
  21. <appreadtodd/>
  22. <prntyn/>
  23. <histno/>
  24. <appnm/>
  25. </readapplist>
  26. </master>
  27. <detail>
  28. <applist>
  29. <appdd/>
  30. <appno/>
  31. <appdeptcd/>
  32. <appid/>
  33. <apptel/>
  34. <apptype/>
  35. <appdetail/>
  36. <appreadfromdd/>
  37. <appreadtodd/>
  38. <prntyn/>
  39. <pappyn/>
  40. <pappdetail/>
  41. </applist>
  42. <orddeptlist>
  43. <orddeptinfo>
  44. <dept1/>
  45. <dept2/>
  46. <dept3/>
  47. <dept4/>
  48. <dept5/>
  49. <dept6/>
  50. <dept7/>
  51. </orddeptinfo>
  52. </orddeptlist>
  53. <apppatlist>
  54. <apppatinfo>
  55. <pid/>
  56. <pnm/>
  57. <orddeptnm/>
  58. <appdetail/>
  59. <appseqno/>
  60. </apppatinfo>
  61. </apppatlist>
  62. <pid/>
  63. <pnm/>
  64. </detail>
  65. </readappinfo>
  66. <patinfo>
  67. <patinfolist>
  68. <pid/>
  69. <hngnm/>
  70. </patinfolist>
  71. </patinfo>
  72. <appinfo/>
  73. <deptengabbrinfo/>
  74. <prtcnt/>
  75. <appudtcnt/>
  76. </main>
  77. <send>
  78. <cond>
  79. <appdeptcd/>
  80. <appid/>
  81. <acptstatus>-</acptstatus>
  82. <appfromdd/>
  83. <apptodd/>
  84. <appreadfromdd/>
  85. <appreadtodd/>
  86. <pid/>
  87. <appno/>
  88. <histno/>
  89. </cond>
  90. <reqdata>
  91. <applist/>
  92. <apppatlist/>
  93. </reqdata>
  94. <prtdata/>
  95. <rsnsrch/>
  96. </send>
  97. <init>
  98. <orddept/>
  99. <userlist/>
  100. <accresn/>
  101. <acptstatusinfo>
  102. <acptstatuslist>
  103. <cdnm>전체</cdnm>
  104. <cdid>-</cdid>
  105. </acptstatuslist>
  106. <acptstatuslist>
  107. <cdnm>신청</cdnm>
  108. <cdid>01</cdid>
  109. </acptstatuslist>
  110. <acptstatuslist>
  111. <cdnm>승인</cdnm>
  112. <cdid>02</cdid>
  113. </acptstatuslist>
  114. <acptstatuslist>
  115. <cdnm>부분승인</cdnm>
  116. <cdid>03</cdid>
  117. </acptstatuslist>
  118. <acptstatuslist>
  119. <cdnm>불가</cdnm>
  120. <cdid>04</cdid>
  121. </acptstatuslist>
  122. <acptstatuslist>
  123. <cdnm>보류</cdnm>
  124. <cdid>05</cdid>
  125. </acptstatuslist>
  126. </acptstatusinfo>
  127. <hardcd/>
  128. <resn>
  129. <resnlist/>
  130. </resn>
  131. <prntstatusinfo>
  132. <prntstatuslist>
  133. <cdid>01</cdid>
  134. <cdnm>신청</cdnm>
  135. </prntstatuslist>
  136. <prntstatuslist>
  137. <cdid>-</cdid>
  138. <cdnm>-</cdnm>
  139. </prntstatuslist>
  140. <prntstatuslist>
  141. <cdid>04</cdid>
  142. <cdnm>불가</cdnm>
  143. </prntstatuslist>
  144. <prntstatuslist>
  145. <cdid>02</cdid>
  146. <cdnm>승인</cdnm>
  147. </prntstatuslist>
  148. </prntstatusinfo>
  149. </init>
  150. <initinfo/>
  151. <temp>
  152. <prntstatus/>
  153. <patinfo>
  154. <pid/>
  155. <pnm/>
  156. <deptnm/>
  157. </patinfo>
  158. </temp>
  159. <excel>
  160. <patinfo>
  161. <pid/>
  162. <pnm/>
  163. </patinfo>
  164. </excel>
  165. <hidden/>
  166. </root>
  167. </instance>
  168. <script type="javascript" ev:event="xforms-ready">
  169. <![CDATA[
  170. fInitialize();
  171. ]]>
  172. </script>
  173. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  174. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  175. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  176. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  177. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  178. <submission id="TRMRI03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond/pid" resultref="/root/initinfo"/>
  179. <submission id="TRMRI08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/master"/>
  180. <submission id="TRMRI08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/detail/apppatlist"/>
  181. <submission id="TRMRI08103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/deptengabbrinfo"/>
  182. <submission id="TRMRI08104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond/trgtno" resultref="/root/init/hardcd"/>
  183. <submission id="TXMRI08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/appinfo"/>
  184. <submission id="TXMRI08103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/appudtcnt"/>
  185. <submission id="TRMRI03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsnsrch" resultref="/root/init/resn/resnlist"/>
  186. <submission id="TRMRI08106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/applist" resultref="/root/hidden/result"/>
  187. <submission id="TRMRI08107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/readappinfo/detail/apppatlist"/>
  188. <submission id="TRMRI08108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/excel/patinfo" resultref="/root/temp/patinfo"/>
  189. <submission id="TRMRI08109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/viewdept" resultref="/root/init/viewdept"/>
  190. </model>
  191. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  192. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  193. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  194. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  195. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  196. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  197. <script type="javascript" src="../../../emr/recmngtweb/js/SMMRI08000.js"/>
  198. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  199. </xhtml:head>
  200. <xhtml:body guideline="1,1199;1,588;2,782;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  201. <button id="button2" class="btn4_letter2" visibility="hidden" style="left:500px; top:55px; width:56px; height:22px; ">
  202. <caption>파일</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. fLoadExcel();
  206. ]]>
  207. </script>
  208. </button>
  209. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  210. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:14px; ">의무기록 열람신청 및 조회</caption>
  211. </group>
  212. <button id="btn_readapp" class="btn_sw" visibility="visible" group="group" selected="true" style="left:0px; top:16px; width:220px; height:22px; text-align:center; cursor:hand; ">
  213. <caption>열람신청 및 의무기록 열람 (건별)</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. model.toggle("readapp");
  217. fSearchDetail();
  218. ]]>
  219. </script>
  220. </button>
  221. <button id="btn_readexe" class="btn_sw" visibility="visible" group="group" style="left:220px; top:16px; width:275px; height:22px; text-align:center; cursor:hand; ">
  222. <caption>열람신청 내역 조회 및 의무기록 열람 (그룹별)</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. model.toggle("readexe");
  226. fSearchDetail();
  227. ]]>
  228. </script>
  229. </button>
  230. <line id="line17" class="line_1" style="x1:0px; y1:38px; x2:1195px; y2:38px; "/>
  231. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:7px; top:44px; width:579px; height:70px; "/>
  232. <button id="btn_srch" class="btn1_letter2" style="left:500px; top:53px; width:56px; height:22px; ">
  233. <caption>조회</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. fSearch();
  237. ]]>
  238. </script>
  239. </button>
  240. <caption id="caption1" class="search_name" style="left:26px; top:82px; width:86px; height:17px; ">처리구분 :</caption>
  241. <caption id="caption21" class="search_name" style="left:26px; top:54px; width:88px; height:17px; ">신 청 과 :</caption>
  242. <select1 id="cmb_acptstatus" ref="/root/send/cond/acptstatus" class="combo_search" appearance="minimal" style="left:116px; top:82px; width:110px; height:19px; ">
  243. <choices>
  244. <itemset nodeset="/root/init/acptstatusinfo/acptstatuslist">
  245. <label ref="cdnm"/>
  246. <value ref="cdid"/>
  247. </itemset>
  248. </choices>
  249. </select1>
  250. <caption id="caption3" class="search_name" visibility="visible" style="left:252px; top:54px; width:93px; height:17px; ">신 청 자 :</caption>
  251. <select1 id="cmb_appid" ref="/root/send/cond/appid" disabled="true" navindex="3" visibility="visible" appearance="minimal" style="left:350px; top:54px; width:95px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/userlist/usercombo">
  254. <label ref="usernm"/>
  255. <value ref="userid"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <select1 id="cmb_appdeptcd" ref="/root/send/cond/appdeptcd" disabled="true" navindex="2" appearance="minimal" style="left:116px; top:54px; width:111px; height:19px; ">
  260. <choices>
  261. <itemset nodeset="/root/init/viewdept">
  262. <label ref="depthngnm"/>
  263. <value ref="deptcd"/>
  264. </itemset>
  265. <!-- <itemset nodeset="/root/init/orddept/dept">
  266. // <label ref="depthngnm"/>
  267. // <value ref="deptcd"/>
  268. // <value ref="deptcd"/>
  269. // </itemset> -->
  270. </choices>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. //
  274. ]]>
  275. </script>
  276. </select1>
  277. <line id="line18" class="line_4" style="x1:552px; y1:83px; x2:552px; y2:105px; border-left-style:solid; "/>
  278. <datagrid id="grd_readapplist" nodeset="/root/main/readappinfo/master/readapplist" class="datagrid2" caption="신청번호^순번^종이&#xA;차트^신청일^신청자^직종^열람목적코드^열람목적^주제^처리^열람희망일^열람종료일^서약서^연락처^연락처^histstat^신청상태^출력여부^신청과^appid^신청자" colsep="^" colwidth="69, 34, 40, 81, 66, 100, 100, 107, 112, 54, 75, 79, 81, 100, 0, 100, 52, 0, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:6px; top:131px; width:582px; height:651px; ">
  279. <col ref="appno" style="text-align:center; "/>
  280. <col ref="histno" style="text-align:center; "/>
  281. <col ref="pappyn" type="output" style="text-align:center; "/>
  282. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  283. <col ref="appnm"/>
  284. <col ref="jobkindnm"/>
  285. <col key="apptype" visibility="hidden"/>
  286. <col ref="apptypenm"/>
  287. <col ref="appdetail"/>
  288. <col disabled="true" ref="acptstatus" type="combo" style="text-align:center; ">
  289. <choices>
  290. <itemset nodeset="/root/init/acptstatusinfo/acptstatuslist">
  291. <label ref="cdnm"/>
  292. <value ref="cdid"/>
  293. </itemset>
  294. </choices>
  295. </col>
  296. <col ref="appreadfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  297. <col ref="appreadtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  298. <col ref="pledgeflag" visibility="hidden"/>
  299. <col ref="apptel"/>
  300. <col ref="histstat" visibility="hidden"/>
  301. <col ref="histstatnm" visibility="hidden" style="text-align:center; "/>
  302. <col ref="prntyn" visibility="hidden" style="text-align:center; "/>
  303. <col disabled="true" ref="appdeptcd" type="combo" style="text-align:center; ">
  304. <choices>
  305. <itemset nodeset="/root/init/orddept/dept">
  306. <label ref="depthngnm"/>
  307. <value ref="deptcd"/>
  308. </itemset>
  309. </choices>
  310. </col>
  311. <col disabled="true" ref="appdeptcd" style="text-align:center; ">
  312. <choices>
  313. <itemset nodeset="/root/init/userlist/usercombo">
  314. <label ref="usernm"/>
  315. <value ref="userid"/>
  316. </itemset>
  317. </choices>
  318. </col>
  319. <col ref="appid" visibility="hidden"/>
  320. <script type="javascript" ev:event="onclick">
  321. <![CDATA[
  322. if ( grd_readapplist.isCell(event.target) && grd_readapplist.row >= grd_readapplist.fixedRows )
  323. fSearchDetail();
  324. ]]>
  325. </script>
  326. </datagrid>
  327. <switch id="swh_app" class="sw_no_border" style="left:590px; top:45px; width:605px; height:735px; ">
  328. <case id="readapp" selected="true" style="left:0px; top:0px; width:600px; height:735px; ">
  329. <button id="btn_pledgeprnt" class="btn4_letter9" visibility="hidden" style="left:260px; top:700px; width:140px; height:22px; ">
  330. <caption>열람서약서 재출력</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. var appno = grd_readapplist.valueMatrix( grd_readapplist.row, grd_readapplist.colRef("appno"));
  334. setParameter("SPMRI08100_param_appno", appno);
  335. setParameter("SPMRI08100_param_autoprint", "Y");
  336. modal("SPMRI08100");
  337. setParameter("SPMRI08100_param_autoprint", "");
  338. ]]>
  339. </script>
  340. </button>
  341. <group id="grp_applist" style="left:7px; top:0px; width:580px; height:122px; vertical-align:top; ">
  342. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:120px; "/>
  343. <caption id="caption8" class="search_name" style="left:12px; top:7px; width:103px; height:17px; ">신 청 일 :</caption>
  344. <output id="output4" ref="/root/main/readappinfo/detail/applist/appno" class="output" style="left:360px; top:7px; width:115px; height:19px; "/>
  345. <caption id="caption9" class="search_name" style="left:251px; top:8px; width:101px; height:17px; ">신 청 번 호 :</caption>
  346. <caption id="caption10" class="search_name" style="left:12px; top:29px; width:103px; height:17px; ">신 청 과 :</caption>
  347. <caption id="caption11" class="search_name" style="left:251px; top:28px; width:103px; height:17px; ">신 청 자 :</caption>
  348. <caption id="caption12" class="search_name" style="left:12px; top:50px; width:103px; height:17px; ">연 락 처 :</caption>
  349. <input id="ipt_usernm" ref="/root/main/readappinfo/detail/applist/apptel" class="input_s_essential" style="left:117px; top:49px; width:116px; height:19px; "/>
  350. <caption id="caption13" class="search_name" style="left:251px; top:50px; width:101px; height:17px; ">열 람 목 적 :</caption>
  351. <select1 id="cmb_resn" ref="/root/main/readappinfo/detail/applist/apptype" class="input_s_essential" appearance="minimal" style="left:360px; top:49px; width:115px; height:19px; ">
  352. <choices>
  353. <itemset nodeset="/root/init/resn/resnlist">
  354. <label ref="rsnnm"/>
  355. <value ref="rsncd"/>
  356. </itemset>
  357. </choices>
  358. <script type="javascript" ev:event="xforms-value-changed">
  359. <![CDATA[
  360. var apptype = model.getValue("/root/main/readappinfo/detail/applist/apptype");
  361. //병원마다 기준이 다르고 코드가 다르므로 텍스트로 비교
  362. if ( cmb_resn.value == "F3" || cmb_resn.label.indexOf("기타") > -1 || cmb_resn.label == "연구용" || cmb_resn.label == "Conference" || cmb_resn.label == "conference" ||cmb_resn.label == "집담회용")
  363. ipt_appdetail.disabled = false;
  364. else
  365. ipt_appdetail.disabled = true;
  366. //열람목적 변경 시 열람종료일 다시 셋팅
  367. fSetAppReadtodd();
  368. ]]>
  369. </script>
  370. </select1>
  371. <caption id="caption14" class="search_name" style="left:12px; top:72px; width:105px; height:17px; ">주 제 :</caption>
  372. <input id="ipt_appdetail" ref="/root/main/readappinfo/detail/applist/appdetail" class="input_search" disabled="true" style="left:117px; top:71px; width:446px; height:19px; "/>
  373. <caption id="caption15" class="search_name" style="left:12px; top:96px; width:99px; height:17px; ">열람희망일 :</caption>
  374. <caption id="caption16" class="search_name" style="left:251px; top:96px; width:104px; height:17px; ">열람종료일 :</caption>
  375. <input id="ipt_appreadfromdd" ref="/root/main/readappinfo/detail/applist/appreadfromdd" class="input_s_essential" disabled="input_s_searcd" inputtype="date" required="false" style="left:117px; top:94px; width:115px; height:19px; ">
  376. <script type="javascript" ev:event="xforms-value-changed">
  377. <![CDATA[
  378. fSetAppReadtodd();
  379. ]]>
  380. </script>
  381. </input>
  382. <output id="opt_appdd" ref="/root/main/readappinfo/detail/applist/appdd" class="output" format="yyyy-mm-dd" style="left:117px; top:7px; width:115px; height:19px; "/>
  383. <output id="ipt_appreadtodd" ref="/root/main/readappinfo/detail/applist/appreadtodd" class="output" format="yyyy-mm-dd" style="left:363px; top:94px; width:112px; height:19px; "/>
  384. <output id="out_appdeptcd" ref="/root/main/readappinfo/detail/applist/appdeptcd" style="left:116px; top:28px; width:116px; height:19px; "/>
  385. <output id="out_appid" ref="/root/main/readappinfo/detail/applist/appnmid" style="left:360px; top:28px; width:200px; height:19px; "/>
  386. </group>
  387. <button id="btn_excelupload" class="btn4_letter7" visibility="visible" style="left:298px; top:700px; width:116px; height:22px; ">
  388. <caption>Excel Upload</caption>
  389. <script type="javascript" ev:event="onclick">
  390. <![CDATA[
  391. fLoadExcel();
  392. ]]>
  393. </script>
  394. </button>
  395. <button id="button4" class="btn4_letter9" visibility="hidden" style="left:450px; top:185px; width:140px; height:22px; ">
  396. <caption>Excel Download</caption>
  397. <script type="javascript" ev:event="onclick">
  398. <![CDATA[
  399. var fileName = window.fileDialog("save", ",", false, "기록열람신청리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  400. if (fileName != ""){
  401. grd_apppatlist.saveExcel(fileName, "sheetname:기록열람신청목록");
  402. }
  403. ]]>
  404. </script>
  405. </button>
  406. <button id="btn_resave" class="btn4_letter3" disabled="true" style="left:470px; top:700px; width:68px; height:22px; ">
  407. <caption>재신청</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. if ( btn_resave.value == "연장신청" )
  411. {
  412. fSearchDetail();
  413. grup_appreadfromdd.attribute("visibility") = "visible";
  414. }
  415. else if ( btn_resave.value == "재신청" )
  416. fSaveReadApp("R");
  417. ]]>
  418. </script>
  419. </button>
  420. <group id="grp_applist2" style="left:8px; top:127px; width:581px; height:87px; vertical-align:top; ">
  421. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:581px; height:87px; "/>
  422. <caption id="caption17" class="search_name" style="left:11px; top:5px; width:98px; height:17px; ">등록번호 :</caption>
  423. <caption id="caption19" class="search_name" style="left:11px; top:29px; width:98px; height:17px; ">수 진 과 :</caption>
  424. <input id="ipt_pid" ref="/root/main/readappinfo/detail/pnm" class="input_search" style="left:234px; top:5px; width:115px; height:19px; ">
  425. <script type="javascript" ev:event="onkeydown">
  426. <![CDATA[
  427. inputEnterKey("btn_patsrch", "DOMActivate");
  428. ]]>
  429. </script>
  430. </input>
  431. <button id="btn_srchpid" class="icon_search" style="left:352px; top:7px; width:16px; height:16px; ">
  432. <caption/>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. fSetPatInfo();
  436. ]]>
  437. </script>
  438. </button>
  439. <datagrid id="grd_orddeptlist" nodeset="/root/main/readappinfo/detail/orddeptlist/orddeptinfo" class="datagrid0" caption="1^2^3^4^5^6^7" colsep="^" colwidth="53, 53, 53, 53, 53, 53, 53" mergecellsfixedrows="bycolrec" rowheight="0" rowsep="|" selectionmode="free" style="left:115px; top:30px; width:390px; height:50px; ">
  440. <col ref="dept1"/>
  441. <col ref="dept2"/>
  442. <col ref="dept3"/>
  443. <col ref="dept4"/>
  444. <col ref="dept5"/>
  445. <col ref="dept6"/>
  446. <col ref="dept7"/>
  447. <script type="javascript" ev:event="ondblclick">
  448. <![CDATA[
  449. fCopyPatInfo();
  450. ]]>
  451. </script>
  452. </datagrid>
  453. <button id="button1" class="btn4_letter2" visibility="hidden" style="left:514px; top:5px; width:56px; height:22px; ">
  454. <caption>추가</caption>
  455. <script type="javascript" ev:event="DOMActivate">
  456. <![CDATA[
  457. fCopyPatInfo();
  458. ]]>
  459. </script>
  460. </button>
  461. <input id="input1" ref="/root/main/readappinfo/detail/pid" class="input_search" style="left:115px; top:5px; width:116px; height:19px; ">
  462. <script type="javascript" ev:event="onkeydown">
  463. <![CDATA[
  464. inputEnterKey("btn_reqpatnm", "DOMActivate");
  465. ]]>
  466. </script>
  467. </input>
  468. <button id="btn_reqpatnm" disabled="true" style="left:360px; top:10px; width:45px; height:20px; ">
  469. <caption/>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. fPidTrim("/root/main/readappinfo/detail/pid");
  473. var pid = model.getValue("/root/main/readappinfo/detail/pid");
  474. if(pid == ""){
  475. return;
  476. }
  477. if(reqPatInfo("pid", "ptbs", pid)==true){
  478. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  479. model.setValue("/root/main/readappinfo/detail/pnm", hngnm);
  480. grp_applist2.refresh();
  481. fGetOrddeptList(pid);
  482. }
  483. ]]>
  484. </script>
  485. </button>
  486. <button id="btn_patsrch" disabled="true" style="left:405px; top:10px; width:45px; height:20px; ">
  487. <caption/>
  488. <script type="javascript" ev:event="DOMActivate">
  489. <![CDATA[
  490. var pid = model.getValue("/root/main/readappinfo/detail/pid");
  491. var hngnm = model.getValue("/root/main/readappinfo/detail/pnm");
  492. if((pid =="")&&(hngnm !="")){
  493. fPatSrch(hngnm, "2");
  494. } else if((pid !="")&&(hngnm == "")){
  495. fPatSrch(pid, "1");
  496. } else {
  497. modal("SPPMC02500")
  498. }
  499. model.setValue("/root/main/readappinfo/detail/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  500. model.setValue("/root/main/readappinfo/detail/pnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  501. grp_applist2.refresh();
  502. fGetOrddeptList(model.getValue("/root/main/patinfo/patinfolist/pid"));
  503. ]]>
  504. </script>
  505. </button>
  506. </group>
  507. <button id="btn_save" class="btn4_letter2" style="left:538px; top:700px; width:56px; height:22px; ">
  508. <caption>신청</caption>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. if ( btn_save.value == "신청" )
  512. fSaveReadApp("Y");
  513. else if ( btn_save.value == "수정" )
  514. {
  515. fSaveReadApp("X");
  516. }
  517. ]]>
  518. </script>
  519. </button>
  520. <datagrid id="grd_apppatlist" nodeset="/root/main/readappinfo/detail/apppatlist/apppatinfo" visibility="visible" caption="등록번호^성명^진료과^사유^처리내용^열람^출력^종이차트(사유입력)^종이차트(사유입력)^출력^순번^orddeptcd" colsep="^" colwidth="56, 56, 53, 183, 87, 36, 41, 28, 138, 0, 100, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:7px; top:225px; width:587px; height:470px; text-align:left; ">
  521. <col ref="pid"/>
  522. <col ref="pnm" visibility="visible"/>
  523. <col ref="orddeptnm" type="output"/>
  524. <col editable="true" ref="appdetail" type="input"/>
  525. <col ref="acptcontents"/>
  526. <col ref="search" style="text-align:center; cursor:hand; "/>
  527. <col ref="prntstatus" type="combo" visibility="visible">
  528. <choices>
  529. <itemset nodeset="/root/init/prntstatusinfo/prntstatuslist">
  530. <label ref="cdnm"/>
  531. <value ref="cdid"/>
  532. </itemset>
  533. </choices>
  534. </col>
  535. <col checkvalue="Y,N" ref="pappyn" type="checkbox" visibility="hidden"/>
  536. <col ref="pappdetail" type="input" visibility="hidden"/>
  537. <col ref="appseqno" type="output" visibility="hidden"/>
  538. <col ref="orddeptcd"/>
  539. <col ref="acptstatus" visibility="hidden"/>
  540. <script type="javascript" ev:event="xforms-select">
  541. <![CDATA[
  542. if (grd_apppatlist.col == grd_apppatlist.colRef("prntstatus"))
  543. var pnrtstatus = grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("prntstatus"))
  544. if (pnrtstatus == "02" || pnrtstatus == "04" )
  545. {
  546. messageBox("변경할 수 없는 상태입니다","000");
  547. grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("prntstatus")) = model.getValue("/root/temp/prntstatus");
  548. }
  549. ]]>
  550. </script>
  551. <script type="javascript" ev:event="onclick">
  552. <![CDATA[
  553. if (grd_apppatlist.col == grd_apppatlist.colRef("prntstatus"))
  554. {
  555. var pnrtstatus = grd_apppatlist.valueMatrix(grd_apppatlist.row,grd_apppatlist.colRef("prntstatus"))
  556. model.setValue("/root/temp/prntstatus",pnrtstatus);
  557. }
  558. if (grd_apppatlist.isCell(event.target) && grd_apppatlist.col == grd_apppatlist.colRef("search") )
  559. {
  560. var wndobj = getOpenWindow("SMMRI00400");
  561. if(wndobj != null){
  562. wndobj.close();
  563. }
  564. fOpenSMMRI00400("grd_apppatlist");
  565. }
  566. ]]>
  567. </script>
  568. </datagrid>
  569. <line id="line3" class="line_1" style="x1:7px; y1:221px; x2:594px; y2:221px; "/>
  570. <button id="btn_del" class="btn4_letter2" style="left:414px; top:700px; width:56px; height:22px; ">
  571. <caption>삭제</caption>
  572. <script type="javascript" ev:event="DOMActivate">
  573. <![CDATA[
  574. var rows = grd_apppatlist.rows;
  575. //model.gridDeleteSelect("grd_apppatlist");
  576. for ( i=1; i < rows; i++ )
  577. {
  578. if (grd_apppatlist.isselected(i) == true)
  579. {
  580. var appseqno = model.getValue("/root/main/readappinfo/detail/apppatlist/apppatinfo[" + i + "]/appseqno");
  581. if (appseqno == "")
  582. {
  583. grd_apppatlist.deleteRow(i);
  584. }
  585. else
  586. {
  587. grd_apppatlist.addStatus(i, "delete");
  588. }
  589. }
  590. }
  591. ]]>
  592. </script>
  593. </button>
  594. <group id="grup_appreadfromdd" visibility="hidden" style="left:260px; top:535px; width:265px; height:105px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  595. <caption id="caption24" class="tit_2" style="left:1px; top:2px; width:201px; height:14px; ">열람희망일을 입력 해 주세요.</caption>
  596. <line id="line16" class="line_1" style="x1:1px; y1:16px; x2:257px; y2:16px; "/>
  597. <button id="button56" class="btn2_letter3" style="left:140px; top:75px; width:53px; height:19px; ">
  598. <caption>확 인</caption>
  599. <script type="javascript" ev:event="onclick">
  600. <![CDATA[
  601. grup_appreadfromdd.attribute("visibility") = "hidden";
  602. fSaveReadApp("C"); //연장 신청 시 열람서약서를 다시 받지 않는다.
  603. ]]>
  604. </script>
  605. </button>
  606. <button id="button57" class="btn2_letter3" style="left:201px; top:75px; width:53px; height:19px; ">
  607. <caption>취 소</caption>
  608. <script type="javascript" ev:event="onclick">
  609. <![CDATA[
  610. grup_appreadfromdd.attribute("visibility") = "hidden";
  611. ]]>
  612. </script>
  613. </button>
  614. <caption id="caption50" class="cell_1" style="left:2px; top:28px; width:77px; height:23px; text-align:center; vertical-align:middle; ">열람희망일</caption>
  615. <caption id="caption41" style="left:2px; top:55px; width:240px; height:14px; ">* 연장신청은 열람희망일만 변경 가능합니다</caption>
  616. <input id="input4" ref="/root/main/readappinfo/detail/applist/appreadfromdd" class="input_s_searcd" inputtype="date" style="left:87px; top:29px; width:115px; height:19px; ">
  617. <script type="javascript" ev:event="xforms-value-changed">
  618. <![CDATA[
  619. fSetAppReadtodd();
  620. ]]>
  621. </script>
  622. </input>
  623. </group>
  624. <button id="btn_new" class="btn4_letter4" style="left:491px; top:8px; width:80px; height:22px; ">
  625. <caption>신규입력</caption>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. fSetNewReq();
  629. ]]>
  630. </script>
  631. </button>
  632. <output id="output1" style="left:9px; top:700px; width:25px; height:19px; background-color:#ff0000; "/>
  633. <caption id="caption2" style="left:39px; top:702px; width:200px; height:18px; font-size:9pt; ">접근제한부서(사유입력 필수)</caption>
  634. </case>
  635. <case id="readexe">
  636. <datagrid id="grd_readpatlist" nodeset="/root/main/readappinfo/detail/apppatlist/apppatinfo" caption="등록번호^성명^진료과^처리^처리내용^열람" colsep="^" colwidth="100, 100, 100, 43, 168, 37" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:6px; top:6px; width:591px; height:713px; ">
  637. <col ref="pid" style="text-align:left; "/>
  638. <col ref="pnm" style="text-align:center; "/>
  639. <col ref="orddeptnm" visibility="hidden" style="text-align:center; "/>
  640. <col disabled="true" ref="acptstatus" type="combo" visibility="hidden" style="text-align:center; ">
  641. <choices>
  642. <item>
  643. <label>전체</label>
  644. <value>-</value>
  645. </item>
  646. <item>
  647. <label>신청</label>
  648. <value>01</value>
  649. </item>
  650. <item>
  651. <label>승인</label>
  652. <value>02</value>
  653. </item>
  654. <item>
  655. <label>부분승인</label>
  656. <value>03</value>
  657. </item>
  658. <item>
  659. <label>불가</label>
  660. <value>04</value>
  661. </item>
  662. <item>
  663. <label>보류</label>
  664. <value>05</value>
  665. </item>
  666. </choices>
  667. </col>
  668. <col ref="acptcontents" visibility="hidden"/>
  669. <col ref="search" style="cursor:hand; "/>
  670. <script type="javascript" ev:event="onclick">
  671. <![CDATA[
  672. if ( grd_readpatlist.isCell(event.target) && grd_readpatlist.col == grd_readpatlist.colRef("search") )
  673. fOpenSMMRI00400();
  674. ]]>
  675. </script>
  676. </datagrid>
  677. </case>
  678. <case id="readdetail">
  679. <datagrid id="grd_readdpatlist" nodeset="/root/main/readappinfo/detail/apppatlist/apppatinfo" caption="등록번호^성명^진료과^처리^처리내용^열람" colsep="^" colwidth="100, 100, 100, 43, 168, 37" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:6px; top:1px; width:591px; height:713px; ">
  680. <col ref="pid" style="text-align:center; "/>
  681. <col ref="pnm" style="text-align:center; "/>
  682. <col ref="orddeptnm" style="text-align:center; "/>
  683. <col disabled="true" ref="acptstatus" type="combo" style="text-align:center; ">
  684. <choices>
  685. <item>
  686. <label>전체</label>
  687. <value>-</value>
  688. </item>
  689. <item>
  690. <label>신청</label>
  691. <value>01</value>
  692. </item>
  693. <item>
  694. <label>승인</label>
  695. <value>02</value>
  696. </item>
  697. <item>
  698. <label>부분승인</label>
  699. <value>03</value>
  700. </item>
  701. <item>
  702. <label>불가</label>
  703. <value>04</value>
  704. </item>
  705. <item>
  706. <label>보류</label>
  707. <value>05</value>
  708. </item>
  709. </choices>
  710. </col>
  711. <col ref="acptcontents"/>
  712. <col ref="search" style="cursor:hand; "/>
  713. <script type="javascript" ev:event="onclick">
  714. <![CDATA[
  715. if ( grd_readpatlist.isCell(event.target) && grd_readpatlist.col == grd_readpatlist.colRef("search") )
  716. fOpenSMMRI00400();
  717. ]]>
  718. </script>
  719. </datagrid>
  720. </case>
  721. </switch>
  722. <switch id="switch2" class="sw_no_border" style="left:248px; top:80px; width:307px; height:25px; ">
  723. <case id="appdd" selected="true">
  724. <caption id="caption4" class="search_name" style="left:3px; top:2px; width:93px; height:17px; ">신 청 일 :</caption>
  725. <caption id="caption5" style="left:198px; top:2px; width:15px; height:20px; text-align:center; ">~</caption>
  726. <input id="input18" ref="/root/send/cond/apptodd" class="input_s_essential" inputtype="date" style="left:211px; top:2px; width:95px; height:19px; "/>
  727. <input id="ipt_formrecdtfr" ref="/root/send/cond/appfromdd" class="input_s_essential" inputtype="date" style="left:103px; top:2px; width:95px; height:19px; "/>
  728. </case>
  729. <case id="appreaddd">
  730. <caption id="caption22" class="search_name" style="left:3px; top:2px; width:99px; height:17px; ">열람희망일 :</caption>
  731. <caption id="caption23" style="left:194px; top:2px; width:20px; height:20px; text-align:center; ">~</caption>
  732. <input id="input2" ref="/root/send/cond/appreadtodd" class="input_s_essential" inputtype="date" style="left:211px; top:2px; width:95px; height:19px; "/>
  733. <input id="input3" ref="/root/send/cond/appreadfromdd" class="input_s_essential" inputtype="date" style="left:103px; top:2px; width:95px; height:19px; "/>
  734. </case>
  735. </switch>
  736. <datagrid id="grd_pid" nodeset="/root/excel/patinfo" visibility="hidden" caption="pid^pnm" colsep="^" colwidth="100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:25px; top:210px; width:240px; height:150px; ">
  737. <col ref="pid"/>
  738. <col ref="pnm"/>
  739. </datagrid>
  740. <line id="line1" class="line_1" style="x1:7px; y1:118px; x2:589px; y2:118px; "/>
  741. </xhtml:body>
  742. </xhtml:html>