SPAEA02201_임시예약(핵의학).xfdl 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA02201" position="absolute 0 0 984 746" titletext="임시예약" oninit="SPAEA02201_oninit" onload="SPAEA02201_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 984 745" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 465 0 984 395" align="align:center top;" id="group2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Static text="환자ID" position="absolute 5 21 110 44" id="caption29" class="cell_1" anchor="default" style="font:Dotum,9;"/>
  14. <Edit position="absolute 115 127 250 146" id="optName" class="input_search" taborder="3" anchor="default" style="font:Dotum,9,bold;"/>
  15. <Static text="환자 예약 정보" position="absolute 5 0 174 17" id="caption30" class="tit_2" anchor="default"/>
  16. <Shape position="absolute 5 16 515 22" id="line15" class="line_10" anchor="default"/>
  17. <Shape position="absolute 2 388 515 394" linetype="horizontal" id="line16" class="line_3" anchor="default"/>
  18. <Static text="환자성명" position="absolute 5 125 110 148" id="caption31" class="cell_1" anchor="default"/>
  19. <Shape position="absolute 6 121 515 127" linetype="horizontal" id="line18" class="line_2" anchor="default"/>
  20. <TextArea position="absolute 115 230 510 330" id="tar_prcpremfact" taborder="10" anchor="default"/>
  21. <Edit position="absolute 115 23 220 42" id="iptPid" class="input_essential" taborder="1" anchor="default" onkeydown="grp_biz_group2_iptPid_onkeydown" style="font:Dotum,9,bold;"/>
  22. <Static text="주민번호" position="absolute 5 177 110 200" id="caption32" class="cell_1" anchor="default"/>
  23. <Shape position="absolute 6 147 515 153" linetype="horizontal" id="line19" class="line_2" anchor="default"/>
  24. <Static text="주소" position="absolute 5 203 110 226" id="caption33" class="cell_1" anchor="default"/>
  25. <Static text="연락처" position="absolute 255 177 330 200" id="caption34" class="cell_1" anchor="default"/>
  26. <Static text="병원" position="absolute 255 21 335 44" id="caption35" class="cell_1" anchor="default"/>
  27. <MaskEdit position="absolute 115 179 170 198" id="optRrgstNO" class="input_search" taborder="6" mask="#" anchor="default"/>
  28. <Static text="성별/나이" position="absolute 5 151 110 174" id="caption1" class="cell_1" anchor="default"/>
  29. <Edit position="absolute 335 179 510 198" id="optTel" class="input_search" taborder="8" anchor="default"/>
  30. <Edit position="absolute 115 205 510 224" id="optAddress1" class="input_search" taborder="9" anchor="default"/>
  31. <Static text="참고사항" position="absolute 5 229 110 331" id="caption2" class="cell_1" anchor="default"/>
  32. <Static text="예약일자" position="absolute 5 334 110 357" id="caption3" class="cell_1" anchor="default"/>
  33. <MaskEdit readonly="true" position="absolute 115 336 250 355" id="optRsrvDD" mask="@@@@-@@-@@" anchor="default" type="string" style="align:center middle;"/>
  34. <Static text="예약시간" position="absolute 254 334 322 357" id="caption4" class="cell_1" anchor="default"/>
  35. <Static text="시" position="absolute 376 336 396 356" id="caption20" anchor="default"/>
  36. <Static text="분" position="absolute 444 336 464 356" id="caption21" anchor="default"/>
  37. <Combo position="absolute 325 336 373 355" id="cmbHour" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  38. <Dataset id="innerdataset">
  39. <ColumnInfo>
  40. <Column id="codecolumn"/>
  41. <Column id="datacolumn"/>
  42. </ColumnInfo>
  43. <Rows>
  44. <Row>
  45. <Col id="codecolumn">
  46. </Col>
  47. <Col id="datacolumn">--</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">01</Col>
  51. <Col id="datacolumn">01</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">02</Col>
  55. <Col id="datacolumn">02</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">03</Col>
  59. <Col id="datacolumn">03</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">04</Col>
  63. <Col id="datacolumn">04</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">05</Col>
  67. <Col id="datacolumn">05</Col>
  68. </Row>
  69. <Row>
  70. <Col id="codecolumn">06</Col>
  71. <Col id="datacolumn">06</Col>
  72. </Row>
  73. <Row>
  74. <Col id="codecolumn">07</Col>
  75. <Col id="datacolumn">07</Col>
  76. </Row>
  77. <Row>
  78. <Col id="codecolumn">08</Col>
  79. <Col id="datacolumn">08</Col>
  80. </Row>
  81. <Row>
  82. <Col id="codecolumn">09</Col>
  83. <Col id="datacolumn">09</Col>
  84. </Row>
  85. <Row>
  86. <Col id="codecolumn">10</Col>
  87. <Col id="datacolumn">10</Col>
  88. </Row>
  89. <Row>
  90. <Col id="codecolumn">11</Col>
  91. <Col id="datacolumn">11</Col>
  92. </Row>
  93. <Row>
  94. <Col id="codecolumn">12</Col>
  95. <Col id="datacolumn">12</Col>
  96. </Row>
  97. <Row>
  98. <Col id="codecolumn">13</Col>
  99. <Col id="datacolumn">13</Col>
  100. </Row>
  101. <Row>
  102. <Col id="codecolumn">14</Col>
  103. <Col id="datacolumn">14</Col>
  104. </Row>
  105. <Row>
  106. <Col id="codecolumn">15</Col>
  107. <Col id="datacolumn">15</Col>
  108. </Row>
  109. <Row>
  110. <Col id="codecolumn">16</Col>
  111. <Col id="datacolumn">16</Col>
  112. </Row>
  113. <Row>
  114. <Col id="codecolumn">17</Col>
  115. <Col id="datacolumn">17</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">18</Col>
  119. <Col id="datacolumn">18</Col>
  120. </Row>
  121. <Row>
  122. <Col id="codecolumn">19</Col>
  123. <Col id="datacolumn">19</Col>
  124. </Row>
  125. <Row>
  126. <Col id="codecolumn">20</Col>
  127. <Col id="datacolumn">20</Col>
  128. </Row>
  129. <Row>
  130. <Col id="codecolumn">21</Col>
  131. <Col id="datacolumn">21</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">22</Col>
  135. <Col id="datacolumn">22</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">23</Col>
  139. <Col id="datacolumn">23</Col>
  140. </Row>
  141. <Row>
  142. <Col id="codecolumn">24</Col>
  143. <Col id="datacolumn">24</Col>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. </Combo>
  148. <Combo position="absolute 392 336 440 355" id="cmbSec" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  149. <Dataset id="innerdataset">
  150. <ColumnInfo>
  151. <Column id="codecolumn"/>
  152. <Column id="datacolumn"/>
  153. </ColumnInfo>
  154. <Rows>
  155. <Row>
  156. <Col id="codecolumn">
  157. </Col>
  158. <Col id="datacolumn">--</Col>
  159. </Row>
  160. <Row>
  161. <Col id="codecolumn">00</Col>
  162. <Col id="datacolumn">00</Col>
  163. </Row>
  164. <Row>
  165. <Col id="codecolumn">05</Col>
  166. <Col id="datacolumn">05</Col>
  167. </Row>
  168. <Row>
  169. <Col id="codecolumn">10</Col>
  170. <Col id="datacolumn">10</Col>
  171. </Row>
  172. <Row>
  173. <Col id="codecolumn">15</Col>
  174. <Col id="datacolumn">15</Col>
  175. </Row>
  176. <Row>
  177. <Col id="codecolumn">20</Col>
  178. <Col id="datacolumn">20</Col>
  179. </Row>
  180. <Row>
  181. <Col id="codecolumn">25</Col>
  182. <Col id="datacolumn">25</Col>
  183. </Row>
  184. <Row>
  185. <Col id="codecolumn">30</Col>
  186. <Col id="datacolumn">30</Col>
  187. </Row>
  188. <Row>
  189. <Col id="codecolumn">35</Col>
  190. <Col id="datacolumn">35</Col>
  191. </Row>
  192. <Row>
  193. <Col id="codecolumn">40</Col>
  194. <Col id="datacolumn">40</Col>
  195. </Row>
  196. <Row>
  197. <Col id="codecolumn">45</Col>
  198. <Col id="datacolumn">45</Col>
  199. </Row>
  200. <Row>
  201. <Col id="codecolumn">50</Col>
  202. <Col id="datacolumn">50</Col>
  203. </Row>
  204. <Row>
  205. <Col id="codecolumn">55</Col>
  206. <Col id="datacolumn">55</Col>
  207. </Row>
  208. </Rows>
  209. </Dataset>
  210. </Combo>
  211. <Combo position="absolute 340 23 510 42" id="cmbInstCd" taborder="2" innerdataset="@ds_init_Z0007" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  212. <Shape position="absolute 6 225 515 231" linetype="horizontal" id="line2" class="line_2" anchor="default"/>
  213. <Shape position="absolute 6 330 515 336" linetype="horizontal" id="line3" class="line_2" anchor="default"/>
  214. <Combo position="absolute 461 336 509 355" id="cmbHalf" taborder="13" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  215. <Dataset id="innerdataset">
  216. <ColumnInfo>
  217. <Column id="codecolumn"/>
  218. <Column id="datacolumn"/>
  219. </ColumnInfo>
  220. <Rows>
  221. <Row>
  222. <Col id="codecolumn">A</Col>
  223. <Col id="datacolumn">AM</Col>
  224. </Row>
  225. <Row>
  226. <Col id="codecolumn">P</Col>
  227. <Col id="datacolumn">PM</Col>
  228. </Row>
  229. </Rows>
  230. </Dataset>
  231. </Combo>
  232. <Button position="absolute 275 365 331 387" id="btn_acpt" class="btn4" taborder="15" text="예약" anchor="default" onclick="grp_biz_group2_btn_acpt_onclick"/>
  233. <Button position="absolute 391 365 447 387" id="button13" class="btn4" taborder="16" text="종료" anchor="default" onclick="grp_biz_group2_button13_onclick"/>
  234. <Button position="absolute 225 25 241 41" id="btnPatinfo" class="icon_search" text="" anchor="default" onclick="grp_biz_group2_btnPatinfo_onclick"/>
  235. <Button position="absolute 205 365 273 387" id="button3" class="btn3" taborder="14" text="초기화" anchor="default" onclick="grp_biz_group2_button3_onclick"/>
  236. <Radio position="absolute 115 155 220 172" id="radio1" class="radio_search" taborder="4" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  237. <Dataset id="innerdataset">
  238. <ColumnInfo>
  239. <Column id="codecolumn"/>
  240. <Column id="datacolumn"/>
  241. </ColumnInfo>
  242. <Rows>
  243. <Row>
  244. <Col id="codecolumn">M</Col>
  245. <Col id="datacolumn">M(남)</Col>
  246. </Row>
  247. <Row>
  248. <Col id="codecolumn">F</Col>
  249. <Col id="datacolumn">F(여)</Col>
  250. </Row>
  251. </Rows>
  252. </Dataset>
  253. </Radio>
  254. <MaskEdit position="absolute 222 153 250 172" align="align:right middle;" id="input1" class="input_search" taborder="5" mask="#" anchor="default"/>
  255. <Shape position="absolute 6 199 515 205" linetype="horizontal" id="line4" class="line_2" anchor="default"/>
  256. <MaskEdit position="absolute 185 179 250 198" id="input2" class="input_search" taborder="7" mask="#" anchor="default"/>
  257. <Static text="-" position="absolute 173 179 180 198" align="align:center middle;" id="caption8" anchor="default"/>
  258. <Button position="absolute 333 365 389 387" id="button1" class="btn4" taborder="15" text="삭제" anchor="default" onclick="grp_biz_group2_button1_onclick"/>
  259. <Shape position="absolute 5 43 514 49" linetype="horizontal" id="line1" class="line_2" anchor="default"/>
  260. <Static text="의뢰주치의" position="absolute 255 47 335 70" id="caption9" class="cell_1" anchor="default"/>
  261. <Static text="의뢰과명" position="absolute 5 47 110 70" id="caption10" class="cell_1" anchor="default"/>
  262. <Edit position="absolute 115 49 250 68" id="input3" class="input_search" taborder="3" anchor="default"/>
  263. <Edit position="absolute 340 49 510 68" id="input4" class="input_search" taborder="3" anchor="default"/>
  264. <Static text="가용인원적용" position="absolute 388 73 470 96" id="caption11" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  265. <CheckBox position="absolute 473 75 493 95" id="checkbox1" anchor="default" truevalue="Y"/>
  266. <Combo position="absolute 115 75 385 94" id="cmb_excucd" taborder="2" innerdataset="@ds_init_cmb_info_excuroom_initexamcurecd" datacolumn="excucdnm" codecolumn="excucd" anchor="default" onitemchanged="grp_biz_group2_cmb_excucd_onitemchanged"/>
  267. <Static text="검사코드" position="absolute 5 73 110 96" id="caption13" class="cell_1" anchor="default"/>
  268. <Shape position="absolute 5 69 514 75" linetype="horizontal" id="line5" class="line_2" anchor="default"/>
  269. <Shape position="absolute 5 95 514 101" linetype="horizontal" id="line6" class="line_2" anchor="default"/>
  270. <Static text="검사실" position="absolute 5 99 110 122" id="caption12" class="cell_1" anchor="default"/>
  271. <Combo position="absolute 115 101 265 120" id="cmb_excuroomcd" taborder="2" innerdataset="@ds_init_cmb_info_excuroom_initexcuroom" datacolumn="excuroomcdnm" codecolumn="excuroomcdid" anchor="default" onitemchanged="grp_biz_group2_cmb_excuroomcd_onitemchanged"/>
  272. <Static text="*미선택시 검사코드의 기본검사실로 선택" position="absolute 270 101 494 121" id="caption14" anchor="default"/>
  273. <Shape position="absolute 6 173 515 179" linetype="horizontal" id="line7" class="line_2" anchor="default"/>
  274. <CheckBox position="absolute 110 369 195 384" id="chbx_print" anchor="default" text="예약증출력" truevalue="Y"/>
  275. <Button position="absolute 449 365 517 387" id="btn_init" class="btn4" taborder="16" text="재출력" anchor="default" onclick="grp_biz_group2_btn_init_onclick"/>
  276. <CheckBox position="absolute 5 366 100 386" id="cbx_duprsrv" anchor="default" text="중복예약허용" truevalue="Y"/>
  277. </Layout>
  278. </Layouts>
  279. </Div>
  280. <Shape position="absolute 0 1 457 66" id="rectangle1" class="calendar_header" type="rectangle" anchor="default" style="strokepen:1 solid transparent;fillbrush:solid darkslateblue true;fillgradation:linear 0,0 white 100,100 darkmagenta;border:1 solid black ;color:#262626ff;gradation:linear 0,0 white 100,100 black;"/>
  281. <Static text="년" position="absolute 216 7 236 26" id="caption5" class="calendar_output" anchor="default"/>
  282. <Static text="월" position="absolute 262 7 282 26" id="caption7" class="calendar_output" anchor="default"/>
  283. <Button position="absolute 152 9 168 25" id="btn_premonth" class="icon_pre_month" text="" anchor="default" onclick="grp_biz_btn_premonth_onclick"/>
  284. <Button position="absolute 133 9 149 25" id="button31" class="icon_pre_year" text="" anchor="default" onclick="grp_biz_button31_onclick"/>
  285. <Button position="absolute 308 9 324 25" id="button32" class="icon_next_year" text="" anchor="default" onclick="grp_biz_button32_onclick"/>
  286. <Button position="absolute 289 9 305 25" id="button34" class="icon_next_month" text="" anchor="default" onclick="grp_biz_button34_onclick"/>
  287. <Grid position="absolute 0 528 982 718" id="grd_rsrvlist" binddataset="ds_main_rsrvinfo_rsrvlist" anchor="default" cellsizingtype="col" autosizingtype="row" extendsizetype="row" onlbuttonup="grp_biz_grd_rsrvlist_onlbuttonup" oncelldblclick="grp_biz_grd_rsrvlist_oncelldblclick">
  288. <Formats>
  289. <Format id="default">
  290. <Columns>
  291. <Column size="80"/>
  292. <Column size="59"/>
  293. <Column size="78"/>
  294. <Column size="57"/>
  295. <Column size="105"/>
  296. <Column size="67"/>
  297. <Column size="137"/>
  298. <Column size="209"/>
  299. <Column size="171"/>
  300. <Column size="71"/>
  301. <Column size="133"/>
  302. <Column size="0"/>
  303. <Column size="0"/>
  304. <Column size="0"/>
  305. </Columns>
  306. <Rows>
  307. <Row size="24" band="head"/>
  308. <Row size="24"/>
  309. </Rows>
  310. <Band id="head">
  311. <Cell text="예약일자"/>
  312. <Cell col="1" text="예약시간"/>
  313. <Cell col="2" text="등록번호"/>
  314. <Cell col="3" text="환자성명"/>
  315. <Cell col="4" text="주민번호"/>
  316. <Cell col="5" text="성별/나이"/>
  317. <Cell col="6" text="검사실"/>
  318. <Cell col="7" text="검사"/>
  319. <Cell col="8" text="참고사항"/>
  320. <Cell col="9" text="예약자"/>
  321. <Cell col="10" text="예약잡은 날"/>
  322. <Cell col="11" text="caption16"/>
  323. <Cell col="12" text="caption17"/>
  324. <Cell col="13" text="caption18"/>
  325. </Band>
  326. <Band id="body">
  327. <Cell displaytype="date" text="bind:rsrvdd"/>
  328. <Cell col="1" text="bind:srchrsrvtm" mask="@@:@@"/>
  329. <Cell col="2" text="bind:pid"/>
  330. <Cell col="3" text="bind:hngnm"/>
  331. <Cell col="4" text="bind:rrgstno"/>
  332. <Cell col="5" text="bind:sexage"/>
  333. <Cell col="6" style="align:left top;padding:5 2 0 2;" text="bind:basecdflagdesc" wordwrap="char" autosizerow="limitmin"/>
  334. <Cell col="7" style="align:left top;padding:5 2 0 2;" text="bind:excucdnm" wordwrap="char" autosizerow="limitmin"/>
  335. <Cell col="8" style="align:left top;padding:5 2 0 2;" text="bind:rsrvrem" wordwrap="char" autosizerow="limitmin"/>
  336. <Cell col="9" text="bind:lastupdtrnm"/>
  337. <Cell col="10" text="bind:lastupdtdt" mask="@@@@-@@-@@ @@:@@:@@"/>
  338. <Cell col="11" text="bind:instcd"/>
  339. <Cell col="12" text="bind:seq"/>
  340. <Cell col="13" text="bind:suppdeptcd"/>
  341. </Band>
  342. </Format>
  343. </Formats>
  344. </Grid>
  345. <Grid position="absolute 0 417 982 502" id="datagrid2" taborder="8" binddataset="ds_main_rsrvupdtinfo_rsrvupdt" anchor="default" cellsizingtype="both" extendsizetype="row" autosizingtype="row">
  346. <Formats>
  347. <Format id="default">
  348. <Columns>
  349. <Column size="25" band="left"/>
  350. <Column size="80"/>
  351. <Column size="48"/>
  352. <Column size="80"/>
  353. <Column size="48"/>
  354. <Column size="115"/>
  355. <Column size="300"/>
  356. <Column size="270"/>
  357. <Column size="0"/>
  358. <Column size="0"/>
  359. <Column size="0"/>
  360. <Column size="0"/>
  361. <Column size="0"/>
  362. </Columns>
  363. <Rows>
  364. <Row size="24" band="head"/>
  365. <Row size="24"/>
  366. </Rows>
  367. <Band id="head">
  368. <Cell/>
  369. <Cell col="1" colspan="2" text="시작일시" taborder="undefined"/>
  370. <Cell col="3" colspan="2" text="종료일시" taborder="undefined"/>
  371. <Cell col="5" text="검사실"/>
  372. <Cell col="6" text="사유"/>
  373. <Cell col="7" text="Remark"/>
  374. <Cell col="8" text="최종변경자"/>
  375. <Cell col="9" text="최종변경일시"/>
  376. <Cell col="10" text="검사실코드"/>
  377. <Cell col="11" text="지원부서코드"/>
  378. <Cell col="12" text="입원외래구분"/>
  379. </Band>
  380. <Band id="body">
  381. <Cell celltype="head" text="expr:currow+1"/>
  382. <Cell col="1" displaytype="date" style="background:yellow;" text="bind:rsrvupdtfromdd" enable="false"/>
  383. <Cell col="2" style="background:yellow;" text="bind:rsrvupdtfromtm" mask="@@:@@" enable="false"/>
  384. <Cell col="3" displaytype="date" style="background:yellow;" text="bind:rsrvupdttodd" enable="false"/>
  385. <Cell col="4" style="background:yellow;" text="bind:rsrvupdttotm" mask="@@:@@" enable="false"/>
  386. <Cell col="5" style="align:left top;padding:5 2 0 2;background:yellow;" text="bind:basecdflagdesc" wordwrap="char" autosizerow="limitmin"/>
  387. <Cell col="6" style="align:left top;padding:5 2 0 2;background:yellow;" text="bind:updtresndesc" wordwrap="char" autosizerow="limitmin"/>
  388. <Cell col="7" style="align:left top;padding:5 2 0 2;background:yellow;" text="bind:updtresncnts" wordwrap="char" autosizerow="limitmin"/>
  389. <Cell col="8" text="bind:lastupdtrid"/>
  390. <Cell col="9" text="bind:lastupdtdt" mask="yyyy-mm-dd hh:nn:ss"/>
  391. <Cell col="10" text="bind:excuroomcd"/>
  392. <Cell col="11" text="bind:suppdeptcd"/>
  393. <Cell col="12" text="bind:ioflag"/>
  394. </Band>
  395. </Format>
  396. </Formats>
  397. </Grid>
  398. <Button id="btn_01" taborder="10" text="1" onclick="btn_month_onclick" class="icon_month" position="absolute 52 32 79 59" style="color:black;" anchor="default"/>
  399. <Button id="btn_02" taborder="11" text="2" onclick="btn_month_onclick" class="icon_month" position="absolute 82 32 109 59" style="color:black;" anchor="default"/>
  400. <Button id="btn_03" taborder="12" text="3" onclick="btn_month_onclick" class="icon_month" position="absolute 112 32 139 59" style="color:black;" anchor="default"/>
  401. <Button id="btn_04" taborder="13" text="4" onclick="btn_month_onclick" class="icon_month" position="absolute 142 32 169 59" style="color:black;" anchor="default"/>
  402. <Button id="btn_05" taborder="14" text="5" onclick="btn_month_onclick" class="icon_month" position="absolute 172 32 199 59" style="color:black;" anchor="default"/>
  403. <Button id="btn_06" taborder="15" text="6" onclick="btn_month_onclick" class="icon_month" position="absolute 202 32 229 59" style="color:black;" anchor="default"/>
  404. <Button id="btn_07" taborder="16" text="7" onclick="btn_month_onclick" class="icon_month" position="absolute 232 32 259 59" style="color:black;" anchor="default"/>
  405. <Button id="btn_08" taborder="17" text="8" onclick="btn_month_onclick" class="icon_month" position="absolute 262 32 289 59" style="color:black;" anchor="default"/>
  406. <Button id="btn_09" taborder="18" text="9" onclick="btn_month_onclick" class="icon_month" position="absolute 292 32 319 59" style="color:black;" anchor="default"/>
  407. <Button id="btn_10" taborder="19" text="10" onclick="btn_month_onclick" class="icon_month" position="absolute 322 32 349 59" style="color:black;" anchor="default"/>
  408. <Button id="btn_11" taborder="20" text="11" onclick="btn_month_onclick" class="icon_month" position="absolute 352 32 379 59" style="color:black;" anchor="default"/>
  409. <Button id="btn_12" taborder="21" text="12" onclick="btn_month_onclick" class="icon_month" position="absolute 382 32 409 59" style="color:black;" anchor="default"/>
  410. <Edit id="opt_year" taborder="22" readonly="true" class="calendar_output" position="absolute 182 6 218 26" style="padding:0 2 0 2;align:center middle;font:Dotum,9,bold;" anchor="default"/>
  411. <Edit id="opt_month" taborder="23" readonly="true" class="calendar_output" position="absolute 240 6 265 26" style="padding:0 2 0 2;align:center middle;font:Dotum,9,bold;" anchor="default"/>
  412. <Shape id="line00" class="line_10" position="absolute 0 412 982 418" anchor="default"/>
  413. <Shape id="line01" class="line_10" position="absolute 0 523 982 529" anchor="default"/>
  414. <Grid id="grd_calendar" class="gridcalendar" taborder="24" binddataset="ds_hidden_calendar_weeklist_list" useinputpanel="false" selecttype="cell" autofittype="col,allrow" position="absolute 0 66 457 391" onlbuttonup="grp_biz_grd_calendar_onlbuttonup" oncellclick="grp_biz_grd_calendar_oncellclick">
  415. <Formats>
  416. <Format id="default">
  417. <Columns>
  418. <Column size="40"/>
  419. <Column size="40"/>
  420. <Column size="40"/>
  421. <Column size="40"/>
  422. <Column size="40"/>
  423. <Column size="40"/>
  424. <Column size="40"/>
  425. </Columns>
  426. <Rows>
  427. <Row size="24" band="head"/>
  428. <Row size="24"/>
  429. <Row size="24"/>
  430. </Rows>
  431. <Band id="head">
  432. <Cell text="일"/>
  433. <Cell col="1" text="월"/>
  434. <Cell col="2" text="화"/>
  435. <Cell col="3" text="수"/>
  436. <Cell col="4" text="목"/>
  437. <Cell col="5" text="금"/>
  438. <Cell col="6" text="토"/>
  439. </Band>
  440. <Band id="body">
  441. <Cell rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  442. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'sun_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'sun_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:sun" taborder="undefined"/>
  443. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sun_reglscheflag'))?getColumn(currow,'sun_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'sun_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'sun_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:sun_memo" wordwrap="char" taborder="undefined"/>
  444. </Cell>
  445. <Cell col="1" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  446. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'mon_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'mon_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:mon" taborder="undefined"/>
  447. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'mon_reglscheflag'))?getColumn(currow,'mon_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'mon_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'mon_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:mon_memo" wordwrap="char" taborder="undefined"/>
  448. </Cell>
  449. <Cell col="2" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  450. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'tue_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'tue_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:tue" taborder="undefined"/>
  451. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'tue_reglscheflag'))?getColumn(currow,'tue_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'tue_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'tue_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:tue_memo" wordwrap="char" taborder="undefined"/>
  452. </Cell>
  453. <Cell col="3" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  454. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'wed_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'wed_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:wed" taborder="undefined"/>
  455. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'wed_reglscheflag'))?getColumn(currow,'wed_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'wed_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'wed_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:wed_memo" wordwrap="char" taborder="undefined"/>
  456. </Cell>
  457. <Cell col="4" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  458. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'thu_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'thu_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:thu" taborder="undefined"/>
  459. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'thu_reglscheflag'))?getColumn(currow,'thu_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'thu_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'thu_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:thu_memo" wordwrap="char" taborder="undefined"/>
  460. </Cell>
  461. <Cell col="5" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  462. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'fri_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'fri_dutflag')=='8'?'red':'black');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:fri" taborder="undefined"/>
  463. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'fri_reglscheflag'))?getColumn(currow,'fri_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'fri_dutflag')=='8'?'red':'black');color2:EXPR(getColumn(currow,'fri_dutflag')=='8'?'red':'black');selectbackground:#daa7d9ff;" text="bind:fri_memo" wordwrap="char" taborder="undefined"/>
  464. </Cell>
  465. <Cell col="6" rowspan="2" style="background:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);selectbackground:#daa7d9ff;" taborder="undefined">
  466. <Cell style="background:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'sat_dutflag')=='8'?'red':'blue');color2:EXPR(getColumn(currow,'sat_dutflag')=='8'?'red':'blue');font:Dotum,9,bold;selectbackground:#daa7d9ff;selectfont:Dotum,9,bold;" text="bind:sat" taborder="undefined"/>
  467. <Cell row="1" style="background:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);background2:EXPR(!utlf_isNull(getColumn(currow,'sat_reglscheflag'))?getColumn(currow,'sat_reglscheflag'):&quot;#ffffff&quot;);color:EXPR(getColumn(currow,'sat_dutflag')=='8'?'red':'blue');color2:EXPR(getColumn(currow,'sat_dutflag')=='8'?'red':'blue');selectbackground:#daa7d9ff;" text="bind:sat_memo" wordwrap="char" taborder="undefined"/>
  468. </Cell>
  469. </Band>
  470. </Format>
  471. </Formats>
  472. </Grid>
  473. </Layout>
  474. </Layouts>
  475. </Div>
  476. <Static text="검사실별 휴검리스트" position="absolute 0 422 169 443" id="caption15" class="tit_2"/>
  477. <Static text="임시예약리스트" position="absolute 0 533 169 554" id="caption16" class="tit_2"/>
  478. <Static id="caption6" text="임시예약" class="tit_1" position="absolute 0 0 100 25"/>
  479. </Layout>
  480. </Layouts>
  481. <Objects>
  482. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  483. <ColumnInfo>
  484. <Column id="date" type="STRING" size="256"/>
  485. <Column id="suppdeptcd" type="STRING" size="256"/>
  486. <Column id="rsrvdd" type="STRING" size="256"/>
  487. <Column id="seq" type="STRING" size="256"/>
  488. <Column id="excuroomgrpcdid" type="STRING" size="256"/>
  489. <Column id="sdate" type="STRING" size="256"/>
  490. <Column id="tdate" type="STRING" size="256"/>
  491. <Column id="excuroomcd" type="STRING" size="256"/>
  492. <Column id="printflag" type="STRING" size="256"/>
  493. <Column id="duprsrvflag" type="STRING" size="256"/>
  494. <Column id="req" type="STRING" size="256"/>
  495. </ColumnInfo>
  496. <Rows>
  497. <Row>
  498. <Col id="date"/>
  499. <Col id="suppdeptcd"/>
  500. <Col id="rsrvdd"/>
  501. <Col id="seq"/>
  502. <Col id="excuroomgrpcdid"/>
  503. <Col id="sdate"/>
  504. <Col id="tdate"/>
  505. <Col id="excuroomcd"/>
  506. <Col id="printflag"/>
  507. <Col id="duprsrvflag"/>
  508. <Col id="req"/>
  509. </Row>
  510. </Rows>
  511. </Dataset>
  512. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  513. <ColumnInfo>
  514. <Column id="suppdeptcd" type="STRING" size="256"/>
  515. <Column id="schergstdd" type="STRING" size="256"/>
  516. <Column id="pid" type="STRING" size="256"/>
  517. <Column id="instcd" type="STRING" size="256"/>
  518. <Column id="rtno" type="STRING" size="256"/>
  519. <Column id="schergsttm" type="STRING" size="256"/>
  520. <Column id="schedesc" type="STRING" size="256"/>
  521. <Column id="curersrvflag" type="STRING" size="256"/>
  522. <Column id="hour" type="STRING" size="256"/>
  523. <Column id="second" type="STRING" size="256"/>
  524. <Column id="gubun" type="STRING" size="256"/>
  525. <Column id="excucd" type="STRING" size="256"/>
  526. </ColumnInfo>
  527. <Rows>
  528. <Row>
  529. <Col id="suppdeptcd"/>
  530. <Col id="schergstdd"/>
  531. <Col id="pid"/>
  532. <Col id="instcd"/>
  533. <Col id="rtno"/>
  534. <Col id="schergsttm"/>
  535. <Col id="schedesc"/>
  536. <Col id="curersrvflag"/>
  537. <Col id="hour"/>
  538. <Col id="second"/>
  539. <Col id="gubun"/>
  540. <Col id="excucd"/>
  541. </Row>
  542. </Rows>
  543. </Dataset>
  544. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  545. <Dataset id="ds_main_PatInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  546. <ColumnInfo>
  547. <Column id="rsrvdd" type="STRING" size="256"/>
  548. <Column id="instcd" type="STRING" size="256"/>
  549. <Column id="seq" type="STRING" size="256"/>
  550. <Column id="suppdeptcd" type="STRING" size="256"/>
  551. <Column id="srchrsrvhh" type="STRING" size="256"/>
  552. <Column id="srchrsrvmm" type="STRING" size="256"/>
  553. <Column id="ampmflag" type="STRING" size="256"/>
  554. <Column id="pid" type="STRING" size="256"/>
  555. <Column id="hngnm" type="STRING" size="256"/>
  556. <Column id="rrgstno1" type="STRING" size="256"/>
  557. <Column id="rrgstno2" type="STRING" size="256"/>
  558. <Column id="age" type="STRING" size="256"/>
  559. <Column id="sex" type="STRING" size="256"/>
  560. <Column id="tel" type="STRING" size="256"/>
  561. <Column id="addr" type="STRING" size="256"/>
  562. <Column id="rsrvrem" type="STRING" size="256"/>
  563. <Column id="flag" type="STRING" size="256"/>
  564. <Column id="reqdeptnm" type="STRING" size="256"/>
  565. <Column id="reqapntdrnm" type="STRING" size="256"/>
  566. <Column id="reqhospcd" type="STRING" size="256"/>
  567. <Column id="excuroomcd" type="STRING" size="256"/>
  568. <Column id="excucd" type="STRING" size="256"/>
  569. <Column id="rsrvprescondappyn" type="STRING" size="256"/>
  570. <Column id="excucdnm" type="STRING" size="256"/>
  571. <Column id="excuroomcdnm" type="STRING" size="256"/>
  572. <Column id="suppdeptcdnm" type="STRING" size="256"/>
  573. <Column id="duprsrvflag" type="STRING" size="256"/>
  574. <Column id="excupatrem" type="STRING" size="256"/>
  575. </ColumnInfo>
  576. <Rows>
  577. <Row>
  578. <Col id="rsrvdd"/>
  579. <Col id="instcd"/>
  580. <Col id="seq"/>
  581. <Col id="suppdeptcd"/>
  582. <Col id="srchrsrvhh"/>
  583. <Col id="srchrsrvmm"/>
  584. <Col id="ampmflag"/>
  585. <Col id="pid"/>
  586. <Col id="hngnm"/>
  587. <Col id="rrgstno1"/>
  588. <Col id="rrgstno2"/>
  589. <Col id="age"/>
  590. <Col id="sex"/>
  591. <Col id="tel"/>
  592. <Col id="addr"/>
  593. <Col id="rsrvrem"/>
  594. <Col id="flag"/>
  595. <Col id="reqdeptnm"/>
  596. <Col id="reqapntdrnm"/>
  597. <Col id="reqhospcd"/>
  598. <Col id="excuroomcd"/>
  599. <Col id="excucd"/>
  600. <Col id="rsrvprescondappyn">Y</Col>
  601. <Col id="excucdnm"/>
  602. <Col id="excuroomcdnm"/>
  603. <Col id="suppdeptcdnm"/>
  604. <Col id="duprsrvflag"/>
  605. <Col id="excupatrem"/>
  606. </Row>
  607. </Rows>
  608. </Dataset>
  609. <Dataset id="ds_main_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  610. <Dataset id="ds_main_rsrvinfo_rsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  611. <ColumnInfo>
  612. <Column id="rsrvdd" type="STRING" size="256"/>
  613. <Column id="srchrsrvtm" type="STRING" size="256"/>
  614. <Column id="pid" type="STRING" size="256"/>
  615. <Column id="hngnm" type="STRING" size="256"/>
  616. <Column id="rrgstno" type="STRING" size="256"/>
  617. <Column id="sexage" type="STRING" size="256"/>
  618. <Column id="basecdflagdesc" type="STRING" size="256"/>
  619. <Column id="excucdnm" type="STRING" size="256"/>
  620. <Column id="rsrvrem" type="STRING" size="256"/>
  621. <Column id="instcd" type="STRING" size="256"/>
  622. <Column id="seq" type="STRING" size="256"/>
  623. <Column id="suppdeptcd" type="STRING" size="256"/>
  624. <Column id="calcscorcd" type="STRING" size="256"/>
  625. <Column id="excuroomcd" type="STRING" size="256"/>
  626. <Column id="tel" type="STRING" size="256"/>
  627. <Column id="addr" type="STRING" size="256"/>
  628. <Column id="ampmflag" type="STRING" size="256"/>
  629. <Column id="flag" type="STRING" size="256"/>
  630. <Column id="reqdeptnm" type="STRING" size="256"/>
  631. <Column id="reqapntdrnm" type="STRING" size="256"/>
  632. <Column id="reqhospcd" type="STRING" size="256"/>
  633. <Column id="excupatrem" type="STRING" size="256"/>
  634. <Column id="lastupdtrnm" type="STRING" size="256"/>
  635. <Column id="lastupdtdt" type="STRING" size="256"/>
  636. </ColumnInfo>
  637. </Dataset>
  638. <Dataset id="ds_main_rsrvupdtinfo_rsrvupdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  639. <ColumnInfo>
  640. <Column id="rsrvupdtfromdd" type="STRING" size="256"/>
  641. <Column id="rsrvupdtfromtm" type="STRING" size="256"/>
  642. <Column id="rsrvupdttodd" type="STRING" size="256"/>
  643. <Column id="rsrvupdttotm" type="STRING" size="256"/>
  644. <Column id="basecdflagdesc" type="STRING" size="256"/>
  645. <Column id="updtresndesc" type="STRING" size="256"/>
  646. <Column id="updtresncnts" type="STRING" size="256"/>
  647. <Column id="excuroomcd" type="STRING" size="256"/>
  648. <Column id="suppdeptcd" type="STRING" size="256"/>
  649. <Column id="ioflag" type="STRING" size="256"/>
  650. </ColumnInfo>
  651. </Dataset>
  652. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  653. <ColumnInfo>
  654. <Column id="year" type="STRING" size="256"/>
  655. <Column id="month" type="STRING" size="256"/>
  656. </ColumnInfo>
  657. <Rows>
  658. <Row/>
  659. </Rows>
  660. </Dataset>
  661. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  662. <ColumnInfo>
  663. <Column id="sun" type="STRING" size="256"/>
  664. <Column id="mon" type="STRING" size="256"/>
  665. <Column id="tue" type="STRING" size="256"/>
  666. <Column id="wed" type="STRING" size="256"/>
  667. <Column id="thu" type="STRING" size="256"/>
  668. <Column id="fri" type="STRING" size="256"/>
  669. <Column id="sat" type="STRING" size="256"/>
  670. <Column id="sun_memo" type="STRING" size="256"/>
  671. <Column id="mon_memo" type="STRING" size="256"/>
  672. <Column id="tue_memo" type="STRING" size="256"/>
  673. <Column id="wed_memo" type="STRING" size="256"/>
  674. <Column id="thu_memo" type="STRING" size="256"/>
  675. <Column id="fri_memo" type="STRING" size="256"/>
  676. <Column id="sat_memo" type="STRING" size="256"/>
  677. <Column id="sun_dutflag" type="STRING" size="256"/>
  678. <Column id="mon_dutflag" type="STRING" size="256"/>
  679. <Column id="tue_dutflag" type="STRING" size="256"/>
  680. <Column id="wed_dutflag" type="STRING" size="256"/>
  681. <Column id="thu_dutflag" type="STRING" size="256"/>
  682. <Column id="fri_dutflag" type="STRING" size="256"/>
  683. <Column id="sat_dutflag" type="STRING" size="256"/>
  684. <Column id="sun_ampmflag" type="STRING" size="256"/>
  685. <Column id="mon_ampmflag" type="STRING" size="256"/>
  686. <Column id="tue_ampmflag" type="STRING" size="256"/>
  687. <Column id="wed_ampmflag" type="STRING" size="256"/>
  688. <Column id="thu_ampmflag" type="STRING" size="256"/>
  689. <Column id="fri_ampmflag" type="STRING" size="256"/>
  690. <Column id="sat_ampmflag" type="STRING" size="256"/>
  691. <Column id="sun_ordendresn" type="STRING" size="256"/>
  692. <Column id="mon_ordendresn" type="STRING" size="256"/>
  693. <Column id="tue_ordendresn" type="STRING" size="256"/>
  694. <Column id="wed_ordendresn" type="STRING" size="256"/>
  695. <Column id="thu_ordendresn" type="STRING" size="256"/>
  696. <Column id="fri_ordendresn" type="STRING" size="256"/>
  697. <Column id="sat_ordendresn" type="STRING" size="256"/>
  698. <Column id="sun_ordendresnmin" type="STRING" size="256"/>
  699. <Column id="mon_ordendresnmin" type="STRING" size="256"/>
  700. <Column id="tue_ordendresnmin" type="STRING" size="256"/>
  701. <Column id="wed_ordendresnmin" type="STRING" size="256"/>
  702. <Column id="thu_ordendresnmin" type="STRING" size="256"/>
  703. <Column id="fri_ordendresnmin" type="STRING" size="256"/>
  704. <Column id="sat_ordendresnmin" type="STRING" size="256"/>
  705. <Column id="sun_reglscheflag" type="STRING" size="256"/>
  706. <Column id="mon_reglscheflag" type="STRING" size="256"/>
  707. <Column id="tue_reglscheflag" type="STRING" size="256"/>
  708. <Column id="wed_reglscheflag" type="STRING" size="256"/>
  709. <Column id="thu_reglscheflag" type="STRING" size="256"/>
  710. <Column id="fri_reglscheflag" type="STRING" size="256"/>
  711. <Column id="sat_reglscheflag" type="STRING" size="256"/>
  712. </ColumnInfo>
  713. </Dataset>
  714. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  715. <ColumnInfo>
  716. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  717. <Column id="srchcond" type="STRING" size="256"/>
  718. <Column id="pid" type="STRING" size="256"/>
  719. <Column id="hngnm" type="STRING" size="256"/>
  720. <Column id="rrgstno1" type="STRING" size="256"/>
  721. <Column id="rrgstno2" type="STRING" size="256"/>
  722. </ColumnInfo>
  723. <Rows>
  724. <Row>
  725. <Col id="srchcond"/>
  726. <Col id="pid"/>
  727. <Col id="hngnm"/>
  728. <Col id="rrgstno1"/>
  729. <Col id="rrgstno2"/>
  730. </Row>
  731. </Rows>
  732. </Dataset>
  733. <Dataset id="ds_init_cmb_info_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  734. <ColumnInfo>
  735. <Column id="excuroomcdid" type="STRING" size="256"/>
  736. <Column id="excuroomcdnm" type="STRING" size="256"/>
  737. </ColumnInfo>
  738. <Rows>
  739. <Row>
  740. <Col id="excuroomcdid"/>
  741. <Col id="excuroomcdnm"/>
  742. </Row>
  743. </Rows>
  744. </Dataset>
  745. <Dataset id="ds_init_curerprescondlist_curerprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  746. <ColumnInfo>
  747. <Column id="userid" type="STRING" size="256"/>
  748. <Column id="usernm" type="STRING" size="256"/>
  749. </ColumnInfo>
  750. <Rows>
  751. <Row>
  752. <Col id="userid"/>
  753. <Col id="usernm"/>
  754. </Row>
  755. </Rows>
  756. </Dataset>
  757. <Dataset id="ds_init_curerprescondlist_rsrvcalendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  758. <ColumnInfo>
  759. <Column id="rsrvdd" type="STRING" size="256"/>
  760. <Column id="count" type="STRING" size="256"/>
  761. <Column id="max" type="STRING" size="256"/>
  762. </ColumnInfo>
  763. <Rows>
  764. <Row>
  765. <Col id="rsrvdd"/>
  766. <Col id="count"/>
  767. <Col id="max"/>
  768. </Row>
  769. </Rows>
  770. </Dataset>
  771. <Dataset id="ds_init_pseursrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="seq" type="STRING" size="256"/>
  774. </ColumnInfo>
  775. </Dataset>
  776. <Dataset id="ds_init_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  777. <ColumnInfo>
  778. <Column id="inithospcd" type="STRING" size="256"/>
  779. </ColumnInfo>
  780. </Dataset>
  781. <Dataset id="ds_temp1_tmpllist_tmplinfo_tmpldata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  782. <Dataset id="ds_temp1_codelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  783. <ColumnInfo>
  784. <Column id="suppdeptcd" type="STRING" size="256"/>
  785. </ColumnInfo>
  786. </Dataset>
  787. <Dataset id="ds_hidden_calendarinfo_calendarinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  788. <Dataset id="ds_init_cmb_info_excuroom_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  789. <Dataset id="ds_init_cmb_info_excuroom_initexamcurecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  790. <Dataset id="ds_init_Z0007" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  791. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  792. <ColumnInfo>
  793. <Column id="updtflag" type="STRING" size="256"/>
  794. </ColumnInfo>
  795. <Rows>
  796. <Row/>
  797. </Rows>
  798. </Dataset>
  799. <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  800. <ColumnInfo>
  801. <Column id="calrow" type="STRING" size="256"/>
  802. <Column id="calcol" type="STRING" size="256"/>
  803. <Column id="bfcalrow" type="STRING" size="256"/>
  804. <Column id="bfcalcol" type="STRING" size="256"/>
  805. <Column id="color" type="STRING" size="256"/>
  806. </ColumnInfo>
  807. <Rows>
  808. <Row>
  809. <Col id="calrow"/>
  810. <Col id="calcol"/>
  811. <Col id="bfcalrow"/>
  812. <Col id="bfcalcol"/>
  813. <Col id="color"/>
  814. </Row>
  815. </Rows>
  816. </Dataset>
  817. </Objects>
  818. <Bind>
  819. <BindItem id="item20" compid="grp_biz.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  820. <BindItem id="item21" compid="grp_biz.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  821. <BindItem id="item0" compid="grp_biz.group2.iptPid" propid="value" datasetid="ds_send_data" columnid="pid"/>
  822. <BindItem id="item1" compid="grp_biz.group2.cmbInstCd" propid="value" datasetid="ds_main_PatInfo" columnid="reqhospcd"/>
  823. <BindItem id="item2" compid="grp_biz.group2.input4" propid="value" datasetid="ds_main_PatInfo" columnid="reqapntdrnm"/>
  824. <BindItem id="item3" compid="grp_biz.group2.input3" propid="value" datasetid="ds_main_PatInfo" columnid="reqdeptnm"/>
  825. <BindItem id="item4" compid="grp_biz.group2.cmb_excucd" propid="value" datasetid="ds_main_PatInfo" columnid="excucd"/>
  826. <BindItem id="item5" compid="grp_biz.group2.checkbox1" propid="value" datasetid="ds_main_PatInfo" columnid="rsrvprescondappyn"/>
  827. <BindItem id="item6" compid="grp_biz.group2.cmb_excuroomcd" propid="value" datasetid="ds_main_PatInfo" columnid="excuroomcd"/>
  828. <BindItem id="item7" compid="grp_biz.group2.optName" propid="value" datasetid="ds_main_PatInfo" columnid="hngnm"/>
  829. <BindItem id="item8" compid="grp_biz.group2.radio1" propid="value" datasetid="ds_main_PatInfo" columnid="sex"/>
  830. <BindItem id="item9" compid="grp_biz.group2.input1" propid="value" datasetid="ds_main_PatInfo" columnid="age"/>
  831. <BindItem id="item10" compid="grp_biz.group2.optRrgstNO" propid="value" datasetid="ds_main_PatInfo" columnid="rrgstno1"/>
  832. <BindItem id="item11" compid="grp_biz.group2.input2" propid="value" datasetid="ds_main_PatInfo" columnid="rrgstno2"/>
  833. <BindItem id="item12" compid="grp_biz.group2.optTel" propid="value" datasetid="ds_main_PatInfo" columnid="tel"/>
  834. <BindItem id="item13" compid="grp_biz.group2.optAddress1" propid="value" datasetid="ds_main_PatInfo" columnid="addr"/>
  835. <BindItem id="item14" compid="grp_biz.group2.tar_prcpremfact" propid="value" datasetid="ds_main_PatInfo" columnid="rsrvrem"/>
  836. <BindItem id="item15" compid="grp_biz.group2.optRsrvDD" propid="value" datasetid="ds_main_PatInfo" columnid="rsrvdd"/>
  837. <BindItem id="item16" compid="grp_biz.group2.cmbHour" propid="value" datasetid="ds_main_PatInfo" columnid="srchrsrvhh"/>
  838. <BindItem id="item17" compid="grp_biz.group2.cmbSec" propid="value" datasetid="ds_main_PatInfo" columnid="srchrsrvmm"/>
  839. <BindItem id="item18" compid="grp_biz.group2.cmbHalf" propid="value" datasetid="ds_main_PatInfo" columnid="ampmflag"/>
  840. <BindItem id="item19" compid="grp_biz.group2.cbx_duprsrv" propid="value" datasetid="ds_send" columnid="duprsrvflag"/>
  841. <BindItem id="item22" compid="grp_biz.group2.chbx_print" propid="value" datasetid="ds_send" columnid="printflag"/>
  842. </Bind>
  843. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  844. * System Name :
  845. * Job Name :
  846. * Creator :
  847. * Make Date : 2015-11-13
  848. * Description :
  849. *---------------------------------------------------------------------------------------
  850. * Modify Date Modifier Modify Description
  851. *---------------------------------------------------------------------------------------
  852. * 2015-11-13 Live Converter TF->XP
  853. *
  854. *---------------------------------------------------------------------------------------
  855. ****************************************************************************************/
  856. //=======================================================================================
  857. // Lib Include
  858. //---------------------------------------------------------------------------------------
  859. include "com_commonxp::comm_main.xjs"
  860. include "ast_examcurexp::AEZ0001.xjs"
  861. //=======================================================================================
  862. // Global Form Variable
  863. //---------------------------------------------------------------------------------------
  864. var arErrorCode = new HashArray();
  865. var gSuppdeptcd = "";
  866. var dayArr = ["sun","mon","tue","wed","thu","fri","sat"];
  867. var dayMemoArr = ["sun_memo","mon_memo","tue_memo","wed_memo","thu_memo","fri_memo","sat_memo"];
  868. //=======================================================================================
  869. // Function
  870. //---------------------------------------------------------------------------------------
  871. /****************************************************************************************
  872. * Argument : N/A
  873. * Description : 달력초기화
  874. ****************************************************************************************/
  875. function initCalendar(rsrvdd) {
  876. if (utlf_isNull(ds_hidden_calendar.getColumn(0,"year")) || utlf_isNull(ds_hidden_calendar.getColumn(0,"month"))){
  877. if ( utlf_isNull(rsrvdd) ) {
  878. var curDate = utlf_getCurrentDate().toDate(); // 20140919 by kya 수정. 매개변수를 받아서 처리하도록 함
  879. } else {
  880. var curDate = rsrvdd.toDate();
  881. }
  882. ds_hidden_calendar.setColumn(0,"year" , curDate.getDateFormat('YYYY'));
  883. ds_hidden_calendar.setColumn(0,"month", curDate.getDateFormat('MM'));
  884. setCalendar(curDate);
  885. }
  886. }
  887. /****************************************************************************************
  888. * Argument : N/A
  889. * Description : 병원달력정보 조회
  890. ****************************************************************************************/
  891. function fGetHospitalCalendar(){
  892. var dd = (ds_hidden_calendar.getColumn(0,"year")).concat(ds_hidden_calendar.getColumn(0,"month"));
  893. ds_send.setColumn(0,"date",dd);
  894. dsf_createDsRow("ds_req", [
  895. {col:"date", type:"STRING", size:256, val:ds_send.getColumn(0,"date")}
  896. , {col:"suppdeptcd", type:"STRING", size:256, val:ds_send.getColumn(0,"suppdeptcd")}
  897. , {col:"excuroomgrpcdid", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomgrpcdid")}
  898. ]);
  899. var oParam = {};
  900. oParam.id = "TRAEA03203";
  901. oParam.service = "examcurersrvapp.RsrvTm";
  902. oParam.method = "reqGetHospitalCalendar";
  903. oParam.inds = "req=ds_req";
  904. oParam.outds = "ds_hidden_calendarinfo_calendarinfolist=caldata";
  905. oParam.async = false;
  906. oParam.callback = "cf_TRAEA03203";
  907. tranf_submit(oParam);
  908. if (arErrorCode.pop("TRAEA03203") > -1) return true;
  909. else return false;
  910. }
  911. function cf_TRAEA03203(sSvcId, nErrorCode, sErrorMsg) {
  912. arErrorCode.push(sSvcId, nErrorCode);
  913. }
  914. /****************************************************************************************
  915. * Argument : N/A
  916. * Description : 달력초기화
  917. ****************************************************************************************/
  918. function setCalendar(dateObj) {
  919. //서버로 자료 요청
  920. if ( fGetHospitalCalendar() != true ){
  921. sysf_messageBox("병원일정 데이터를 가져올 수", "I004");
  922. }
  923. // 그리드 초기화
  924. ds_hidden_calendar_weeklist_list.clearData();
  925. dateObj.setDate(1);
  926. var startDay = dateObj.getDay();
  927. var days = dateObj.getMonthDay();
  928. var rows = Math.ceil( ( startDay + days ) / 7 );
  929. for( var i = 0; i < rows; i++ )
  930. ds_hidden_calendar_weeklist_list.addRow();
  931. var rowIndex = 0;
  932. var colIndex = startDay;
  933. // var dutflag = "";
  934. var toRIndex = 0;
  935. var toCIndex = 0;
  936. for( var i = 1; i <= days; i++ ) {
  937. ds_hidden_calendar_weeklist_list.setColumn(rowIndex,dayArr[colIndex%7],i);
  938. ds_hidden_calendar_weeklist_list.setColumn(rowIndex,dayMemoArr[colIndex%7],setCalendarMemo(i-1));
  939. // dutflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i,"dutflag");
  940. // if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
  941. // fSetTextColor(rowIndex, colIndex, '#ff0000');
  942. // }
  943. if(i == parseInt(utlf_getCurrentDate().substr(6,2))) {
  944. toRIndex = rowIndex;
  945. toCIndex = colIndex;
  946. }
  947. colIndex++;
  948. if( colIndex == 7 ) {
  949. colIndex = 0;
  950. rowIndex++;
  951. }
  952. }
  953. ds_hidden_calendar_weeklist_list.rowposition = toRIndex;
  954. grp_biz.grd_calendar.setCellPos(toCIndex);
  955. // ds_send_data.setColumn(0,"rsrvdd",ds_hidden_calendar.getColumn(0,"year")+ds_hidden_calendar.getColumn(0,"month")+"01");
  956. fCalendar();
  957. // setRsrvPresCondByMonth();
  958. }
  959. /****************************************************************************************
  960. * Argument : N/A
  961. * Description : 달력 색 설정
  962. ****************************************************************************************/
  963. function fCalendar(){
  964. if (ds_hidden_calendarinfo_calendarinfolist.rowcount > 0){
  965. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  966. var isYear = ds_hidden_calendar.getColumn(0,"year");
  967. var isDate = (isYear+isMonth+1).toDate();
  968. var startDay = isDate.getDay();
  969. for (var i = 0; i < ds_hidden_calendarinfo_calendarinfolist.rowcount; i++) {
  970. var dd = ds_hidden_calendarinfo_calendarinfolist.getColumn(i,"basedd");
  971. var colidx = dd.toDate().getDay();
  972. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 ) - 1;
  973. ds_hidden_calendar_weeklist_list.setColumn(rowidx,dayArr[colidx%7]+ "_dutflag" , ds_hidden_calendarinfo_calendarinfolist.getColumn(i,"dutflag"));
  974. }
  975. }
  976. }
  977. function setCalendar2(dateObj) {
  978. // 그리드 초기화
  979. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  980. //grd_calendar.rebuild()
  981. dateObj.setDate(1);
  982. var startDay = dateObj.getDay();
  983. var days = dateObj.getMonthDay();
  984. var rows = Math.ceil( ( startDay + days ) / 7 );
  985. for( var i = 0; i < rows; i++ )
  986. grd_calendar.addRow(false);
  987. grd_calendar.rebuild();
  988. grd_calendar.rebuildStyle();
  989. var rowIndex = grd_calendar.fixedRows;
  990. var colIndex = startDay;
  991. var ampmflag = '';
  992. var dutflag = '';
  993. for( var i = 1; i <= days; i++ ) {
  994. //write date
  995. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  996. grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
  997. //write memo
  998. grd_calendar.valueMatrix(rowIndex , colIndex + 7) = setCalendarMemo2( i );
  999. ampmflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ampmflag");
  1000. dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
  1001. if( ampmflag == '1' ){
  1002. fSetBGColor(rowIndex, colIndex, '#ffff99');
  1003. }else if( ampmflag == '10' ){
  1004. fSetBGColor(rowIndex, colIndex, '#ccffff');
  1005. }else if( ampmflag == '100' ) {
  1006. fSetBGColor(rowIndex, colIndex, '#ff99cc');
  1007. }else if( ampmflag == '11' || ampmflag == '110' || ampmflag == '101' || ampmflag == '111' ){
  1008. fSetBGColor(rowIndex, colIndex, '#ffcc99');
  1009. }
  1010. if( dutflag == '8' ){
  1011. fSetTextColor(rowIndex, colIndex, '#ff0000');
  1012. }
  1013. colIndex++;
  1014. if( colIndex == 7 ) {
  1015. colIndex = 0;
  1016. rowIndex++;
  1017. }
  1018. }
  1019. grd_calendar.resizeCells();
  1020. }
  1021. //그리드의 배경색상을 변경한다.
  1022. function fSetBGColor(calRow, calCol, bgColor) {
  1023. //var calRow = gridObj.row;
  1024. //var calCol = gridObj.col;
  1025. if( calCol < 7 ){
  1026. //calCol = calCol + 7;
  1027. grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  1028. grd_calendar.cellStyle("background-color", calRow, calCol + 7) = bgColor;
  1029. }else{
  1030. //calCol = calCol - 7;
  1031. grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  1032. grd_calendar.cellStyle("background-color", calRow, calCol - 7) = bgColor;
  1033. }
  1034. //grd_calendar.rebuildStyle();
  1035. //grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
  1036. }
  1037. //그리드의 폰트 색상을 변경한다.
  1038. function fSetTextColor(calRow, calCol, bgColor) {
  1039. if( calCol < 7 ){
  1040. //calCol = calCol + 7;
  1041. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  1042. grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
  1043. }else{
  1044. //calCol = calCol - 7;
  1045. grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
  1046. grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
  1047. }
  1048. //grd_calendar.rebuildStyle();
  1049. }
  1050. function setCellColor(calRow, calCol) {
  1051. var isMonth = model.getValue("/root/hidden/calendar/month");
  1052. var isYear = model.getValue("/root/hidden/calendar/year");
  1053. var isDate = (isYear+isMonth+1).toDate();
  1054. //setCalendarData();
  1055. setCalendar2(isDate);
  1056. if( calCol < 7 ){
  1057. //calCol = calCol + 7;
  1058. grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1059. grd_calendar.cellStyle("background-color", calRow, calCol + 7) = "#daa7d9";
  1060. }else{
  1061. //calCol = calCol - 7;
  1062. grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1063. grd_calendar.cellStyle("background-color", calRow, calCol - 7) = "#daa7d9";
  1064. }
  1065. //gridObj.rebuildStyle();
  1066. //gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1067. }
  1068. /****************************************************************************************
  1069. * Argument : N/A
  1070. * Description : 해당 일자의 병원 일정 정보를 얻어 온다
  1071. ****************************************************************************************/
  1072. function setCalendarMemo(i) {
  1073. var holiflag = "";
  1074. var holinm = "";
  1075. holiflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i,"holiflag");
  1076. holinm = ds_hidden_calendarinfo_calendarinfolist.getColumn(i,"holinm");
  1077. if( holinm == '-' ){
  1078. holinm = "";
  1079. }
  1080. return holinm;
  1081. }
  1082. /****************************************************************************************
  1083. * Argument : N/A
  1084. * Description : 달력을 클릭(선택) 했을 때
  1085. ****************************************************************************************/
  1086. function fClickOnCalendar(calRow,calCol){
  1087. calCol = calCol % 7;
  1088. var isDay = ds_hidden_calendar_weeklist_list.getColumn(parseInt(calRow), parseInt(calCol));
  1089. if( !utlf_isNull(isDay) ){
  1090. if( isDay.length == 1 ) isDay = "0" + isDay;
  1091. var dd = ((ds_hidden_calendar.getColumn(0,"year")).concat(ds_hidden_calendar.getColumn(0,"month")) ).concat(isDay);
  1092. grp_biz.group2.optRsrvDD.value = dd;
  1093. ds_send_data.setColumn(0,"schergstdd", dd);
  1094. }
  1095. }
  1096. function fSetMonth(newMonth){
  1097. model.setValue("/root/hidden/calendar/month", newMonth);
  1098. var isMonth = model.getValue("/root/hidden/calendar/month");
  1099. var isYear = model.getValue("/root/hidden/calendar/year");
  1100. var isDate = (isYear+isMonth+1).toDate();
  1101. setCalendarData();
  1102. }
  1103. //날짜 00 맞추기 위한 방법
  1104. function fncSetFormate(arg) {
  1105. var rtnValue ='';
  1106. if(arg <10)
  1107. {
  1108. rtnValue = '0'+arg;
  1109. }
  1110. else
  1111. {
  1112. rtnValue = arg;
  1113. }
  1114. return rtnValue;
  1115. }
  1116. /* @group : 통합예약관리
  1117. * @ver : 2007.08.10
  1118. * @by : 임헤정
  1119. * @-----------------------------------
  1120. * @type : function
  1121. * @access : public
  1122. * @desc : 오늘날짜 달력에 표시
  1123. */
  1124. function setCurrentDate() {
  1125. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  1126. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  1127. if(curDate <10) {
  1128. curDate= curDate.substr(1,1);
  1129. }
  1130. if (curWeek == "sun") {
  1131. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  1132. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  1133. } else if (curWeek == "mon") {
  1134. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  1135. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  1136. } else if (curWeek == "tue") {
  1137. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  1138. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  1139. } else if (curWeek == "wed") {
  1140. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  1141. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  1142. } else if (curWeek == "thu") {
  1143. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  1144. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  1145. } else if (curWeek == "fri") {
  1146. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  1147. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  1148. } else if (curWeek == "sat") {
  1149. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  1150. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  1151. }
  1152. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  1153. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  1154. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  1155. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  1156. }
  1157. }
  1158. model.makeValue("/root/hidden/grdcellcolor/color",1);
  1159. setNewCellColor(grd_calendar);
  1160. }
  1161. /****************************************************************************************
  1162. * Argument : N/A
  1163. * Description : 지정날짜 달력에 표시
  1164. ****************************************************************************************/
  1165. function setSpecialDate(rsrvdd) {
  1166. var curDate = rsrvdd.substr(6,2); //오늘날짜
  1167. var curWeek = rsrvdd.toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  1168. if(curDate < 10) {
  1169. curDate= curDate.substr(1,1);
  1170. }
  1171. if (curWeek == "sun") {
  1172. model.makeValue("/root/hidden/grdcellcolor/calcol",0);
  1173. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
  1174. } else if (curWeek == "mon") {
  1175. model.makeValue("/root/hidden/grdcellcolor/calcol",1);
  1176. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
  1177. } else if (curWeek == "tue") {
  1178. model.makeValue("/root/hidden/grdcellcolor/calcol",2);
  1179. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
  1180. } else if (curWeek == "wed") {
  1181. model.makeValue("/root/hidden/grdcellcolor/calcol",3);
  1182. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
  1183. } else if (curWeek == "thu") {
  1184. model.makeValue("/root/hidden/grdcellcolor/calcol",4);
  1185. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
  1186. } else if (curWeek == "fri") {
  1187. model.makeValue("/root/hidden/grdcellcolor/calcol",5);
  1188. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
  1189. } else if (curWeek == "sat") {
  1190. model.makeValue("/root/hidden/grdcellcolor/calcol",6);
  1191. model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
  1192. }
  1193. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  1194. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  1195. model.makeValue("/root/hidden/grdcellcolor/calrow",i);
  1196. model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
  1197. }
  1198. }
  1199. model.makeValue("/root/hidden/grdcellcolor/color",1);
  1200. setNewCellColor(grd_calendar);
  1201. }
  1202. function setNewCellColor(gridObj) {
  1203. var calRow = 0; //현재선택
  1204. var calCol = 0; //현재선택
  1205. var bfcalRow = 0; //전에 선택
  1206. var bfcalCol = 0; //전에 선택
  1207. var white = 1; //#ffffff
  1208. var green = 2; //#c4e693
  1209. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  1210. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  1211. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  1212. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  1213. // 1. 원래 색으로 돌려놓기
  1214. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  1215. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  1216. if( bfcalCol < 7 ) {
  1217. bfcalCol += 7;
  1218. } else {
  1219. bfcalCol -= 7;
  1220. }
  1221. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  1222. } else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  1223. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  1224. if( bfcalCol < 7 ) {
  1225. bfcalCol += 7;
  1226. } else {
  1227. bfcalCol -= 7;
  1228. }
  1229. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  1230. }
  1231. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  1232. if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  1233. model.setValue("/root/hidden/grdcellcolor/color", "1");
  1234. }
  1235. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  1236. model.setValue("/root/hidden/grdcellcolor/color", "2");
  1237. }
  1238. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  1239. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  1240. // 3. 선택한 셀에 보라색 주기
  1241. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1242. if( calCol < 7 ) {
  1243. calCol += 7;
  1244. } else {
  1245. calCol -= 7;
  1246. }
  1247. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1248. }
  1249. /****************************************************************************************
  1250. * Argument : N/A
  1251. * Description : 달력 월버튼 이벤트
  1252. ****************************************************************************************/
  1253. function fGetCalendar(arg){
  1254. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  1255. var isYear = ds_hidden_calendar.getColumn(0,"year");
  1256. if(ds_hidden_calendar.getColumn(0,"month") < arg) {
  1257. var num = arg- isMonth ;
  1258. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  1259. }
  1260. if(ds_hidden_calendar.getColumn(0,"month") > arg) {
  1261. var num = isMonth - arg ;
  1262. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  1263. }
  1264. ds_hidden_calendar.setColumn(0,"year" , isDate.getDateFormat('YYYY'));
  1265. ds_hidden_calendar.setColumn(0,"month", isDate.getDateFormat('MM'));
  1266. setCalendar(isDate);
  1267. }
  1268. /****************************************************************************************
  1269. * Argument : N/A
  1270. * Description : 예약증 일정표 출력
  1271. ****************************************************************************************/
  1272. function fRsrvPrint() {
  1273. //진료과명 가져오기 2011.05.06 by kya
  1274. dsf_makeValue(ds_main_PatInfo,"suppdeptcdnm","string",sysf_getUserInfo("dutplcenm"));
  1275. if( !utlf_isNull(ds_main_rsrvinfo_rsrvlist.getColumn(ds_main_rsrvinfo_rsrvlist.rowposition,"pid")) ) {
  1276. // exeReportPreview("RPAEA02201", "XMLSTR", "", "", "false","","","","","false");
  1277. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1278. rptf_setNodeListToDOM(objDOM, "/root/main/PatInfo", ds_main_PatInfo); // 데이터셋 1
  1279. var objParam = new Object();
  1280. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1281. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1282. rptf_exeReportPreview30(["RPAEA02201"],[objParam], option);
  1283. } else {
  1284. sysf_messageBox("예약", "E013");
  1285. }
  1286. }
  1287. /****************************************************************************************
  1288. * Argument : N/A
  1289. * Description : 예약정보조회(임시예약리스트)
  1290. ****************************************************************************************/
  1291. function call_TRAEA03210() {
  1292. dsf_createDsRow("ds_req", [
  1293. {col:"suppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  1294. , {col:"schergstdd", type:"STRING", size:256, val:ds_send_data.getColumn(0,"schergstdd")}
  1295. , {col:"excuroomgrpcdid", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomgrpcdid")}
  1296. , {col:"excuroomcd", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcd")}
  1297. ]);
  1298. var oParam = {};
  1299. oParam.id = "TRAEA03210";
  1300. oParam.service = "examcurersrvapp.UnRsrv";
  1301. oParam.method = "reqGetUnRsrvTmGrplist";
  1302. oParam.inds = "req=ds_req";
  1303. oParam.outds = "ds_main_rsrvinfo_rsrvlist=rsrvlist";
  1304. oParam.async = false;
  1305. oParam.callback = "cf_TRAEA03210";
  1306. tranf_submit(oParam);
  1307. }
  1308. function cf_TRAEA03210(sSvcId, nErrorCode, sErrorMsg) {
  1309. if(nErrorCode < 0) return;
  1310. ds_main_rsrvinfo_rsrvlist.updateColID("calcscorcd","excucd");
  1311. dsf_setTypeFormat(ds_main_rsrvinfo_rsrvlist, "seq:INT^sexage:INT");
  1312. }
  1313. /****************************************************************************************
  1314. * Argument : N/A
  1315. * Description : 예약정보조회(휴검리스트)
  1316. ****************************************************************************************/
  1317. function call_TRAEA00701() {
  1318. dsf_createDsRow("ds_req", [
  1319. {col:"excuroomcd" , type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcd")}
  1320. , {col:"suppdeptcd" , type:"STRING", size:256, val:ds_send.getColumn(0,"suppdeptcd")}
  1321. , {col:"sdate" , type:"STRING", size:256, val:ds_send.getColumn(0,"sdate")}
  1322. , {col:"tdate" , type:"STRING", size:256, val:ds_send.getColumn(0,"tdate")}
  1323. , {col:"excuroomgrpcdid" , type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomgrpcdid")}
  1324. , {col:"instcd" , type:"STRING", size:256, val:ds_send_data.getColumn(0,"instcd")}
  1325. ]);
  1326. var oParam = {};
  1327. oParam.id = "TRAEA00701";
  1328. oParam.service = "examcurersrvapp.RsrvRef";
  1329. oParam.method = "reqGetRsrvUpdtInfo";
  1330. oParam.inds = "req=ds_req";
  1331. oParam.outds = "ds_main_rsrvupdtinfo_rsrvupdt=rsrvupdt";
  1332. oParam.async = false;
  1333. //oParam.callback = "cf_TRAEA00701";
  1334. tranf_submit(oParam);
  1335. }
  1336. /****************************************************************************************
  1337. * Argument : N/A
  1338. * Description : 예약정보저장
  1339. ****************************************************************************************/
  1340. function call_TXAEA03201() {
  1341. dsf_setTypeFormat(ds_main_PatInfo, "seq:INT^age:INT");
  1342. var oParam = {};
  1343. oParam.id = "TXAEA03201";
  1344. oParam.service = "examcurersrvapp.UnRsrv";
  1345. oParam.method = "reqExeUnRsrvTm";
  1346. oParam.inds = "req=ds_main_PatInfo";
  1347. oParam.outds = "ds_main_PatInfo=PatInfo";
  1348. oParam.async = false;
  1349. oParam.callback = "cf_TXAEA03201";
  1350. tranf_submit(oParam);
  1351. }
  1352. function cf_TXAEA03201(sSvcId, nErrorCode, sErrorMsg) {
  1353. arErrorCode.push(sSvcId, nErrorCode);
  1354. ds_main_PatInfo.updateColID("calcscorcd","excucd");
  1355. dsf_setTypeFormat(ds_main_PatInfo, "seq:INT^age:INT");
  1356. }
  1357. /****************************************************************************************
  1358. * Argument : oTrgtGrid - 대상 그리드
  1359. * : nColumnIndx - 대상 컬럼 인덱스
  1360. * Description : 그리드에서 컬럼 인덱스로 바인드된 데이터셋의 컬럼명을 가져온다.
  1361. ****************************************************************************************/
  1362. function lf_getBindCellName(oTrgtGrid, nColumnIndx){
  1363. var sRtnText = "";
  1364. var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "text");
  1365. if(!utlf_isNull( sTrgtText)){
  1366. sRtnText = sTrgtText.replace("bind:", "");
  1367. }
  1368. return sRtnText;
  1369. }
  1370. //=======================================================================================
  1371. // Event
  1372. //---------------------------------------------------------------------------------------
  1373. /****************************************************************************************
  1374. * Components : Form
  1375. * Components ID : SPAEA02201
  1376. * Event : oninit
  1377. * Argument : 01.obj : Object Event has occurred
  1378. * : 02.e : Event Object
  1379. * Description : 화면 처음 초기화시 폼초기화
  1380. ****************************************************************************************/
  1381. function SPAEA02201_oninit(obj:Form, e:InitEventInfo)
  1382. {
  1383. frmf_initForm(obj); // 폼 초기화
  1384. }
  1385. /****************************************************************************************
  1386. * Components : Form
  1387. * Components ID : SPAEA02201
  1388. * Event : onload
  1389. * Argument : 01.obj : Object Event has occurred
  1390. * : 02.e : Event Object
  1391. * Description : 화면 처음 초기화시 폼초기화
  1392. ****************************************************************************************/
  1393. function SPAEA02201_onload(obj:Form, e:LoadEventInfo)
  1394. {
  1395. grdf_setGridSort(grp_biz.grd_rsrvlist); // 그리드 소트만
  1396. try {
  1397. ds_init_pseursrvinfo.copyData(arg_ds_pseu);
  1398. } catch(e){ }
  1399. var spcDate = utlf_getCurrentDate(); ////현재일자 세팅
  1400. if (frmf_getMenuParam() == "C" || (frmf_isPopup() && opener.frmf_getParameter("menuparam") == "C")) { // 건진제외
  1401. gSuppdeptcd = "2370124000";
  1402. ds_send.setColumn(0,"suppdeptcd","2370124000"); //건진내시경
  1403. ds_main_PatInfo.setColumn(0,"excucd","E7660SG"); //Sedative Colon-Fiberscopry(수면내시경
  1404. ds_main_PatInfo.setColumn(0,"excuroomcd","2370124001"); //건진대장내시경
  1405. ds_send.setColumn(0,"duprsrvflag","Y"); //중복예약허용
  1406. } else if ( opener.frmf_getParameter("menuparam") == "R") { // 통합예약 2013.02.05 추가
  1407. gSuppdeptcd = opener.frmf_getParameter("suppdeptcd");
  1408. ds_send.setColumn(0,"suppdeptcd", opener.frmf_getParameter("suppdeptcd"));
  1409. ds_send.setColumn(0,"excuroomcd", opener.frmf_getParameter("excuroomcd"));
  1410. ds_main_PatInfo.setColumn(0,"excuroomcd", opener.frmf_getParameter("excuroomcd"));
  1411. // model.setValue("/root/main/PatInfo", opener.frmf_getParameter("PatInfo"));
  1412. // dsf_setCSVToDs("ds_temp",opener.frmf_getParameter("PatInfo"));
  1413. // ds_main_PatInfo.copyData(ds_temp);
  1414. dsf_deleteDs("ds_temp");
  1415. } else if ( ds_init_pseursrvinfo.getColumn(0,"menuparam") == "R") { // 통합예약 검사현황에서 분기
  1416. //20140903 추가
  1417. gSuppdeptcd = ds_init_pseursrvinfo.getColumn(0,"suppdeptcd");
  1418. ds_send.setColumn(0,"suppdeptcd" , ds_init_pseursrvinfo.getColumn(0,"suppdeptcd")); //
  1419. ds_main_PatInfo.setColumn(0,"excucd" , ds_init_pseursrvinfo.getColumn(0,"calcscorcd")); //처방코드
  1420. ds_send.setColumn(0,"excuroomcd" , ds_init_pseursrvinfo.getColumn(0,"excuroomcd"));
  1421. ds_main_PatInfo.setColumn(0,"excuroomcd" , ds_init_pseursrvinfo.getColumn(0,"excuroomcd"));
  1422. ds_send.setColumn(0,"duprsrvflag" , "N"); //중복예약허용
  1423. ds_send.setColumn(0,"printflag" , "Y"); //예약증출력
  1424. ds_send_data.setColumn(0,"pid" , ds_init_pseursrvinfo.getColumn(0,"pid"));
  1425. ds_main_PatInfo.setColumn(0,"hngnm" , ds_init_pseursrvinfo.getColumn(0,"hngnm"));
  1426. ds_main_PatInfo.setColumn(0,"age" , ds_init_pseursrvinfo.getColumn(0,"age"));
  1427. ds_main_PatInfo.setColumn(0,"sex" , ds_init_pseursrvinfo.getColumn(0,"sex"));
  1428. ds_main_PatInfo.setColumn(0,"rrgstno1" , ds_init_pseursrvinfo.getColumn(0,"rrgstno1"));
  1429. ds_main_PatInfo.setColumn(0,"rrgstno2" , ds_init_pseursrvinfo.getColumn(0,"rrgstno2"));
  1430. var rsrvdt = ds_init_pseursrvinfo.getColumn(0,"rsrvdt");
  1431. var rsrvdd = rsrvdt.substr(0,8);
  1432. ds_main_PatInfo.setColumn(0, "rsrvdd", rsrvdd);
  1433. ds_send.setColumn(0, "rsrvdd", rsrvdd );
  1434. //20140904 kya 추가예약 시간 가져오기
  1435. var excuroomcd = ds_init_pseursrvinfo.getColumn(0,"excuroomcd");
  1436. var day = rsrvdt.toDate().getDay();
  1437. var srvhhmm = rsrvdt.substr(8,4) ;
  1438. dsf_createDsRow("ds_send_req", [
  1439. {col:"suppdeptcd", type:"STRING", size:256, val:ds_init_pseursrvinfo.getColumn(0,"suppdeptcd")}
  1440. , {col:"grupcdid" , type:"STRING", size:256, val:ds_init_pseursrvinfo.getColumn(0,"excuroomcd")}
  1441. , {col:"cdid" , type:"STRING", size:256, val:day.toString() + srvhhmm}
  1442. ]);
  1443. var oParam = {};
  1444. oParam.id = "TRAEB00012"; // 조건에 맞게 공통코드에서 한개 가져오기 parm(instcd, suppdeptcd, grupcdid, cdid)
  1445. oParam.service = "examcurebaseapp.ComCode";
  1446. oParam.method = "reqGetComCodeDetailList2";
  1447. oParam.inds = "req=ds_send_req";
  1448. oParam.outds = "ds_temp1_codelist_item=item";
  1449. oParam.async = false;
  1450. oParam.callback = "cf_TRAEB00012";
  1451. tranf_submit(oParam);
  1452. var rsrvhhmm = utlf_transNullToEmpty(ds_temp1_codelist_item.getColumn(0,"cntlcd1")); //예약시간
  1453. ds_main_PatInfo.setColumn(0,"srchrsrvhh", rsrvhhmm.substr(0,2)); //시
  1454. ds_main_PatInfo.setColumn(0,"srchrsrvmm", rsrvhhmm.substr(2,2)); //분
  1455. var spcDate = rsrvdd; //예약일자 세팅
  1456. //20190228 병동환자 내시경실 임시예약 건
  1457. }else if ( opener.frmf_getParameter("menuparam") == "OCS" ) { //환자정보
  1458. var patinfo = opener.frmf_getParameter("SPAEA02201_parm_pinfo");
  1459. //trace("patinfo = " + patinfo);
  1460. patinfo = patinfo.split("▦");
  1461. var pna = patinfo[8];
  1462. gSuppdeptcd = "2010302030";
  1463. ds_send_data.setColumn(0, "pid", patinfo[0] ); //pid
  1464. ds_main_PatInfo.setColumn(0,"reqdeptnm", patinfo[1] ) ;
  1465. ds_main_PatInfo.setColumn(0,"reqapntdrnm", patinfo[2] ) ;
  1466. ds_main_PatInfo.setColumn(0,"hngnm", patinfo[5] ); //patnm
  1467. ds_main_PatInfo.setColumn(0,"sex", patinfo[8].substr(0,1) ); //sex
  1468. ds_main_PatInfo.setColumn(0,"age", patinfo[8].substr(2,2) ); //age
  1469. ds_main_PatInfo.setColumn(0,"suppdeptcd","2010302030"); //내시경
  1470. ds_main_PatInfo.setColumn(0,"excucd","M-32651" ); //calcscorcd
  1471. ds_main_PatInfo.setColumn(0,"excuroomcd","END020"); //병실환자임시예약방
  1472. ds_main_PatInfo.setColumn(0,"rsrvrem","병실환자임시예약"); //병실환자임시예약방
  1473. ds_send.setColumn(0,"duprsrvflag","Y"); //중복예약허용
  1474. ds_send.setColumn(0,"suppdeptcd",gSuppdeptcd);
  1475. } else {
  1476. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  1477. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  1478. ds_send.setColumn(0,"suppdeptcd",gSuppdeptcd);
  1479. }
  1480. //검사실 및 검사실코드 가져오기
  1481. ds_send.setColumn(0,"excuroomgrpcdid", opener.frmf_getParameter("excuroomgrp"));
  1482. //달력셋팅
  1483. initCalendar(spcDate); //달력초기화 및 예약인원표시
  1484. //setCurrentDate(); 20140910 by kya 대신
  1485. // setSpecialDate(spcDate); //특정일자로 고정해주기
  1486. dsf_createDsRow("ds_reqparam", [
  1487. {col:"excuroomgrpcdid", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomgrpcdid")}
  1488. , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  1489. , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
  1490. , {col:"kbasecdflag", type:"STRING", size:256, val:"J"}
  1491. , {col:"nbasecdflag", type:"STRING", size:256, val:"N"}
  1492. , {col:"initflag", type:"STRING", size:256, val:"1"}
  1493. , {col:"alladdyn", type:"STRING", size:256, val:"Y"}
  1494. , {col:"flag", type:"STRING", size:256, val:"nuclear"}
  1495. , {col:"baseroomflag", type:"STRING", size:256, val:"1"}
  1496. , {col:"srchflag", type:"STRING", size:256, val:"P"}
  1497. , {col:"excuroomcd", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcd")}
  1498. ]);
  1499. var oParam = {};
  1500. oParam.id = "TRAEA02207"; //검사실 + 검사실코드 가져오기
  1501. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  1502. oParam.method = "reqGetInitNuclExamCureInfo";
  1503. oParam.inds = "reqparam=ds_reqparam";
  1504. oParam.outds = "ds_init_cmb_info_excuroom_initexcuroom=initexcuroom ds_init_cmb_info_excuroom_initexamcurecd=initexamcurecd";
  1505. oParam.async = false;
  1506. oParam.callback = "cf_TRAEA02207";
  1507. tranf_submit(oParam);
  1508. var seq = ds_init_pseursrvinfo.getColumn(0,"seq");
  1509. if (!utlf_isNull(seq)) {
  1510. ds_main_PatInfo.clearData();
  1511. var oParam = {};
  1512. oParam.id = "TRAEA03207";
  1513. oParam.service = "examcurersrvapp.UnRsrv";
  1514. oParam.method = "reqGetUnRsrvTm";
  1515. oParam.inds = "req=ds_send";
  1516. oParam.outds = "ds_main_PatInfo=PatInfo";
  1517. oParam.async = false;
  1518. oParam.callback = "cf_TRAEA03207";
  1519. tranf_submit(oParam);
  1520. ds_send_data.setColumn(0,"pid", utlf_transNullToEmpty(ds_main_PatInfo.getColumn(0,"pid")));
  1521. } else {
  1522. ds_main_PatInfo.setColumn(0,"reqhospcd", sysf_getUserInfo("dutplceinstcd"));
  1523. }
  1524. // zbcfGetCodeList( new Array("Z0007"), new Array("/root/init/baseinfo/inithospcd") );
  1525. var arrParam = [{dsNm: "ds_init_Z0007", cdGrpId: "Z0007"}
  1526. ]
  1527. appf_getCodeList(arrParam);
  1528. var dutplcecd = sysf_getUserInfo("dutplcecd");
  1529. var selectplcecd = frmf_getPrestDeptCd();
  1530. if ( utlf_isNull(selectplcecd) ) {
  1531. selectplcecd = dutplcecd;
  1532. }
  1533. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1534. ds_send_data.setColumn(0,"schergstdd",spcDate);
  1535. call_TRAEA03210();
  1536. //2011.02.11 휴검관리조회 추가 - 박재영
  1537. ds_send.setColumn(0,"sdate",spcDate);
  1538. ds_send.setColumn(0,"tdate",spcDate);
  1539. call_TRAEA00701();
  1540. }
  1541. function cf_TRAEB00012(sSvcId, nErrorCode, sErrorMsg) {
  1542. if(nErrorCode < 0) return;
  1543. dsf_setTypeFormat(ds_temp1_codelist_item, "dispseq:INT");
  1544. }
  1545. function cf_TRAEA02207(sSvcId, nErrorCode, sErrorMsg) {
  1546. if(nErrorCode < 0) return;
  1547. ds_init_cmb_info_excuroom_initexcuroom.updateColID("basecd" ,"excuroomcdid");
  1548. ds_init_cmb_info_excuroom_initexcuroom.updateColID("basecdflagdesc" ,"excuroomcdnm");
  1549. if(utlf_isNull(grp_biz.group2.cmb_excucd.value)) grp_biz.group2.cmb_excucd.index = ds_init_cmb_info_excuroom_initexamcurecd.findRow("excucdnm","-- 전체 --");
  1550. if(utlf_isNull(grp_biz.group2.cmb_excuroomcd.value)) grp_biz.group2.cmb_excuroomcd.index = ds_init_cmb_info_excuroom_initexcuroom.findRow("excuroomcdnm","-- 전체 --");
  1551. }
  1552. function cf_TRAEA03207(sSvcId, nErrorCode, sErrorMsg) {
  1553. if(nErrorCode < 0) return;
  1554. ds_main_PatInfo.updateColID("calcscorcd","excucd");
  1555. dsf_setTypeFormat(ds_main_PatInfo, "seq:INT^age:INT");
  1556. }
  1557. /****************************************************************************************
  1558. * Components : Button
  1559. * Components ID : grp_biz.btn_month
  1560. * Event : onclick
  1561. * Argument : 01.obj : Object Event has occurred
  1562. * : 02.e : Event Object
  1563. * Description : 월 버튼 클릭시 달력변경
  1564. ****************************************************************************************/
  1565. function btn_month_onclick(obj:Button, e:ClickEventInfo)
  1566. {
  1567. if( grp_biz.opt_month.value != obj.name.substr(4,6) ) {
  1568. fGetCalendar(obj.name.substr(4,6));
  1569. }
  1570. ds_hidden_calendar.setColumn(0,"month", obj.name.substr(4,6));
  1571. }
  1572. /****************************************************************************************
  1573. * Components : Button
  1574. * Components ID : grp_biz.button31
  1575. * Event : onclick
  1576. * Argument : 01.obj : Object Event has occurred
  1577. * : 02.e : Event Object
  1578. * Description : 전년 변경
  1579. ****************************************************************************************/
  1580. function grp_biz_button31_onclick(obj:Button, e:ClickEventInfo)
  1581. {
  1582. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  1583. var isYear = ds_hidden_calendar.getColumn(0,"year");
  1584. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1585. ds_hidden_calendar.setColumn(0,"year" , isDate.getDateFormat("YYYY"));
  1586. ds_hidden_calendar.setColumn(0,"month", isDate.getDateFormat("MM"));
  1587. ds_hidden_calendarinfo_calendarinfolist.clearData();
  1588. setCalendar(isDate);
  1589. }
  1590. /****************************************************************************************
  1591. * Components : Button
  1592. * Components ID : grp_biz.button32
  1593. * Event : onclick
  1594. * Argument : 01.obj : Object Event has occurred
  1595. * : 02.e : Event Object
  1596. * Description : 후년 변경
  1597. ****************************************************************************************/
  1598. function grp_biz_button32_onclick(obj:Button, e:ClickEventInfo)
  1599. {
  1600. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  1601. var isYear = ds_hidden_calendar.getColumn(0,"year");
  1602. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1603. ds_hidden_calendar.setColumn(0,"year" , isDate.getDateFormat("YYYY"));
  1604. ds_hidden_calendar.setColumn(0,"month", isDate.getDateFormat("MM"));
  1605. ds_hidden_calendarinfo_calendarinfolist.clearData();
  1606. setCalendar(isDate);
  1607. }
  1608. /****************************************************************************************
  1609. * Components : Button
  1610. * Components ID : grp_biz.btn_premonth
  1611. * Event : onclick
  1612. * Argument : 01.obj : Object Event has occurred
  1613. * : 02.e : Event Object
  1614. * Description : 전월 변경
  1615. ****************************************************************************************/
  1616. function grp_biz_btn_premonth_onclick(obj:Button, e:ClickEventInfo)
  1617. {
  1618. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  1619. var isYear = ds_hidden_calendar.getColumn(0,"year");
  1620. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1621. ds_hidden_calendar.setColumn(0,"year", isDate.getDateFormat("YYYY"));
  1622. ds_hidden_calendar.setColumn(0,"month", isDate.getDateFormat("MM"));
  1623. setCalendar(isDate);
  1624. }
  1625. /****************************************************************************************
  1626. * Components : Button
  1627. * Components ID : grp_biz.button34
  1628. * Event : onclick
  1629. * Argument : 01.obj : Object Event has occurred
  1630. * : 02.e : Event Object
  1631. * Description : 후월 변경
  1632. ****************************************************************************************/
  1633. function grp_biz_button34_onclick(obj:Button, e:ClickEventInfo)
  1634. {
  1635. var isMonth = ds_hidden_calendar.getColumn(0,"month");
  1636. var isYear = ds_hidden_calendar.getColumn(0,"year");
  1637. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1638. ds_hidden_calendar.setColumn(0,"year", isDate.getDateFormat("YYYY"));
  1639. ds_hidden_calendar.setColumn(0,"month", isDate.getDateFormat("MM"));
  1640. setCalendar(isDate);
  1641. }
  1642. /****************************************************************************************
  1643. * Components : Grid
  1644. * Components ID : grp_biz.grd_calendar
  1645. * Event : onlbuttonup
  1646. * Argument : 01.obj : Object Event has occurred
  1647. * : 02.e : Event Object
  1648. * Description : 달력 일자 선택
  1649. ****************************************************************************************/
  1650. function grp_biz_grd_calendar_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1651. {
  1652. // if (e.row > -1) {
  1653. // ds_hidden_grdcellcolor.setColumn(0,"calrow",e.row);
  1654. // ds_hidden_grdcellcolor.setColumn(0,"calcol",e.col);
  1655. //
  1656. // // setNewCellColor(grd_calendar);
  1657. // fClickOnCalendar(e.row,e.col);
  1658. //
  1659. // //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1660. // ds_send.setColumn(0,"excuroomcd",ds_main_PatInfo.getColumn(0,"excuroomcd"));
  1661. //
  1662. // call_TRAEA03210();
  1663. //
  1664. // //2011.02.11 휴검관리조회 추가 - 박재영
  1665. // ds_send.setColumn(0,"sdate",ds_send_data.getColumn(0,"schergstdd"));
  1666. // ds_send.setColumn(0,"tdate",ds_send_data.getColumn(0,"schergstdd"));
  1667. //
  1668. // call_TRAEA00701();
  1669. // }
  1670. }
  1671. /****************************************************************************************
  1672. * Components : Button
  1673. * Components ID : grp_biz.group2.btnPatinfo
  1674. * Event : onclick
  1675. * Argument : 01.obj : Object Event has occurred
  1676. * : 02.e : Event Object
  1677. * Description : 환자검색 버튼
  1678. ****************************************************************************************/
  1679. function grp_biz_group2_btnPatinfo_onclick(obj:Button, e:ClickEventInfo)
  1680. {
  1681. var ipt_pid = ds_send_data.getColumn(0,"pid");
  1682. if (ipt_pid) {
  1683. ds_hidden_sppmc02500_cond.setColumn(0,"srchcond", "1"); // 검색조건 : 등록번호로 설정
  1684. ds_hidden_sppmc02500_cond.setColumn(0,"pid" , ipt_pid);
  1685. } else {
  1686. ds_hidden_sppmc02500_cond.clearData();
  1687. ds_hidden_sppmc02500_cond.addRow();
  1688. }
  1689. // 환자조회
  1690. var objArg = new Object();
  1691. objArg.arg_ds_send = ds_hidden_sppmc02500_cond;
  1692. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  1693. //환자이름
  1694. ds_main_PatInfo.setColumn(0,"hngnm", ds_patinfolist.getColumn(0,"hngnm"));
  1695. //환자아이디
  1696. ds_send_data.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
  1697. ds_main_PatInfo.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
  1698. //환자성별
  1699. ds_main_PatInfo.setColumn(0,"sex", ds_patinfolist.getColumn(0,"sex"));
  1700. //환자나이
  1701. ds_main_PatInfo.setColumn(0,"age", ds_patinfolist.getColumn(0,"age"));
  1702. //환자 주민번호
  1703. ds_main_PatInfo.setColumn(0,"rrgstno1", ds_patinfolist.getColumn(0,"rrgstno1"));
  1704. ds_main_PatInfo.setColumn(0,"rrgstno2", ds_patinfolist.getColumn(0,"rrgstno2"));
  1705. //환자주소
  1706. ds_main_PatInfo.setColumn(0,"addr", ds_patinfolist.getColumn(0,"detladdr") );
  1707. //환자연락처
  1708. ds_main_PatInfo.setColumn(0,"tel", ds_patinfolist.getColumn(0,"mpphontel") );
  1709. }
  1710. /****************************************************************************************
  1711. * Components : Edit
  1712. * Components ID : grp_biz.group2.iptPid
  1713. * Event : onkeydown
  1714. * Argument : 01.obj : Object Event has occurred
  1715. * : 02.e : Event Object
  1716. * Description : 환자검색
  1717. ****************************************************************************************/
  1718. function grp_biz_group2_iptPid_onkeydown(obj:Edit, e:KeyEventInfo)
  1719. {
  1720. if(e.keycode == 13) {
  1721. obj.updateToDataset();
  1722. frmf_inputEnterKey("grp_biz.group2.btnPatinfo", "onclick", new ClickEventInfo);
  1723. }
  1724. }
  1725. /****************************************************************************************
  1726. * Components : Combo
  1727. * Components ID : grp_biz.group2.cmb_excucd
  1728. * Event : onitemchanged
  1729. * Argument : 01.obj : Object Event has occurred
  1730. * : 02.e : Event Object
  1731. * Description : 검사코드 선택
  1732. ****************************************************************************************/
  1733. function grp_biz_group2_cmb_excucd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1734. {
  1735. ds_main_PatInfo.setColumn(0,"excupatrem",ds_init_cmb_info_excuroom_initexamcurecd.getColumn(e.postindex,"excupatrem"));
  1736. }
  1737. /****************************************************************************************
  1738. * Components : Combo
  1739. * Components ID : grp_biz.group2.cmb_excuroomcd
  1740. * Event : onitemchanged
  1741. * Argument : 01.obj : Object Event has occurred
  1742. * : 02.e : Event Object
  1743. * Description : 검사실 선택
  1744. ****************************************************************************************/
  1745. function grp_biz_group2_cmb_excuroomcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1746. {
  1747. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1748. //2011.04.14 검사실 변경시 임시예약리스트 조회 - 권영애
  1749. ds_send.setColumn(0,"excuroomcd",ds_main_PatInfo.getColumn(0,"excuroomcd"));
  1750. call_TRAEA03210();
  1751. }
  1752. /****************************************************************************************
  1753. * Components : Grid
  1754. * Components ID : grp_biz.grd_rsrvlist
  1755. * Event : onlbuttonup
  1756. * Argument : 01.obj : Object Event has occurred
  1757. * : 02.e : Event Object
  1758. * Description : 임시예약리스트 클릭
  1759. ****************************************************************************************/
  1760. function grp_biz_grd_rsrvlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1761. {
  1762. // //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1763. // if( e.row > -1 ){
  1764. // ds_send.setColumn(0,"rsrvdd", ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"rsrvdd"));
  1765. // ds_send.setColumn(0,"seq" , ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"seq"));
  1766. //
  1767. // var oParam = {};
  1768. // oParam.id = "TRAEA03207";
  1769. // oParam.service = "examcurersrvapp.UnRsrv";
  1770. // oParam.method = "reqGetUnRsrvTm";
  1771. // oParam.inds = "req=ds_send";
  1772. // oParam.outds = "ds_main_PatInfo=PatInfo";
  1773. // oParam.async = false;
  1774. // oParam.callback = "cf_TRAEA03207";
  1775. //
  1776. // tranf_submit(oParam);
  1777. //
  1778. // ds_send_data.setColumn(0,"pid", ds_main_PatInfo.getColumn(0,"pid"));
  1779. // dsf_makeValue(ds_main_PatInfo,"excucdnm" ,"string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"excucdnm"));
  1780. // dsf_makeValue(ds_main_PatInfo,"excuroomcdnm","string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"basecdflagdesc"));
  1781. // dsf_makeValue(ds_main_PatInfo,"excupatrem" ,"string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"excupatrem"));
  1782. // }
  1783. }
  1784. /****************************************************************************************
  1785. * Components : Button
  1786. * Components ID : grp_biz.group2.button3
  1787. * Event : onclick
  1788. * Argument : 01.obj : Object Event has occurred
  1789. * : 02.e : Event Object
  1790. * Description : 초기화
  1791. ****************************************************************************************/
  1792. function grp_biz_group2_button3_onclick(obj:Button, e:ClickEventInfo)
  1793. {
  1794. ds_main_PatInfo.clearData();
  1795. ds_main_PatInfo.addRow();
  1796. ds_send_data.clearData();
  1797. ds_send_data.addRow();
  1798. initCalendar();
  1799. ds_main_PatInfo.setColumn(0,"reqhospcd", sysf_getUserInfo("dutplceinstcd"));
  1800. ds_main_PatInfo.setColumn(0,"sex","M");
  1801. grp_biz.group2.iptPid.setFocus();
  1802. ds_main_PatInfo.setColumn(0,"rsrvprescondappyn","Y");
  1803. }
  1804. /****************************************************************************************
  1805. * Components : Button
  1806. * Components ID : grp_biz.group2.btn_acpt
  1807. * Event : onclick
  1808. * Argument : 01.obj : Object Event has occurred
  1809. * : 02.e : Event Object
  1810. * Description : 예약
  1811. ****************************************************************************************/
  1812. function grp_biz_group2_btn_acpt_onclick(obj:Button, e:ClickEventInfo)
  1813. {
  1814. if ( utlf_isNull(ds_send_data.getColumn(0,"pid")) ) {
  1815. return;
  1816. }
  1817. //예약시간
  1818. var flag = ds_main_PatInfo.getColumn(0,"flag");
  1819. if (flag != "U") {
  1820. ds_main_PatInfo.setColumn(0,"flag","I");
  1821. }
  1822. ds_main_PatInfo.setColumn(0,"pid" ,ds_send_data.getColumn(0,"pid"));
  1823. ds_main_PatInfo.setColumn(0,"suppdeptcd",ds_send.getColumn(0,"suppdeptcd"));
  1824. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"pid")) && utlf_isNull(ds_main_PatInfo.getColumn(0,"hngnm")) ) {
  1825. sysf_messageBox("환자ID 또는 환자성명 중 하나 이상은", "C001");
  1826. return;
  1827. }
  1828. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"reqhospcd")) ) {
  1829. sysf_messageBox("병원이 선택되지", "E007");
  1830. return;
  1831. }
  1832. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"excucd")) ) {
  1833. sysf_messageBox("검사코드가 선택되지", "E007");
  1834. return;
  1835. }
  1836. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"rsrvdd")) ) {
  1837. sysf_messageBox("예약일자가 선택되지", "E007");
  1838. return;
  1839. }
  1840. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"srchrsrvhh")) ) {
  1841. sysf_messageBox("예약시간이 선택되지", "E007");
  1842. return;
  1843. }
  1844. if ( utlf_isNull(ds_main_PatInfo.getColumn(0,"srchrsrvmm")) ) {
  1845. sysf_messageBox("예약분이 선택되지", "E007");
  1846. return;
  1847. }
  1848. var curDate = utlf_getCurrentDate().substr(0,8); //오늘날짜
  1849. var rsrvdd = ds_main_PatInfo.getColumn(0,"rsrvdd"); //선택일자
  1850. var rsrvtm = ds_main_PatInfo.getColumn(0,"srchrsrvhh") + ds_main_PatInfo.getColumn(0,"srchrsrvmm");
  1851. //당일예약
  1852. if(curDate == rsrvdd) {
  1853. if(utlf_getCurrentTime().substr(0,4) > rsrvtm ) { //현재시간 이전시간을 예약
  1854. sysf_messageBox("예약시간이 과거시간", "E008");
  1855. return;
  1856. }
  1857. } else if (curDate > rsrvdd) { //당일 이전 예약
  1858. sysf_messageBox("예약일자가 과거일자", "E008");
  1859. return;
  1860. }
  1861. // 2012.06.20 by kya 중복예약허용
  1862. dsf_makeValue(ds_main_PatInfo,"duprsrvflag" ,"string",ds_send.getColumn(0,"duprsrvflag"));
  1863. //예약시간
  1864. dsf_makeValue(ds_main_PatInfo,"rsrvtm" ,"string",rsrvtm);
  1865. dsf_makeValue(ds_main_PatInfo,"srchrsrvtm" ,"string",rsrvtm);
  1866. //********************************************
  1867. // 2012.06.19 중복예약불가기능 추가 by kya
  1868. // TXAEA03201 안에 있음
  1869. //********************************************
  1870. call_TXAEA03201();
  1871. if (arErrorCode.pop("TXAEA03201") > -1) {
  1872. ds_hidden.setColumn(0,"updtflag","Y");
  1873. //달력셋팅
  1874. initCalendar();
  1875. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1876. call_TRAEA03210();
  1877. //2011.02.11 휴검관리조회 추가 - 박재영
  1878. ds_send.setColumn(0,"sdate",ds_send_data.getColumn(0,"schergstdd"));
  1879. ds_send.setColumn(0,"tdate",ds_send_data.getColumn(0,"schergstdd"));
  1880. call_TRAEA00701();
  1881. sysf_messageBox("예약이", "I002");
  1882. }
  1883. //********************************************
  1884. // 2011.05.04 예약증 출력기능 추가 by kya
  1885. //********************************************
  1886. if (ds_send.getColumn(0,"printflag") == "Y") {
  1887. //예약시간
  1888. var rsrvtm = ds_main_PatInfo.getColumn(0,"srchrsrvhh") + ds_main_PatInfo.getColumn(0,"srchrsrvmm");
  1889. dsf_makeValue(ds_main_PatInfo,"rsrvtm" ,"string",rsrvtm);
  1890. //검사코드
  1891. dsf_makeValue(ds_main_PatInfo,"excucdnm" ,"string",grp_biz.group2.cmb_excucd.text);
  1892. //검사실
  1893. dsf_makeValue(ds_main_PatInfo,"excuroomcdnm","string",grp_biz.group2.cmb_excuroomcd.text);
  1894. dsf_makeValue(ds_main_PatInfo,"suppdeptcdnm","string",sysf_getUserInfo("dutplcenm"));
  1895. // exeReportPreview("RPAEA02201", "XMLSTR", "", "", "false","","","","","false");
  1896. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1897. rptf_setNodeListToDOM(objDOM, "/root/main/PatInfo", ds_main_PatInfo); // 데이터셋 1
  1898. var objParam = new Object();
  1899. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1900. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1901. rptf_exeReportPreview30(["RPAEA02201"],[objParam], option);
  1902. }
  1903. }
  1904. /****************************************************************************************
  1905. * Components : Button
  1906. * Components ID : grp_biz.group2.button1
  1907. * Event : onclick
  1908. * Argument : 01.obj : Object Event has occurred
  1909. * : 02.e : Event Object
  1910. * Description : 삭제
  1911. ****************************************************************************************/
  1912. function grp_biz_group2_button1_onclick(obj:Button, e:ClickEventInfo)
  1913. {
  1914. var seq = ds_main_PatInfo.getColumn(0,"seq");
  1915. if (utlf_isNull(seq)) {
  1916. sysf_messageBox("삭제할 예약 정보가 없습니다.", "I004");
  1917. return;
  1918. }
  1919. // 2012.06.20 by kya 중복예약허용
  1920. dsf_makeValue(ds_main_PatInfo,"duprsrvflag" ,"string",ds_send.getColumn(0,"duprsrvflag"));
  1921. dsf_makeValue(ds_main_PatInfo,"flag" ,"string","D");
  1922. call_TXAEA03201();
  1923. if (arErrorCode.pop("TXAEA03201") > -1) {
  1924. ds_hidden.setColumn(0,"updtflag","Y");
  1925. ds_send_data.setColumn(0,"pid","");
  1926. //달력셋팅
  1927. initCalendar();
  1928. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1929. call_TRAEA03210();
  1930. //2011.02.11 휴검관리조회 추가 - 박재영
  1931. ds_send.setColumn(0,"sdate",ds_send_data.getColumn(0,"schergstdd"));
  1932. ds_send.setColumn(0,"tdate",ds_send_data.getColumn(0,"schergstdd"));
  1933. call_TRAEA00701();
  1934. sysf_messageBox("예약 정보 삭제가 ", "I001");
  1935. }
  1936. }
  1937. /****************************************************************************************
  1938. * Components : Button
  1939. * Components ID : grp_biz.group2.button13
  1940. * Event : onclick
  1941. * Argument : 01.obj : Object Event has occurred
  1942. * : 02.e : Event Object
  1943. * Description : 종료
  1944. ****************************************************************************************/
  1945. function grp_biz_group2_button13_onclick(obj:Button, e:ClickEventInfo)
  1946. {
  1947. if (frmf_checkOpener()) {
  1948. var updtflag = ds_hidden.getColumn(0,"updtflag");
  1949. var seq = ds_init_pseursrvinfo.getColumn(0,"seq");
  1950. if (updtflag == "Y" && !utlf_isNull(seq)) {
  1951. opener.initCalendar();
  1952. opener.getRsrvPossTm(grd_calendar);
  1953. var colRef = lf_getBindCellName(grp_biz.grd_calendar, calCol);
  1954. //2009-07-28 예약후 달력표시 현재(오늘)일자로 조회되는것 막음-예약일자 재조회처리 (류형기 샘 요청)
  1955. var calRow = ds_hidden_grdcellcolor.getColumn(0,"calrow");
  1956. var calCol = ds_hidden_grdcellcolor.getColumn(0,"calcol");
  1957. var yyyy = ds_hidden_calendar.getColumn(0,"year");
  1958. var mm = ds_hidden_calendar.getColumn(0,"month");
  1959. var dd = ds_hidden_calendar_weeklist_list.getColumn(calRow,colRef);
  1960. var rsrvdd = ds_main_PatInfo.getColumn(0,"rsrvdd");
  1961. dsf_makeValue(opener.ds_hidden_grdcellcolor ,"calrow" ,"string", calRow);
  1962. dsf_makeValue(opener.ds_hidden_grdcellcolor ,"calcol" ,"string", calCol);
  1963. dsf_makeValue(opener.ds_hidden_calendar ,"year" ,"string", yyyy);
  1964. dsf_makeValue(opener.ds_hidden_calendar ,"month" ,"string", mm);
  1965. dsf_makeValue(opener.ds_hidden_calendar_weeklist_list, colRef, "string", dd, calRow);
  1966. dsf_makeValue(opener.ds_send_data, "rsrvdd", "string", rsrvdd);
  1967. }
  1968. }
  1969. this.close();
  1970. }
  1971. /****************************************************************************************
  1972. * Components : Button
  1973. * Components ID : grp_biz.group2.btn_in
  1974. * Event : onclick
  1975. * Argument : 01.obj : Object Event has occurred
  1976. * : 02.e : Event Object
  1977. * Description : 재출력
  1978. ****************************************************************************************/
  1979. function grp_biz_group2_btn_init_onclick(obj:Button, e:ClickEventInfo)
  1980. {
  1981. fRsrvPrint();
  1982. }
  1983. function grp_biz_grd_rsrvlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1984. {
  1985. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  1986. if( e.row > -1 ){
  1987. ds_send.setColumn(0,"rsrvdd", ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"rsrvdd"));
  1988. ds_send.setColumn(0,"seq" , ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"seq"));
  1989. var oParam = {};
  1990. oParam.id = "TRAEA03207";
  1991. oParam.service = "examcurersrvapp.UnRsrv";
  1992. oParam.method = "reqGetUnRsrvTm";
  1993. oParam.inds = "req=ds_send";
  1994. oParam.outds = "ds_main_PatInfo=PatInfo";
  1995. oParam.async = false;
  1996. oParam.callback = "cf_TRAEA03207";
  1997. tranf_submit(oParam);
  1998. ds_send_data.setColumn(0,"pid", ds_main_PatInfo.getColumn(0,"pid"));
  1999. dsf_makeValue(ds_main_PatInfo,"excucdnm" ,"string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"excucdnm"));
  2000. dsf_makeValue(ds_main_PatInfo,"excuroomcdnm","string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"basecdflagdesc"));
  2001. dsf_makeValue(ds_main_PatInfo,"excupatrem" ,"string",ds_main_rsrvinfo_rsrvlist.getColumn(e.row,"excupatrem"));
  2002. }
  2003. }
  2004. function grp_biz_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  2005. {
  2006. if (e.row > -1) {
  2007. ds_hidden_grdcellcolor.setColumn(0,"calrow",e.row);
  2008. ds_hidden_grdcellcolor.setColumn(0,"calcol",e.col);
  2009. // setNewCellColor(grd_calendar);
  2010. fClickOnCalendar(e.row,e.col);
  2011. //2010.11.02 임시예약리스트 조회 및 삭제 기능 추가 - 박재영
  2012. ds_send.setColumn(0,"excuroomcd",ds_main_PatInfo.getColumn(0,"excuroomcd"));
  2013. call_TRAEA03210();
  2014. //2011.02.11 휴검관리조회 추가 - 박재영
  2015. ds_send.setColumn(0,"sdate",ds_send_data.getColumn(0,"schergstdd"));
  2016. ds_send.setColumn(0,"tdate",ds_send_data.getColumn(0,"schergstdd"));
  2017. call_TRAEA00701();
  2018. }
  2019. }
  2020. ]]></Script>
  2021. </Form>
  2022. </FDL>