SPPMI01100_외출외박신청.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMI01100_외출외박신청.xrw
  4. * 설 명 : 외출외박신청
  5. * 설 계 자 : 홍영표
  6. * 작 성 자 : 홍영표
  7. * 작 성 일 : 2007.08.16
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>0</srchcond1>
  20. <pid/>
  21. <s_goso>
  22. <goso_status/>
  23. </s_goso>
  24. <sess_posinstcd>012</sess_posinstcd>
  25. <ioflag/>
  26. </send>
  27. <main>
  28. <goso>
  29. <goso_status/>
  30. <goso_pid/>
  31. <goso_indd/>
  32. <goso_cretno/>
  33. <goso_seqno/>
  34. <goso_instcd/>
  35. <goso_histstat/>
  36. <goso_acptflagcd/>
  37. <goso_appdd/>
  38. <goso_apptm/>
  39. <goso_appid/>
  40. <goso_pamacptdd/>
  41. <goso_pamacpttm/>
  42. <goso_pamacptid/>
  43. <goso_orddeptcd/>
  44. <goso_atdoctid/>
  45. <goso_wardcd/>
  46. <goso_roomcd/>
  47. <goso_gootdd/>
  48. <goso_goottm/>
  49. <goso_goottmtm/>
  50. <goso_goottmmin/>
  51. <goso_rtndd/>
  52. <goso_rtntm/>
  53. <goso_rtntmtm/>
  54. <goso_rtntmmin/>
  55. <goso_orgrtndd/>
  56. <goso_orgrtntm/>
  57. <goso_orgrtntmtm/>
  58. <goso_orgrtntmmin/>
  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_orddeptcd/>
  74. <goso_atdoctid/>
  75. <goso_wardcd/>
  76. <goso_roomcd/>
  77. <goso_rrgstno/>
  78. <goso_zipnm/>
  79. <goso_insukind/>
  80. <goso_atdoctidnm/>
  81. <goso_appidnm/>
  82. <goso_dschdclrtyn/>
  83. <goso_dschnotiyn/>
  84. </goso>
  85. <gosolist>
  86. <goso_pid/>
  87. <goso_indd/>
  88. <goso_cretno/>
  89. <goso_seqno/>
  90. <goso_instcd/>
  91. <goso_histstat/>
  92. <goso_acptflagcd/>
  93. <goso_appdd/>
  94. <goso_apptm/>
  95. <goso_appid/>
  96. <goso_pamacptdd/>
  97. <goso_pamacpttm/>
  98. <goso_pamacptid/>
  99. <goso_orddeptcd/>
  100. <goso_atdoctid/>
  101. <goso_wardcd/>
  102. <goso_roomcd/>
  103. <goso_gootdd/>
  104. <goso_goottm/>
  105. <goso_goottmtm/>
  106. <goso_goottmmin/>
  107. <goso_rtndd/>
  108. <goso_rtntm/>
  109. <goso_rtntmtm/>
  110. <goso_rtntmmin/>
  111. <goso_orgrtndd/>
  112. <goso_orgrtntm/>
  113. <goso_orgrtntmtm/>
  114. <goso_orgrtntmmin/>
  115. <goso_orgrtnacptid/>
  116. <goso_rtncnfmyn/>
  117. <goso_tel1/>
  118. <goso_tel2/>
  119. <goso_gootresn/>
  120. <goso_nonaprvresn/>
  121. <goso_rem/>
  122. <goso_fstrgstrid/>
  123. <goso_fstrgstdt/>
  124. <goso_lastupdtrid/>
  125. <goso_lastupdtdt/>
  126. <goso_hngnm/>
  127. <goso_sex/>
  128. <goso_age/>
  129. </gosolist>
  130. </main>
  131. <hidden>
  132. <rcv>
  133. <goso/>
  134. </rcv>
  135. <original>
  136. <goso/>
  137. </original>
  138. <flag>
  139. <rcv_flag>
  140. <goso_count/>
  141. </rcv_flag>
  142. </flag>
  143. <temp>
  144. </temp>
  145. <init>
  146. <disccd>
  147. <cd/>
  148. <nm/>
  149. </disccd>
  150. <insukind>
  151. <cd/>
  152. <nm/>
  153. </insukind>
  154. <suppkind>
  155. <cd/>
  156. <nm/>
  157. <up/>
  158. <io/>
  159. </suppkind>
  160. <orddeptcd>
  161. <cd/>
  162. <nm/>
  163. </orddeptcd>
  164. <orddrid>
  165. <cd/>
  166. <nm/>
  167. <dp/>
  168. <sp/>
  169. </orddrid>
  170. <wardcd>
  171. <cd/>
  172. <nm/>
  173. <of/>
  174. </wardcd>
  175. <roomcd>
  176. <cd/>
  177. <nm/>
  178. <wd/>
  179. <gr/>
  180. <ty/>
  181. </roomcd>
  182. <flag>
  183. <prestdd/>
  184. <mskindflag/>
  185. </flag>
  186. </init>
  187. <source/>
  188. <target/>
  189. </hidden>
  190. <init>
  191. <P0418list>
  192. <P0418>
  193. <cdnm/>
  194. <cdid/>
  195. </P0418>
  196. </P0418list>
  197. </init>
  198. </root>
  199. </instance>
  200. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  201. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  202. <submission id="TRPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
  203. <submission id="TXPMI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
  204. </model>
  205. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  206. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  207. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  208. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  209. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  210. <script type="javascript" ev:event="xforms-ready">
  211. <![CDATA[
  212. zbcfGetCodeList(new Array("P0418"), new Array("/root/init/P0418list"));
  213. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddeptcd[orddeptflag = 'D']"
  214. model.setValue("/root/send/ioflag","I");
  215. submit("TRPMI00106");
  216. var spid = model.getValue("/root/hidden/target/pid");
  217. if (!isNull(spid)) {
  218. model.setValue("/root/send/pid", model.getValue("/root/hidden/target/pid"));
  219. fInitSetting(true);
  220. fQuery();
  221. }else {
  222. fInitSetting(false);
  223. }
  224. ]]>
  225. </script>
  226. <script type="javascript">
  227. <![CDATA[
  228. // 초기값 셋팅
  229. function fInitSetting(arg1){
  230. //ipt_srchpid.visible = arg1;
  231. if(arg1 == false){
  232. model.setValue("/root/send/pid","");
  233. }
  234. group2.refresh();
  235. }
  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. // fDisabled();
  244. // 신청정보 작성시 필요한 항목의 Defalt값을 셋팅한다.
  245. var goso_flag = instance1.selectSingleNode("/root/hidden/original/goso");
  246. if ( goso_flag != null){
  247. copyNodesetType("/root/main/goso", "/root/hidden/original/goso","replace");
  248. model.setValue("/root/main/goso/goso_gootdd", getCurrentDate());
  249. model.setValue("/root/main/goso/goso_rtndd", getCurrentDate());
  250. model.setValue("/root/main/goso/goso_goottmtm", model.getValue("/root/main/goso/goso_goottm").substr(0,2));
  251. model.setValue("/root/main/goso/goso_goottmmin", model.getValue("/root/main/goso/goso_goottm").substr(2,2));
  252. model.setValue("/root/main/goso/goso_rtntmtm", model.getValue("/root/main/goso/goso_rtntm").substr(0,2));
  253. model.setValue("/root/main/goso/goso_rtntmmin", model.getValue("/root/main/goso/goso_rtntm").substr(2,2));
  254. model.setValue("/root/main/goso/goso_status", "I"); // 신청 Flag
  255. model.setValue("/root/main/goso/goso_acptflagcd", "1"); // 접수 Flag (신청)
  256. //2007.11.27 신준영 수정
  257. /*
  258. model.setValue("/root/main/goso/goso_pid",model.getValue("/root/hidden/original/goso/goso_pid"));
  259. model.setValue("/root/main/goso/goso_indd",model.getValue("/root/hidden/original/goso/goso_indd"));
  260. model.setValue("/root/main/goso/goso_cretno",model.getValue("/root/hidden/original/goso/goso_cretno"));
  261. model.setValue("/root/main/goso/goso_instcd",model.getValue("/root/hidden/original/goso/goso_instcd"));
  262. model.setValue("/root/main/goso/goso_histstat",model.getValue("/root/hidden/original/goso/goso_histstat"));
  263. model.setValue("/root/main/goso/goso_tel1",model.getValue("/root/hidden/original/goso/goso_tel1"));
  264. model.setValue("/root/main/goso/goso_tel2",model.getValue("/root/hidden/original/goso/goso_tel2"));
  265. model.setValue("/root/main/goso/goso_hngnm",model.getValue("/root/hidden/original/goso/goso_hngnm"));
  266. model.setValue("/root/main/goso/goso_sex",model.getValue("/root/hidden/original/goso/goso_sex"));
  267. model.setValue("/root/main/goso/goso_age",model.getValue("/root/hidden/original/goso/goso_age"));
  268. model.setValue("/root/main/goso/goso_orddeptcd",model.getValue("/root/hidden/original/goso/goso_orddeptcd"));
  269. model.setValue("/root/main/goso/goso_atdoctid",model.getValue("/root/hidden/original/goso/goso_atdoctid"));
  270. model.setValue("/root/main/goso/goso_wardcd",model.getValue("/root/hidden/original/goso/goso_wardcd"));
  271. model.setValue("/root/main/goso/goso_roomcd",model.getValue("/root/hidden/original/goso/goso_roomcd"));
  272. model.setValue("/root/main/goso/goso_status","I"); // 신청 Flag
  273. model.setValue("/root/main/goso/goso_acptflagcd","1"); // 접수 Flag (신청)
  274. model.setValue("/root/main/goso/goso_gootdd",getCurrentDate());
  275. model.setValue("/root/main/goso/goso_goottmmin","00");
  276. */
  277. }
  278. // 2008.09.19 - 퇴원예고, 퇴원통보가 나 있으면 신청 blocking - 최병진
  279. var sDschdclrtyn = model.getValue("/root/main/goso/goso_dschdclrtyn"); // 퇴원예고
  280. var sDschnotiyn = model.getValue("/root/main/goso/goso_dschnotiyn"); // 퇴원통보
  281. if (sDschdclrtyn == "Y") {
  282. btn_app.disabled = true;
  283. messageBox("퇴원예고 환자는 외출외박신청을 할 수", "I004");
  284. }
  285. model.refresh();
  286. }
  287. }
  288. // 외출외박 신청 등록,취소
  289. function fChangeSave(arg1){
  290. var goso_flag = null;
  291. goso_flag = arg1;
  292. model.removeNodeset("/root/send/s_goso/goso");
  293. if (goso_flag == 'I'){ // 신청등록 Routin
  294. // 이중신청 블럭킹
  295. var sDoubleCheck = fDoubleCheck();
  296. if (sDoubleCheck != -1) {
  297. messageBox("신청중인 내역이 있습니다. 이중신청할수","I004");
  298. return;
  299. }
  300. // 필수입력항목체크
  301. var sValCheck = fValCheck();
  302. if (sValCheck != 'Y') {
  303. messageBox(sValCheck,"I004");
  304. return;
  305. }
  306. model.setValue("/root/main/goso/goso_appdd",getCurrentDate());
  307. var CurrentTime = getCurrentTime();
  308. model.setValue("/root/main/goso/goso_apptm",CurrentTime.substr(0,4));
  309. model.setValue("/root/main/goso/goso_status",goso_flag);
  310. model.setValue("/root/main/goso/goso_orgrtndd", "");
  311. model.setValue("/root/main/goso/goso_orgrtntm", "");
  312. model.setValue("/root/main/goso/goso_orgrtnacptid", "");
  313. model.setValue("/root/main/goso/goso_rtncnfmyn", "");
  314. copyNodeType("/root/send/s_goso", "/root/main/goso", "replace");
  315. } else if (goso_flag == 'D'){ // 신청취소 루틴
  316. var checkRow = 0;
  317. var cnt = instance1.selectNodes("/root/main/gosolist").length;
  318. for(i=1; i<=cnt; i++) {
  319. var v_rowgubun = model.getValue("/root/main/gosolist["+ i + "]/goso_status");
  320. var v_acptflagcd = model.getValue("/root/main/gosolist["+ i + "]/goso_acptflagcd");
  321. if (v_rowgubun == 'D'){
  322. if (v_acptflagcd == '1'){
  323. checkRow = checkRow +1 ;
  324. copyNodeType("/root/send/s_goso", "/root/main/gosolist["+ i + "]", "replace");
  325. } else{
  326. messageBox("이미 처리된 데이터라 취소할수","I004");
  327. return;
  328. }
  329. }
  330. }
  331. if (checkRow < 1) {
  332. messageBox("선택된 데이터가","I004");
  333. return;
  334. }else if (checkRow > 1) {
  335. messageBox("멀티로 취소할수","I004");
  336. return;
  337. }
  338. } else {
  339. messageBox("변경된 내역이","I004");
  340. return;
  341. }
  342. if ( goso_flag == 'D' || goso_flag == 'I' ) {
  343. submit("TXPMI01101");
  344. } else {
  345. messageBox("변경된 내역이","I004");
  346. }
  347. // alert("goso_flag:"+goso_flag);
  348. if (model.getValue("/root/hidden/flag/rcv_flag/goso_count") == '1'){
  349. fQuery();
  350. }
  351. }
  352. // 진행중인 신청내역이 있는지 체크
  353. function fDoubleCheck(){
  354. var rtn = -1;
  355. rtn = grd_gootspotlist.findrow("1", 1, 2);
  356. return rtn;
  357. }
  358. // 전과신청내역의 필수 입력항목 체크
  359. function fValCheck(){
  360. var rtn = "Y";
  361. var goso_pid = model.getValue("/root/main/goso/goso_pid");
  362. var goso_indd = model.getValue("/root/main/goso/goso_indd");
  363. var goso_cretno = model.getValue("/root/main/goso/goso_cretno");
  364. var goso_histstat = model.getValue("/root/main/goso/goso_histstat");
  365. var goso_acptflagcd = model.getValue("/root/main/goso/goso_acptflagcd");
  366. var goso_gootdd = model.getValue("/root/main/goso/goso_gootdd");
  367. var goso_goottmtm = model.getValue("/root/main/goso/goso_goottmtm");
  368. var goso_goottmmin = model.getValue("/root/main/goso/goso_goottmmin"); // 외출일시의 분(temp)
  369. var goso_rtndd = model.getValue("/root/main/goso/goso_rtndd");
  370. var goso_rtntmtm = model.getValue("/root/main/goso/goso_rtntmtm");
  371. var goso_rtntmmin = model.getValue("/root/main/goso/goso_rtntmmin"); // 귀가일시의 분(temp)
  372. if (goso_pid == null || goso_pid == ""){
  373. rtn = "환자등록번호가";
  374. } else if (goso_indd == null || goso_indd == ""){
  375. rtn = "입원일자가";
  376. } else if (goso_cretno == null || goso_cretno == ""){
  377. rtn = "입원등록키가";
  378. } else if (goso_histstat == null || goso_histstat == ""){
  379. rtn = "상태값이";
  380. } else if (goso_acptflagcd == null || goso_acptflagcd == ""){
  381. rtn = "접수상태가";
  382. } else if (goso_gootdd == null || goso_gootdd == ""){
  383. rtn = "외출일자가";
  384. } else if (goso_goottmtm == null || goso_goottmtm == ""){
  385. rtn = "외출시간중 시가";
  386. } else if (goso_goottmmin == null || goso_goottmmin == ""){
  387. rtn = "외출시간중 분이";
  388. } else if (goso_rtndd == null || goso_rtndd == ""){
  389. rtn = "귀가일자가";
  390. } else if (goso_rtntmtm == null || goso_rtntmtm == ""){
  391. rtn = "귀가시간중 시가";
  392. } else if (goso_rtntmmin == null || goso_rtntmmin == ""){
  393. rtn = "귀가시간중 분이";
  394. }
  395. if (rtn == 'Y'){ // 외출시간이나 귀가시간에서 시와 분으로 나누어진것을 더해서 데이터 저장을 한다.
  396. model.setValue("/root/main/goso/goso_goottm",goso_goottmtm+goso_goottmmin);
  397. model.setValue("/root/main/goso/goso_rtntm",goso_rtntmtm+goso_rtntmmin);
  398. }
  399. return rtn;
  400. }
  401. // 승인상태가 신청중이 아닌 데이터는 삭제하지 못하도록 체크박스를 Disabled시킨다.
  402. function fDisabled(){
  403. var cnt = instance1.selectNodes("/root/main/gosolist").length;
  404. for(i=1; i<=cnt; i++) {
  405. var v_rowgubun = model.getValue("/root/main/gosolist["+ i + "]/goso_acptflagcd");
  406. if (v_rowgubun != '1'){
  407. grd_gootspotlist.isReadOnly((i + parseInt(grd_gootspotlist.fixedRows)-1),1) = true;
  408. }
  409. }
  410. }
  411. ]]>
  412. </script>
  413. </xhtml:head>
  414. <xhtml:body pagewidth="725" pageheight="430" guideline="1,717;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  415. <group id="group1" style="left:0px; top:0px; width:700px; height:13px; ">
  416. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">외출외박신청</caption>
  417. </group>
  418. <group id="group3" style="left:0px; top:13px; width:700px; height:362px; ">
  419. <input id="ipt_gootresn" ref="/root/main/goso/goso_gootresn" navindex="9" imemode="hangul" style="left:103px; top:171px; width:595px; height:19px; "/>
  420. <select1 id="cmb_gootresn" ref="/root/main/goso/goso_gootresn" class="combo_default" appearance="minimal" style="left:103px; top:171px; width:595px; height:19px; text-align:left; ">
  421. <choices>
  422. <itemset nodeset="/root/init/P0418list/P0418">
  423. <label ref="cdnm"/>
  424. <value ref="cdid"/>
  425. </itemset>
  426. </choices>
  427. </select1>
  428. <group id="group2" style="left:0px; top:5px; width:700px; height:35px; ">
  429. <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; "/>
  430. <button id="btn_srch" class="btn1_letter2" navindex="15" style="left:630px; top:7px; width:56px; height:22px; ">
  431. <caption>조회</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. fQuery();
  435. ]]>
  436. </script>
  437. </button>
  438. <line id="line2" class="line_4" style="x1:615px; y1:7px; x2:615px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  439. <input id="ipt_srchpid" ref="/root/send/pid" class="input_search" navindex="14" style="left:110px; top:9px; width:115px; height:19px; ">
  440. <script type="javascript" ev:event="onkeypress">
  441. <![CDATA[
  442. inputEnterKey("btn_srch", "DOMActivate");
  443. ]]>
  444. </script>
  445. </input>
  446. <caption id="caption50" class="search_name" style="left:20px; top:9px; width:86px; height:17px; ">환자번호 :</caption>
  447. </group>
  448. <caption id="caption2" class="tit_2" style="left:5px; top:230px; width:150px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박내역</caption>
  449. <line id="line1" class="line_1" style="x1:0px; y1:245px; x2:700px; y2:245px; "/>
  450. <datagrid id="grd_gootspotlist" nodeset="/root/main/gosolist" caption="^상태^환자번호^환자성명^외출일자^외출시간^귀가일자^귀가시간^실귀가일자^실귀가시간^귀가확인여부^외출사유^연락처1^연락처2^진료과^전문의^병동^병실^승인의사^원무승인자^실귀가확인자^불승인사유^비고^최초접수자^최초접수일시^최종수정담당자^최종수정일시" colsep="^" colwidth="30, 53, 70, 80, 100, 60, 100, 60, 100, 70, 80, 100, 108, 100, 88, 80, 100, 100, 100, 100, 100, 100, 100, 90, 115, 90, 115" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="12" style="left:0px; top:250px; width:700px; height:110px; ">
  451. <col checkvalue="D,N" ref="goso_status" type="checkbox"/>
  452. <col disabled="true" ref="goso_acptflagcd" type="combo" style="text-align:left; ">
  453. <choices>
  454. <item>
  455. <label>신청</label>
  456. <value>1</value>
  457. </item>
  458. <item>
  459. <label>승인</label>
  460. <value>2</value>
  461. </item>
  462. <item>
  463. <label>불승인</label>
  464. <value>3</value>
  465. </item>
  466. </choices>
  467. </col>
  468. <col ref="goso_pid"/>
  469. <col ref="goso_hngnm"/>
  470. <col ref="goso_gootdd" format="yyyy-mm-dd" style="text-align:center; "/>
  471. <col ref="goso_goottm" format="hh:nn" style="text-align:center; "/>
  472. <col ref="goso_rtndd" format="yyyy-mm-dd" style="text-align:center; "/>
  473. <col ref="goso_rtntm" format="hh:nn" style="text-align:center; "/>
  474. <col ref="goso_orgrtndd" format="yyyy-mm-dd"/>
  475. <col ref="goso_orgrtntm" format="hh:nn"/>
  476. <col ref="goso_rtncnfmyn"/>
  477. <col ref="goso_gootresn"/>
  478. <col ref="goso_tel1"/>
  479. <col ref="goso_tel2"/>
  480. <col disabled="true" ref="goso_orddeptcd" type="combo">
  481. <choices>
  482. <itemset nodeset="/root/hidden/init/orddeptcd">
  483. <label ref="nm"/>
  484. <value ref="cd"/>
  485. </itemset>
  486. </choices>
  487. </col>
  488. <col disabled="true" ref="goso_atdoctid" type="combo">
  489. <choices>
  490. <itemset nodeset="/root/hidden/init/orddrid">
  491. <label ref="nm"/>
  492. <value ref="cd"/>
  493. </itemset>
  494. </choices>
  495. </col>
  496. <col ref="goso_wardcd" type="combo">
  497. <choices>
  498. <itemset nodeset="/root/hidden/init/wardcd">
  499. <label ref="nm"/>
  500. <value ref="cd"/>
  501. </itemset>
  502. </choices>
  503. </col>
  504. <col ref="goso_roomcd" type="combo">
  505. <choices>
  506. <itemset nodeset="/root/hidden/init/roomcd">
  507. <label ref="nm"/>
  508. <value ref="cd"/>
  509. </itemset>
  510. </choices>
  511. </col>
  512. <col ref="goso_appid"/>
  513. <col ref="goso_pamacptid"/>
  514. <col ref="goso_orgrtnacptid"/>
  515. <col ref="goso_nonaprvresn"/>
  516. <col ref="goso_rem"/>
  517. <col ref="goso_fstrgstrid"/>
  518. <col ref="goso_fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  519. <col ref="goso_lastupdtrid"/>
  520. <col ref="goso_lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  521. </datagrid>
  522. <button id="btn_app" class="btn2_letter2" navindex="11" style="left:656px; top:45px; width:42px; height:19px; ">
  523. <caption>신청</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. fChangeSave("I");
  527. ]]>
  528. </script>
  529. </button>
  530. <caption id="caption9" class="tit_2" style="left:6px; top:50px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">외출외박신청</caption>
  531. <line id="line7" class="line_1" style="x1:0px; y1:65px; x2:700px; y2:65px; "/>
  532. <button id="btn_cncl" class="btn2_letter2" navindex="13" style="left:656px; top:225px; width:42px; height:19px; ">
  533. <caption>취소</caption>
  534. <script type="javascript" ev:event="DOMActivate">
  535. <![CDATA[
  536. fChangeSave("D");
  537. ]]>
  538. </script>
  539. </button>
  540. <caption id="caption18" class="cell_1" style="left:0px; top:120px; width:100px; height:23px; vertical-align:middle; ">외출일시</caption>
  541. <input id="ipt_gootdd" ref="/root/main/goso/goso_gootdd" navindex="1" inputtype="date" style="left:103px; top:121px; width:100px; height:19px; text-align:center; ">
  542. <script type="javascript" ev:event="xforms-value-changed">
  543. <![CDATA[
  544. if( ipt_gootdd.value < getCurrentDate() ){
  545. messageBox("오늘일자보다 작을수 ", "I004");
  546. ipt_gootdd.value = ipt_gootdd.attribute("_value");
  547. }
  548. ]]>
  549. </script>
  550. <script type="javascript" ev:event="onbuttonclick">
  551. <![CDATA[
  552. ipt_gootdd.attribute("_value") = ipt_gootdd.value;
  553. ]]>
  554. </script>
  555. </input>
  556. <caption id="caption21" class="cell_1" style="left:0px; top:95px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  557. <caption id="caption22" class="cell_1" style="left:206px; top:95px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
  558. <select1 id="cmb_atdoctid" ref="/root/main/goso/goso_atdoctid" class="combo_default" disabled="true" appearance="minimal" style="left:309px; top:97px; width:105px; height:19px; ">
  559. <choices>
  560. <itemset nodeset="/root/hidden/init/orddrid">
  561. <label ref="nm"/>
  562. <value ref="cd"/>
  563. </itemset>
  564. </choices>
  565. </select1>
  566. <select1 id="cmb_roomcd" ref="/root/main/goso/goso_roomcd" class="combo_default" disabled="true" appearance="minimal" style="left:620px; top:97px; width:78px; height:19px; ">
  567. <choices>
  568. <itemset nodeset="/root/hidden/init/roomcd">
  569. <label ref="nm"/>
  570. <value ref="cd"/>
  571. </itemset>
  572. </choices>
  573. </select1>
  574. <select1 id="cmb_wardcd" ref="/root/main/goso/goso_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:520px; top:97px; width:98px; height:19px; ">
  575. <choices>
  576. <itemset nodeset="/root/hidden/init/wardcd">
  577. <label ref="nm"/>
  578. <value ref="cd"/>
  579. </itemset>
  580. </choices>
  581. </select1>
  582. <select1 id="cmb_orddeptcd" ref="/root/main/goso/goso_orddeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:103px; top:97px; width:100px; height:19px; ">
  583. <choices>
  584. <itemset nodeset="/root/hidden/init/orddeptcd">
  585. <label ref="nm"/>
  586. <value ref="cd"/>
  587. </itemset>
  588. </choices>
  589. </select1>
  590. <caption id="caption29" class="cell_1" style="left:417px; top:95px; width:100px; height:23px; vertical-align:middle; ">병동/병실1</caption>
  591. <line id="line3" class="line_2" style="x1:1px; y1:93px; x2:697px; y2:93px; "/>
  592. <caption id="caption1" class="cell_1" style="left:0px; top:145px; width:100px; height:23px; vertical-align:middle; ">귀가일시</caption>
  593. <input id="ipt_rtndd" ref="/root/main/goso/goso_rtndd" navindex="4" inputtype="date" style="left:103px; top:146px; width:100px; height:19px; text-align:center; ">
  594. <script type="javascript" ev:event="xforms-value-changed">
  595. <![CDATA[
  596. if( ipt_rtndd.value < getCurrentDate() || ipt_rtndd.value < ipt_gootdd.value){
  597. messageBox("오늘일자나 외출일자보다 작을수 ", "I004");
  598. ipt_rtndd.value = ipt_rtndd.attribute("_value");
  599. }
  600. ]]>
  601. </script>
  602. <script type="javascript" ev:event="onbuttonclick">
  603. <![CDATA[
  604. ipt_rtndd.attribute("_value") = ipt_rtndd.value;
  605. ]]>
  606. </script>
  607. </input>
  608. <caption id="caption3" class="cell_1" style="left:0px; top:170px; width:100px; height:23px; vertical-align:middle; ">외출사유</caption>
  609. <caption id="caption4" class="cell_1" style="left:417px; top:120px; width:100px; height:23px; vertical-align:middle; ">연락처1</caption>
  610. <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
  611. <caption id="caption7" class="cell_1" style="left:206px; top:70px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
  612. <caption id="caption8" class="cell_1" style="left:417px; top:70px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
  613. <input id="ipt_tel1" ref="/root/main/goso/goso_tel1" navindex="7" style="left:520px; top:121px; width:178px; height:19px; "/>
  614. <caption id="caption10" class="cell_1" style="left:0px; top:195px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
  615. <input id="ipt_rem" ref="/root/main/goso/goso_rem" navindex="10" imemode="hangul" style="left:103px; top:196px; width:595px; height:19px; "/>
  616. <output id="opt_pid" ref="/root/main/goso/goso_pid" class="output_fix" style="left:103px; top:72px; width:100px; height:19px; text-align:center; "/>
  617. <output id="opt_hngnm" ref="/root/main/goso/goso_hngnm" class="output_fix" style="left:309px; top:72px; width:105px; height:19px; text-align:center; "/>
  618. <output id="opt_sex" ref="/root/main/goso/goso_sex" class="output_fix" style="left:520px; top:72px; width:50px; height:19px; text-align:center; "/>
  619. <output id="opt_age" ref="/root/main/goso/goso_age" class="output_fix" style="left:575px; top:72px; width:48px; height:19px; text-align:center; "/>
  620. <select1 id="cmb_goottm" ref="/root/main/goso/goso_goottmtm" navindex="2" appearance="minimal" style="left:206px; top:121px; width:49px; height:19px; text-align:center; ">
  621. <choices>
  622. <item>
  623. <label>00</label>
  624. <value>00</value>
  625. </item>
  626. <item>
  627. <label>01</label>
  628. <value>01</value>
  629. </item>
  630. <item>
  631. <label>02</label>
  632. <value>02</value>
  633. </item>
  634. <item>
  635. <label>03</label>
  636. <value>03</value>
  637. </item>
  638. <item>
  639. <label>04</label>
  640. <value>04</value>
  641. </item>
  642. <item>
  643. <label>05</label>
  644. <value>05</value>
  645. </item>
  646. <item>
  647. <label>06</label>
  648. <value>06</value>
  649. </item>
  650. <item>
  651. <label>07</label>
  652. <value>07</value>
  653. </item>
  654. <item>
  655. <label>08</label>
  656. <value>08</value>
  657. </item>
  658. <item>
  659. <label>09</label>
  660. <value>09</value>
  661. </item>
  662. <item>
  663. <label>10</label>
  664. <value>10</value>
  665. </item>
  666. <item>
  667. <label>11</label>
  668. <value>11</value>
  669. </item>
  670. <item>
  671. <label>12</label>
  672. <value>12</value>
  673. </item>
  674. <item>
  675. <label>13</label>
  676. <value>13</value>
  677. </item>
  678. <item>
  679. <label>14</label>
  680. <value>14</value>
  681. </item>
  682. <item>
  683. <label>15</label>
  684. <value>15</value>
  685. </item>
  686. <item>
  687. <label>16</label>
  688. <value>16</value>
  689. </item>
  690. <item>
  691. <label>17</label>
  692. <value>17</value>
  693. </item>
  694. <item>
  695. <label>18</label>
  696. <value>18</value>
  697. </item>
  698. <item>
  699. <label>19</label>
  700. <value>19</value>
  701. </item>
  702. <item>
  703. <label>20</label>
  704. <value>20</value>
  705. </item>
  706. <item>
  707. <label>21</label>
  708. <value>21</value>
  709. </item>
  710. <item>
  711. <label>22</label>
  712. <value>22</value>
  713. </item>
  714. <item>
  715. <label>23</label>
  716. <value>23</value>
  717. </item>
  718. </choices>
  719. </select1>
  720. <select1 id="cmb_goottmmin" ref="/root/main/goso/goso_goottmmin" navindex="3" appearance="minimal" style="left:276px; top:121px; width:49px; height:19px; text-align:center; ">
  721. <choices>
  722. <item>
  723. <label>00</label>
  724. <value>00</value>
  725. </item>
  726. <item>
  727. <label>30</label>
  728. <value>30</value>
  729. </item>
  730. </choices>
  731. </select1>
  732. <caption id="caption11" style="left:258px; top:121px; width:15px; height:20px; ">시</caption>
  733. <caption id="caption12" style="left:330px; top:121px; width:15px; height:20px; ">분</caption>
  734. <caption id="caption13" style="left:258px; top:146px; width:15px; height:20px; ">시</caption>
  735. <select1 id="cmb_rtntm" ref="/root/main/goso/goso_rtntmtm" navindex="5" appearance="minimal" style="left:206px; top:146px; width:49px; height:19px; text-align:center; ">
  736. <choices>
  737. <item>
  738. <label>00</label>
  739. <value>00</value>
  740. </item>
  741. <item>
  742. <label>01</label>
  743. <value>01</value>
  744. </item>
  745. <item>
  746. <label>02</label>
  747. <value>02</value>
  748. </item>
  749. <item>
  750. <label>03</label>
  751. <value>03</value>
  752. </item>
  753. <item>
  754. <label>04</label>
  755. <value>04</value>
  756. </item>
  757. <item>
  758. <label>05</label>
  759. <value>05</value>
  760. </item>
  761. <item>
  762. <label>06</label>
  763. <value>06</value>
  764. </item>
  765. <item>
  766. <label>07</label>
  767. <value>07</value>
  768. </item>
  769. <item>
  770. <label>08</label>
  771. <value>08</value>
  772. </item>
  773. <item>
  774. <label>09</label>
  775. <value>09</value>
  776. </item>
  777. <item>
  778. <label>10</label>
  779. <value>10</value>
  780. </item>
  781. <item>
  782. <label>11</label>
  783. <value>11</value>
  784. </item>
  785. <item>
  786. <label>12</label>
  787. <value>12</value>
  788. </item>
  789. <item>
  790. <label>13</label>
  791. <value>13</value>
  792. </item>
  793. <item>
  794. <label>14</label>
  795. <value>14</value>
  796. </item>
  797. <item>
  798. <label>15</label>
  799. <value>15</value>
  800. </item>
  801. <item>
  802. <label>16</label>
  803. <value>16</value>
  804. </item>
  805. <item>
  806. <label>17</label>
  807. <value>17</value>
  808. </item>
  809. <item>
  810. <label>18</label>
  811. <value>18</value>
  812. </item>
  813. <item>
  814. <label>19</label>
  815. <value>19</value>
  816. </item>
  817. <item>
  818. <label>20</label>
  819. <value>20</value>
  820. </item>
  821. <item>
  822. <label>21</label>
  823. <value>21</value>
  824. </item>
  825. <item>
  826. <label>22</label>
  827. <value>22</value>
  828. </item>
  829. <item>
  830. <label>23</label>
  831. <value>23</value>
  832. </item>
  833. </choices>
  834. </select1>
  835. <caption id="caption14" style="left:330px; top:146px; width:15px; height:20px; ">분</caption>
  836. <select1 id="cmb_rtntmmin" ref="/root/main/goso/goso_rtntmmin" navindex="6" appearance="minimal" style="left:276px; top:146px; width:49px; height:19px; text-align:center; ">
  837. <choices>
  838. <item>
  839. <label>00</label>
  840. <value>00</value>
  841. </item>
  842. <item>
  843. <label>30</label>
  844. <value>30</value>
  845. </item>
  846. </choices>
  847. </select1>
  848. <caption id="caption15" class="cell_1" style="left:417px; top:145px; width:100px; height:23px; vertical-align:middle; ">연락처2</caption>
  849. <input id="ipt_tel2" ref="/root/main/goso/goso_tel2" navindex="8" style="left:520px; top:146px; width:178px; height:19px; "/>
  850. <line id="line4" class="line_2" style="x1:1px; y1:118px; x2:697px; y2:118px; "/>
  851. <line id="line5" class="line_2" style="x1:1px; y1:143px; x2:697px; y2:143px; "/>
  852. <line id="line6" class="line_2" style="x1:1px; y1:168px; x2:697px; y2:168px; "/>
  853. <line id="line8" class="line_2" style="x1:1px; y1:193px; x2:697px; y2:193px; "/>
  854. <line id="line9" class="line_3" style="x1:1px; y1:218px; x2:697px; y2:218px; "/>
  855. </group>
  856. <group id="group5" style="left:0px; top:375px; width:700px; height:27px; ">
  857. <button id="btn_exit" class="btn4_letter2" navindex="16" style="left:643px; top:3px; width:56px; height:22px; ">
  858. <caption>종료</caption>
  859. <script type="javascript" ev:event="DOMActivate">
  860. <![CDATA[
  861. window.close();
  862. ]]>
  863. </script>
  864. </button>
  865. </group>
  866. </xhtml:body>
  867. </xhtml:html>