SMPMI02800_외출외박승인.xrw 47 KB

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