SPPMI03000_외출외박확인.xrw 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMI03000_외출외박확인.xrw
  4. * 설 명 : 외출외박확인
  5. * 설 계 자 : 홍영표
  6. * 작 성 자 : 홍영표
  7. * 작 성 일 : 2007.08.22
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>외출외박확인</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <send>
  19. <srchcond1>3</srchcond1>
  20. <pid/>
  21. <s_goso>
  22. <goso_status/>
  23. </s_goso>
  24. <sess_posinstcd>012</sess_posinstcd>
  25. <gootdd/>
  26. <wardcd/>
  27. <formcd/>
  28. </send>
  29. <main>
  30. <goso>
  31. <goso_status/>
  32. <goso_pid/>
  33. <goso_indd/>
  34. <goso_cretno/>
  35. <goso_seqno/>
  36. <goso_instcd/>
  37. <goso_histstat/>
  38. <goso_acptflagcd/>
  39. <goso_appdd/>
  40. <goso_apptm/>
  41. <goso_appid/>
  42. <goso_pamacptdd/>
  43. <goso_pamacpttm/>
  44. <goso_pamacptid/>
  45. <goso_orddeptcd/>
  46. <goso_atdoctid/>
  47. <goso_wardcd/>
  48. <goso_roomcd/>
  49. <goso_gootdd/>
  50. <goso_goottm/>
  51. <goso_goottmtm/>
  52. <goso_goottmmin/>
  53. <goso_rtndd/>
  54. <goso_rtntm/>
  55. <goso_rtntmtm/>
  56. <goso_rtntmmin/>
  57. <goso_orgrtndd/>
  58. <goso_orgrtntm/>
  59. <goso_orgrtnacptid/>
  60. <goso_rtncnfmyn/>
  61. <goso_tel1/>
  62. <goso_tel2/>
  63. <goso_gootresn/>
  64. <goso_nonaprvresn/>
  65. <goso_rem/>
  66. <goso_fstrgstrid/>
  67. <goso_fstrgstdt/>
  68. <goso_lastupdtrid/>
  69. <goso_lastupdtdt/>
  70. <goso_hngnm/>
  71. <goso_sex/>
  72. <goso_age/>
  73. <goso_insukind/>
  74. </goso>
  75. <gosolist>
  76. <goso_pid/>
  77. <goso_indd/>
  78. <goso_cretno/>
  79. <goso_seqno/>
  80. <goso_instcd/>
  81. <goso_histstat/>
  82. <goso_acptflagcd/>
  83. <goso_appdd/>
  84. <goso_apptm/>
  85. <goso_appid/>
  86. <goso_pamacptdd/>
  87. <goso_pamacpttm/>
  88. <goso_pamacptid/>
  89. <goso_orddeptcd/>
  90. <goso_atdoctid/>
  91. <goso_wardcd/>
  92. <goso_roomcd/>
  93. <goso_gootdd/>
  94. <goso_goottm/>
  95. <goso_goottmtm/>
  96. <goso_goottmmin/>
  97. <goso_rtndd/>
  98. <goso_rtntm/>
  99. <goso_rtntmtm/>
  100. <goso_rtntmmin/>
  101. <goso_orgrtndd/>
  102. <goso_orgrtntm/>
  103. <goso_orgrtnacptid/>
  104. <goso_rtncnfmyn/>
  105. <goso_tel1/>
  106. <goso_tel2/>
  107. <goso_gootresn/>
  108. <goso_nonaprvresn/>
  109. <goso_rem/>
  110. <goso_fstrgstrid/>
  111. <goso_fstrgstdt/>
  112. <goso_lastupdtrid/>
  113. <goso_lastupdtdt/>
  114. <goso_hngnm/>
  115. <goso_sex/>
  116. <goso_age/>
  117. </gosolist>
  118. <ocrinfo/>
  119. </main>
  120. <hidden>
  121. <rcv>
  122. <goso/>
  123. </rcv>
  124. <original>
  125. <goso/>
  126. </original>
  127. <flag>
  128. <rcv_flag>
  129. <goso_count/>
  130. </rcv_flag>
  131. </flag>
  132. <temp>
  133. </temp>
  134. <init>
  135. <disccd>
  136. <cd/>
  137. <nm/>
  138. </disccd>
  139. <insukind>
  140. <cd/>
  141. <nm/>
  142. </insukind>
  143. <suppkind>
  144. <cd/>
  145. <nm/>
  146. <up/>
  147. <io/>
  148. </suppkind>
  149. <orddeptcd>
  150. <cd/>
  151. <nm/>
  152. <deptengabbr2/>
  153. </orddeptcd>
  154. <orddrid>
  155. <cd/>
  156. <nm/>
  157. <dp/>
  158. <sp/>
  159. </orddrid>
  160. <wardcd>
  161. <cd/>
  162. <nm/>
  163. <of/>
  164. </wardcd>
  165. <roomcd>
  166. <cd/>
  167. <nm/>
  168. <wd/>
  169. <gr/>
  170. <ty/>
  171. </roomcd>
  172. <flag>
  173. <prestdd/>
  174. <mskindflag/>
  175. </flag>
  176. </init>
  177. <source/>
  178. <target/>
  179. </hidden>
  180. <init>
  181. <P0418list>
  182. <P0418>
  183. <cdnm/>
  184. <cdid/>
  185. </P0418>
  186. </P0418list>
  187. </init>
  188. </root>
  189. </instance>
  190. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  191. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  192. <submission id="TRPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
  193. <submission id="TXPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
  194. <submission id="TRPMI01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ocrinfo"/>
  195. <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/atadocrdata" resultref="/root/hidden/insocrtag"/>
  196. </model>
  197. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  201. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  202. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  203. <script type="javascript" ev:event="xforms-ready">
  204. <![CDATA[
  205. zbcfGetCodeList(new Array("P0418"), new Array("/root/init/P0418list"));
  206. submit("TRPMI00106");
  207. model.setValue("/root/send/gootdd" ,getCurrentDate());
  208. ipt_gootdd.refresh();
  209. var spid = model.getValue("/root/hidden/target/pid");
  210. if (spid != null && spid != "") {
  211. model.setValue("/root/send/pid",model.getValue("/root/hidden/target/pid"));
  212. fQuery();
  213. }else {
  214. // 상단정보체크 2007.10.20 간호요청
  215. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  216. if(paminfo.length > 0) {//원무 정보(기본 정보)가 있는 경우
  217. model.removenode("/root/main/paminfo");
  218. model.makeNode("/root/main/paminfo");
  219. setCSVToNode("/root/main/paminfo", paminfo);
  220. var pid = model.getValue("/root/main/paminfo/list/pid");
  221. model.setValue("/root/send/pid",pid);
  222. model.setValue("/root/send/wardcd",model.getValue("/root/main/paminfo/list/wardcd"));
  223. fQuery();
  224. }else {
  225. //model.setValue("/root/send/wardcd" ,getUserInfo("dutplcecd")); // 사용자(접속자)의 병동코드를 가져온다.
  226. fQuery();
  227. }
  228. }
  229. if (getUserInfo("dutplceinstcd") != "031") {
  230. button1.visible = true;
  231. }
  232. ]]>
  233. </script>
  234. <script type="javascript">
  235. <![CDATA[
  236. // 외출외박환자리스트 조회
  237. function fQuery(){
  238. if (submit("TRPMI01101","false") == true){
  239. model.resetInstanceNode("/root/main");
  240. copyNodesetType("/root/hidden/original/goso","/root/hidden/rcv/goso","replace");
  241. copyNodesetType("/root/main/gosolist","/root/hidden/rcv/goso[goso_acptflagcd != null]","replace");
  242. grd_gootspotlist.rebuild();
  243. model.refresh();
  244. }
  245. }
  246. // 외출외박 확인 등록,취소
  247. function fChangeSave(arg1){
  248. var goso_flag = null;
  249. goso_flag = arg1;
  250. model.removeNodeset("/root/send/s_goso/goso");
  251. if (goso_flag == 'C'){ // 확인등록 Routin
  252. // 간호귀원확인후에는 수정을 못하도록 처리한다.
  253. // var srtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
  254. // if ( srtncnfmyn == 'Y'){
  255. // messageBox("귀원확인처리된 데이터이므로 수정할수","I004");
  256. // return;
  257. // }
  258. // 필수입력항목체크
  259. var sValCheck = fValCheck();
  260. if (sValCheck != 'Y') {
  261. messageBox(sValCheck,"I004");
  262. return;
  263. }
  264. model.setValue("/root/main/goso/goso_status",goso_flag);
  265. copyNodeType("/root/send/s_goso", "/root/main/goso", "replace");
  266. } else {
  267. messageBox("변경된 내역이","I004");
  268. return;
  269. }
  270. if (model.getValue("/root/main/goso/goso_rtncnfmyn") != 'Y'){
  271. if (messageBox("귀원확인여부가 체크되지 않았습니다. 수정하시겠습니까?", "Q") == "6") {
  272. return;
  273. }
  274. }
  275. if ( goso_flag == 'C' ) {
  276. submit("TXPMI01101");
  277. } else {
  278. messageBox("변경된 내역이","I004");
  279. }
  280. // alert("goso_flag:"+goso_flag);
  281. if (model.getValue("/root/hidden/flag/rcv_flag/goso_count") == '1'){
  282. fQuery();
  283. }
  284. }
  285. // 전과신청내역의 필수 입력항목 체크
  286. function fValCheck(){
  287. var rtn = "Y";
  288. var goso_pid = model.getValue("/root/main/goso/goso_pid");
  289. var goso_indd = model.getValue("/root/main/goso/goso_indd");
  290. var goso_cretno = model.getValue("/root/main/goso/goso_cretno");
  291. var goso_histstat = model.getValue("/root/main/goso/goso_histstat");
  292. var goso_acptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
  293. var goso_appdd = model.getValue("/root/main/goso/goso_appdd");
  294. var goso_apptm = model.getValue("/root/main/goso/goso_apptm");
  295. var goso_gootdd = model.getValue("/root/main/goso/goso_gootdd");
  296. var goso_goottmtm = model.getValue("/root/main/goso/goso_goottmtm");
  297. var goso_goottmmin = model.getValue("/root/main/goso/goso_goottmmin"); // 외출일시의 분(temp)
  298. var goso_rtndd = model.getValue("/root/main/goso/goso_rtndd");
  299. var goso_rtntmtm = model.getValue("/root/main/goso/goso_rtntmtm");
  300. var goso_rtntmmin = model.getValue("/root/main/goso/goso_rtntmmin"); // 귀원일시의 분(temp)
  301. var goso_orgrtndd = model.getValue("/root/main/goso/goso_orgrtndd");
  302. var goso_orgrtntm = model.getValue("/root/main/goso/goso_orgrtntm");
  303. var goso_nonaprvresn = model.getValue("/root/main/goso/goso_nonaprvresn");
  304. var goso_rtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
  305. if (goso_pid == null || goso_pid == ""){
  306. rtn = "환자등록번호가";
  307. } else if (goso_indd == null || goso_indd == ""){
  308. rtn = "입원일자가";
  309. } else if (goso_cretno == null || goso_cretno == ""){
  310. rtn = "입원등록키가";
  311. } else if (goso_histstat == null || goso_histstat == ""){
  312. rtn = "상태값이";
  313. } else if (goso_acptflagcd == null || goso_acptflagcd == ""){
  314. rtn = "접수상태가";
  315. } else if (goso_appdd == null || goso_appdd == ""){
  316. rtn = "신청일자가";
  317. } else if (goso_apptm == null || goso_apptm == ""){
  318. rtn = "신청시간이";
  319. } else if (goso_gootdd == null || goso_gootdd == ""){
  320. rtn = "외출일자가";
  321. } else if (goso_goottmtm == null || goso_goottmtm == ""){
  322. rtn = "외출시간중 시가";
  323. } else if (goso_goottmmin == null || goso_goottmmin == ""){
  324. rtn = "외출시간중 분이";
  325. } else if (goso_rtndd == null || goso_rtndd == ""){
  326. rtn = "귀원일자가";
  327. } else if (goso_rtntmtm == null || goso_rtntmtm == ""){
  328. rtn = "귀원시간중 시가";
  329. } else if (goso_rtntmmin == null || goso_rtntmmin == ""){
  330. rtn = "귀원시간중 분이";
  331. }else if (model.getValue("/root/main/goso/goso_rtncnfmyn") == 'Y') {
  332. if (goso_orgrtndd == null || goso_orgrtndd == ""){
  333. rtn = "실제귀원일자가";
  334. } else if (goso_orgrtntm == null || goso_orgrtntm == ""){
  335. rtn = "실제귀원시간이";
  336. }
  337. } else if (goso_rtncnfmyn == null || goso_rtncnfmyn == ""){
  338. rtn = "귀원확인여부가";
  339. }
  340. if (goso_acptflagcd == '1' ){
  341. rtn = "승인여부가";
  342. }else if (goso_acptflagcd == '3' ){
  343. rtn = "불승인 건은 확인처리할수";
  344. }
  345. if (rtn == 'Y'){ // 외출시간이나 귀원시간에서 시와 분으로 나누어진것을 더해서 데이터 저장을 한다.
  346. model.setValue("/root/main/goso/goso_goottm",goso_goottmtm+goso_goottmmin);
  347. model.setValue("/root/main/goso/goso_rtntm",goso_rtntmtm+goso_rtntmmin);
  348. }
  349. return rtn;
  350. }
  351. function fOCRSave() {
  352. // 파라미터 세팅
  353. var ocrtagno = model.getValue("/root/main/ocrinfo/ocrtag");
  354. var pid = model.getValue("/root/main/goso/goso_pid");
  355. var orddd = model.getValue("/root/main/goso/goso_indd");
  356. var cretno = model.getValue("/root/main/goso/goso_cretno");
  357. var ordtype = "I";
  358. var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
  359. var orddrid = model.getValue("/root/main/goso/goso_atdoctid");
  360. var formcd = model.getValue("/root/main/ocrinfo/formcd");
  361. var formfromdt = model.getValue("/root/main/ocrinfo/formfromdt");
  362. var pagecnt = "1";
  363. if(!fSaveOCRIF(ocrtagno, pid, orddd, cretno, ordtype, orddeptcd, orddrid, formcd, formfromdt, "", "", pagecnt)){
  364. messageBox("통합기록 연동중 오류가 발생하였습니다. ","C999");
  365. return false;
  366. }
  367. }
  368. ]]>
  369. </script>
  370. </xhtml:head>
  371. <xhtml:body pagewidth="720" pageheight="610" guideline="1,899;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  372. <group id="group1" style="left:0px; top:0px; width:700px; height:13px; ">
  373. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">외출외박확인</caption>
  374. </group>
  375. <group id="group3" style="left:0px; top:13px; width:700px; height:542px; ">
  376. <group id="group2" style="left:0px; top:5px; width:700px; height:35px; ">
  377. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:700px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  378. <button id="btn_srch" class="btn1_letter2" navindex="15" style="left:630px; top:7px; width:56px; height:22px; ">
  379. <caption>조회</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. fQuery();
  383. ]]>
  384. </script>
  385. </button>
  386. <line id="line2" class="line_4" style="x1:615px; y1:7px; x2:615px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  387. <caption id="caption50" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">조회구분 :</caption>
  388. <select1 id="cmb_srchcond1" ref="/root/send/srchcond1" class="combo_search" appearance="minimal" style="left:304px; top:8px; width:90px; height:19px; ">
  389. <choices>
  390. <item>
  391. <label>전체</label>
  392. <value>3</value>
  393. </item>
  394. <item>
  395. <label>원무승인전</label>
  396. <value>4</value>
  397. </item>
  398. <item>
  399. <label>귀원전</label>
  400. <value>5</value>
  401. </item>
  402. </choices>
  403. <script type="javascript" ev:event="xforms-select">
  404. <![CDATA[
  405. var ipatrefflag = model.getValue("/root/send/srchcond1");
  406. if (ipatrefflag == '3'||ipatrefflag == '4'){
  407. btn_srch.dispatch("DOMActivate");
  408. }
  409. ]]>
  410. </script>
  411. </select1>
  412. <caption id="caption25" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">조회일자 :</caption>
  413. <input id="ipt_gootdd" ref="/root/send/gootdd" navindex="14" inputtype="date" appearance="input" style="left:105px; top:8px; width:100px; height:19px; ">
  414. <script type="javascript" ev:event="onkeypress">
  415. <![CDATA[
  416. inputEnterKey("btn_srch", "DOMActivate");
  417. ]]>
  418. </script>
  419. </input>
  420. <caption id="caption20" class="search_name" style="left:404px; top:8px; width:62px; height:17px; ">병동 :</caption>
  421. <select1 id="combo1" ref="/root/send/wardcd" appearance="minimal" style="left:471px; top:8px; width:134px; height:19px; ">
  422. <choices>
  423. <itemset nodeset="/root/hidden/init/wardcd">
  424. <label ref="nm"/>
  425. <value ref="cd"/>
  426. </itemset>
  427. </choices>
  428. </select1>
  429. </group>
  430. <caption id="caption2" class="tit_2" style="left:5px; top:321px; width:150px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박내역</caption>
  431. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:700px; y2:65px; "/>
  432. <datagrid id="grd_gootspotlist" nodeset="/root/main/gosolist" caption="상태^환자번호^환자성명^병실^외출일자^외출시간^귀원일자^귀원시간^실귀원일자^실귀원시간^귀원확인여부^외출사유^연락처1^연락처2^진료과^전문의^병동^병실^보험유형^승인의사^원무승인자^실귀원확인자^불승인사유^비고^최초접수자^최초접수일시^최종수정담당자^최종수정일시" colsep="^" colwidth="53, 70, 80, 84, 100, 60, 100, 60, 100, 70, 80, 100, 108, 100, 88, 80, 100, 100, 80, 100, 100, 100, 100, 100, 90, 115, 90, 115" dataheight="23" defaultrows="0" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="12" style="left:0px; top:70px; width:700px; height:241px; ">
  433. <col disabled="true" ref="goso_acptflagcd" type="combo">
  434. <choices>
  435. <item>
  436. <label>신청</label>
  437. <value>1</value>
  438. </item>
  439. <item>
  440. <label>승인</label>
  441. <value>2</value>
  442. </item>
  443. <item>
  444. <label>불승인</label>
  445. <value>3</value>
  446. </item>
  447. </choices>
  448. </col>
  449. <col ref="goso_pid"/>
  450. <col ref="goso_hngnm"/>
  451. <col ref="goso_roomcd"/>
  452. <col ref="goso_gootdd" format="yyyy-mm-dd" style="text-align:center; "/>
  453. <col ref="goso_goottm" format="hh:nn" style="text-align:center; "/>
  454. <col ref="goso_rtndd" format="yyyy-mm-dd" style="text-align:center; "/>
  455. <col ref="goso_rtntm" format="hh:nn" style="text-align:center; "/>
  456. <col ref="goso_orgrtndd" format="yyyy-mm-dd"/>
  457. <col ref="goso_orgrtntm" format="hh:nn"/>
  458. <col ref="goso_rtncnfmyn"/>
  459. <col ref="goso_gootresn"/>
  460. <col ref="goso_tel1"/>
  461. <col ref="goso_tel2"/>
  462. <col ref="goso_orddeptcd"/>
  463. <col ref="goso_atdoctid"/>
  464. <col disabled="true" ref="goso_wardcd" type="combo">
  465. <choices>
  466. <itemset nodeset="/root/hidden/init/wardcd">
  467. <label ref="nm"/>
  468. <value ref="cd"/>
  469. </itemset>
  470. </choices>
  471. </col>
  472. <col disabled="true" ref="goso_roomcd" type="combo">
  473. <choices>
  474. <itemset nodeset="/root/hidden/init/roomcd">
  475. <label ref="nm"/>
  476. <value ref="cd"/>
  477. </itemset>
  478. </choices>
  479. </col>
  480. <col disabled="true" ref="goso_insukind" type="combo">
  481. <choices>
  482. <itemset nodeset="/root/hidden/init/insukind">
  483. <label ref="nm"/>
  484. <value ref="cd"/>
  485. </itemset>
  486. </choices>
  487. </col>
  488. <col ref="goso_appid"/>
  489. <col ref="goso_pamacptid"/>
  490. <col ref="goso_orgrtnacptid"/>
  491. <col ref="goso_nonaprvresn"/>
  492. <col ref="goso_rem"/>
  493. <col ref="goso_fstrgstrid"/>
  494. <col ref="goso_fstrgstdt"/>
  495. <col ref="goso_lastupdtrid"/>
  496. <col ref="goso_lastupdtdt"/>
  497. <script type="javascript" ev:event="onclick">
  498. <![CDATA[
  499. if( grd_gootspotlist.isCell(event.target) && grd_gootspotlist.row >= grd_gootspotlist.fixedRows ){
  500. curruntrow = grd_gootspotlist.row;
  501. if(curruntrow < 1) return false; // 스크롤시 onclick 이벤트가 적용되므로
  502. else
  503. {
  504. // 각종환자정보 조회 ( 현재 선택된 재원내역 Row )
  505. copyNodeType("/root/main/goso","/root/main/gosolist[" + curruntrow + "]","replace");
  506. var srtncnfmyn = model.getValue("/root/main/goso/goso_rtncnfmyn");
  507. var sgoottm = model.getValue("/root/main/goso/goso_goottm");
  508. var srtntm = model.getValue("/root/main/goso/goso_rtntm");
  509. var sgoottmtm = sgoottm.substr(0,2);
  510. var sgoottmmin = sgoottm.substr(2,2);
  511. var srtntmtm = srtntm.substr(0,2);
  512. var srtntmmin = srtntm.substr(2,2);
  513. model.setValue("/root/main/goso/goso_goottmtm",sgoottmtm);
  514. model.setValue("/root/main/goso/goso_goottmmin",sgoottmmin);
  515. model.setValue("/root/main/goso/goso_rtntmtm",srtntmtm);
  516. model.setValue("/root/main/goso/goso_rtntmmin",srtntmmin);
  517. if (srtncnfmyn == "Y"){
  518. ipt_orgrtndd.disabled = true;
  519. ipt_orgrtntm.disabled = true;
  520. }else{
  521. ipt_orgrtndd.disabled = false;
  522. ipt_orgrtntm.disabled = false;
  523. }
  524. // 자보의 경우 보험유형 배경색 설정
  525. if (model.getValue("/root/main/goso/goso_insukind") == "31") {
  526. combo2.attribute("background-color") = "#ff99cc";
  527. } else {
  528. combo2.attribute("background-color") = "#ECEBEC";
  529. }
  530. combo2.refresh();
  531. model.refresh();
  532. }
  533. }
  534. ]]>
  535. </script>
  536. </datagrid>
  537. <caption id="caption9" class="tit_2" style="left:5px; top:50px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박확인</caption>
  538. <line id="line8" class="line_2" style="x1:1px; y1:464px; x2:697px; y2:464px; "/>
  539. <output id="opt_sex" ref="/root/main/goso/goso_sex" class="output_fix" style="left:520px; top:343px; width:37px; height:19px; text-align:center; "/>
  540. <line id="line9" class="line_2" style="x1:1px; y1:489px; x2:697px; y2:489px; "/>
  541. <select1 id="cmb_goottm" ref="/root/main/goso/goso_goottmtm" disabled="true" navindex="2" appearance="minimal" style="left:206px; top:392px; width:49px; height:19px; text-align:center; ">
  542. <choices>
  543. <item>
  544. <label>00</label>
  545. <value>00</value>
  546. </item>
  547. <item>
  548. <label>01</label>
  549. <value>01</value>
  550. </item>
  551. <item>
  552. <label>02</label>
  553. <value>02</value>
  554. </item>
  555. <item>
  556. <label>03</label>
  557. <value>03</value>
  558. </item>
  559. <item>
  560. <label>04</label>
  561. <value>04</value>
  562. </item>
  563. <item>
  564. <label>05</label>
  565. <value>05</value>
  566. </item>
  567. <item>
  568. <label>06</label>
  569. <value>06</value>
  570. </item>
  571. <item>
  572. <label>07</label>
  573. <value>07</value>
  574. </item>
  575. <item>
  576. <label>08</label>
  577. <value>08</value>
  578. </item>
  579. <item>
  580. <label>09</label>
  581. <value>09</value>
  582. </item>
  583. <item>
  584. <label>10</label>
  585. <value>10</value>
  586. </item>
  587. <item>
  588. <label>11</label>
  589. <value>11</value>
  590. </item>
  591. <item>
  592. <label>12</label>
  593. <value>12</value>
  594. </item>
  595. <item>
  596. <label>13</label>
  597. <value>13</value>
  598. </item>
  599. <item>
  600. <label>14</label>
  601. <value>14</value>
  602. </item>
  603. <item>
  604. <label>15</label>
  605. <value>15</value>
  606. </item>
  607. <item>
  608. <label>16</label>
  609. <value>16</value>
  610. </item>
  611. <item>
  612. <label>17</label>
  613. <value>17</value>
  614. </item>
  615. <item>
  616. <label>18</label>
  617. <value>18</value>
  618. </item>
  619. <item>
  620. <label>19</label>
  621. <value>19</value>
  622. </item>
  623. <item>
  624. <label>20</label>
  625. <value>20</value>
  626. </item>
  627. <item>
  628. <label>21</label>
  629. <value>21</value>
  630. </item>
  631. <item>
  632. <label>22</label>
  633. <value>22</value>
  634. </item>
  635. <item>
  636. <label>23</label>
  637. <value>23</value>
  638. </item>
  639. </choices>
  640. </select1>
  641. <input id="ipt_rem" ref="/root/main/goso/goso_rem" disabled="true" navindex="10" imemode="hangul" style="left:103px; top:467px; width:595px; height:19px; "/>
  642. <select1 id="cmb_rtntm" ref="/root/main/goso/goso_rtntmtm" disabled="true" navindex="5" appearance="minimal" style="left:206px; top:417px; width:49px; height:19px; text-align:center; ">
  643. <choices>
  644. <item>
  645. <label>00</label>
  646. <value>00</value>
  647. </item>
  648. <item>
  649. <label>01</label>
  650. <value>01</value>
  651. </item>
  652. <item>
  653. <label>02</label>
  654. <value>02</value>
  655. </item>
  656. <item>
  657. <label>03</label>
  658. <value>03</value>
  659. </item>
  660. <item>
  661. <label>04</label>
  662. <value>04</value>
  663. </item>
  664. <item>
  665. <label>05</label>
  666. <value>05</value>
  667. </item>
  668. <item>
  669. <label>06</label>
  670. <value>06</value>
  671. </item>
  672. <item>
  673. <label>07</label>
  674. <value>07</value>
  675. </item>
  676. <item>
  677. <label>08</label>
  678. <value>08</value>
  679. </item>
  680. <item>
  681. <label>09</label>
  682. <value>09</value>
  683. </item>
  684. <item>
  685. <label>10</label>
  686. <value>10</value>
  687. </item>
  688. <item>
  689. <label>11</label>
  690. <value>11</value>
  691. </item>
  692. <item>
  693. <label>12</label>
  694. <value>12</value>
  695. </item>
  696. <item>
  697. <label>13</label>
  698. <value>13</value>
  699. </item>
  700. <item>
  701. <label>14</label>
  702. <value>14</value>
  703. </item>
  704. <item>
  705. <label>15</label>
  706. <value>15</value>
  707. </item>
  708. <item>
  709. <label>16</label>
  710. <value>16</value>
  711. </item>
  712. <item>
  713. <label>17</label>
  714. <value>17</value>
  715. </item>
  716. <item>
  717. <label>18</label>
  718. <value>18</value>
  719. </item>
  720. <item>
  721. <label>19</label>
  722. <value>19</value>
  723. </item>
  724. <item>
  725. <label>20</label>
  726. <value>20</value>
  727. </item>
  728. <item>
  729. <label>21</label>
  730. <value>21</value>
  731. </item>
  732. <item>
  733. <label>22</label>
  734. <value>22</value>
  735. </item>
  736. <item>
  737. <label>23</label>
  738. <value>23</value>
  739. </item>
  740. </choices>
  741. </select1>
  742. <select1 id="cmb_rtntmmin" ref="/root/main/goso/goso_rtntmmin" disabled="true" navindex="6" appearance="minimal" style="left:276px; top:417px; width:49px; height:19px; text-align:center; ">
  743. <choices>
  744. <item>
  745. <label>00</label>
  746. <value>00</value>
  747. </item>
  748. <item>
  749. <label>30</label>
  750. <value>30</value>
  751. </item>
  752. </choices>
  753. </select1>
  754. <line id="line10" class="line_2" style="x1:1px; y1:514px; x2:697px; y2:514px; "/>
  755. <input id="ipt_rtndd" ref="/root/main/goso/goso_rtndd" disabled="true" navindex="4" inputtype="date" style="left:103px; top:417px; width:100px; height:19px; text-align:center; ">
  756. <script type="javascript" ev:event="xforms-value-changed">
  757. <![CDATA[
  758. if( ipt_rtndd.value < getCurrentDate() || ipt_rtndd.value < ipt_gootdd.value){
  759. messageBox("오늘일자나 외출일자보다 작을수 ", "I004");
  760. ipt_rtndd.value = ipt_rtndd.attribute("_value");
  761. }
  762. ]]>
  763. </script>
  764. <script type="javascript" ev:event="onbuttonclick">
  765. <![CDATA[
  766. ipt_rtndd.attribute("_value") = ipt_rtndd.value;
  767. ]]>
  768. </script>
  769. </input>
  770. <input id="ipt_orgrtntm" ref="/root/main/goso/goso_orgrtntm" maxlength="4" format="hh:nn" style="left:205px; top:517px; width:50px; height:19px; text-align:center; "/>
  771. <bool id="ipt_rtncnfmyn" navindex="8" checkvalue="Y,N" appearance="bool" ref="/root/main/goso/goso_rtncnfmyn" style="left:520px; top:517px; width:25px; height:19px; text-align:center; ">
  772. <script type="javascript" ev:event="DOMFocusIn">
  773. <![CDATA[
  774. ipt_rtncnfmyn.attribute("_value") = ipt_rtncnfmyn.value;
  775. ]]>
  776. </script>
  777. <script type="javascript" ev:event="xforms-value-changed">
  778. <![CDATA[
  779. var sValue = ipt_rtncnfmyn.value;
  780. if (sValue == "N"){
  781. var sOrgrtndd = model.getValue("/root/main/goso/goso_orgrtndd");
  782. var sCurrentDate = getCurrentDate();
  783. if (sOrgrtndd == sCurrentDate){
  784. model.setValue("/root/main/goso/goso_orgrtndd","");
  785. model.setValue("/root/main/goso/goso_orgrtntm","");
  786. ipt_orgrtndd.disabled = false;
  787. ipt_orgrtntm.disabled = false;
  788. model.refresh();
  789. }else{
  790. ipt_rtncnfmyn.value = ipt_rtncnfmyn.attribute("_value");
  791. messageBox("당일이 아니면 취소할수","I004");
  792. }
  793. }else if (sValue == "Y"){
  794. var sAcptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
  795. if (sAcptflagcd != "2") {
  796. ipt_rtncnfmyn.value = ipt_rtncnfmyn.attribute("_value");
  797. messageBox("승인상태가 아니므로 귀원확인 할수","I004");
  798. }
  799. if (model.getValue("/root/main/goso/goso_orgrtndd") == "") {
  800. model.setValue("/root/main/goso/goso_orgrtndd",getCurrentDate());
  801. }
  802. if (model.getValue("/root/main/goso/goso_orgrtntm") == "") {
  803. var sCurrentTime = getCurrentTime();
  804. model.setValue("/root/main/goso/goso_orgrtntm",sCurrentTime.substr(0,4));
  805. }
  806. }
  807. model.refresh();
  808. ]]>
  809. </script>
  810. </bool>
  811. <line id="line11" class="line_3" style="x1:0px; y1:539px; x2:697px; y2:539px; "/>
  812. <output id="opt_hngnm" ref="/root/main/goso/goso_hngnm" class="output_fix" style="left:309px; top:343px; width:105px; height:19px; text-align:center; "/>
  813. <input id="ipt_nonaprvresn" ref="/root/main/goso/goso_nonaprvresn" disabled="true" navindex="10" imemode="hangul" style="left:309px; top:492px; width:389px; height:19px; "/>
  814. <caption id="caption21" class="cell_1" style="left:0px; top:366px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  815. <caption id="caption1" class="cell_1" style="left:0px; top:416px; width:100px; height:23px; vertical-align:middle; ">귀원일시</caption>
  816. <caption id="caption10" class="cell_1" style="left:0px; top:466px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
  817. <caption id="caption22" class="cell_1" style="left:206px; top:366px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
  818. <caption id="caption11" style="left:258px; top:392px; width:15px; height:20px; ">시</caption>
  819. <output id="opt_pid" ref="/root/main/goso/goso_pid" class="output_fix" style="left:103px; top:343px; width:100px; height:19px; text-align:center; "/>
  820. <caption id="caption12" style="left:330px; top:392px; width:15px; height:20px; ">분</caption>
  821. <caption id="caption3" class="cell_1" style="left:0px; top:441px; width:100px; height:23px; vertical-align:middle; ">외출사유</caption>
  822. <select1 id="cmb_roomcd" ref="/root/main/goso/goso_roomcd" class="combo_default" disabled="true" appearance="minimal" style="left:620px; top:368px; width:78px; height:19px; ">
  823. <choices>
  824. <itemset nodeset="/root/hidden/init/roomcd">
  825. <label ref="nm"/>
  826. <value ref="cd"/>
  827. </itemset>
  828. </choices>
  829. </select1>
  830. <input id="ipt_tel1" ref="/root/main/goso/goso_tel1" disabled="true" navindex="7" style="left:520px; top:392px; width:178px; height:19px; "/>
  831. <caption id="caption4" class="cell_1" style="left:417px; top:391px; width:100px; height:23px; vertical-align:middle; ">연락처1</caption>
  832. <caption id="caption13" style="left:258px; top:417px; width:15px; height:20px; ">시</caption>
  833. <caption id="caption24" class="cell_1" style="left:417px; top:516px; width:100px; height:23px; vertical-align:middle; ">귀원확인여부</caption>
  834. <caption id="caption5" class="cell_1" style="left:0px; top:341px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
  835. <select1 id="cmb_goottmmin" ref="/root/main/goso/goso_goottmmin" disabled="true" navindex="3" appearance="minimal" style="left:276px; top:392px; width:49px; height:19px; text-align:center; ">
  836. <choices>
  837. <item>
  838. <label>00</label>
  839. <value>00</value>
  840. </item>
  841. <item>
  842. <label>30</label>
  843. <value>30</value>
  844. </item>
  845. </choices>
  846. </select1>
  847. <caption id="caption14" style="left:330px; top:417px; width:15px; height:20px; ">분</caption>
  848. <input id="ipt_tel2" ref="/root/main/goso/goso_tel2" disabled="true" navindex="8" style="left:520px; top:417px; width:178px; height:19px; "/>
  849. <select1 id="cmb_orddeptcd" ref="/root/main/goso/goso_orddeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:368px; width:100px; height:19px; ">
  850. <choices>
  851. <itemset nodeset="/root/hidden/init/orddeptcd">
  852. <label ref="nm"/>
  853. <value ref="cd"/>
  854. </itemset>
  855. </choices>
  856. </select1>
  857. <input id="input1" ref="/root/main/goso/goso_gootdd" disabled="true" navindex="1" inputtype="date" style="left:103px; top:392px; width:100px; height:19px; text-align:center; ">
  858. <script type="javascript" ev:event="xforms-value-changed">
  859. <![CDATA[
  860. if( ipt_gootdd.value < getCurrentDate() ){
  861. messageBox("오늘일자보다 작을수 ", "I004");
  862. ipt_gootdd.value = ipt_gootdd.attribute("_value");
  863. }
  864. ]]>
  865. </script>
  866. <script type="javascript" ev:event="onbuttonclick">
  867. <![CDATA[
  868. ipt_gootdd.attribute("_value") = ipt_gootdd.value;
  869. ]]>
  870. </script>
  871. </input>
  872. <caption id="caption15" class="cell_1" style="left:417px; top:416px; width:100px; height:23px; vertical-align:middle; ">연락처2</caption>
  873. <select1 id="cmb_gootresn" ref="/root/main/goso/goso_gootresn" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:442px; width:595px; height:19px; text-align:left; ">
  874. <choices>
  875. <itemset nodeset="/root/init/P0418list/P0418">
  876. <label ref="cdnm"/>
  877. <value ref="cdid"/>
  878. </itemset>
  879. </choices>
  880. </select1>
  881. <input id="ipt_orgrtndd" ref="/root/main/goso/goso_orgrtndd" navindex="4" inputtype="date" style="left:103px; top:517px; width:100px; height:19px; text-align:center; ">
  882. <script type="javascript" ev:event="xforms-value-changed">
  883. <![CDATA[
  884. if( ipt_orgrtndd.value > getCurrentDate() || ipt_orgrtndd.value < ipt_gootdd.value){
  885. messageBox("오늘일자보다 크거나 외출일자보다 작을수 ", "I004");
  886. ipt_orgrtndd.value = ipt_orgrtndd.attribute("_value");
  887. }
  888. ]]>
  889. </script>
  890. <script type="javascript" ev:event="onbuttonclick">
  891. <![CDATA[
  892. ipt_orgrtndd.attribute("_value") = ipt_orgrtndd.value;
  893. ]]>
  894. </script>
  895. </input>
  896. <line id="line3" class="line_2" style="x1:1px; y1:364px; x2:697px; y2:364px; "/>
  897. <caption id="caption7" class="cell_1" style="left:206px; top:341px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
  898. <select1 id="cmb_wardcd" ref="/root/main/goso/goso_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:520px; top:368px; width:98px; height:19px; ">
  899. <choices>
  900. <itemset nodeset="/root/hidden/init/wardcd">
  901. <label ref="nm"/>
  902. <value ref="cd"/>
  903. </itemset>
  904. </choices>
  905. </select1>
  906. <select1 id="cmb_acptflagcd" ref="/root/main/goso/goso_acptflagcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:492px; width:100px; height:19px; ">
  907. <choices>
  908. <item>
  909. <label>승인</label>
  910. <value>2</value>
  911. </item>
  912. <item>
  913. <label>불승인</label>
  914. <value>3</value>
  915. </item>
  916. </choices>
  917. <script type="javascript" ev:event="xforms-select">
  918. <![CDATA[
  919. var sacptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
  920. if (sacptflagcd == '2') {
  921. model.resetInstanceNode("/root/main/goso/goso_nonaprvresn");
  922. ipt_nonaprvresn.disabled = true;
  923. }else if (sacptflagcd == '3') {
  924. model.resetInstanceNode("/root/main/goso/goso_nonaprvresn");
  925. ipt_nonaprvresn.disabled = false;
  926. }
  927. ipt_nonaprvresn.refresh();
  928. ]]>
  929. </script>
  930. </select1>
  931. <caption id="caption16" class="cell_1" style="left:206px; top:491px; width:100px; height:23px; vertical-align:middle; ">불승인사유</caption>
  932. <output id="opt_age" ref="/root/main/goso/goso_age" class="output_fix" style="left:559px; top:343px; width:37px; height:19px; text-align:center; "/>
  933. <caption id="caption8" class="cell_1" style="left:417px; top:341px; width:100px; height:23px; vertical-align:middle; ">성별/나이/보험</caption>
  934. <line id="line4" class="line_2" style="x1:1px; y1:389px; x2:697px; y2:389px; "/>
  935. <caption id="caption17" class="cell_1" style="left:0px; top:491px; width:100px; height:23px; vertical-align:middle; ">승인여부</caption>
  936. <select1 id="cmb_atdoctid" ref="/root/main/goso/goso_atdoctid" class="combo_default" disabled="true" appearance="minimal" style="left:309px; top:368px; width:105px; height:19px; ">
  937. <choices>
  938. <itemset nodeset="/root/hidden/init/orddrid">
  939. <label ref="nm"/>
  940. <value ref="cd"/>
  941. </itemset>
  942. </choices>
  943. </select1>
  944. <caption id="caption29" class="cell_1" style="left:417px; top:366px; width:100px; height:23px; vertical-align:middle; ">병동/병실1</caption>
  945. <line id="line5" class="line_2" style="x1:1px; y1:414px; x2:697px; y2:414px; "/>
  946. <caption id="caption18" class="cell_1" style="left:0px; top:391px; width:100px; height:23px; vertical-align:middle; ">외출일시</caption>
  947. <line id="line6" class="line_2" style="x1:1px; y1:439px; x2:697px; y2:439px; "/>
  948. <caption id="caption19" class="cell_1" style="left:0px; top:516px; width:100px; height:23px; vertical-align:middle; ">실제귀원일시</caption>
  949. <line id="line7" class="line_1" style="x1:0px; y1:336px; x2:700px; y2:336px; "/>
  950. <select1 id="combo2" ref="/root/main/goso/goso_insukind" disabled="false" appearance="minimal" style="left:598px; top:343px; width:100px; height:19px; text-align:center; background-color:#ECEBEC; ">
  951. <choices>
  952. <itemset nodeset="/root/hidden/init/insukind">
  953. <label ref="nm"/>
  954. <value ref="cd"/>
  955. </itemset>
  956. </choices>
  957. </select1>
  958. </group>
  959. <group id="group5" style="left:0px; top:555px; width:700px; height:27px; ">
  960. <button id="btn_exit" class="btn4_letter2" navindex="16" style="left:643px; top:3px; width:56px; height:22px; ">
  961. <caption>종료</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. window.close();
  965. ]]>
  966. </script>
  967. </button>
  968. <button id="btn_app" class="btn4_letter2" navindex="11" style="left:585px; top:3px; width:56px; height:22px; ">
  969. <caption>저장</caption>
  970. <script type="javascript" ev:event="DOMActivate">
  971. <![CDATA[
  972. fChangeSave("C"); // Confirm
  973. ]]>
  974. </script>
  975. </button>
  976. <button id="button1" class="btn3_letter5" visibility="hidden" style="left:486px; top:3px; width:92px; height:22px; ">
  977. <caption>신청서출력</caption>
  978. <script type="javascript" ev:event="DOMActivate">
  979. <![CDATA[
  980. var pid = model.getValue("/root/main/goso/goso_pid");
  981. if (isNull(pid)) {
  982. messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  983. return;
  984. }
  985. model.makeValue("/root/send/formcd", "1600018617"); // 외출외박신청서 1600018617
  986. // OCR 연동처리를 위한 정보 조회
  987. submit("TRPMI01103");
  988. var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
  989. if (isNull(ocrtag)) {
  990. messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
  991. return;
  992. }
  993. model.makeValue("/root/main/goso/ocrtag", ocrtag);
  994. model.makeValue("/root/main/goso/usernm", getUserName());
  995. model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
  996. var fromdd = model.getValue("/root/main/goso/goso_gootdd");
  997. var todd = model.getValue("/root/main/goso/goso_rtndd");
  998. model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
  999. var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
  1000. model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
  1001. model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
  1002. var resncd = model.getValue("/root/main/goso/goso_gootresn");
  1003. model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
  1004. // 외출외박 신청서
  1005. exeReportPreview("RPPMI03000","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1006. // 통합기록연동처리
  1007. fOCRSave();
  1008. ]]>
  1009. </script>
  1010. </button>
  1011. <button id="button2" class="btn3_letter9" style="left:344px; top:3px; width:140px; height:22px; ">
  1012. <caption>신청 및 동의서출력</caption>
  1013. <script type="javascript" ev:event="DOMActivate">
  1014. <![CDATA[
  1015. // var pid = model.getValue("/root/main/goso/goso_pid");
  1016. //
  1017. // if (isNull(pid)) {
  1018. // messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  1019. // return;
  1020. // }
  1021. //
  1022. // setParameter("SPPMB03500_formcd", "1100011237");
  1023. // setParameter("SPPMB03500_cnt", "1");
  1024. // setParameter("SPPMB03500_pid", pid);
  1025. // setParameter("SPPMB03500_orddd", model.getValue ( "/root/main/goso/goso_indd" ));
  1026. // setParameter("SPPMB03500_cretno", model.getValue ( "/root/main/goso/goso_cretno" ));
  1027. // setParameter("SPPMB03500_ordtype", "I");
  1028. // setParameter("SPPMB03500_orddrid", model.getValue ( "/root/main/goso/goso_atdoctid" ));
  1029. // setParameter("SPPMB03500_orddeptcd", model.getValue ( "/root/main/goso/goso_orddeptcd" ));
  1030. //
  1031. // var xpt = window.screenleft + 50;
  1032. // var ypt = window.screenTop + 50;
  1033. // var coord = getRelativeCoordinate ( xpt, ypt );
  1034. // var mon = coord[0];
  1035. // xpt = coord[1];
  1036. // ypt = coord[2];
  1037. //
  1038. // modal ( "SPPMB03500", mon, xpt, ypt, "SPPMB03500", "","", "", false );
  1039. //
  1040. // clearParameter("SPPMB03500_formcd");
  1041. // clearParameter("SPPMB03500_cnt");
  1042. // clearParameter("SPPMB03500_pid");
  1043. // clearParameter("SPPMB03500_orddd");
  1044. // clearParameter("SPPMB03500_cretno");
  1045. // clearParameter("SPPMB03500_ordtype");
  1046. // clearParameter("SPPMB03500_orddrid");
  1047. // clearParameter("SPPMB03500_orddeptcd");
  1048. // 동의서 -> 신청 및 동의서 통합
  1049. var pid = model.getValue("/root/main/goso/goso_pid");
  1050. if (isNull(pid)) {
  1051. messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  1052. return;
  1053. }
  1054. model.makeValue("/root/send/formcd", "1700019251");
  1055. // OCR 연동처리를 위한 정보 조회
  1056. submit("TRPMI01103");
  1057. var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
  1058. if (isNull(ocrtag)) {
  1059. messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
  1060. return;
  1061. }
  1062. model.makeValue("/root/main/goso/ocrtag", ocrtag);
  1063. model.makeValue("/root/main/goso/usernm", getUserName());
  1064. model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
  1065. var fromdd = model.getValue("/root/main/goso/goso_gootdd");
  1066. var todd = model.getValue("/root/main/goso/goso_rtndd");
  1067. model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
  1068. var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
  1069. model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
  1070. model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
  1071. var resncd = model.getValue("/root/main/goso/goso_gootresn");
  1072. model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
  1073. // 외출외박 신청 및 동의서
  1074. exeReportPreview("RPPMI03002","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1075. // 통합기록연동처리
  1076. fOCRSave();
  1077. ]]>
  1078. </script>
  1079. </button>
  1080. <button id="button3" class="btn3_letter7" visibility="hidden" style="left:5px; top:3px; width:116px; height:22px; ">
  1081. <caption>자보신청서출력</caption>
  1082. <script type="javascript" ev:event="DOMActivate">
  1083. <![CDATA[
  1084. var pid = model.getValue("/root/main/goso/goso_pid");
  1085. if (isNull(pid)) {
  1086. messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  1087. return;
  1088. }
  1089. if (model.getValue("/root/main/goso/goso_insukind") != "31") {
  1090. messageBox("자보신청서는 자보환자만 출력가능합니다.", "E000");
  1091. return;
  1092. }
  1093. model.makeValue("/root/send/formcd", "1600018617"); // 외출외박신청서 1600018617
  1094. // OCR 연동처리를 위한 정보 조회
  1095. submit("TRPMI01103");
  1096. var ocrtag = model.getValue("/root/main/ocrinfo/ocrtag");
  1097. if (isNull(ocrtag)) {
  1098. messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
  1099. return;
  1100. }
  1101. model.makeValue("/root/main/goso/ocrtag", ocrtag);
  1102. model.makeValue("/root/main/goso/usernm", getUserName());
  1103. model.makeValue("/root/main/goso/goso_logo", getLogoImageURL());
  1104. var fromdd = model.getValue("/root/main/goso/goso_gootdd");
  1105. var todd = model.getValue("/root/main/goso/goso_rtndd");
  1106. model.makeValue("/root/main/goso/goso_days", getDateInterval(fromdd,todd) + 1); // 양입법적용
  1107. var orddeptcd = model.getValue("/root/main/goso/goso_orddeptcd");
  1108. model.makeValue("/root/main/goso/goso_orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/nm"));
  1109. model.makeValue("/root/main/goso/goso_orddeptabbr", model.getValue("/root/hidden/init/orddeptcd[cd='" + orddeptcd + "']/deptengabbr2"));
  1110. var resncd = model.getValue("/root/main/goso/goso_gootresn");
  1111. model.makeValue("/root/main/goso/goso_gootresnnm", model.getValue("/root/init/P0418list/P0418[cdid='" + resncd + "']/cdnm"));
  1112. // 외출외박 신청서
  1113. exeReportPreview("RPPMI03000","XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1114. // 통합기록연동처리
  1115. fOCRSave();
  1116. ]]>
  1117. </script>
  1118. </button>
  1119. </group>
  1120. </xhtml:body>
  1121. </xhtml:html>