SMPMI02800_외출외박승인.xfdl 74 KB

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