SPPMI03000_외출외박확인.xfdl 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMI03000" position="absolute 0 0 700 629" titletext="외출외박확인" onload="SPPMI03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="외출외박확인" class="tit_1" position="absolute 0 0 140 25"/>
  8. <Div id="grp" taborder="1" class="div_SA" position="absolute 0 25 700 60" anchor="left top right">
  9. <Layouts>
  10. <Layout width="700" height="35">
  11. <Button id="btn_srch" taborder="15" text="조회" class="btn1" position="absolute 630 7 686 29" onclick="grp_btn_srch_onclick" anchor="top right"/>
  12. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 612 7 618 29" anchor="top right"/>
  13. <Static id="caption50" text="조회구분 :" class="search_name" position="absolute 215 9 301 26" anchor="left top"/>
  14. <Combo id="cmb_srchcond1" taborder="16" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 295 8 385 27" onitemchanged="grp_cmb_srchcond1_onitemchanged" anchor="left top">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn"/>
  18. <Column id="datacolumn"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">3</Col>
  23. <Col id="datacolumn">전체</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">4</Col>
  27. <Col id="datacolumn">원무승인전</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">5</Col>
  31. <Col id="datacolumn">귀원전</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. <Static id="caption25" text="조회일자 :" class="search_name" position="absolute 15 9 101 26" anchor="left top"/>
  37. <Calendar id="ipt_gootdd" taborder="17" position="absolute 96 8 196 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" onkeydown="group2_ipt_gootdd_onkeydown" anchor="left top"/>
  38. <Static id="caption20" text="병동 :" class="search_name" position="absolute 404 9 466 26" anchor="left top"/>
  39. <Combo id="combo1" taborder="18" innerdataset="@ds_hidden_init_wardcd" codecolumn="cd" datacolumn="nm" position="absolute 462 8 596 27" anchor="left top"/>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Static id="caption2" text="외출외박내역" class="tit_2" position="absolute 0 339 155 356" anchor="left bottom"/>
  44. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 85 700 91" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  45. <Grid id="grd_gootspotlist" taborder="2" binddataset="ds_main_gosolist" useinputpanel="false" position="absolute 0 90 700 331" oncellclick="grd_gootspotlist_oncellclick" anchor="all">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="25" band="left"/>
  50. <Column size="53" band="left"/>
  51. <Column size="70" band="left"/>
  52. <Column size="80" band="left"/>
  53. <Column size="84"/>
  54. <Column size="100"/>
  55. <Column size="60"/>
  56. <Column size="100"/>
  57. <Column size="60"/>
  58. <Column size="100"/>
  59. <Column size="70"/>
  60. <Column size="80"/>
  61. <Column size="100"/>
  62. <Column size="108"/>
  63. <Column size="100"/>
  64. <Column size="88"/>
  65. <Column size="80"/>
  66. <Column size="100"/>
  67. <Column size="100"/>
  68. <Column size="80"/>
  69. <Column size="100"/>
  70. <Column size="100"/>
  71. <Column size="100"/>
  72. <Column size="100"/>
  73. <Column size="100"/>
  74. <Column size="90"/>
  75. <Column size="120"/>
  76. <Column size="90"/>
  77. <Column size="120"/>
  78. </Columns>
  79. <Rows>
  80. <Row size="24" band="head"/>
  81. <Row size="24"/>
  82. </Rows>
  83. <Band id="head">
  84. <Cell/>
  85. <Cell col="1" text="상태"/>
  86. <Cell col="2" text="환자번호"/>
  87. <Cell col="3" text="환자성명"/>
  88. <Cell col="4" text="병실"/>
  89. <Cell col="5" text="외출일자"/>
  90. <Cell col="6" text="외출시간"/>
  91. <Cell col="7" text="귀원일자"/>
  92. <Cell col="8" text="귀원시간"/>
  93. <Cell col="9" text="실귀원일자"/>
  94. <Cell col="10" text="실귀원시간"/>
  95. <Cell col="11" text="귀원확인여부"/>
  96. <Cell col="12" text="외출사유"/>
  97. <Cell col="13" text="연락처1"/>
  98. <Cell col="14" text="연락처2"/>
  99. <Cell col="15" text="진료과"/>
  100. <Cell col="16" text="담당교수"/>
  101. <Cell col="17" text="병동"/>
  102. <Cell col="18" text="병실"/>
  103. <Cell col="19" displaytype="normal" text="보험유형"/>
  104. <Cell col="20" text="승인의사"/>
  105. <Cell col="21" text="원무승인자"/>
  106. <Cell col="22" text="실귀원확인자"/>
  107. <Cell col="23" text="불승인사유"/>
  108. <Cell col="24" text="비고"/>
  109. <Cell col="25" text="최초접수자"/>
  110. <Cell col="26" text="최초접수일시"/>
  111. <Cell col="27" text="최종수정담당자"/>
  112. <Cell col="28" text="최종수정일시"/>
  113. </Band>
  114. <Band id="body">
  115. <Cell celltype="head" expr="expr:currow + 1"/>
  116. <Cell col="1" displaytype="combo" text="bind:goso_acptflagcd" combodataset="ds_static_acptflagcd" combocodecol="value" combodatacol="label" enable="false"/>
  117. <Cell col="2" text="bind:goso_pid"/>
  118. <Cell col="3" text="bind:goso_hngnm"/>
  119. <Cell col="4" text="bind:goso_roomcd"/>
  120. <Cell col="5" displaytype="date" style="align:center middle;" text="bind:goso_gootdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  121. <Cell col="6" displaytype="expr:utlf_isNull(goso_goottm) ? 'none' : 'normal'" style="align:center middle;" text="bind:goso_goottm" mask="##:##"/>
  122. <Cell col="7" displaytype="date" style="align:center middle;" text="bind:goso_rtndd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  123. <Cell col="8" displaytype="expr:utlf_isNull(goso_rtntm) ? 'none' : 'normal'" style="align:center middle;" text="bind:goso_rtntm" mask="##:##"/>
  124. <Cell col="9" displaytype="date" text="bind:goso_orgrtndd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  125. <Cell col="10" displaytype="expr:utlf_isNull(goso_orgrtntm) ? 'none' : 'normal'" text="bind:goso_orgrtntm" mask="##:##"/>
  126. <Cell col="11" text="bind:goso_rtncnfmyn"/>
  127. <Cell col="12" text="bind:goso_gootresn"/>
  128. <Cell col="13" text="bind:goso_tel1"/>
  129. <Cell col="14" text="bind:goso_tel2"/>
  130. <Cell col="15" displaytype="combo" text="bind:goso_orddeptcd" combodataset="ds_hidden_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  131. <Cell col="16" text="bind:goso_atdoctid"/>
  132. <Cell col="17" displaytype="combo" text="bind:goso_wardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm"/>
  133. <Cell col="18" displaytype="combo" text="bind:goso_roomcd" combodataset="ds_hidden_init_roomcd" combocodecol="cd" combodatacol="nm"/>
  134. <Cell col="19" displaytype="combo" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm"/>
  135. <Cell col="20" text="bind:goso_appid"/>
  136. <Cell col="21" text="bind:goso_pamacptid"/>
  137. <Cell col="22" text="bind:goso_orgrtnacptid"/>
  138. <Cell col="23" text="bind:goso_nonaprvresn"/>
  139. <Cell col="24" text="bind:goso_rem"/>
  140. <Cell col="25" text="bind:goso_fstrgstrid"/>
  141. <Cell col="26" displaytype="date" text="bind:goso_fstrgstdt" mask="yyyy-MM-dd HH:mm:ss"/>
  142. <Cell col="27" text="bind:goso_lastupdtrid"/>
  143. <Cell col="28" displaytype="date" text="bind:goso_lastupdtdt" mask="yyyy-MM-dd HH:mm:ss"/>
  144. </Band>
  145. </Format>
  146. </Formats>
  147. </Grid>
  148. <Static id="caption9" text="외출외박확인" class="tit_2" position="absolute 0 68 106 85" anchor="left top"/>
  149. <Shape id="line8" linetype="horizontal" class="line_2" position="absolute 1 487 697 493" anchor="left bottom"/>
  150. <Edit id="opt_sex" taborder="3" readonly="true" position="absolute 520 363 557 382" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;align:center middle;" enable="false" anchor="left bottom"/>
  151. <Shape id="line9" linetype="horizontal" class="line_2" position="absolute 1 513 697 519" anchor="left bottom"/>
  152. <Combo id="cmb_goottm" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 206 415 255 434" anchor="left bottom">
  153. <Dataset id="innerdataset">
  154. <ColumnInfo>
  155. <Column id="codecolumn"/>
  156. <Column id="datacolumn"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="codecolumn">00</Col>
  161. <Col id="datacolumn">00</Col>
  162. </Row>
  163. <Row>
  164. <Col id="codecolumn">01</Col>
  165. <Col id="datacolumn">01</Col>
  166. </Row>
  167. <Row>
  168. <Col id="codecolumn">02</Col>
  169. <Col id="datacolumn">02</Col>
  170. </Row>
  171. <Row>
  172. <Col id="codecolumn">03</Col>
  173. <Col id="datacolumn">03</Col>
  174. </Row>
  175. <Row>
  176. <Col id="codecolumn">04</Col>
  177. <Col id="datacolumn">04</Col>
  178. </Row>
  179. <Row>
  180. <Col id="codecolumn">05</Col>
  181. <Col id="datacolumn">05</Col>
  182. </Row>
  183. <Row>
  184. <Col id="codecolumn">06</Col>
  185. <Col id="datacolumn">06</Col>
  186. </Row>
  187. <Row>
  188. <Col id="codecolumn">07</Col>
  189. <Col id="datacolumn">07</Col>
  190. </Row>
  191. <Row>
  192. <Col id="codecolumn">08</Col>
  193. <Col id="datacolumn">08</Col>
  194. </Row>
  195. <Row>
  196. <Col id="codecolumn">09</Col>
  197. <Col id="datacolumn">09</Col>
  198. </Row>
  199. <Row>
  200. <Col id="codecolumn">10</Col>
  201. <Col id="datacolumn">10</Col>
  202. </Row>
  203. <Row>
  204. <Col id="codecolumn">11</Col>
  205. <Col id="datacolumn">11</Col>
  206. </Row>
  207. <Row>
  208. <Col id="codecolumn">12</Col>
  209. <Col id="datacolumn">12</Col>
  210. </Row>
  211. <Row>
  212. <Col id="codecolumn">13</Col>
  213. <Col id="datacolumn">13</Col>
  214. </Row>
  215. <Row>
  216. <Col id="codecolumn">14</Col>
  217. <Col id="datacolumn">14</Col>
  218. </Row>
  219. <Row>
  220. <Col id="codecolumn">15</Col>
  221. <Col id="datacolumn">15</Col>
  222. </Row>
  223. <Row>
  224. <Col id="codecolumn">16</Col>
  225. <Col id="datacolumn">16</Col>
  226. </Row>
  227. <Row>
  228. <Col id="codecolumn">17</Col>
  229. <Col id="datacolumn">17</Col>
  230. </Row>
  231. <Row>
  232. <Col id="codecolumn">18</Col>
  233. <Col id="datacolumn">18</Col>
  234. </Row>
  235. <Row>
  236. <Col id="codecolumn">19</Col>
  237. <Col id="datacolumn">19</Col>
  238. </Row>
  239. <Row>
  240. <Col id="codecolumn">20</Col>
  241. <Col id="datacolumn">20</Col>
  242. </Row>
  243. <Row>
  244. <Col id="codecolumn">21</Col>
  245. <Col id="datacolumn">21</Col>
  246. </Row>
  247. <Row>
  248. <Col id="codecolumn">22</Col>
  249. <Col id="datacolumn">22</Col>
  250. </Row>
  251. <Row>
  252. <Col id="codecolumn">23</Col>
  253. <Col id="datacolumn">23</Col>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. </Combo>
  258. <Edit id="ipt_rem" taborder="5" enable="false" position="absolute 103 493 698 512" anchor="left right bottom"/>
  259. <Combo id="cmb_rtntm" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 206 440 255 459" anchor="left bottom">
  260. <Dataset id="innerdataset">
  261. <ColumnInfo>
  262. <Column id="codecolumn"/>
  263. <Column id="datacolumn"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="codecolumn">00</Col>
  268. <Col id="datacolumn">00</Col>
  269. </Row>
  270. <Row>
  271. <Col id="codecolumn">01</Col>
  272. <Col id="datacolumn">01</Col>
  273. </Row>
  274. <Row>
  275. <Col id="codecolumn">02</Col>
  276. <Col id="datacolumn">02</Col>
  277. </Row>
  278. <Row>
  279. <Col id="codecolumn">03</Col>
  280. <Col id="datacolumn">03</Col>
  281. </Row>
  282. <Row>
  283. <Col id="codecolumn">04</Col>
  284. <Col id="datacolumn">04</Col>
  285. </Row>
  286. <Row>
  287. <Col id="codecolumn">05</Col>
  288. <Col id="datacolumn">05</Col>
  289. </Row>
  290. <Row>
  291. <Col id="codecolumn">06</Col>
  292. <Col id="datacolumn">06</Col>
  293. </Row>
  294. <Row>
  295. <Col id="codecolumn">07</Col>
  296. <Col id="datacolumn">07</Col>
  297. </Row>
  298. <Row>
  299. <Col id="codecolumn">08</Col>
  300. <Col id="datacolumn">08</Col>
  301. </Row>
  302. <Row>
  303. <Col id="codecolumn">09</Col>
  304. <Col id="datacolumn">09</Col>
  305. </Row>
  306. <Row>
  307. <Col id="codecolumn">10</Col>
  308. <Col id="datacolumn">10</Col>
  309. </Row>
  310. <Row>
  311. <Col id="codecolumn">11</Col>
  312. <Col id="datacolumn">11</Col>
  313. </Row>
  314. <Row>
  315. <Col id="codecolumn">12</Col>
  316. <Col id="datacolumn">12</Col>
  317. </Row>
  318. <Row>
  319. <Col id="codecolumn">13</Col>
  320. <Col id="datacolumn">13</Col>
  321. </Row>
  322. <Row>
  323. <Col id="codecolumn">14</Col>
  324. <Col id="datacolumn">14</Col>
  325. </Row>
  326. <Row>
  327. <Col id="codecolumn">15</Col>
  328. <Col id="datacolumn">15</Col>
  329. </Row>
  330. <Row>
  331. <Col id="codecolumn">16</Col>
  332. <Col id="datacolumn">16</Col>
  333. </Row>
  334. <Row>
  335. <Col id="codecolumn">17</Col>
  336. <Col id="datacolumn">17</Col>
  337. </Row>
  338. <Row>
  339. <Col id="codecolumn">18</Col>
  340. <Col id="datacolumn">18</Col>
  341. </Row>
  342. <Row>
  343. <Col id="codecolumn">19</Col>
  344. <Col id="datacolumn">19</Col>
  345. </Row>
  346. <Row>
  347. <Col id="codecolumn">20</Col>
  348. <Col id="datacolumn">20</Col>
  349. </Row>
  350. <Row>
  351. <Col id="codecolumn">21</Col>
  352. <Col id="datacolumn">21</Col>
  353. </Row>
  354. <Row>
  355. <Col id="codecolumn">22</Col>
  356. <Col id="datacolumn">22</Col>
  357. </Row>
  358. <Row>
  359. <Col id="codecolumn">23</Col>
  360. <Col id="datacolumn">23</Col>
  361. </Row>
  362. </Rows>
  363. </Dataset>
  364. </Combo>
  365. <Combo id="cmb_rtntmmin" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 276 440 325 459" anchor="left bottom">
  366. <Dataset id="innerdataset">
  367. <ColumnInfo>
  368. <Column id="codecolumn"/>
  369. <Column id="datacolumn"/>
  370. </ColumnInfo>
  371. <Rows>
  372. <Row>
  373. <Col id="codecolumn">00</Col>
  374. <Col id="datacolumn">00</Col>
  375. </Row>
  376. <Row>
  377. <Col id="codecolumn">30</Col>
  378. <Col id="datacolumn">30</Col>
  379. </Row>
  380. </Rows>
  381. </Dataset>
  382. </Combo>
  383. <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 1 539 697 545" anchor="left bottom"/>
  384. <Calendar id="ipt_rtndd" taborder="8" enable="false" position="absolute 103 440 203 459" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" oneditclick="ipt_rtndd_oneditclick" anchor="left bottom"/>
  385. <MaskEdit id="ipt_orgrtntm" taborder="9" mask="##:##" position="absolute 205 545 255 564" type="string" maskchar=" " style="align:center middle;" autoselect="true" autoskip="true" ontextchange="ipt_orgrtntm_ontextchange" anchor="left bottom"/>
  386. <CheckBox id="ipt_rtncnfmyn" taborder="10" position="absolute 520 545 570 564" falsevalue="N" truevalue="Y" onclick="ipt_rtncnfmyn_onclick" anchor="left bottom"/>
  387. <Shape id="line11" linetype="horizontal" class="line_3" position="absolute 0 591 697 597" anchor="left right bottom"/>
  388. <Edit id="opt_hngnm" taborder="11" readonly="true" position="absolute 309 363 414 382" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;align:center middle;" enable="false" anchor="left bottom"/>
  389. <Edit id="ipt_nonaprvresn" taborder="12" enable="false" position="absolute 309 519 698 538" anchor="left right bottom"/>
  390. <Static id="caption21" text="진료과" class="cell_1" position="absolute 0 387 100 410" style="padding:0 0 0 3;" anchor="left bottom"/>
  391. <Static id="caption1" text="귀원일시" class="cell_1" position="absolute 0 439 100 462" style="padding:0 0 0 3;" anchor="left bottom"/>
  392. <Static id="caption10" text="비고" class="cell_1" position="absolute 0 491 100 514" style="padding:0 0 0 3;" anchor="left bottom"/>
  393. <Static id="caption22" text="담당교수" class="cell_1" position="absolute 206 387 306 410" style="padding:0 0 0 3;" anchor="left bottom"/>
  394. <Static id="caption11" text="시" position="absolute 258 414 273 434" anchor="left bottom"/>
  395. <Edit id="opt_pid" taborder="13" readonly="true" position="absolute 103 363 203 382" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;align:center middle;" enable="false" anchor="left bottom"/>
  396. <Static id="caption12" text="분" position="absolute 330 414 345 434" anchor="left bottom"/>
  397. <Static id="caption3" text="외출사유" class="cell_1" position="absolute 0 465 100 488" style="padding:0 0 0 3;" anchor="left bottom"/>
  398. <Combo id="cmb_roomcd" taborder="14" innerdataset="@ds_hidden_init_roomcd" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 620 389 698 408" anchor="left right bottom"/>
  399. <Edit id="ipt_tel1" taborder="15" enable="false" position="absolute 520 415 698 434" anchor="left right bottom"/>
  400. <Static id="caption4" text="연락처1" class="cell_1" position="absolute 417 413 517 436" style="padding:0 0 0 3;" anchor="left bottom"/>
  401. <Static id="caption13" text="시" position="absolute 258 440 273 460" anchor="left bottom"/>
  402. <Static id="caption24" text="귀원확인여부" class="cell_1" position="absolute 417 543 517 566" style="padding:0 0 0 3;" anchor="left bottom"/>
  403. <Static id="caption5" text="환자번호" class="cell_1" position="absolute 0 361 100 384" style="padding:0 0 0 3;" anchor="left bottom"/>
  404. <Combo id="cmb_goottmmin" taborder="16" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 276 415 325 434" anchor="left bottom">
  405. <Dataset id="innerdataset">
  406. <ColumnInfo>
  407. <Column id="codecolumn"/>
  408. <Column id="datacolumn"/>
  409. </ColumnInfo>
  410. <Rows>
  411. <Row>
  412. <Col id="codecolumn">00</Col>
  413. <Col id="datacolumn">00</Col>
  414. </Row>
  415. <Row>
  416. <Col id="codecolumn">30</Col>
  417. <Col id="datacolumn">30</Col>
  418. </Row>
  419. </Rows>
  420. </Dataset>
  421. </Combo>
  422. <Static id="caption14" text="분" position="absolute 330 440 345 460" anchor="left bottom"/>
  423. <Edit id="ipt_tel2" taborder="17" enable="false" position="absolute 520 440 698 459" anchor="left right bottom"/>
  424. <Combo id="cmb_orddeptcd" taborder="18" innerdataset="@ds_hidden_init_orddeptcd" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 103 389 203 408" anchor="left bottom"/>
  425. <Calendar id="input1" taborder="19" enable="false" position="absolute 103 415 203 434" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" oneditclick="input1_oneditclick" anchor="left bottom"/>
  426. <Static id="caption15" text="연락처2" class="cell_1" position="absolute 417 439 517 462" style="padding:0 0 0 3;" anchor="left bottom"/>
  427. <Combo id="cmb_gootresn" taborder="20" innerdataset="@ds_init_P0418list" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 103 467 698 486" anchor="left right bottom"/>
  428. <Calendar id="ipt_orgrtndd" taborder="21" position="absolute 103 545 203 564" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" onkillfocus="ipt_orgrtndd_onkillfocus" anchor="left bottom"/>
  429. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 1 383 697 389" anchor="left bottom"/>
  430. <Static id="caption7" text="환자명" class="cell_1" position="absolute 206 361 306 384" style="padding:0 0 0 3;" anchor="left bottom"/>
  431. <Combo id="cmb_wardcd" taborder="22" innerdataset="@ds_hidden_init_wardcd" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 520 389 618 408" anchor="left bottom"/>
  432. <Combo id="cmb_acptflagcd" taborder="23" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" enable="false" position="absolute 103 519 203 538" anchor="left bottom">
  433. <Dataset id="innerdataset">
  434. <ColumnInfo>
  435. <Column id="codecolumn"/>
  436. <Column id="datacolumn"/>
  437. </ColumnInfo>
  438. <Rows>
  439. <Row>
  440. <Col id="codecolumn">2</Col>
  441. <Col id="datacolumn">승인</Col>
  442. </Row>
  443. <Row>
  444. <Col id="codecolumn">3</Col>
  445. <Col id="datacolumn">불승인</Col>
  446. </Row>
  447. </Rows>
  448. </Dataset>
  449. </Combo>
  450. <Static id="caption16" text="불승인사유" class="cell_1" position="absolute 206 517 306 540" style="padding:0 0 0 3;" anchor="left bottom"/>
  451. <Edit id="opt_age" taborder="24" readonly="true" position="absolute 559 363 596 382" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;align:center middle;" enable="false" anchor="left bottom"/>
  452. <Static id="caption8" text="성별/나이/보험" class="cell_1" position="absolute 417 361 517 384" style="padding:0 0 0 3;" anchor="left bottom"/>
  453. <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 1 409 697 415" anchor="left bottom"/>
  454. <Static id="caption17" text="승인여부" class="cell_1" position="absolute 0 517 100 540" style="padding:0 0 0 3;" anchor="left bottom"/>
  455. <Combo id="cmb_atdoctid" taborder="25" innerdataset="@ds_hidden_init_orddrid" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 309 389 414 408" anchor="left bottom"/>
  456. <Static id="caption29" text="병동/병실1" class="cell_1" position="absolute 417 387 517 410" style="padding:0 0 0 3;" anchor="left bottom"/>
  457. <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 1 435 697 441" anchor="left bottom"/>
  458. <Static id="caption18" text="외출일시" class="cell_1" position="absolute 0 413 100 436" style="padding:0 0 0 3;" anchor="left bottom"/>
  459. <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 1 461 697 467" anchor="left bottom"/>
  460. <Static id="caption19" text="실제귀원일시" class="cell_1" position="absolute 0 543 100 566" style="padding:0 0 0 3;" anchor="left bottom"/>
  461. <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 356 700 362" anchor="left right bottom"/>
  462. <Button id="btn_exit" taborder="26" text="종료" class="btn4" position="absolute 643 602 699 624" onclick="btn_exit_onclick" anchor="right bottom"/>
  463. <Button id="btn_app" taborder="27" text="저장" class="btn4" position="absolute 585 602 641 624" onclick="btn_app_onclick" anchor="right bottom"/>
  464. <Combo id="combo2" taborder="28" innerdataset="@ds_hidden_init_insukind" codecolumn="cd" datacolumn="nm" class="combo_default" enable="true" position="absolute 598 363 698 382" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;align:center middle;" anchor="left right bottom"/>
  465. <Button id="button1" taborder="29" text="신청서출력" class="btn3" position="absolute 491 602 583 624" onclick="button1_onclick" anchor="right bottom" visible="false"/>
  466. <Button id="button3" taborder="30" text="자보신청서출력" class="btn3" position="absolute 0 602 116 624" anchor="left bottom" visible="false" onclick="button3_onclick"/>
  467. <Button id="btn_app02" taborder="31" text="신청 및 동의서출력" class="btn3" position="absolute 234 602 371 624" onclick="btn_app02_onclick" anchor="right bottom"/>
  468. <Static id="caption00" text="신청의" class="cell_1" position="absolute 0 569 100 592" anchor="left bottom" style="padding:0 0 0 3;"/>
  469. <Combo id="cmb_atdoctid00" taborder="32" innerdataset="@ds_hidden_init_orddrid" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 103 571 203 590" anchor="left bottom"/>
  470. <Shape id="line00" class="line_2" position="absolute 1 565 697 571" anchor="left bottom"/>
  471. <Calendar id="ipt_orgrtndd00" taborder="33" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" onkillfocus="ipt_orgrtndd_onkillfocus" position="absolute 309 571 409 590" anchor="left bottom" enable="false"/>
  472. <MaskEdit id="ipt_orgrtntm00" taborder="34" type="string" mask="##:##" maskchar=" " autoselect="true" autoskip="true" ontextchange="ipt_orgrtntm_ontextchange" position="absolute 412 571 462 590" anchor="left bottom" style="align:center middle;" enable="false"/>
  473. <Static id="caption20" text="신청일시" class="cell_1" position="absolute 206 569 306 592" anchor="left bottom" style="padding:0 0 0 3;"/>
  474. </Layout>
  475. </Layouts>
  476. <Objects>
  477. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  478. <ColumnInfo>
  479. <Column id="srchcond1" type="STRING" size="256"/>
  480. <Column id="pid" type="STRING" size="256"/>
  481. <Column id="goso_status" type="STRING" size="256"/>
  482. <Column id="sess_posinstcd" type="STRING" size="256"/>
  483. <Column id="gootdd" type="STRING" size="256"/>
  484. <Column id="wardcd" type="STRING" size="256"/>
  485. <Column id="formcd" type="STRING" size="256"/>
  486. </ColumnInfo>
  487. <Rows>
  488. <Row>
  489. <Col id="srchcond1">3</Col>
  490. <Col id="pid"/>
  491. <Col id="goso_status"/>
  492. <Col id="sess_posinstcd">012</Col>
  493. <Col id="gootdd"/>
  494. <Col id="wardcd"/>
  495. <Col id="formcd"/>
  496. </Row>
  497. </Rows>
  498. </Dataset>
  499. <Dataset id="ds_main_gosolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  500. <ColumnInfo>
  501. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  502. <Column id="pid" type="STRING" size="256" sumtext="환자 등록번호"/>
  503. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  504. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  505. <Column id="seqno" type="INT" size="256" sumtext="일련번호"/>
  506. <Column id="instcd" type="STRING" size="256" sumtext="병원 기관코드"/>
  507. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태(코드군 P0040 참조)"/>
  508. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드(1.신청 2.승인 3.불승인)"/>
  509. <Column id="appdd" type="STRING" size="256" sumtext="신청일자"/>
  510. <Column id="apptm" type="STRING" size="256" sumtext="신청시간"/>
  511. <Column id="appid" type="STRING" size="256" sumtext="신청 담당자 ID"/>
  512. <Column id="pamacptdd" type="STRING" size="256" sumtext="원무 접수일자"/>
  513. <Column id="pamacpttm" type="STRING" size="256" sumtext="원무 접수시간"/>
  514. <Column id="pamacptid" type="STRING" size="256" sumtext="원무 접수 담당자 ID"/>
  515. <Column id="gootdd" type="STRING" size="256" sumtext="외출일자"/>
  516. <Column id="goottm" type="STRING" size="256" sumtext="외출시간"/>
  517. <Column id="goottmtm" type="STRING" size="256" sumtext="외출시간(temp)"/>
  518. <Column id="goottmmin" type="STRING" size="256" sumtext="외출시간(temp)"/>
  519. <Column id="rtndd" type="STRING" size="256" sumtext="귀가일자"/>
  520. <Column id="rtntm" type="STRING" size="256" sumtext="귀가시간"/>
  521. <Column id="rtntmtm" type="STRING" size="256" sumtext="귀가시간(temp)"/>
  522. <Column id="rtntmmin" type="STRING" size="256" sumtext="귀가시간(temp)"/>
  523. <Column id="orgrtndd" type="STRING" size="256" sumtext="실제귀가일자"/>
  524. <Column id="orgrtntm" type="STRING" size="256" sumtext="실제귀가시간"/>
  525. <Column id="orgrtnacptid" type="STRING" size="256" sumtext="귀가 접수 담당자 ID"/>
  526. <Column id="rtncnfmyn" type="STRING" size="256" sumtext="귀가확인여부"/>
  527. <Column id="tel1" type="STRING" size="256" sumtext="전화번호1"/>
  528. <Column id="tel2" type="STRING" size="256" sumtext="전화번호2"/>
  529. <Column id="gootresn" type="STRING" size="256" sumtext="외출사유"/>
  530. <Column id="nonaprvresn" type="STRING" size="256" sumtext="불승인사유"/>
  531. <Column id="rem" type="STRING" size="256" sumtext="비고"/>
  532. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  533. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  534. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  535. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  536. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  537. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  538. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  539. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  540. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  541. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  542. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  543. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  544. <Column id="zipnm" type="STRING" size="256" sumtext="주소"/>
  545. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  546. <Column id="atdoctidnm" type="STRING" size="256" sumtext="주치의이름"/>
  547. <Column id="appidnm" type="STRING" size="256" sumtext="승인의사"/>
  548. <Column id="dschdclrtyn" type="STRING" size="256" sumtext="퇴원예고여부"/>
  549. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원통보여부"/>
  550. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  551. <Column id="signdata" type="BLOB" size="256" sumtext="서명이미지"/>
  552. </ColumnInfo>
  553. </Dataset>
  554. <Dataset id="ds_main_goso" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_goso_oncolumnchanged">
  555. <ColumnInfo>
  556. <Column id="goso_status" type="STRING" size="256"/>
  557. <Column id="goso_pid" type="STRING" size="256"/>
  558. <Column id="goso_indd" type="STRING" size="256"/>
  559. <Column id="goso_cretno" type="STRING" size="256"/>
  560. <Column id="goso_seqno" type="STRING" size="256"/>
  561. <Column id="goso_instcd" type="STRING" size="256"/>
  562. <Column id="goso_histstat" type="STRING" size="256"/>
  563. <Column id="goso_acptflagcd" type="STRING" size="256"/>
  564. <Column id="goso_appdd" type="STRING" size="256"/>
  565. <Column id="goso_apptm" type="STRING" size="256"/>
  566. <Column id="goso_appid" type="STRING" size="256"/>
  567. <Column id="goso_pamacptdd" type="STRING" size="256"/>
  568. <Column id="goso_pamacpttm" type="STRING" size="256"/>
  569. <Column id="goso_pamacptid" type="STRING" size="256"/>
  570. <Column id="goso_orddeptcd" type="STRING" size="256"/>
  571. <Column id="goso_atdoctid" type="STRING" size="256"/>
  572. <Column id="goso_wardcd" type="STRING" size="256"/>
  573. <Column id="goso_roomcd" type="STRING" size="256"/>
  574. <Column id="goso_gootdd" type="STRING" size="256"/>
  575. <Column id="goso_goottm" type="STRING" size="256"/>
  576. <Column id="goso_goottmtm" type="STRING" size="256"/>
  577. <Column id="goso_goottmmin" type="STRING" size="256"/>
  578. <Column id="goso_rtndd" type="STRING" size="256"/>
  579. <Column id="goso_rtntm" type="STRING" size="256"/>
  580. <Column id="goso_rtntmtm" type="STRING" size="256"/>
  581. <Column id="goso_rtntmmin" type="STRING" size="256"/>
  582. <Column id="goso_orgrtndd" type="STRING" size="256"/>
  583. <Column id="goso_orgrtntm" type="STRING" size="256"/>
  584. <Column id="goso_orgrtnacptid" type="STRING" size="256"/>
  585. <Column id="goso_rtncnfmyn" type="STRING" size="256"/>
  586. <Column id="goso_tel1" type="STRING" size="256"/>
  587. <Column id="goso_tel2" type="STRING" size="256"/>
  588. <Column id="goso_gootresn" type="STRING" size="256"/>
  589. <Column id="goso_nonaprvresn" type="STRING" size="256"/>
  590. <Column id="goso_rem" type="STRING" size="256"/>
  591. <Column id="goso_fstrgstrid" type="STRING" size="256"/>
  592. <Column id="goso_fstrgstdt" type="STRING" size="256"/>
  593. <Column id="goso_lastupdtrid" type="STRING" size="256"/>
  594. <Column id="goso_lastupdtdt" type="STRING" size="256"/>
  595. <Column id="goso_hngnm" type="STRING" size="256"/>
  596. <Column id="goso_sex" type="STRING" size="256"/>
  597. <Column id="goso_age" type="STRING" size="256"/>
  598. <Column id="goso_insukind" type="STRING" size="256"/>
  599. <Column id="goso_addr" type="STRING" size="256"/>
  600. <Column id="goso_rrgstno" type="STRING" size="256"/>
  601. <Column id="goso_signdata" type="BLOB" size="256" sumtext="서명이미지"/>
  602. <Column id="goso_appidnm" type="STRING" size="256"/>
  603. </ColumnInfo>
  604. <Rows>
  605. <Row>
  606. <Col id="goso_status"/>
  607. <Col id="goso_pid"/>
  608. <Col id="goso_indd"/>
  609. <Col id="goso_cretno"/>
  610. <Col id="goso_seqno"/>
  611. <Col id="goso_instcd"/>
  612. <Col id="goso_histstat"/>
  613. <Col id="goso_acptflagcd"/>
  614. <Col id="goso_appdd"/>
  615. <Col id="goso_apptm"/>
  616. <Col id="goso_appid"/>
  617. <Col id="goso_pamacptdd"/>
  618. <Col id="goso_pamacpttm"/>
  619. <Col id="goso_pamacptid"/>
  620. <Col id="goso_orddeptcd"/>
  621. <Col id="goso_atdoctid"/>
  622. <Col id="goso_wardcd"/>
  623. <Col id="goso_roomcd"/>
  624. <Col id="goso_gootdd"/>
  625. <Col id="goso_goottm"/>
  626. <Col id="goso_goottmtm"/>
  627. <Col id="goso_goottmmin"/>
  628. <Col id="goso_rtndd"/>
  629. <Col id="goso_rtntm"/>
  630. <Col id="goso_rtntmtm"/>
  631. <Col id="goso_rtntmmin"/>
  632. <Col id="goso_orgrtndd"/>
  633. <Col id="goso_orgrtntm"/>
  634. <Col id="goso_orgrtnacptid"/>
  635. <Col id="goso_rtncnfmyn"/>
  636. <Col id="goso_tel1"/>
  637. <Col id="goso_tel2"/>
  638. <Col id="goso_gootresn"/>
  639. <Col id="goso_nonaprvresn"/>
  640. <Col id="goso_rem"/>
  641. <Col id="goso_fstrgstrid"/>
  642. <Col id="goso_fstrgstdt"/>
  643. <Col id="goso_lastupdtrid"/>
  644. <Col id="goso_lastupdtdt"/>
  645. <Col id="goso_hngnm"/>
  646. <Col id="goso_sex"/>
  647. <Col id="goso_age"/>
  648. <Col id="goso_insukind"/>
  649. <Col id="goso_signdata"/>
  650. </Row>
  651. </Rows>
  652. </Dataset>
  653. <Dataset id="ds_init_P0418list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  654. <ColumnInfo>
  655. <Column id="cdid" type="STRING" size="256"/>
  656. <Column id="cdnm" type="STRING" size="256"/>
  657. </ColumnInfo>
  658. </Dataset>
  659. <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  660. <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  661. <ColumnInfo>
  662. <Column id="cd" type="STRING" size="256"/>
  663. <Column id="id" type="STRING" size="256"/>
  664. </ColumnInfo>
  665. </Dataset>
  666. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  667. <ColumnInfo>
  668. <Column id="cd" type="STRING" size="256"/>
  669. <Column id="id" type="STRING" size="256"/>
  670. </ColumnInfo>
  671. </Dataset>
  672. <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  673. <ColumnInfo>
  674. <Column id="cd" type="STRING" size="256"/>
  675. <Column id="id" type="STRING" size="256"/>
  676. <Column id="up" type="STRING" size="256"/>
  677. <Column id="io" type="STRING" size="256"/>
  678. </ColumnInfo>
  679. </Dataset>
  680. <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  681. <ColumnInfo>
  682. <Column id="cd" type="STRING" size="256"/>
  683. <Column id="id" type="STRING" size="256"/>
  684. <Column id="deptengabbr2" type="STRING" size="256"/>
  685. </ColumnInfo>
  686. </Dataset>
  687. <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  688. <ColumnInfo>
  689. <Column id="cd" type="STRING" size="256"/>
  690. <Column id="id" type="STRING" size="256"/>
  691. <Column id="dp" type="STRING" size="256"/>
  692. <Column id="sp" type="STRING" size="256"/>
  693. </ColumnInfo>
  694. </Dataset>
  695. <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  696. <ColumnInfo>
  697. <Column id="cd" type="STRING" size="256"/>
  698. <Column id="id" type="STRING" size="256"/>
  699. <Column id="of" type="STRING" size="256"/>
  700. </ColumnInfo>
  701. </Dataset>
  702. <Dataset id="ds_hidden_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  703. <ColumnInfo>
  704. <Column id="cd" type="STRING" size="256"/>
  705. <Column id="id" type="STRING" size="256"/>
  706. <Column id="gr" type="STRING" size="256"/>
  707. <Column id="ty" type="STRING" size="256"/>
  708. </ColumnInfo>
  709. </Dataset>
  710. <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  711. <ColumnInfo>
  712. <Column id="prestdd" type="STRING" size="256"/>
  713. <Column id="mskindflag" type="STRING" size="256"/>
  714. </ColumnInfo>
  715. </Dataset>
  716. <Dataset id="ds_hidden_rcv_gosolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  717. <ColumnInfo>
  718. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  719. <Column id="pid" type="STRING" size="256" sumtext="환자 등록번호"/>
  720. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  721. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  722. <Column id="seqno" type="INT" size="256" sumtext="일련번호"/>
  723. <Column id="instcd" type="STRING" size="256" sumtext="병원 기관코드"/>
  724. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태(코드군 P0040 참조)"/>
  725. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드(1.신청 2.승인 3.불승인)"/>
  726. <Column id="appdd" type="STRING" size="256" sumtext="신청일자"/>
  727. <Column id="apptm" type="STRING" size="256" sumtext="신청시간"/>
  728. <Column id="appid" type="STRING" size="256" sumtext="신청 담당자 ID"/>
  729. <Column id="pamacptdd" type="STRING" size="256" sumtext="원무 접수일자"/>
  730. <Column id="pamacpttm" type="STRING" size="256" sumtext="원무 접수시간"/>
  731. <Column id="pamacptid" type="STRING" size="256" sumtext="원무 접수 담당자 ID"/>
  732. <Column id="gootdd" type="STRING" size="256" sumtext="외출일자"/>
  733. <Column id="goottm" type="STRING" size="256" sumtext="외출시간"/>
  734. <Column id="goottmtm" type="STRING" size="256" sumtext="외출시간(temp)"/>
  735. <Column id="goottmmin" type="STRING" size="256" sumtext="외출시간(temp)"/>
  736. <Column id="rtndd" type="STRING" size="256" sumtext="귀가일자"/>
  737. <Column id="rtntm" type="STRING" size="256" sumtext="귀가시간"/>
  738. <Column id="rtntmtm" type="STRING" size="256" sumtext="귀가시간(temp)"/>
  739. <Column id="rtntmmin" type="STRING" size="256" sumtext="귀가시간(temp)"/>
  740. <Column id="orgrtndd" type="STRING" size="256" sumtext="실제귀가일자"/>
  741. <Column id="orgrtntm" type="STRING" size="256" sumtext="실제귀가시간"/>
  742. <Column id="orgrtnacptid" type="STRING" size="256" sumtext="귀가 접수 담당자 ID"/>
  743. <Column id="rtncnfmyn" type="STRING" size="256" sumtext="귀가확인여부"/>
  744. <Column id="tel1" type="STRING" size="256" sumtext="전화번호1"/>
  745. <Column id="tel2" type="STRING" size="256" sumtext="전화번호2"/>
  746. <Column id="gootresn" type="STRING" size="256" sumtext="외출사유"/>
  747. <Column id="nonaprvresn" type="STRING" size="256" sumtext="불승인사유"/>
  748. <Column id="rem" type="STRING" size="256" sumtext="비고"/>
  749. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  750. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  751. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  752. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  753. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  754. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  755. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  756. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  757. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  758. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  759. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  760. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  761. <Column id="zipnm" type="STRING" size="256" sumtext="주소"/>
  762. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  763. <Column id="atdoctidnm" type="STRING" size="256" sumtext="주치의이름"/>
  764. <Column id="appidnm" type="STRING" size="256" sumtext="승인의사"/>
  765. <Column id="dschdclrtyn" type="STRING" size="256" sumtext="퇴원예고여부"/>
  766. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원통보여부"/>
  767. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  768. </ColumnInfo>
  769. </Dataset>
  770. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  771. <Dataset id="ds_static_acptflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="label" type="STRING" size="256"/>
  774. <Column id="value" type="STRING" size="256"/>
  775. </ColumnInfo>
  776. <Rows>
  777. <Row>
  778. <Col id="label">신청</Col>
  779. <Col id="value">1</Col>
  780. </Row>
  781. <Row>
  782. <Col id="label">승인</Col>
  783. <Col id="value">2</Col>
  784. </Row>
  785. <Row>
  786. <Col id="label">불승인</Col>
  787. <Col id="value">3</Col>
  788. </Row>
  789. </Rows>
  790. </Dataset>
  791. <Dataset id="ds_hidden_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  792. <Dataset id="ds_hidden_original_gosolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  793. <Dataset id="ds_main_ocrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  794. <ColumnInfo>
  795. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAGNO"/>
  796. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  797. <Column id="formfromdt" type="STRING" size="256" sumtext="서식시작일자"/>
  798. </ColumnInfo>
  799. </Dataset>
  800. <Dataset id="ds_send_s_goso" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_goso_oncolumnchanged">
  801. <ColumnInfo>
  802. <Column id="goso_status" type="STRING" size="256"/>
  803. <Column id="goso_pid" type="STRING" size="256"/>
  804. <Column id="goso_indd" type="STRING" size="256"/>
  805. <Column id="goso_cretno" type="STRING" size="256"/>
  806. <Column id="goso_seqno" type="STRING" size="256"/>
  807. <Column id="goso_instcd" type="STRING" size="256"/>
  808. <Column id="goso_histstat" type="STRING" size="256"/>
  809. <Column id="goso_acptflagcd" type="STRING" size="256"/>
  810. <Column id="goso_appdd" type="STRING" size="256"/>
  811. <Column id="goso_apptm" type="STRING" size="256"/>
  812. <Column id="goso_appid" type="STRING" size="256"/>
  813. <Column id="goso_pamacptdd" type="STRING" size="256"/>
  814. <Column id="goso_pamacpttm" type="STRING" size="256"/>
  815. <Column id="goso_pamacptid" type="STRING" size="256"/>
  816. <Column id="goso_orddeptcd" type="STRING" size="256"/>
  817. <Column id="goso_atdoctid" type="STRING" size="256"/>
  818. <Column id="goso_wardcd" type="STRING" size="256"/>
  819. <Column id="goso_roomcd" type="STRING" size="256"/>
  820. <Column id="goso_gootdd" type="STRING" size="256"/>
  821. <Column id="goso_goottm" type="STRING" size="256"/>
  822. <Column id="goso_goottmtm" type="STRING" size="256"/>
  823. <Column id="goso_goottmmin" type="STRING" size="256"/>
  824. <Column id="goso_rtndd" type="STRING" size="256"/>
  825. <Column id="goso_rtntm" type="STRING" size="256"/>
  826. <Column id="goso_rtntmtm" type="STRING" size="256"/>
  827. <Column id="goso_rtntmmin" type="STRING" size="256"/>
  828. <Column id="goso_orgrtndd" type="STRING" size="256"/>
  829. <Column id="goso_orgrtntm" type="STRING" size="256"/>
  830. <Column id="goso_orgrtnacptid" type="STRING" size="256"/>
  831. <Column id="goso_rtncnfmyn" type="STRING" size="256"/>
  832. <Column id="goso_tel1" type="STRING" size="256"/>
  833. <Column id="goso_tel2" type="STRING" size="256"/>
  834. <Column id="goso_gootresn" type="STRING" size="256"/>
  835. <Column id="goso_nonaprvresn" type="STRING" size="256"/>
  836. <Column id="goso_rem" type="STRING" size="256"/>
  837. <Column id="goso_fstrgstrid" type="STRING" size="256"/>
  838. <Column id="goso_fstrgstdt" type="STRING" size="256"/>
  839. <Column id="goso_lastupdtrid" type="STRING" size="256"/>
  840. <Column id="goso_lastupdtdt" type="STRING" size="256"/>
  841. <Column id="goso_hngnm" type="STRING" size="256"/>
  842. <Column id="goso_sex" type="STRING" size="256"/>
  843. <Column id="goso_age" type="STRING" size="256"/>
  844. <Column id="goso_insukind" type="STRING" size="256"/>
  845. </ColumnInfo>
  846. <Rows>
  847. <Row>
  848. <Col id="goso_status"/>
  849. <Col id="goso_pid"/>
  850. <Col id="goso_indd"/>
  851. <Col id="goso_cretno"/>
  852. <Col id="goso_seqno"/>
  853. <Col id="goso_instcd"/>
  854. <Col id="goso_histstat"/>
  855. <Col id="goso_acptflagcd"/>
  856. <Col id="goso_appdd"/>
  857. <Col id="goso_apptm"/>
  858. <Col id="goso_appid"/>
  859. <Col id="goso_pamacptdd"/>
  860. <Col id="goso_pamacpttm"/>
  861. <Col id="goso_pamacptid"/>
  862. <Col id="goso_orddeptcd"/>
  863. <Col id="goso_atdoctid"/>
  864. <Col id="goso_wardcd"/>
  865. <Col id="goso_roomcd"/>
  866. <Col id="goso_gootdd"/>
  867. <Col id="goso_goottm"/>
  868. <Col id="goso_goottmtm"/>
  869. <Col id="goso_goottmmin"/>
  870. <Col id="goso_rtndd"/>
  871. <Col id="goso_rtntm"/>
  872. <Col id="goso_rtntmtm"/>
  873. <Col id="goso_rtntmmin"/>
  874. <Col id="goso_orgrtndd"/>
  875. <Col id="goso_orgrtntm"/>
  876. <Col id="goso_orgrtnacptid"/>
  877. <Col id="goso_rtncnfmyn"/>
  878. <Col id="goso_tel1"/>
  879. <Col id="goso_tel2"/>
  880. <Col id="goso_gootresn"/>
  881. <Col id="goso_nonaprvresn"/>
  882. <Col id="goso_rem"/>
  883. <Col id="goso_fstrgstrid"/>
  884. <Col id="goso_fstrgstdt"/>
  885. <Col id="goso_lastupdtrid"/>
  886. <Col id="goso_lastupdtdt"/>
  887. <Col id="goso_hngnm"/>
  888. <Col id="goso_sex"/>
  889. <Col id="goso_age"/>
  890. <Col id="goso_insukind"/>
  891. </Row>
  892. </Rows>
  893. </Dataset>
  894. </Objects>
  895. <Bind>
  896. <BindItem id="item0" compid="grp.combo1" propid="value" datasetid="ds_send" columnid="wardcd"/>
  897. <BindItem id="item1" compid="grp.cmb_srchcond1" propid="value" datasetid="ds_send" columnid="srchcond1"/>
  898. <BindItem id="item2" compid="grp.ipt_gootdd" propid="value" datasetid="ds_send" columnid="gootdd"/>
  899. <BindItem id="item3" compid="opt_pid" propid="value" datasetid="ds_main_goso" columnid="goso_pid"/>
  900. <BindItem id="item4" compid="opt_hngnm" propid="value" datasetid="ds_main_goso" columnid="goso_hngnm"/>
  901. <BindItem id="item5" compid="opt_sex" propid="value" datasetid="ds_main_goso" columnid="goso_sex"/>
  902. <BindItem id="item6" compid="opt_age" propid="value" datasetid="ds_main_goso" columnid="goso_age"/>
  903. <BindItem id="item7" compid="combo2" propid="value" datasetid="ds_main_goso" columnid=""/>
  904. <BindItem id="item8" compid="cmb_roomcd" propid="value" datasetid="ds_main_goso" columnid="goso_roomcd"/>
  905. <BindItem id="item9" compid="cmb_wardcd" propid="value" datasetid="ds_main_goso" columnid="goso_wardcd"/>
  906. <BindItem id="item10" compid="cmb_atdoctid" propid="value" datasetid="ds_main_goso" columnid="goso_atdoctid"/>
  907. <BindItem id="item11" compid="cmb_orddeptcd" propid="value" datasetid="ds_main_goso" columnid="goso_orddeptcd"/>
  908. <BindItem id="item12" compid="input1" propid="value" datasetid="ds_main_goso" columnid="goso_gootdd"/>
  909. <BindItem id="item13" compid="ipt_rtndd" propid="value" datasetid="ds_main_goso" columnid="goso_rtndd"/>
  910. <BindItem id="item14" compid="cmb_rtntm" propid="value" datasetid="ds_main_goso" columnid="goso_rtntmtm"/>
  911. <BindItem id="item15" compid="cmb_goottm" propid="value" datasetid="ds_main_goso" columnid="goso_goottmtm"/>
  912. <BindItem id="item16" compid="cmb_goottmmin" propid="value" datasetid="ds_main_goso" columnid="goso_goottmmin"/>
  913. <BindItem id="item17" compid="cmb_rtntmmin" propid="value" datasetid="ds_main_goso" columnid="goso_rtntmmin"/>
  914. <BindItem id="item18" compid="ipt_tel1" propid="value" datasetid="ds_main_goso" columnid="goso_tel1"/>
  915. <BindItem id="item19" compid="ipt_tel2" propid="value" datasetid="ds_main_goso" columnid="goso_tel2"/>
  916. <BindItem id="item20" compid="cmb_gootresn" propid="value" datasetid="ds_main_goso" columnid="goso_gootresn"/>
  917. <BindItem id="item21" compid="ipt_rem" propid="value" datasetid="ds_main_goso" columnid="goso_rem"/>
  918. <BindItem id="item22" compid="cmb_acptflagcd" propid="value" datasetid="ds_main_goso" columnid="goso_acptflagcd"/>
  919. <BindItem id="item23" compid="ipt_nonaprvresn" propid="value" datasetid="ds_main_goso" columnid="goso_nonaprvresn"/>
  920. <BindItem id="item24" compid="ipt_orgrtndd" propid="value" datasetid="ds_main_goso" columnid="goso_orgrtndd"/>
  921. <BindItem id="item25" compid="ipt_orgrtntm" propid="value" datasetid="ds_main_goso" columnid="goso_orgrtntm"/>
  922. <BindItem id="item26" compid="ipt_rtncnfmyn" propid="value" datasetid="ds_main_goso" columnid="goso_rtncnfmyn"/>
  923. <BindItem id="item27" compid="cmb_atdoctid00" propid="value" datasetid="ds_main_goso" columnid="goso_appid"/>
  924. <BindItem id="item28" compid="ipt_orgrtndd00" propid="value" datasetid="ds_main_goso" columnid="goso_appdd"/>
  925. <BindItem id="item29" compid="ipt_orgrtntm00" propid="value" datasetid="ds_main_goso" columnid="goso_apptm"/>
  926. </Bind>
  927. <InitValue>
  928. <Combo id="cmb_atdoctid" codecolumn="cd" datacolumn="nm" innerdataset="@ds_hidden_init_orddrid"/>
  929. <Combo id="cmb_atdoctid00" codecolumn="cd" datacolumn="nm" innerdataset="@ds_hidden_init_orddrid"/>
  930. </InitValue>
  931. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  932. * System Name :
  933. * Job Name :
  934. * Creator :
  935. * Make Date : 2016-05-24
  936. * Description :
  937. *---------------------------------------------------------------------------------------
  938. * Modify Date Modifier Modify Description
  939. *---------------------------------------------------------------------------------------
  940. * 2016-05-24 Live Converter TF->XP
  941. *
  942. *---------------------------------------------------------------------------------------
  943. ****************************************************************************************/
  944. //=======================================================================================
  945. // Lib Include
  946. //---------------------------------------------------------------------------------------
  947. include 'com_commonxp::comm_main.xjs';
  948. include 'emr_prcpmngtxp::SMMMO00100.xjs';
  949. var arErrorCode = new HashArray();
  950. //=======================================================================================
  951. // Local methods
  952. //---------------------------------------------------------------------------------------
  953. /**
  954. * 외출외박환자리스트 조회
  955. * @return {[type]} [description]
  956. */
  957. function fQuery() {
  958. dsf_createDsRow('ds_req', [
  959. { col: 'srchcond1', type: 'string', size: 256, val: '' },
  960. { col: 'gootdd', type: 'string', size: 256, val: '' },
  961. { col: 'wardcd', type: 'string', size: 256, val: '' },
  962. { col: 'pid', type: 'string', size: 256, val: '' },
  963. { col: 'insukind', type: 'string', size: 256, val: '' },
  964. { col: 'goso_caller', type: 'string', size: 256, val: '' }
  965. ], false);
  966. ds_req.copyRow(0, ds_send, 0);
  967. ds_hidden_rcv_gosolist.clearData();
  968. var oParam = {};
  969. oParam.id = "TRPMI01101";
  970. oParam.service = "ipatmngtapp.GoOtSpOtPat";
  971. oParam.method = "reqGetGoOtSpOtList";
  972. oParam.inds = "req=ds_req";
  973. oParam.outds = "ds_hidden_rcv_gosolist=goso";
  974. oParam.async = false;
  975. oParam.callback = "callback";
  976. tranf_submit(oParam);
  977. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_gosolist, 'goso_');
  978. ds_hidden_rcv_gosolist.copyData(ds_tmp, false);
  979. // dsf_setTypeFormat(ds_hidden_rcv_gosolist, "goso_cretno:INT^goso_seqno:INT");
  980. if (arErrorCode.pop("TRPMI01101") > -1) {
  981. ds_main_goso.enableevent = false;
  982. ds_main_goso.clearData();
  983. ds_main_goso.addRow();
  984. ds_main_goso.enableevent = true;
  985. ds_hidden_original_gosolist.copyData(ds_hidden_rcv_gosolist, false);
  986. ds_hidden_rcv_gosolist.filter('goso_acptflagcd != ""');
  987. ds_main_gosolist.copyData(ds_hidden_rcv_gosolist, true);
  988. }
  989. }
  990. /**
  991. * fOCRSave
  992. * @return {[type]} [description]
  993. */
  994. function fOCRSave() {
  995. // 파라미터 세팅
  996. var ocrtagno = ds_main_ocrinfo.getColumn(0, "ocrtag");
  997. var pid = ds_main_goso.getColumn(0, "goso_pid");
  998. var orddd = ds_main_goso.getColumn(0, "goso_indd");
  999. var cretno = ds_main_goso.getColumn(0, "goso_cretno");
  1000. var ordtype = "I";
  1001. var orddeptcd = ds_main_goso.getColumn(0, "goso_orddeptcd");
  1002. var orddrid = ds_main_goso.getColumn(0, "goso_atdoctid");
  1003. var formcd = ds_main_ocrinfo.getColumn(0, "formcd");
  1004. var formfromdt = ds_main_ocrinfo.getColumn(0, "formfromdt");
  1005. var pagecnt = "1";
  1006. if (!fSaveOCRIF(ocrtagno, pid, orddd, cretno, ordtype, orddeptcd, orddrid, formcd, formfromdt, "", "", pagecnt)) {
  1007. sysf_messageBox("통합기록 연동중 오류가 발생하였습니다. ", "C999");
  1008. return false;
  1009. }
  1010. }
  1011. /**
  1012. * [fChangeSave description]
  1013. * @param {[type]} arg1 [description]
  1014. * @return {[type]} [description]
  1015. */
  1016. function fChangeSave(arg1) {
  1017. var goso_flag = null;
  1018. goso_flag = arg1;
  1019. ds_send_s_goso.clearData();
  1020. if (goso_flag == 'C') { // 확인등록 Routin
  1021. // 필수입력항목체크
  1022. var sValCheck = fValCheck();
  1023. if (sValCheck != 'Y') {
  1024. sysf_messageBox(sValCheck, "I004");
  1025. return;
  1026. }
  1027. ds_send_s_goso.copyRow(ds_send_s_goso.addRow(), ds_main_goso, 0);
  1028. ds_send_s_goso.setColumn(0, "goso_status", goso_flag);
  1029. }
  1030. else {
  1031. sysf_messageBox("변경된 내역이", "I004");
  1032. return;
  1033. }
  1034. if (ds_main_goso.getColumn(0, "goso_rtncnfmyn") != 'Y') {
  1035. if (sysf_messageBox("귀원확인여부가 체크되지 않았습니다. 수정하시겠습니까?", "Q") == "6") {
  1036. return;
  1037. }
  1038. }
  1039. if (goso_flag == 'C') {
  1040. dsf_createDsRow('ds_res', [
  1041. { col: 'goso_count', type: 'string', size: 256, val: '' },
  1042. { col: 'goso_pid', type: 'string', size: 256, val: '' },
  1043. { col: 'goso_indd', type: 'string', size: 256, val: '' },
  1044. { col: 'goso_cretno', type: 'string', size: 256, val: '' }
  1045. ], false);
  1046. ds_res.copyData(ds_send_s_goso);
  1047. eraseFixed(ds_res, 'goso_');
  1048. dsf_setTypeFormat(ds_res, "cretno:INT^seqno:INT");
  1049. var oParam = {};
  1050. oParam.id = "TXPMI01101";
  1051. oParam.service = "ipatmngtapp.GoOtSpOtPat";
  1052. oParam.method = "reqSetGoOtSpOt";
  1053. oParam.inds = "s_goso=ds_res";
  1054. oParam.outds = "ds_res=result";
  1055. oParam.async = false;
  1056. tranf_submit(oParam);
  1057. }
  1058. else {
  1059. sysf_messageBox("변경된 내역이", "I004");
  1060. }
  1061. if (ds_res.getColumn(0, "goso_count") == '1') {
  1062. fQuery();
  1063. }
  1064. }
  1065. /**
  1066. * 타겟 데이터셋의 컬럼에서 고정문자열을 지운다
  1067. * @param {[type]} target: Dataset [description]
  1068. * @param {[type]} fixedStr [description]
  1069. * @return {[type]} [description]
  1070. */
  1071. function eraseFixed(target: Dataset, fixedStr){
  1072. if(target.rowcount < 1 || target.colcount < 1){
  1073. return;
  1074. }
  1075. for(var i = 0; i < target.colcount; i++){
  1076. var colId = String(target.getColID(i)).replace(fixedStr, '');
  1077. target.updateColID(i, colId);
  1078. }
  1079. }
  1080. /**
  1081. * 전과신청내역의 필수 입력항목 체크
  1082. * @return {[type]} [description]
  1083. */
  1084. function fValCheck() {
  1085. var rtn = "Y";
  1086. var goso_pid = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_pid"));
  1087. var goso_indd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_indd"));
  1088. var goso_cretno = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_cretno"));
  1089. var goso_histstat = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_histstat"));
  1090. var goso_acptflagcd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_acptflagcd"));
  1091. var goso_appdd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_appdd"));
  1092. var goso_apptm = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_apptm"));
  1093. var goso_gootdd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_gootdd"));
  1094. var goso_goottmtm = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_goottmtm"));
  1095. var goso_goottmmin = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_goottmmin"));
  1096. var goso_rtndd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_rtndd"));
  1097. var goso_rtntmtm = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_rtntmtm"));
  1098. var goso_rtntmmin = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_rtntmmin"));
  1099. var goso_orgrtndd = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_orgrtndd"));
  1100. var goso_orgrtntm = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_orgrtntm"));
  1101. var goso_nonaprvresn = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_nonaprvresn"));
  1102. var goso_rtncnfmyn = utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_rtncnfmyn"));
  1103. if (goso_pid == "") {
  1104. rtn = "환자등록번호가";
  1105. }
  1106. else if (goso_indd == "") {
  1107. rtn = "입원일자가";
  1108. }
  1109. else if (goso_cretno == "") {
  1110. rtn = "입원등록키가";
  1111. }
  1112. else if (goso_histstat == "") {
  1113. rtn = "상태값이";
  1114. }
  1115. else if (goso_acptflagcd == "") {
  1116. rtn = "접수상태가";
  1117. }
  1118. else if (goso_appdd == "") {
  1119. rtn = "신청일자가";
  1120. }
  1121. else if (goso_apptm == "") {
  1122. rtn = "신청시간이";
  1123. }
  1124. else if (goso_gootdd == "") {
  1125. rtn = "외출일자가";
  1126. }
  1127. else if (goso_goottmtm == "") {
  1128. rtn = "외출시간중 시가";
  1129. }
  1130. else if (goso_goottmmin == "") {
  1131. rtn = "외출시간중 분이";
  1132. }
  1133. else if (goso_rtndd == "") {
  1134. rtn = "귀원일자가";
  1135. }
  1136. else if (goso_rtntmtm == "") {
  1137. rtn = "귀원시간중 시가";
  1138. }
  1139. else if (goso_rtntmmin == "") {
  1140. rtn = "귀원시간중 분이";
  1141. }
  1142. else if (ds_main_goso.getColumn(0, "goso_rtncnfmyn") == 'Y') {
  1143. if (goso_orgrtndd == "") {
  1144. rtn = "실제귀원일자가";
  1145. }
  1146. else if (goso_orgrtntm == "") {
  1147. rtn = "실제귀원시간이";
  1148. }
  1149. }
  1150. else if (goso_rtncnfmyn == "") {
  1151. rtn = "귀원확인여부가";
  1152. }
  1153. if (goso_acptflagcd == '1') {
  1154. rtn = "승인여부가";
  1155. }
  1156. else if (goso_acptflagcd == '3') {
  1157. rtn = "불승인 건은 확인처리할수";
  1158. }
  1159. // 외출시간이나 귀원시간에서 시와 분으로 나누어진것을 더해서 데이터 저장을 한다.
  1160. if (rtn == 'Y') {
  1161. ds_main_goso.setColumn(0,"goso_goottm", goso_goottmtm + goso_goottmmin);
  1162. ds_main_goso.setColumn(0,"goso_rtntm", goso_rtntmtm + goso_rtntmmin);
  1163. }
  1164. return rtn;
  1165. }
  1166. /**
  1167. * submit 후 호출 될 공통 콜백
  1168. * @param {[type]} sSvcId [description]
  1169. * @param {[type]} nErrorCode [description]
  1170. * @param {[type]} sErrorMsg [description]
  1171. * @return {Function} [description]
  1172. */
  1173. function callback(sSvcId, nErrorCode, sErrorMsg){
  1174. arErrorCode.push(sSvcId, nErrorCode);
  1175. }
  1176. //=======================================================================================
  1177. // Events
  1178. //---------------------------------------------------------------------------------------
  1179. /**
  1180. * onload 이벤트 발생 시 호출
  1181. * @param {[type]} obj:Form [description]
  1182. * @param {[type]} e:LoadEventInfo [description]
  1183. */
  1184. function SPPMI03000_onload(obj: Form, e: LoadEventInfo) {
  1185. frmf_initForm(obj);
  1186. appf_getCodeList([{ dsNm: 'ds_init_P0418list', cdGrpId: 'P0418' }]);
  1187. ds_hidden_init_disccd.clearData();
  1188. ds_hidden_init_insukind.clearData();
  1189. ds_hidden_init_suppkind.clearData();
  1190. ds_hidden_init_orddeptcd.clearData();
  1191. ds_hidden_init_orddrid.clearData();
  1192. ds_hidden_init_wardcd.clearData();
  1193. ds_hidden_init_roomcd.clearData();
  1194. ds_hidden_init_flag.clearData();
  1195. dsf_createDsRow('ds_req', [
  1196. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  1197. { col: 'ioflag', type: 'string', size: 256, val: '' },
  1198. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  1199. ], false);
  1200. var oParam = {};
  1201. oParam.id = "TRPMI00106";
  1202. oParam.service = "pamcomnapp.PamComn";
  1203. oParam.method = "reqGetComCD";
  1204. oParam.inds = "req=ds_req";
  1205. oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind "
  1206. + "ds_hidden_init_suppkind=suppkind ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid "
  1207. + "ds_hidden_init_wardcd=wardcd ds_hidden_init_roomcd=roomcd ds_hidden_init_flag=flag";
  1208. oParam.async = false;
  1209. tranf_submit(oParam);
  1210. ds_send.setColumn(0, "gootdd", utlf_getCurrentDate());
  1211. var spid = '';
  1212. if(typeof(ds_hidden_target) != 'undefined'){
  1213. spid = ds_hidden_target.getColumn(0, "pid");
  1214. }
  1215. if (spid != "") {
  1216. ds_send.setColumn(0, "pid", spid);
  1217. fQuery();
  1218. }
  1219. else {
  1220. // 상단정보체크 2007.10.20 간호요청
  1221. var paminfo = sysf_getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  1222. if (paminfo.length > 0) { //원무 정보(기본 정보)가 있는 경우
  1223. dsf_setCSVToDs('ds_main_paminfo', paminfo);
  1224. var pid = ds_main_paminfo.getColumn(0, "pid");
  1225. ds_send.setColumn(0, "pid", pid);
  1226. ds_send.setColumn(0, "wardcd", ds_main_paminfo.getColumn(0, "wardcd"));
  1227. fQuery();
  1228. }
  1229. else {
  1230. //ds_send.setColumn(0, "wardcd" ,getUserInfo("dutplcecd")); // 사용자(접속자)의 병동코드를 가져온다.
  1231. fQuery();
  1232. }
  1233. }
  1234. if (sysf_getUserInfo("dutplceinstcd") != "031") {
  1235. button1.visible = true;
  1236. }
  1237. }
  1238. /**
  1239. * 조회일자 키보드 입력 이벤트
  1240. * @param {[type]} obj: Calendar [description]
  1241. * @param {[type]} e: KeyEventInfo [description]
  1242. * @return {[type]} [description]
  1243. */
  1244. function group2_ipt_gootdd_onkeydown(obj: Calendar, e: KeyEventInfo) {
  1245. if (e.keycode == 13) {
  1246. obj.updateToDataset();
  1247. grp.btn_srch.click();
  1248. }
  1249. }
  1250. /**
  1251. * 조회구분 콤보 아이템 변경 후 이벤트
  1252. * @param {[type]} obj: Combo [description]
  1253. * @param {[type]} e: ItemChangeEventInfo [description]
  1254. * @return {[type]} [description]
  1255. */
  1256. function grp_cmb_srchcond1_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  1257. var ipatrefflag = e.postvalue;
  1258. if (ipatrefflag == '3' || ipatrefflag == '4') {
  1259. grp.btn_srch.click();
  1260. }
  1261. }
  1262. /**
  1263. * 조회 버튼 클릭 이벤트
  1264. * @param {[type]} obj: Button [description]
  1265. * @param {[type]} e: ClickEventInfo [description]
  1266. * @return {[type]} [description]
  1267. */
  1268. function grp_btn_srch_onclick(obj: Button, e: ClickEventInfo) {
  1269. fQuery();
  1270. }
  1271. /**
  1272. * 외출외박확인 그리드 셀 클릭 이벤트
  1273. * @param {[type]} obj: Grid [description]
  1274. * @param {[type]} e: GridClickEventInfo [description]
  1275. * @return {[type]} [description]
  1276. */
  1277. function grd_gootspotlist_oncellclick(obj: Grid, e: GridClickEventInfo) {
  1278. var currow = grd_gootspotlist.currentrow;
  1279. if (currow < 0) {
  1280. return false;
  1281. }
  1282. // 각종환자정보 조회 ( 현재 선택된 재원내역 Row )
  1283. ds_main_goso.copyRow(0, ds_main_gosolist, currow);
  1284. var srtncnfmyn = ds_main_goso.getColumn(0, "goso_rtncnfmyn");
  1285. var sgoottm = String(ds_main_goso.getColumn(0, "goso_goottm"));
  1286. var srtntm = String(ds_main_goso.getColumn(0, "goso_rtntm"));
  1287. var sgoottmtm = sgoottm.substr(0, 2);
  1288. var sgoottmmin = sgoottm.substr(2, 2);
  1289. var srtntmtm = srtntm.substr(0, 2);
  1290. var srtntmmin = srtntm.substr(2, 2);
  1291. ds_main_goso.setColumn(0, "goso_goottmtm", sgoottmtm);
  1292. ds_main_goso.setColumn(0, "goso_goottmmin", sgoottmmin);
  1293. ds_main_goso.setColumn(0, "goso_rtntmtm", srtntmtm);
  1294. ds_main_goso.setColumn(0, "goso_rtntmmin", srtntmmin);
  1295. if (srtncnfmyn == "Y") {
  1296. ipt_orgrtndd.enable = false;
  1297. ipt_orgrtntm.enable = false;
  1298. }
  1299. else {
  1300. ipt_orgrtndd.enable = true;
  1301. ipt_orgrtntm.enable = true;
  1302. }
  1303. // 자보의 경우 보험유형 배경색 설정
  1304. if (ds_main_goso.getColumn(0, "goso_insukind") == "31") {
  1305. combo2.style.backgroundColor = "#ff99cc";
  1306. }
  1307. else {
  1308. combo2.style.backgroundColor = "#ECEBEC";
  1309. }
  1310. }
  1311. /**
  1312. * ds_main_goso 데이터셋 컬럼 변경 후 이벤트
  1313. * @param {[type]} obj: Dataset [description]
  1314. * @param {[type]} e: DSColChangeEventInfo [description]
  1315. * @return {[type]} [description]
  1316. */
  1317. function ds_main_goso_oncolumnchanged(obj: Dataset, e: DSColChangeEventInfo) {
  1318. if (e.columnid == 'goso_gootdd') {
  1319. if (e.newvalue < utlf_getCurrentDate()) {
  1320. sysf_messageBox('오늘일자보다 작을수 ', 'I004');
  1321. ds_main_goso.setColumn(0, 'goso_gootdd', e.oldvalue);
  1322. }
  1323. }
  1324. else if (e.columnid == 'goso_rtndd') {
  1325. if (e.newvalue < utlf_getCurrentDate() || e.newvalue < ds_main_goso.getColumn(0, 'goso_gootdd')) {
  1326. sysf_messageBox('오늘일자나 외출일자보다 작을수 ', 'I004');
  1327. ds_main_goso.setColumn(0, 'goso_rtndd', e.oldvalue);
  1328. }
  1329. }
  1330. else if (e.columnid == 'goso_orgrtndd') {
  1331. if (e.newvalue > utlf_getCurrentDate() || e.newvalue < ds_main_goso.getColumn(0, 'goso_gootdd')) {
  1332. sysf_messageBox('오늘일자보다 크거나 외출일자보다 작을수 ', 'I004');
  1333. ds_main_goso.setColumn(0, 'goso_orgrtndd', e.oldvalue);
  1334. }
  1335. }
  1336. }
  1337. /**
  1338. * 실제귀원일시 키보드 입력 이벤트
  1339. * @param {[type]} obj: MaskEdit [description]
  1340. * @param {[type]} e: TextChangeEventInfo [description]
  1341. * @return {[type]} [description]
  1342. */
  1343. function ipt_orgrtntm_ontextchange(obj: MaskEdit, e: TextChangeEventInfo) {
  1344. utlf_validMaskEditTime(obj, e);
  1345. }
  1346. /**
  1347. * 귀원확인여부 체크박스 클릭 이벤트
  1348. * @param {[type]} obj: CheckBox [description]
  1349. * @param {[type]} e: CheckBoxChangeEventInfo [description]
  1350. * @return {[type]} [description]
  1351. */
  1352. function ipt_rtncnfmyn_onchanged(obj: CheckBox, e: CheckBoxChangeEventInfo) {
  1353. }
  1354. /**
  1355. * 신청서출력 버튼 클릭 이벤트
  1356. * @param {[type]} obj: Button [description]
  1357. * @param {[type]} e: ClickEventInfo [description]
  1358. * @return {[type]} [description]
  1359. */
  1360. function button1_onclick(obj: Button, e: ClickEventInfo) {
  1361. var pid = ds_main_goso.getColumn(0, "goso_pid");
  1362. if (utlf_isNull(pid)) {
  1363. sysf_messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  1364. return;
  1365. }
  1366. ds_send.setColumn(0, "formcd", "1600018617"); // 외출외박신청서 1600018617
  1367. dsf_createDsRow('ds_req', [{ col: 'formcd', type: 'string', size: 256, val: '1600018617'}], false);
  1368. ds_main_ocrinfo.clearData();
  1369. // OCR 연동처리를 위한 정보 조회
  1370. var oParam = {};
  1371. oParam.id = "TRPMI01103";
  1372. oParam.service = "ipatmngtapp.InRgst";
  1373. oParam.method = "reqGetOcrInfo2";
  1374. oParam.inds = "req=ds_req";
  1375. oParam.outds = "ds_main_ocrinfo=ocrinfo";
  1376. oParam.async = false;
  1377. tranf_submit(oParam);
  1378. var ocrtag = ds_main_ocrinfo.getColumn(0, "ocrtag");
  1379. if (utlf_isNull(ocrtag)) {
  1380. sysf_messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
  1381. return;
  1382. }
  1383. dsf_makeValue(ds_main_goso, "ocrtag", 'string', ocrtag);
  1384. dsf_makeValue(ds_main_goso, "usernm", 'string', sysf_getUserName());
  1385. dsf_makeValue(ds_main_goso, "goso_logo", 'string', rptf_getLogoImageURL());
  1386. var fromdd = ds_main_goso.getColumn(0, "goso_gootdd");
  1387. var todd = ds_main_goso.getColumn(0, "goso_rtndd");
  1388. dsf_makeValue(ds_main_goso, "goso_days", 'string', utlf_getDateInterval(fromdd, todd) + 1); // 양입법적용
  1389. var orddeptcd = ds_main_goso.getColumn(0, "goso_orddeptcd");
  1390. dsf_makeValue(ds_main_goso, "goso_orddeptnm", 'string',
  1391. ds_hidden_init_orddeptcd.getColumn(ds_hidden_init_orddeptcd.findRow('cd', orddeptcd), 'nm'));
  1392. dsf_makeValue(ds_main_goso, "goso_orddeptabbr", 'string',
  1393. ds_hidden_init_orddeptcd.getColumn(ds_hidden_init_orddeptcd.findRow('cd', orddeptcd), 'deptengabbr2'));
  1394. // 신청의 이름 설정(2019/04/17 이정택 주석처리)
  1395. //dsf_makeValue(ds_main_goso, "goso_appidnm", 'string', cmb_atdoctid.text);
  1396. var resncd = ds_main_goso.getColumn(0, "goso_gootresn");
  1397. dsf_makeValue(ds_main_goso, "goso_gootresnnm", 'string', ds_init_P0418list.getColumn(ds_init_P0418list.findRow('cdid', resncd), 'cdnm'));
  1398. // 외출외박 신청서
  1399. // DOM 객체 설정
  1400. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1401. rptf_setNodeListToDOM(objDOM, "root/main/goso", ds_main_goso); // 데이터셋 1
  1402. var objExtCommon = new ExtCommon();
  1403. var objSignData = objExtCommon.encodeBase64(ds_main_goso.getColumn(0, "goso_signdata"));
  1404. rptf_setValueToDOM(objDOM, "/root/main/goso/goso_signdata", objSignData);
  1405. var objParam = new Object();
  1406. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1407. var option = "directprint=1;printdialog=0;";
  1408. rptf_exeReportPreview30(["RPPMI03000"],[objParam], option);
  1409. // 통합기록연동처리
  1410. fOCRSave();
  1411. }
  1412. /**
  1413. * 동의서출력 버튼 클릭 이벤트
  1414. * @param {[type]} obj: Button [description]
  1415. * @param {[type]} e: ClickEventInfo [description]
  1416. * @return {[type]} [description]
  1417. */
  1418. function btn_app02_onclick(obj: Button, e: ClickEventInfo) {
  1419. var pid = ds_main_goso.getColumn(0, "goso_pid");
  1420. if (utlf_isNull(pid)) {
  1421. sysf_messageBox("외출외박내역을 선택 후 출력하십시오.", "E000");
  1422. return;
  1423. }
  1424. ds_send.setColumn(0, "formcd", "1700019251");
  1425. dsf_createDsRow('ds_req', [{ col: 'formcd', type: 'string', size: 256, val: '1700019251'}], false);
  1426. ds_main_ocrinfo.clearData();
  1427. // OCR 연동처리를 위한 정보 조회
  1428. var oParam = {};
  1429. oParam.id = "TRPMI01103";
  1430. oParam.service = "ipatmngtapp.InRgst";
  1431. oParam.method = "reqGetOcrInfo2";
  1432. oParam.inds = "req=ds_req";
  1433. oParam.outds = "ds_main_ocrinfo=ocrinfo";
  1434. oParam.async = false;
  1435. tranf_submit(oParam);
  1436. var ocrtag = ds_main_ocrinfo.getColumn(0, "ocrtag");
  1437. if (utlf_isNull(ocrtag)) {
  1438. sysf_messageBox("OCR번호 조회에 실패하였습니다.\r\n동일현상이 반복되는 경우 전산실로 문의 하십시오.", "E000");
  1439. return;
  1440. }
  1441. dsf_makeValue(ds_main_goso, "ocrtag", 'string', ocrtag);
  1442. dsf_makeValue(ds_main_goso, "usernm", 'string', sysf_getUserName());
  1443. dsf_makeValue(ds_main_goso, "goso_logo", 'string', rptf_getLogoImageURL());
  1444. var fromdd = ds_main_goso.getColumn(0, "goso_gootdd");
  1445. var todd = ds_main_goso.getColumn(0, "goso_rtndd");
  1446. dsf_makeValue(ds_main_goso, "goso_days", 'string', utlf_getDateInterval(fromdd, todd) + 1); // 양입법적용
  1447. var orddeptcd = ds_main_goso.getColumn(0, "goso_orddeptcd");
  1448. dsf_makeValue(ds_main_goso, "goso_orddeptnm", 'string',
  1449. ds_hidden_init_orddeptcd.getColumn(ds_hidden_init_orddeptcd.findRow('cd', orddeptcd), 'nm'));
  1450. dsf_makeValue(ds_main_goso, "goso_orddeptabbr", 'string',
  1451. ds_hidden_init_orddeptcd.getColumn(ds_hidden_init_orddeptcd.findRow('cd', orddeptcd), 'deptengabbr2'));
  1452. var resncd = ds_main_goso.getColumn(0, "goso_gootresn");
  1453. dsf_makeValue(ds_main_goso, "goso_gootresnnm", 'string', ds_init_P0418list.getColumn(ds_init_P0418list.findRow('cdid', resncd), 'cdnm'));
  1454. // 외출외박 신청서
  1455. // DOM 객체 설정
  1456. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1457. rptf_setNodeListToDOM(objDOM, "root/main/goso", ds_main_goso); // 데이터셋 1
  1458. //본원 외출/외박 신청 및 동의서에 의사서명 출력되도록 수정(2019/04/18)
  1459. var objExtCommon = new ExtCommon();
  1460. var objSignData = objExtCommon.encodeBase64(ds_main_goso.getColumn(0, "goso_signdata"));
  1461. rptf_setValueToDOM(objDOM, "/root/main/goso/goso_signdata", objSignData);
  1462. var objParam = new Object();
  1463. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1464. var option = "directprint=1;printdialog=0;";
  1465. rptf_exeReportPreview30(["RPPMI03002"],[objParam], option);
  1466. // 통합기록연동처리
  1467. fOCRSave();
  1468. }
  1469. /**
  1470. * 귀원확인여부 체크박스 클릭 이벤트
  1471. * @param {[type]} obj:CheckBox [description]
  1472. * @param {[type]} e:ClickEventInfo [description]
  1473. * @return {[type]} [description]
  1474. */
  1475. function ipt_rtncnfmyn_onclick(obj:CheckBox, e:ClickEventInfo){
  1476. var sValue = obj.value;
  1477. if (sValue == "N") {
  1478. var sOrgrtndd = ds_main_goso.getColumn(0, "goso_orgrtndd");
  1479. var sCurrentDate = utlf_getCurrentDate();
  1480. if (sOrgrtndd == sCurrentDate) {
  1481. ds_main_goso.setColumn(0, "goso_orgrtndd", "");
  1482. ds_main_goso.setColumn(0, "goso_orgrtntm", "");
  1483. ipt_orgrtndd.enable = true;
  1484. ipt_orgrtntm.enable = true;
  1485. }
  1486. else {
  1487. ds_main_goso.setColumn(0, 'goso_rtncnfmyn', 'Y');
  1488. sysf_messageBox("당일이 아니면 취소할수", "I004");
  1489. }
  1490. }
  1491. else if (sValue == "Y") {
  1492. var sAcptflagcd = ds_main_goso.getColumn(0, "goso_acptflagcd");
  1493. if (sAcptflagcd != "2") {
  1494. ds_main_goso.setColumn(0, 'goso_rtncnfmyn', 'N');
  1495. sysf_messageBox("승인상태가 아니므로 귀원확인 할수", "I004");
  1496. }
  1497. if (utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_orgrtndd")) == "") {
  1498. ds_main_goso.setColumn(0, "goso_orgrtndd", utlf_getCurrentDate());
  1499. }
  1500. if (utlf_transNullToEmpty(ds_main_goso.getColumn(0, "goso_orgrtntm")) == "") {
  1501. var sCurrentTime = utlf_getCurrentTime();
  1502. ds_main_goso.setColumn(0, "goso_orgrtntm", sCurrentTime.substr(0, 4));
  1503. }
  1504. }
  1505. }
  1506. /**
  1507. * 저장 버튼 클릭 이벤트
  1508. * @param {[type]} obj: Button [description]
  1509. * @param {[type]} e: ClickEventInfo [description]
  1510. * @return {[type]} [description]
  1511. */
  1512. function btn_app_onclick(obj: Button, e: ClickEventInfo) {
  1513. fChangeSave("C"); // Confirm
  1514. }
  1515. /**
  1516. * 종료 버튼 클릭 이벤트
  1517. * @param {[type]} obj: Button [description]
  1518. * @param {[type]} e: ClickEventInfo [description]
  1519. * @return {[type]} [description]
  1520. */
  1521. function btn_exit_onclick(obj: Button, e: ClickEventInfo) {
  1522. this.close();
  1523. }
  1524. function button3_onclick(obj:Button, e:ClickEventInfo)
  1525. {
  1526. }
  1527. ]]></Script>
  1528. </Form>
  1529. </FDL>