SMAEA04500_치료예약스케줄관리.xfdl 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA04500" position="absolute 0 0 1004 600" titletext="치료예약스케쥴관리" oninit="SMAEA04500_oninit" onload="SMAEA04500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 214 440 277" id="group2" scrollbars="autoboth" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 315 10 331 26" id="button31" class="icon_next_year" text="" anchor="default" onclick="group2_button31_onclick"/>
  11. <Button position="absolute 160 10 176 26" id="button33" class="icon_pre_month" text="" anchor="default" onclick="group2_button33_onclick"/>
  12. <Button position="absolute 291 10 307 26" id="button35" class="icon_next_month" text="" anchor="default" onclick="group2_button35_onclick"/>
  13. <Edit readonly="true" position="absolute 185 9 223 28" id="output1" class="calendar_output" anchor="default" style="border:1 none #3576aeff ;font:Dotum,9,bold;"/>
  14. <Edit readonly="true" position="absolute 243 9 271 28" id="opt_month" class="calendar_output" anchor="default" style="border:1 none #3576aeff ;font:Dotum,9,bold;"/>
  15. <Static text="년" position="absolute 223 9 243 28" id="caption24" class="calendar_output" style="color:black;font:Dotum,9,bold;" anchor="default"/>
  16. <Static text="월" position="absolute 265 9 285 28" id="caption25" class="calendar_output" style="color:black;font:Dotum,9,bold;" anchor="default"/>
  17. <Button position="absolute 143 10 159 26" id="button36" class="icon_pre_year" text="" anchor="default" onclick="group2_button36_onclick"/>
  18. <Button position="absolute 285 32 312 59" id="button18" class="icon_month" text="9" anchor="default" onclick="group2_button18_onclick"/>
  19. <Button position="absolute 315 32 342 59" id="button19" class="icon_month" text="10" anchor="default" onclick="group2_button19_onclick"/>
  20. <Button position="absolute 45 32 72 59" id="button7" class="icon_month" text="1" anchor="default" onclick="group2_button7_onclick"/>
  21. <Button position="absolute 75 32 102 59" id="button8" class="icon_month" text="2" anchor="default" onclick="group2_button8_onclick"/>
  22. <Button position="absolute 105 32 132 59" id="button9" class="icon_month" text="3" anchor="default" onclick="group2_button9_onclick"/>
  23. <Button position="absolute 345 32 372 59" id="button20" class="icon_month" text="11" anchor="default" onclick="group2_button20_onclick"/>
  24. <Button position="absolute 375 32 402 59" id="button21" class="icon_month" text="12" anchor="default" onclick="group2_button21_onclick"/>
  25. <Button position="absolute 135 32 162 59" id="button10" class="icon_month" text="4" anchor="default" onclick="group2_button10_onclick"/>
  26. <Button position="absolute 165 32 192 59" id="button11" class="icon_month" text="5" anchor="default" onclick="group2_button11_onclick"/>
  27. <Button position="absolute 195 32 222 59" id="button12" class="icon_month" text="6" anchor="default" onclick="group2_button12_onclick"/>
  28. <Button position="absolute 225 32 252 59" id="button13" class="icon_month" text="7" anchor="default" onclick="group2_button13_onclick"/>
  29. <Button position="absolute 255 32 282 59" id="button14" class="icon_month" text="8" anchor="default" onclick="group2_button14_onclick"/>
  30. </Layout>
  31. </Layouts>
  32. </Div>
  33. <Grid position="absolute 445 216 1000 571" id="grd_curersrvlist" binddataset="ds_main_curersrvlist_item" anchor="all" oncelldblclick="grd_curersrvlist_oncelldblclick">
  34. <Formats>
  35. <Format id="default">
  36. <Columns>
  37. <Column size="21"/>
  38. <Column size="70"/>
  39. <Column size="60"/>
  40. <Column size="46"/>
  41. <Column size="38"/>
  42. <Column size="95"/>
  43. <Column size="55"/>
  44. <Column size="62"/>
  45. <Column size="108"/>
  46. <Column size="40"/>
  47. <Column size="40"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell rowspan="2" taborder="undefined"/>
  56. <Cell col="1" rowspan="2" text="치료일자" taborder="undefined"/>
  57. <Cell col="2" rowspan="2" text="등록번호" taborder="undefined"/>
  58. <Cell col="3" rowspan="2" text="성명" taborder="undefined"/>
  59. <Cell col="4" rowspan="2" text="상태" taborder="undefined"/>
  60. <Cell col="5" rowspan="2" text="진료과" taborder="undefined"/>
  61. <Cell col="6" rowspan="2" text="진료의" taborder="undefined"/>
  62. <Cell col="7" rowspan="2" text="치료&#10;확정유무" taborder="undefined"/>
  63. <Cell col="8" rowspan="2" text="참고사항" taborder="undefined"/>
  64. <Cell col="9" rowspan="2" text="용량" taborder="undefined"/>
  65. <Cell col="10" rowspan="2" text="병실" taborder="undefined"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell celltype="head" expr="currow+1"/>
  69. <Cell col="1" displaytype="date" text="bind:curersrvdd" mask="yyyy-MM-dd"/>
  70. <Cell col="2" text="bind:pid"/>
  71. <Cell col="3" text="bind:hngnm"/>
  72. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:statcd" combodataset="ds_cmb_statcd" combocodecol="value" combodatacol="label" enable="false"/>
  73. <Cell col="5" displaytype="combo" style="padding:0 0 0 2;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  74. <Cell col="6" displaytype="combo" style="padding:0 0 0 2;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm" enable="false"/>
  75. <Cell col="7" displaytype="combo" style="align:center;" text="bind:curecfrmyn" combodataset="ds_init_curecfrmyn" combocodecol="value" combodatacol="label" enable="false"/>
  76. <Cell col="8" style="align:left middle;" text="bind:remfact"/>
  77. <Cell col="9" style="align:right middle;" text="bind:drugqty"/>
  78. <Cell col="10" text="bind:roomcd"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Button position="absolute 355 191 397 210" id="btn_rsrv" class="btn2" enable="true" text="예약" onclick="btn_rsrv_onclick"/>
  84. <Edit position="absolute 625 133 745 152" id="ipt_mpphon" class="input_default"/>
  85. <Shape position="absolute -1 46 998 52" linetype="horizontal" id="line9" class="line_10" anchor="left top right"/>
  86. <Static text="연락처" position="absolute 502 131 622 154" align="align:center middle;" id="caption61" class="cell_1"/>
  87. <Static text="주민등록번호" position="absolute 502 51 622 74" align="align:center middle;" id="caption50" class="cell_1"/>
  88. <Static text="성별/나이" position="absolute 502 77 622 100" align="align:center middle;" id="caption62" class="cell_1"/>
  89. <MaskEdit position="absolute 625 52 697 71" id="ipt_rrgstno1" enable="false" mask="999999" style=":disabled {align:left middle;}"/>
  90. <Edit position="absolute 716 52 788 71" id="ipt_rrgstno2" enable="false"/>
  91. <Edit position="absolute 123 52 225 71" id="ipt_pid" class="input_default" taborder="1" onkeydown="ipt_pid_onkeydown"/>
  92. <Static text="기본정보" position="absolute 0 30 120 51" id="caption41" class="tit_2"/>
  93. <Static text="-" position="absolute 701 53 713 70" id="caption20" class="search_no_b"/>
  94. <Static text="성명" position="absolute 251 51 371 74" align="align:center middle;" id="caption54" class="cell_1"/>
  95. <MaskEdit position="absolute 659 80 699 99" id="ipt_age" enable="false" mask="999" style=":disabled {align:left middle;}"/>
  96. <Edit position="absolute 374 52 494 71" id="ipt_hngnm" enable="false"/>
  97. <Static text="등록번호" position="absolute 0 51 120 74" align="align:center middle;" id="caption48" class="cell_1"/>
  98. <Static text="집전화번호" position="absolute 0 77 120 100" align="align:center middle;" id="caption49" class="cell_1"/>
  99. <Edit readonly="true" position="absolute 123 80 243 99" id="ipt_cntctel" enable="false"/>
  100. <Shape position="absolute -3 211 441 217" linetype="horizontal" id="line1" class="line_10"/>
  101. <Static text="예약현황" position="absolute 0 195 120 216" id="caption1" class="tit_2"/>
  102. <Button position="absolute 399 191 441 210" id="btn_can" class="btn2" enable="false" text="취소" onclick="btn_can_onclick"/>
  103. <Static text="예약정보" position="absolute 445 195 565 216" id="caption3" class="tit_2"/>
  104. <Shape position="absolute 444 211 999 217" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  105. <Shape position="absolute 0 99 999 105" linetype="horizontal" id="line6" class="line_3" anchor="left top right"/>
  106. <Shape position="absolute 0 73 999 79" linetype="horizontal" id="line3" class="line_2" anchor="left top right"/>
  107. <Shape position="absolute -1 126 998 132" linetype="horizontal" id="line4" class="line_10" anchor="left top right"/>
  108. <Static text="예약정보" position="absolute 0 110 120 131" id="caption2" class="tit_2"/>
  109. <Static text="진료과" position="absolute 0 131 120 154" align="align:left middle;" id="caption37" class="cell_1"/>
  110. <Combo position="absolute 123 133 243 152" id="cmb_orddept" innerdataset="@ds_init_orddeptcd" datacolumn="nm" codecolumn="cd" onitemchanged="cmb_orddept_onitemchanged"/>
  111. <Static text="진료의" position="absolute 250 131 370 154" align="align:left middle;" id="caption16" class="cell_1"/>
  112. <Combo position="absolute 374 133 494 152" id="cmb_orddr" innerdataset="@ds_init_orddrid" datacolumn="nm" codecolumn="cd"/>
  113. <Static text="참고사항" position="absolute 250 157 370 180" align="align:left middle;" id="caption38" class="cell_1"/>
  114. <Edit position="absolute 374 160 997 179" id="input2" class="input_default"/>
  115. <Shape position="absolute 0 153 999 159" linetype="horizontal" id="line5" class="line_2" anchor="left top right"/>
  116. <Shape position="absolute 0 179 999 185" linetype="horizontal" id="line7" class="line_3" anchor="left top right"/>
  117. <Edit readonly="true" position="absolute 625 80 655 99" id="opt_sex"/>
  118. <Button position="absolute 228 53 244 69" id="btn_getpatinfo" class="icon_search" text="" onclick="btn_getpatinfo_onclick"/>
  119. <Static text="치료예약스케줄관리" position="absolute 0 0 214 23" id="caption6" class="tit_1"/>
  120. <Combo position="absolute 875 133 998 152" id="combo3" codecolumn="codecolumn" datacolumn="datacolumn">
  121. <Dataset id="innerdataset">
  122. <ColumnInfo>
  123. <Column id="codecolumn" size="256"/>
  124. <Column id="datacolumn" size="256"/>
  125. </ColumnInfo>
  126. <Rows>
  127. <Row>
  128. <Col id="codecolumn">I</Col>
  129. <Col id="datacolumn">입원</Col>
  130. </Row>
  131. <Row>
  132. <Col id="codecolumn">O</Col>
  133. <Col id="datacolumn">외래</Col>
  134. </Row>
  135. </Rows>
  136. </Dataset>
  137. </Combo>
  138. <Static text="상태" position="absolute 752 131 872 154" align="align:left middle;" id="caption4" class="cell_1"/>
  139. <Static text="치료일" position="absolute 0 157 120 180" align="align:center middle;" id="caption7" class="cell_1"/>
  140. <MaskEdit readonly="true" position="absolute 123 160 243 179" id="output3" mask="####-##-##" enable="false" style=":disabled {align:left middle;}" type="string" trimtype="both" maskchar=" "/>
  141. <Static text="휴대전화번호" position="absolute 251 77 371 100" align="align:center middle;" id="caption8" class="cell_1"/>
  142. <Edit readonly="true" position="absolute 374 80 494 99" id="output4" enable="false"/>
  143. <Button position="absolute 883 192 999 211" id="button1" class="btn2" text="치료예약상세정보" onclick="button1_onclick"/>
  144. <Grid position="absolute 789 18 984 131" id="grd_temp" visible="false" binddataset="ds_init_curerprescondlist_rsrvcalendar">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="76"/>
  149. <Column size="62"/>
  150. <Column size="53"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell text="일자(dd)"/>
  158. <Cell col="1" text="가용현황"/>
  159. <Cell col="2" text="max"/>
  160. </Band>
  161. <Band id="body">
  162. <Cell text="bind:rsrvdd"/>
  163. <Cell col="1" text="bind:count"/>
  164. <Cell col="2" text="bind:max"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. <Radio position="absolute 85 191 180 214" id="rdo_srchioflag" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_srchioflag_onitemchanged">
  170. <Dataset id="innerdataset">
  171. <ColumnInfo>
  172. <Column id="codecolumn"/>
  173. <Column id="datacolumn"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="codecolumn">I</Col>
  178. <Col id="datacolumn">입원</Col>
  179. </Row>
  180. <Row>
  181. <Col id="codecolumn">O</Col>
  182. <Col id="datacolumn">외래</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. </Radio>
  187. <Edit readonly="true" position="absolute 180 192 325 211" id="output5" visible="false"/>
  188. <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 944 573 1000 595" anchor="default" onclick="btn_close_onclick"/>
  189. <Grid id="grd_calendar" taborder="3" binddataset="ds_hidden_calendar_weeklist_list" useinputpanel="false" selecttype="cell" position="absolute 0 278 440 568" anchor="left top" onclick="" oncellclick="grd_calendar_oncellclick" autofittype="col,allrow">
  190. <Formats>
  191. <Format id="default">
  192. <Columns>
  193. <Column size="61"/>
  194. <Column size="61"/>
  195. <Column size="61"/>
  196. <Column size="61"/>
  197. <Column size="61"/>
  198. <Column size="61"/>
  199. <Column size="61"/>
  200. </Columns>
  201. <Rows>
  202. <Row size="24" band="head"/>
  203. <Row size="24"/>
  204. <Row size="24"/>
  205. </Rows>
  206. <Band id="head">
  207. <Cell text="일"/>
  208. <Cell col="1" text="월"/>
  209. <Cell col="2" text="화"/>
  210. <Cell col="3" text="수"/>
  211. <Cell col="4" text="목"/>
  212. <Cell col="5" text="금"/>
  213. <Cell col="6" text="토"/>
  214. </Band>
  215. <Band id="body">
  216. <Cell rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+sun ? '#95d4fb' : ''));background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+sun ? '#95d4fb' : ''));selectbackground:#daa7d9ff;" taborder="undefined">
  217. <Cell style="color:red;color2:red;font:arial,9,bold;selectcolor:BIND(sun_hui);selectfont:arial,9,bold;" class="color_sun" text="bind:sun" taborder="undefined"/>
  218. <Cell row="1" style="color:red;color2:red;selectcolor:BIND(sun_hui);" class="color_sun" text="bind:sun_memo" taborder="undefined"/>
  219. </Cell>
  220. <Cell col="1" rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+mon ? '#95d4fb' : '');background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+mon ? '#95d4fb' : '');color:BIND(mon_hui);color2:BIND(mon_hui);selectbackground:#daa7d9ff;" taborder="undefined">
  221. <Cell style="color:BIND(mon_hui);color2:BIND(mon_hui);font:arial,9,bold;selectcolor:BIND(mon_hui);selectfont:arial,9,bold;" text="bind:mon" taborder="undefined"/>
  222. <Cell row="1" style="color:BIND(mon_hui);color2:BIND(mon_hui);" text="bind:mon_memo" taborder="undefined"/>
  223. </Cell>
  224. <Cell col="2" rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+tue ? '#95d4fb' : '');background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+tue ? '#95d4fb' : '');color:BIND(tue_hui);color2:BIND(tue_hui);selectbackground:#daa7d9ff;selectcolor:#daa7d9ff;" taborder="undefined">
  225. <Cell style="color:BIND(tue_hui);color2:BIND(tue_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:tue" taborder="undefined"/>
  226. <Cell row="1" style="color:BIND(tue_hui);color2:BIND(tue_hui);" text="bind:tue_memo" taborder="undefined"/>
  227. </Cell>
  228. <Cell col="3" rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+wed ? '#95d4fb' : '');background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+wed ? '#95d4fb' : '');color:BIND(wed_hui);color2:BIND(wed_hui);selectbackground:#daa7d9ff;" taborder="undefined">
  229. <Cell style="color:BIND(wed_hui);color2:BIND(wed_hui);font:arial,9,bold;selectcolor:BIND(wed_hui);selectfont:arial,9,bold;" text="bind:wed" taborder="undefined"/>
  230. <Cell row="1" style="color:BIND(wed_hui);color2:BIND(wed_hui);" text="bind:wed_memo" taborder="undefined"/>
  231. </Cell>
  232. <Cell col="4" rowspan="2" style="background:EXPR(EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+thu ? '#95d4fb' : ''));color:BIND(thu_hui);color2:BIND(thu_hui);selectbackground:#daa7d9ff;" taborder="undefined">
  233. <Cell style="color:BIND(thu_hui);color2:BIND(thu_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:thu" taborder="undefined"/>
  234. <Cell row="1" style="color:BIND(thu_hui);color2:BIND(thu_hui);" text="bind:thu_memo" taborder="undefined"/>
  235. </Cell>
  236. <Cell col="5" rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+fri ? '#95d4fb' : '');background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+fri ? '#95d4fb' : '');color:BIND(fri_hui);color2:BIND(fri_hui);selectbackground:#daa7d9ff;" taborder="undefined">
  237. <Cell style="color:BIND(fri_hui);color2:BIND(fri_hui);font:arial,9,bold;selectcolor:BIND(fri_hui);selectfont:arial,9,bold;" text="bind:fri" taborder="undefined"/>
  238. <Cell row="1" style="color:BIND(fri_hui);color2:BIND(fri_hui);" text="bind:fri_memo" taborder="undefined"/>
  239. </Cell>
  240. <Cell col="6" rowspan="2" style="background:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+sat ? '#95d4fb' : '');background2:EXPR(utlf_getCurrentDate() == ds_hidden_calendar.getColumn(0, &quot;year&quot;)+ds_hidden_calendar.getColumn(0, &quot;month&quot;)+sat ? '#95d4fb' : '');selectbackground:#daa7d9ff;" taborder="undefined">
  241. <Cell style="color:BIND(sat_hui);color2:BIND(sat_hui);font:arial,9,bold;selectcolor:BIND(sat_hui);selectfont:arial,9,bold;" class="color_sat" text="bind:sat" taborder="undefined"/>
  242. <Cell row="1" style="color:BIND(sat_hui);color2:BIND(sat_hui);" class="color_sat" text="bind:sat_memo" taborder="undefined"/>
  243. </Cell>
  244. </Band>
  245. </Format>
  246. </Formats>
  247. </Grid>
  248. </Layout>
  249. </Layouts>
  250. <Objects>
  251. <Dataset id="ds_main_curersrvinfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="flag" type="STRING" size="256" sumtext="상태"/>
  254. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  255. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  256. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호 앞 6자리"/>
  257. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호 뒤 7자리"/>
  258. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  259. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  260. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  261. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  262. <Column id="curersrvdd" type="STRING" size="256" sumtext="치료일"/>
  263. <Column id="genrdd" type="STRING" size="256" sumtext="등록일자"/>
  264. <Column id="genrno" type="STRING" size="256" sumtext="등록일자 일련번호"/>
  265. <Column id="suppdeptcd" type="STRING" size="256" sumtext="예약일"/>
  266. <Column id="statcd" type="STRING" size="256" sumtext="상태"/>
  267. <Column id="cntctel" type="STRING" size="256" sumtext="연락처"/>
  268. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  269. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  270. <Column id="curedg1" type="STRING" size="256" sumtext="약품조절"/>
  271. <Column id="curedgseq1" type="STRING" size="256" sumtext="약품조절_임시예약일련번호"/>
  272. <Column id="curedg2" type="STRING" size="256" sumtext="식이요법"/>
  273. <Column id="curedgseq2" type="STRING" size="256" sumtext="식이요법_임시예약일련번호"/>
  274. <Column id="curedg3" type="STRING" size="256" sumtext="검사예약"/>
  275. <Column id="curedgseq3" type="STRING" size="256" sumtext="검사예약_임시예약일련번호"/>
  276. <Column id="curedg4" type="STRING" size="256" sumtext="검사촬영"/>
  277. <Column id="curedgseq4" type="STRING" size="256" sumtext="검사촬영_임시예약일련번호"/>
  278. <Column id="curedg5" type="STRING" size="256" sumtext="치료일"/>
  279. <Column id="curedgseq5" type="STRING" size="256" sumtext="치료일_임시예약일련번호"/>
  280. <Column id="curedg6" type="STRING" size="256" sumtext="치료후촬영"/>
  281. <Column id="curedgseq6" type="STRING" size="256" sumtext="치료후촬영_임시예약일련번호"/>
  282. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  283. <Column id="startdd" type="STRING" size="256" sumtext="치료시작일"/>
  284. <Column id="endcnts" type="STRING" size="256" sumtext="치료종료안내"/>
  285. <Column id="curecfrmyn" type="STRING" size="256" sumtext="입원예정일"/>
  286. <Column id="drugqty" type="STRING" size="256" sumtext="치료확정유무"/>
  287. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  288. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  289. </ColumnInfo>
  290. <Rows>
  291. <Row/>
  292. </Rows>
  293. </Dataset>
  294. <Dataset id="ds_init_curerprescondlist_rsrvcalendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  295. <ColumnInfo>
  296. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  297. <Column id="count" type="STRING" size="256" sumtext="예약수"/>
  298. <Column id="max" type="STRING" size="256" sumtext="가용인원"/>
  299. </ColumnInfo>
  300. </Dataset>
  301. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  302. <ColumnInfo>
  303. <Column id="cd" type="STRING" size="256"/>
  304. <Column id="nm" type="STRING" size="256"/>
  305. </ColumnInfo>
  306. </Dataset>
  307. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  308. <ColumnInfo>
  309. <Column id="cd" type="STRING" size="256"/>
  310. <Column id="nm" type="STRING" size="256"/>
  311. </ColumnInfo>
  312. </Dataset>
  313. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  314. <ColumnInfo>
  315. <Column id="rsrvdd" type="STRING" size="256"/>
  316. <Column id="rsrvdate" type="STRING" size="256"/>
  317. <Column id="excuroomgrpcdid" type="STRING" size="256"/>
  318. <Column id="srchpid" type="STRING" size="256"/>
  319. <Column id="srchioflag" type="STRING" size="256"/>
  320. <Column id="srchionm" type="STRING" size="256"/>
  321. <Column id="suppdeptcd" type="STRING" size="256"/>
  322. <Column id="srchflag" type="STRING" size="256"/>
  323. <Column id="pid" type="STRING" size="256"/>
  324. <Column id="excuroomcd" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. <Rows>
  327. <Row>
  328. <Col id="rsrvdd"/>
  329. <Col id="rsrvdate"/>
  330. <Col id="excuroomgrpcdid">치료,투약실</Col>
  331. <Col id="srchpid"/>
  332. <Col id="srchioflag"/>
  333. <Col id="srchionm"/>
  334. </Row>
  335. </Rows>
  336. </Dataset>
  337. <Dataset id="ds_main_curersrvlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  338. <Dataset id="ds_cmb_statcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  339. <ColumnInfo>
  340. <Column id="label" type="STRING" size="256"/>
  341. <Column id="value" type="STRING" size="256"/>
  342. </ColumnInfo>
  343. <Rows>
  344. <Row>
  345. <Col id="label">입원</Col>
  346. <Col id="value">I</Col>
  347. </Row>
  348. <Row>
  349. <Col id="label">외래</Col>
  350. <Col id="value">O</Col>
  351. </Row>
  352. </Rows>
  353. </Dataset>
  354. <Dataset id="ds_init_curecfrmyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  355. <ColumnInfo>
  356. <Column id="label" type="STRING" size="256"/>
  357. <Column id="value" type="STRING" size="256"/>
  358. </ColumnInfo>
  359. <Rows>
  360. <Row>
  361. <Col id="label">확정</Col>
  362. <Col id="value">Y</Col>
  363. </Row>
  364. <Row>
  365. <Col id="label">미확정</Col>
  366. <Col id="value">N</Col>
  367. </Row>
  368. <Row>
  369. <Col id="label">취소</Col>
  370. <Col id="value">C</Col>
  371. </Row>
  372. </Rows>
  373. </Dataset>
  374. <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  375. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  376. <ColumnInfo>
  377. <Column id="year" type="STRING" size="256"/>
  378. <Column id="month" type="STRING" size="256"/>
  379. <Column id="dd" type="STRING" size="256"/>
  380. </ColumnInfo>
  381. <Rows>
  382. <Row/>
  383. </Rows>
  384. </Dataset>
  385. <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  386. <ColumnInfo>
  387. <Column id="date" type="STRING" size="256" sumtext="달력날짜"/>
  388. <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서"/>
  389. <Column id="excuroomgrpcdid" type="STRING" size="256" sumtext="검사실그룹"/>
  390. <Column id="srchflag" type="STRING" size="256" sumtext="조회구분"/>
  391. </ColumnInfo>
  392. <Rows>
  393. <Row/>
  394. </Rows>
  395. </Dataset>
  396. <Dataset id="ds_hidden_calendarinfo_calendarinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  397. <ColumnInfo>
  398. <Column id="basedd" type="STRING" size="256" sumtext="날짜"/>
  399. <Column id="holinm" type="STRING" size="256" sumtext="휴일명칭"/>
  400. <Column id="holiflag" type="STRING" size="256" sumtext="휴일구분"/>
  401. <Column id="dutflag" type="STRING" size="256" sumtext="근무구분"/>
  402. </ColumnInfo>
  403. </Dataset>
  404. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  405. <ColumnInfo>
  406. <Column id="sun" type="STRING"/>
  407. <Column id="mon" type="STRING"/>
  408. <Column id="tue" type="STRING"/>
  409. <Column id="wed" type="STRING"/>
  410. <Column id="thu" type="STRING"/>
  411. <Column id="fri" type="STRING"/>
  412. <Column id="sat" type="STRING"/>
  413. <Column id="sun_memo" type="STRING"/>
  414. <Column id="mon_memo" type="STRING"/>
  415. <Column id="tue_memo" type="STRING"/>
  416. <Column id="wed_memo" type="STRING"/>
  417. <Column id="thu_memo" type="STRING"/>
  418. <Column id="fri_memo" type="STRING"/>
  419. <Column id="sat_memo" type="STRING"/>
  420. <Column id="sun_hui" type="STRING" size="256"/>
  421. <Column id="mon_hui" type="STRING" size="256"/>
  422. <Column id="tue_hui" type="STRING" size="256"/>
  423. <Column id="wed_hui" type="STRING" size="256"/>
  424. <Column id="thu_hui" type="STRING" size="256"/>
  425. <Column id="fri_hui" type="STRING" size="256"/>
  426. <Column id="sat_hui" type="STRING" size="256"/>
  427. </ColumnInfo>
  428. </Dataset>
  429. <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  430. <ColumnInfo>
  431. <Column id="calcol" type="INT" size="256"/>
  432. <Column id="bfcalcol" type="INT" size="256"/>
  433. <Column id="color" type="INT" size="256"/>
  434. <Column id="bfcalrow" type="INT" size="256"/>
  435. <Column id="calrow" type="INT" size="256"/>
  436. </ColumnInfo>
  437. <Rows>
  438. <Row/>
  439. </Rows>
  440. </Dataset>
  441. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  442. <ColumnInfo>
  443. <Column id="srchcond" type="STRING" size="256"/>
  444. <Column id="pid" type="STRING" size="256"/>
  445. </ColumnInfo>
  446. <Rows>
  447. <Row/>
  448. </Rows>
  449. </Dataset>
  450. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  451. </Objects>
  452. <Bind>
  453. <BindItem id="item0" compid="output5" propid="value" datasetid="ds_send_data" columnid="srchionm"/>
  454. <BindItem id="item1" compid="group2.output1" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  455. <BindItem id="item2" compid="group2.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  456. <BindItem id="item3" compid="ipt_pid" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="pid"/>
  457. <BindItem id="item4" compid="ipt_hngnm" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="hngnm"/>
  458. <BindItem id="item5" compid="ipt_rrgstno1" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="rrgstno1"/>
  459. <BindItem id="item6" compid="ipt_rrgstno2" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="rrgstno2"/>
  460. <BindItem id="item7" compid="ipt_cntctel" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="hometel"/>
  461. <BindItem id="item8" compid="output4" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="mpphontel"/>
  462. <BindItem id="item9" compid="opt_sex" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="sex"/>
  463. <BindItem id="item10" compid="ipt_age" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="age"/>
  464. <BindItem id="item11" compid="cmb_orddept" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="orddeptcd"/>
  465. <BindItem id="item12" compid="cmb_orddr" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="orddrid"/>
  466. <BindItem id="item13" compid="ipt_mpphon" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="cntctel"/>
  467. <BindItem id="item14" compid="combo3" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="statcd"/>
  468. <BindItem id="item15" compid="output3" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="curersrvdd"/>
  469. <BindItem id="item16" compid="input2" propid="value" datasetid="ds_main_curersrvinfo_item" columnid="remfact"/>
  470. <BindItem id="item17" compid="rdo_srchioflag" propid="value" datasetid="ds_send_data" columnid="srchioflag"/>
  471. </Bind>
  472. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  473. * System Name :
  474. * Job Name :
  475. * Creator :
  476. * Make Date : 2015-11-13
  477. * Description :
  478. *---------------------------------------------------------------------------------------
  479. * Modify Date Modifier Modify Description
  480. *---------------------------------------------------------------------------------------
  481. * 2015-11-13 Live Converter TF->XP
  482. *
  483. *---------------------------------------------------------------------------------------
  484. ****************************************************************************************/
  485. include "com_commonxp::comm_main.xjs";
  486. include "ast_examcurexp::AEZ0001.xjs";
  487. var vSuppdeptcd;
  488. function SMAEA04500_oninit(obj:Form, e:InitEventInfo)
  489. {
  490. frmf_initForm(obj);
  491. }
  492. function SMAEA04500_onload(obj:Form, e:LoadEventInfo)
  493. {
  494. grdf_initGrid(grd_curersrvlist);
  495. lf_aezfSetSuppDeptcd();
  496. vSuppdeptcd = frmf_getPrestDeptCd();
  497. if(utlf_isNull(vSuppdeptcd))
  498. {
  499. vSuppdeptcd = sysf_getUserInfo("dutplcecd");
  500. }
  501. ds_send_data.setColumn(0, "suppdeptcd", vSuppdeptcd);
  502. dsf_createDsRow("ds_req", [{col:"dridsorttype", type:"STRING", size:256 , val : ""}
  503. , {col:"sess_posinstcd", type:"STRING", size:256 , val : ""}]);
  504. var oParam = {};
  505. oParam.id = "TRPMOCOM01";
  506. oParam.service = "pamcomnapp.PamComn";
  507. oParam.method = "reqGetComCD";
  508. oParam.inds = "req=ds_req";
  509. oParam.outds = "ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid";
  510. oParam.async = false;
  511. //oParam.callback = "cf_TRPMOCOM01";
  512. tranf_submit(oParam);
  513. var paminfo = sysf_getGlobalVariable("paminfo");
  514. if (!utlf_isNull(paminfo))
  515. {
  516. dsf_setCSVToDs("ds_temp_paminfo", paminfo);
  517. var pid = ds_temp_paminfo.getColumn(0, "pid");
  518. var orddeptcd = ds_temp_paminfo.getColumn(0, "orddeptcd");
  519. var wardcd = ds_temp_paminfo.getColumn(0, "wardcd");
  520. var orddrid = ds_temp_paminfo.getColumn(0, "orddrid");
  521. var hngnm = ds_temp_paminfo.getColumn(0, "hngnm");
  522. var rrgstno1 = ds_temp_paminfo.getColumn(0, "rrgstno1");
  523. var rrgstno2 = ds_temp_paminfo.getColumn(0, "rrgstno2");
  524. var sex = ds_temp_paminfo.getColumn(0, "sex");
  525. var age = ds_temp_paminfo.getColumn(0, "age");
  526. ds_send_data.setColumn(0, "pid", pid);
  527. dsf_setFixVal(ds_send_data, "srchflag:Y");
  528. var oParam = {};
  529. oParam.id = "TRAEA04501";
  530. oParam.service = "examcurebaseapp.NuclCureSche";
  531. oParam.method = "reqGetUnRsrvPatInfo";
  532. oParam.inds = "req=ds_send_data";
  533. oParam.outds = "ds_main_curersrvinfo_item=item";
  534. oParam.async = false;
  535. //oParam.callback = "cf_TRAEA04501";
  536. tranf_submit(oParam);
  537. if(ds_main_curersrvinfo_item.rowcount == 0)
  538. {
  539. ds_main_curersrvinfo_item.addRow();
  540. }
  541. pid = ds_main_curersrvinfo_item.getColumn(0, "pid");
  542. btn_rsrv.enable = true;
  543. if(!utlf_isNull(pid))
  544. {
  545. var flag = ds_main_curersrvinfo_item.getColumn(0, "flag");
  546. var srchorddeptcd = ds_main_curersrvinfo_item.getColumn(0, "orddeptcd");
  547. if (flag == "I")
  548. {
  549. if (utlf_isNull(srchorddeptcd))
  550. {
  551. ds_main_curersrvinfo_item.setColumn(0, "orddeptcd", orddeptcd);
  552. ds_main_curersrvinfo_item.setColumn(0, "orddrid", orddrid);
  553. }
  554. else
  555. {
  556. orddeptcd = srchorddeptcd;
  557. }
  558. ds_init_orddrid.filterstr = "dp == '"+orddeptcd+"'";
  559. btn_can.enable = false;
  560. }
  561. else
  562. {
  563. btn_can.enable = true;
  564. }
  565. }
  566. }
  567. ds_send_data.setColumn(0, "srchioflag", "I");
  568. initCalendar();
  569. setCurrentDate();
  570. getRsrvPossTm(grd_calendar);
  571. }
  572. function fGetHospitalCalendar()
  573. {
  574. var dd = (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month"));
  575. ds_send_data3.setColumn(0, "date", dd);
  576. ds_send_data3.setColumn(0, "suppdeptcd", vSuppdeptcd);
  577. var oParam = {};
  578. oParam.id = "TRAEA03203";
  579. oParam.service = "examcurersrvapp.RsrvTm";
  580. oParam.method = "reqGetHospitalCalendar";
  581. oParam.inds = "req=ds_send_data3";
  582. oParam.outds = "ds_hidden_calendarinfo_calendarinfolist=caldata";
  583. oParam.async = false;
  584. oParam.callback = "cf_TRAEA03203";
  585. tranf_submit(oParam);
  586. }
  587. function cf_TRAEA03203(sSvcId, nErrorCode, sErrorMsg)
  588. {
  589. if(nErrorCode < 0)
  590. {
  591. return false;
  592. }
  593. else
  594. {
  595. return true;
  596. }
  597. }
  598. function initCalendar()
  599. {
  600. var curDate = utlf_getCurrentDate().toDate();
  601. var curersrvdd = ds_main_curersrvinfo_item.getColumn(0, "curersrvdd");
  602. if(!utlf_isNull(curersrvdd))
  603. {
  604. curDate = curersrvdd.toDate();
  605. }
  606. ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat("YYYY"));
  607. ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat("MM"));
  608. ds_hidden_calendar.setColumn(0, "dd", curDate.getDateFormat("DD"));
  609. setCalendar(curDate);
  610. }
  611. function setCalendar(dateObj)
  612. {
  613. ds_main_curersrvlist_item.clearData();
  614. if ( fGetHospitalCalendar() == false )
  615. {
  616. sysf_messageBox("병원일정 데이터를 가져올 수", "I004");
  617. }
  618. ds_hidden_calendar_weeklist_list.clearData();
  619. dateObj.setDate(1);
  620. var startDay = dateObj.getDay();
  621. var days = dateObj.getMonthDay();
  622. var rows = Math.ceil( ( startDay + days ) / 7 );
  623. for ( var i = 0; i < rows; i++ )
  624. {
  625. ds_hidden_calendar_weeklist_list.addRow();
  626. }
  627. var rowIndex = 0;
  628. var colIndex = startDay;
  629. var dutflag = "";
  630. for ( var i = 1; i <= days; i++ )
  631. {
  632. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i);
  633. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex+7, "0/0");
  634. dutflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i-1, "dutflag");
  635. if( dutflag == "8" )
  636. {
  637. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex + 14, "red");
  638. }
  639. else if(dutflag == "4")
  640. {
  641. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex + 14, "blue");
  642. }
  643. else
  644. {
  645. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex + 14, "none");
  646. }
  647. colIndex++;
  648. if ( colIndex == 7 )
  649. {
  650. colIndex = 0;
  651. rowIndex++;
  652. }
  653. }
  654. ds_send_data.setColumn(0, "rsrvdd", ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")+"01");
  655. setRsrvPresCondByMonth(dateObj);
  656. }
  657. function setCurrentDate()
  658. {
  659. var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
  660. var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  661. var curersrvdd = ds_main_curersrvinfo_item.getColumn(0, "curersrvdd");
  662. if (!utlf_isNull(curersrvdd))
  663. {
  664. curDate = curersrvdd.substr(6,2);
  665. curWeek = curersrvdd.toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  666. }
  667. if (curDate < 10)
  668. {
  669. curDate= curDate.substr(1,1);
  670. }
  671. if (curWeek == "sun")
  672. {
  673. ds_hidden_grdcellcolor.setColumn(0, "calcol", "0");
  674. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "0");
  675. }
  676. else if (curWeek == "mon")
  677. {
  678. ds_hidden_grdcellcolor.setColumn(0, "calcol", "1");
  679. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "1");
  680. }
  681. else if (curWeek == "tue")
  682. {
  683. ds_hidden_grdcellcolor.setColumn(0, "calcol", "2");
  684. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "2");
  685. }
  686. else if (curWeek == "wed")
  687. {
  688. ds_hidden_grdcellcolor.setColumn(0, "calcol", "3");
  689. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "3");
  690. }
  691. else if (curWeek == "thu")
  692. {
  693. ds_hidden_grdcellcolor.setColumn(0, "calcol", "4");
  694. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "4");
  695. }
  696. else if (curWeek == "fri")
  697. {
  698. ds_hidden_grdcellcolor.setColumn(0, "calcol", "5");
  699. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "5");
  700. }
  701. else if (curWeek == "sat")
  702. {
  703. ds_hidden_grdcellcolor.setColumn(0, "calcol", "6");
  704. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "6");
  705. }
  706. for (var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ )
  707. {
  708. if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) == curDate)
  709. {
  710. ds_hidden_grdcellcolor.setColumn(0, "calrow", i);
  711. ds_hidden_grdcellcolor.setColumn(0, "bfcalrow", i);
  712. }
  713. }
  714. ds_hidden_grdcellcolor.setColumn(0, "color", "1");
  715. setCellColor(grd_calendar);
  716. }
  717. function getRsrvPossTm(gridObj)
  718. {
  719. var calRow = ds_hidden_grdcellcolor.getColumn(0, "calrow");
  720. var calCol = ds_hidden_grdcellcolor.getColumn(0, "calcol");
  721. var yyyy = ds_hidden_calendar.getColumn(0, "year");
  722. var mm = ds_hidden_calendar.getColumn(0, "month");
  723. var dd = ds_hidden_calendar_weeklist_list.getColumn(calRow, calCol);
  724. if (utlf_getStringLength(dd) == 1)
  725. {
  726. dd = "0" + dd;
  727. }
  728. ds_send_data.setColumn(0, "rsrvdd", yyyy + mm + dd);
  729. var oParam = {};
  730. oParam.id = "TRAEA04502";
  731. oParam.service = "examcurebaseapp.NuclCureSche";
  732. oParam.method = "reqGetUnRsrvTmList";
  733. oParam.inds = "req=ds_send_data";
  734. oParam.outds = "ds_main_curersrvlist_item=unrsrvlist";
  735. oParam.async = false;
  736. //oParam.callback = "cf_TRAEA04502";
  737. tranf_submit(oParam);
  738. if(ds_main_curersrvinfo_item.rowcount == 0)
  739. {
  740. ds_main_curersrvinfo_item.addRow();
  741. }
  742. }
  743. function setRsrvPresCondByMonth(dateObj)
  744. {
  745. var oParam = {};
  746. oParam.id = "TRAEA04503";
  747. oParam.service = "examcurebaseapp.NuclCureSche";
  748. oParam.method = "reqGetCureRsrvCountList";
  749. oParam.inds = "reqparam=ds_send_data";
  750. oParam.outds = "ds_init_curerprescondlist_rsrvcalendar=rsrvcalendar";
  751. oParam.async = false;
  752. //oParam.callback = "cf_TRAEA04503";
  753. tranf_submit(oParam);
  754. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  755. var isYear = ds_hidden_calendar.getColumn(0, "year");
  756. var startDay = dateObj.getDay();
  757. for (var i = 0; i < ds_init_curerprescondlist_rsrvcalendar.rowcount; i++)
  758. {
  759. var dd = ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "rsrvdd");
  760. var colidx = dd.toDate().getDay();
  761. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  762. var srchioflag = ds_send_data.getColumn(0, "srchioflag");
  763. if (srchioflag == "I")
  764. {
  765. ds_hidden_calendar_weeklist_list.setColumn(rowidx-1, colidx+7, ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "count") +"/"+ ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"));
  766. }
  767. else
  768. {
  769. ds_hidden_calendar_weeklist_list.setColumn(rowidx-1, colidx+7, ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"));
  770. }
  771. }
  772. }
  773. function setCellColor(gridObj)
  774. {
  775. var calRow = 0; //현재선택
  776. var calCol = 0; //현재선택
  777. var bfcalRow = 0; //전에 선택
  778. var bfcalCol = 0; //전에 선택
  779. var white = 1; //#ffffff
  780. var green = 2; //#c4e693
  781. calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
  782. calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
  783. bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
  784. bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
  785. ds_hidden_calendar_weeklist_list.clearSelect();
  786. ds_hidden_calendar_weeklist_list.selectRow(bfcalRow);
  787. ds_hidden_calendar_weeklist_list.rowposition = bfcalRow;
  788. this.grd_calendar.setCellPos(bfcalCol);
  789. }
  790. function ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  791. {
  792. if(e.keycode == 13)
  793. {
  794. obj.updateToDataset();
  795. if(!utlf_isNull(obj.value))
  796. {
  797. fGetInfo();
  798. }
  799. }
  800. }
  801. function fGetInfo()
  802. {
  803. var pid = ds_main_curersrvinfo_item.getColumn(0, "pid");
  804. ds_send_data.setColumn(0, "pid", pid);
  805. dsf_setFixVal(ds_send_data, "srchflag:Y");
  806. var oParam = {};
  807. oParam.id = "TRAEA04501";
  808. oParam.service = "examcurebaseapp.NuclCureSche";
  809. oParam.method = "reqGetUnRsrvPatInfo";
  810. oParam.inds = "req=ds_send_data";
  811. oParam.outds = "ds_main_curersrvinfo_item=item";
  812. oParam.async = false;
  813. oParam.callback = "cf_TRAEA04501";
  814. tranf_submit(oParam);
  815. var flag = ds_main_curersrvinfo_item.getColumn(0, "flag");
  816. if (flag == "I")
  817. {
  818. btn_can.enable = false;
  819. }
  820. else
  821. {
  822. btn_can.enable = true;
  823. }
  824. var orddeptcd = ds_main_curersrvinfo_item.getColumn(0, "orddeptcd");
  825. ds_init_orddrid.filterstr = "dp == '"+orddeptcd+"'";
  826. }
  827. function cf_TRAEA04501(sSvcId, nErrorCode, sErrorMsg)
  828. {
  829. if(nErrorCode < 0)
  830. {
  831. return;
  832. }
  833. else
  834. {
  835. if(ds_main_curersrvinfo_item.rowcount == 0)
  836. {
  837. ds_main_curersrvinfo_item.addRow();
  838. }
  839. }
  840. }
  841. function btn_getpatinfo_onclick(obj:Button, e:ClickEventInfo)
  842. {
  843. ds_send_data2.setColumn(0, "srchcond", "1");
  844. ds_send_data2.setColumn(0, "pid", utlf_transNullToEmpty(ds_main_curersrvinfo_item.getColumn(0, "pid")));
  845. var objArg = new Object();
  846. objArg.arg_ds_send = ds_send_data2;
  847. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  848. var sPid = ds_patinfolist.getColumn(0, "pid");
  849. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  850. ds_main_curersrvinfo_item.setColumn(0, "pid", sPid);
  851. ds_main_curersrvinfo_item.setColumn(0, "hngnm", sHngnm);
  852. if (!utlf_isNull(sPid))
  853. {
  854. fGetInfo();
  855. }
  856. }
  857. function cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  858. {
  859. var orddeptcd = obj.value;
  860. ds_init_orddrid.filterstr = "dp == '"+orddeptcd+"'";
  861. }
  862. function rdo_srchioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  863. {
  864. var srchioflag = obj.value;
  865. if ( srchioflag == "I" )
  866. {
  867. }
  868. else
  869. {
  870. ds_send_data.setColumn(0, "srchionm", "");
  871. }
  872. initCalendar();
  873. setCurrentDate();
  874. getRsrvPossTm(grd_calendar);
  875. }
  876. function btn_rsrv_onclick(obj:Button, e:ClickEventInfo)
  877. {
  878. var curDate = utlf_getCurrentDate().substr(0,8);
  879. var rsrvdd = ds_main_curersrvinfo_item.getColumn(0, "curersrvdd");
  880. var curTm = utlf_getCurrentTime().substr(0,4);
  881. var srchrsrvtm = rsrvdd + "0000";
  882. var statcd = ds_main_curersrvinfo_item.getColumn(0, "statcd");
  883. if(utlf_isNull(statcd))
  884. {
  885. sysf_messageBox("상태를 선택해 주십시오.","I999");
  886. return "0";
  887. }
  888. if(curDate == rsrvdd)
  889. {
  890. srchrsrvtm = rsrvdd + curTm;
  891. }
  892. else if (curDate > rsrvdd)
  893. {
  894. sysf_messageBox("예약일자가 과거일자", "E008");
  895. return;
  896. }
  897. ds_main_curersrvinfo_item.setColumn(0, "srchrsrvtm", srchrsrvtm);
  898. ds_main_curersrvinfo_item.setColumn(0, "curersrvdd", rsrvdd);
  899. var flag = ds_main_curersrvinfo_item.getColumn(0, "flag");
  900. if (flag == "U")
  901. {
  902. var message = sysf_messageBox( "\r\n신규로 스케줄을 등록","S001","\r\n예약(수정)를 취소하시려면 취소를 누르십시오.");
  903. if ( message == 6 )
  904. {
  905. ds_main_curersrvinfo_item.setColumn(0, "flag", "I");
  906. ds_main_curersrvinfo_item.setColumn(0, "drugqty", "0");
  907. ds_main_curersrvinfo_item.setColumn(0, "curecfrmyn", "N");
  908. ds_main_curersrvinfo_item.setColumn(0, "wardcd", "-");
  909. ds_main_curersrvinfo_item.setColumn(0, "roomcd", "-");
  910. dsf_setFixVal(ds_main_curersrvinfo_item, "excuroomcd:NMR01,rsrvprescondappyn:Y");
  911. var oParam = {};
  912. oParam.id = "TXAEA04501";
  913. oParam.service = "examcurebaseapp.NuclCureSche";
  914. oParam.method = "reqExeCureUnRsrvTm";
  915. oParam.inds = "req=ds_main_curersrvinfo_item";
  916. oParam.outds = "ds_main_curersrvinfo_item=item";
  917. oParam.async = false;
  918. oParam.callback = "cf_TXAEA04501";
  919. tranf_submit(oParam);
  920. }
  921. else if (message == 7 )
  922. {
  923. dsf_setFixVal(ds_main_curersrvinfo_item, "excuroomcd:NMR01,rsrvprescondappyn:Y");
  924. var oParam = {};
  925. oParam.id = "TXAEA04501";
  926. oParam.service = "examcurebaseapp.NuclCureSche";
  927. oParam.method = "reqExeCureUnRsrvTm";
  928. oParam.inds = "req=ds_main_curersrvinfo_item";
  929. oParam.outds = "ds_main_curersrvinfo_item=item";
  930. oParam.async = false;
  931. oParam.callback = "cf_TXAEA04501";
  932. tranf_submit(oParam);
  933. }
  934. }
  935. else
  936. {
  937. if ( sysf_messageBox("예약을 ","Q014")==6 )
  938. {
  939. dsf_setFixVal(ds_main_curersrvinfo_item, "excuroomcd:NMR01,rsrvprescondappyn:Y");
  940. var oParam = {};
  941. oParam.id = "TXAEA04501";
  942. oParam.service = "examcurebaseapp.NuclCureSche";
  943. oParam.method = "reqExeCureUnRsrvTm";
  944. oParam.inds = "req=ds_main_curersrvinfo_item";
  945. oParam.outds = "ds_main_curersrvinfo_item=item";
  946. oParam.async = false;
  947. oParam.callback = "cf_TXAEA04501";
  948. tranf_submit(oParam);
  949. }
  950. }
  951. }
  952. function cf_TXAEA04501(sSvcId, nErrorCode, sErrorMsg)
  953. {
  954. if(nErrorCode < 0)
  955. {
  956. return;
  957. }
  958. else
  959. {
  960. initCalendar();
  961. setCellColor(grd_calendar);
  962. getRsrvPossTm(grd_calendar);
  963. ds_main_curersrvinfo_item.clearData();
  964. }
  965. }
  966. function btn_can_onclick(obj:Button, e:ClickEventInfo)
  967. {
  968. ds_main_curersrvinfo_item.setColumn(0, "flag", "D");
  969. //ds_main_curersrvinfo_item.setColumn(0, "suppdeptcd", vSuppdeptcd);
  970. var curersrvdd = ds_main_curersrvinfo_item.getColumn(0, "curersrvdd");
  971. ds_main_curersrvinfo_item.setColumn(0, "curedg5", curersrvdd)
  972. if ( sysf_messageBox("예약을 ","Q007")==6 )
  973. {
  974. dsf_setFixVal(ds_main_curersrvinfo_item, "excuroomcd:NMR01,rsrvprescondappyn:Y");
  975. var oParam = {};
  976. oParam.id = "TXAEA04501";
  977. oParam.service = "examcurebaseapp.NuclCureSche";
  978. oParam.method = "reqExeCureUnRsrvTm";
  979. oParam.inds = "req=ds_main_curersrvinfo_item";
  980. oParam.outds = "";
  981. oParam.async = false;
  982. oParam.callback = "cf_TXAEA04501_1";
  983. tranf_submit(oParam);
  984. ds_main_curersrvinfo_item.setColumn(0, "curersrvdd", curersrvdd);
  985. }
  986. }
  987. function cf_TXAEA04501_1(sSvcId, nErrorCode, sErrorMsg)
  988. {
  989. if(nErrorCode < 0)
  990. {
  991. return;
  992. }
  993. else
  994. {
  995. initCalendar();
  996. setCellColor(grd_calendar);
  997. getRsrvPossTm(grd_calendar);
  998. ds_main_curersrvinfo_item.clearData();
  999. }
  1000. }
  1001. function group2_button36_onclick(obj:Button, e:ClickEventInfo)
  1002. {
  1003. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1004. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1005. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1006. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1007. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1008. setCalendar(isDate);
  1009. }
  1010. function group2_button31_onclick(obj:Button, e:ClickEventInfo)
  1011. {
  1012. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1013. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1014. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1015. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1016. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1017. setCalendar(isDate);
  1018. }
  1019. function group2_button33_onclick(obj:Button, e:ClickEventInfo)
  1020. {
  1021. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1022. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1023. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1024. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1025. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1026. setCalendar(isDate);
  1027. }
  1028. function group2_button35_onclick(obj:Button, e:ClickEventInfo)
  1029. {
  1030. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1031. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1032. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1033. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1034. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1035. setCalendar(isDate);
  1036. }
  1037. function fGetCalendar(isMonth)
  1038. {
  1039. ds_hidden_calendar.setColumn(0, "month", isMonth);
  1040. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1041. var isDate = (isYear+isMonth+1).toDate().getAddDate(0,'M');
  1042. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1043. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1044. setCalendar(isDate);
  1045. }
  1046. function group2_button7_onclick(obj:Button, e:ClickEventInfo)
  1047. {
  1048. if(group2.opt_month.value !== "01")
  1049. {
  1050. fGetCalendar("01");
  1051. }
  1052. }
  1053. function group2_button8_onclick(obj:Button, e:ClickEventInfo)
  1054. {
  1055. if(group2.opt_month.value !== "02")
  1056. {
  1057. fGetCalendar("02");
  1058. }
  1059. }
  1060. function group2_button9_onclick(obj:Button, e:ClickEventInfo)
  1061. {
  1062. if(group2.opt_month.value !== "03")
  1063. {
  1064. fGetCalendar("03");
  1065. }
  1066. }
  1067. function group2_button10_onclick(obj:Button, e:ClickEventInfo)
  1068. {
  1069. if(group2.opt_month.value !== "04")
  1070. {
  1071. fGetCalendar("04");
  1072. }
  1073. }
  1074. function group2_button11_onclick(obj:Button, e:ClickEventInfo)
  1075. {
  1076. if(group2.opt_month.value !== "05")
  1077. {
  1078. fGetCalendar("05");
  1079. }
  1080. }
  1081. function group2_button12_onclick(obj:Button, e:ClickEventInfo)
  1082. {
  1083. if(group2.opt_month.value !== "06")
  1084. {
  1085. fGetCalendar("06");
  1086. }
  1087. }
  1088. function group2_button13_onclick(obj:Button, e:ClickEventInfo)
  1089. {
  1090. if(group2.opt_month.value !== "07")
  1091. {
  1092. fGetCalendar("07");
  1093. }
  1094. }
  1095. function group2_button14_onclick(obj:Button, e:ClickEventInfo)
  1096. {
  1097. if(group2.opt_month.value !== "08")
  1098. {
  1099. fGetCalendar("09");
  1100. }
  1101. }
  1102. function group2_button18_onclick(obj:Button, e:ClickEventInfo)
  1103. {
  1104. if(group2.opt_month.value !== "09")
  1105. {
  1106. fGetCalendar("09");
  1107. }
  1108. }
  1109. function group2_button19_onclick(obj:Button, e:ClickEventInfo)
  1110. {
  1111. if(group2.opt_month.value !== "10")
  1112. {
  1113. fGetCalendar("10");
  1114. }
  1115. }
  1116. function group2_button20_onclick(obj:Button, e:ClickEventInfo)
  1117. {
  1118. if(group2.opt_month.value !== "11")
  1119. {
  1120. fGetCalendar("11");
  1121. }
  1122. }
  1123. function group2_button21_onclick(obj:Button, e:ClickEventInfo)
  1124. {
  1125. if(group2.opt_month.value !== "12")
  1126. {
  1127. fGetCalendar("12");
  1128. }
  1129. }
  1130. function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  1131. {
  1132. var excuroomgrpcdid = "치료,투약실";
  1133. ds_hidden_grdcellcolor.setColumn(0, "calrow", e.row);
  1134. ds_hidden_grdcellcolor.setColumn(0, "calcol", e.col);
  1135. getRsrvPossTm(grd_calendar);
  1136. fClickOnCalendar();
  1137. }
  1138. function fClickOnCalendar()
  1139. {
  1140. var calRow = ds_hidden_calendar_weeklist_list.rowposition;
  1141. var calCol = grd_calendar.currentcol;
  1142. calCol = calCol % 7;
  1143. var isDay = ds_hidden_calendar_weeklist_list.getColumn(calRow, calCol);
  1144. if(!utlf_isNull(isDay))
  1145. {
  1146. if( isDay.length == 1 ) isDay = "0" + isDay;
  1147. var curersrvdd = (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month")).concat(isDay);
  1148. ds_main_curersrvinfo_item.setColumn(0, "curersrvdd", curersrvdd);
  1149. }
  1150. }
  1151. function grd_curersrvlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1152. {
  1153. if ( e.row < 0 )
  1154. {
  1155. return;
  1156. }
  1157. if(e.row > -1)
  1158. {
  1159. ds_main_curersrvinfo_item.copyRow(0, ds_main_curersrvlist_item, e.row)
  1160. dsf_makeValue(ds_main_curersrvinfo_item, "flag", "string", "", 0);
  1161. dsf_makeValue(ds_main_curersrvinfo_item, "excuroomcd", "string", "", 0);
  1162. dsf_makeValue(ds_main_curersrvinfo_item, "rsrvprescondappyn", "string", "", 0);
  1163. btn_can.enable = true;
  1164. }
  1165. }
  1166. function button1_onclick(obj:Button, e:ClickEventInfo)
  1167. {
  1168. var objArg = new Object();
  1169. objArg.sPid = ds_main_curersrvinfo_item.getColumn(0, "pid");
  1170. frmf_open("SMAEA04600", "SMAEA04600", objArg, "", "", "", "", "", "", "", "", "", "M");
  1171. }
  1172. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  1173. {
  1174. this.close();
  1175. }
  1176. ]]></Script>
  1177. </Form>
  1178. </FDL>