SMAEA05300_검사실별예약현황조회.xfdl 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA05300" position="absolute 0 0 1196 760" titletext="검사실별 예약현황조회" oninit="SMAEA05300_oninit" onload="SMAEA05300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1194 23" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="검사실별 예약현황조회" position="absolute 0 0 170 23" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1195 757" id="group3" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 10 1195 50" align="align:center top;" id="group2" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 1127 8 1133 32" linetype="vertical" id="line1"/>
  21. <Static text="지원부서 :" position="absolute 5 11 81 28" align="align:left middle;" id="caption1" class="search_name"/>
  22. <Static text="검사/치료실 :" position="absolute 215 11 311 28" id="caption5" class="search_name"/>
  23. <Static text="검사자/치료사 :" position="absolute 444 11 553 28" id="caption7" class="search_name"/>
  24. <Combo position="absolute 555 10 625 29" id="combo6" class="combo_search" innerdataset="@ds_init_cmb_info_execridlist_execr" datacolumn="basecdflagdesc" codecolumn="basecd"/>
  25. <Button position="absolute 1135 9 1191 31" id="btn_sea" class="btn1" text="조회" onclick="group3_group2_btn_sea_onclick"/>
  26. <Combo position="absolute 312 10 427 29" id="cmb_excuroom" class="combo_search" innerdataset="@ds_init_cmb_info_excuroomcdlist_excuroom" datacolumn="basecdflagdesc" codecolumn="basecd" onitemchanged="group3_group2_cmb_excuroom_onitemchanged"/>
  27. <Static text="실시여부 :" position="absolute 895 11 973 28" id="caption10" class="search_name"/>
  28. <Radio position="absolute 972 11 1122 30" id="rbo_gb" taborder="1" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" style="textpadding:0 3 0 3;" onitemchanged="group3_group2_rbo_gb_onitemchanged">
  29. <Dataset id="innerdataset">
  30. <ColumnInfo>
  31. <Column id="codecolumn"/>
  32. <Column id="datacolumn"/>
  33. </ColumnInfo>
  34. <Rows>
  35. <Row>
  36. <Col id="codecolumn">
  37. </Col>
  38. <Col id="datacolumn">전체</Col>
  39. </Row>
  40. <Row>
  41. <Col id="codecolumn">1</Col>
  42. <Col id="datacolumn">미실시</Col>
  43. </Row>
  44. <Row>
  45. <Col id="codecolumn">2</Col>
  46. <Col id="datacolumn">실시</Col>
  47. </Row>
  48. </Rows>
  49. </Dataset>
  50. </Radio>
  51. <Combo position="absolute 82 10 197 29" id="combo1" innerdataset="@ds_init_cmb_info_suppdeptlist_suppdept" datacolumn="suppdeptnm" codecolumn="suppdeptcd" onitemchanged="group3_group2_combo1_onitemchanged"/>
  52. <Static text="구분 :" position="absolute 645 11 695 28" id="caption2" class="search_name"/>
  53. <Radio position="absolute 700 11 875 28" id="rdo_ioflag" taborder="1" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_ioflag_onitemchanged">
  54. <Dataset id="innerdataset">
  55. <ColumnInfo>
  56. <Column id="codecolumn"/>
  57. <Column id="datacolumn"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row>
  61. <Col id="codecolumn">O</Col>
  62. <Col id="datacolumn">외래</Col>
  63. </Row>
  64. <Row>
  65. <Col id="codecolumn">I</Col>
  66. <Col id="datacolumn">입원</Col>
  67. </Row>
  68. <Row>
  69. <Col id="codecolumn">S</Col>
  70. <Col id="datacolumn">건진</Col>
  71. </Row>
  72. <Row>
  73. <Col id="codecolumn">
  74. </Col>
  75. <Col id="datacolumn">전체</Col>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. </Radio>
  80. </Layout>
  81. </Layouts>
  82. </Div>
  83. <Button position="absolute 1071 80 1195 102" id="button1" class="btn2" text="일일예약리스트출력" onclick="group3_button1_onclick" visible="false"/>
  84. </Layout>
  85. </Layouts>
  86. </Div>
  87. <Div position="absolute 0 729 1195 756" id="grp_btn">
  88. <Layouts>
  89. <Layout>
  90. <Button position="absolute 1067 3 1135 25" id="btn_reset" class="btn4" text="초기화" onclick="grp_btn_btn_reset_onclick" anchor="default"/>
  91. <Button position="absolute 1137 3 1193 25" id="btn_cls" class="btn4" text="닫기" onclick="grp_btn_btn_cls_onclick" anchor="default"/>
  92. </Layout>
  93. </Layouts>
  94. </Div>
  95. <Tab position="absolute 0 65 1195 732" id="switch1" onchanged="switch1_onchanged">
  96. <Tabpages>
  97. <Tabpage text="월별 예약현황(정원)" id="case1" style="anchor:default;">
  98. <Layouts>
  99. <Layout>
  100. <Grid position="absolute 394 29 538 635" id="grd_rsrvposstm" binddataset="ds_main_rsrvprescondlist_rsrvposstm">
  101. <Formats>
  102. <Format id="default">
  103. <Columns>
  104. <Column size="20" band="left"/>
  105. <Column size="41"/>
  106. <Column size="33"/>
  107. <Column size="32"/>
  108. </Columns>
  109. <Rows>
  110. <Row size="24" band="head"/>
  111. <Row size="24"/>
  112. </Rows>
  113. <Band id="head">
  114. <Cell/>
  115. <Cell col="1" text="시간"/>
  116. <Cell col="2" text="현황"/>
  117. <Cell col="3" text="가용"/>
  118. </Band>
  119. <Band id="body">
  120. <Cell celltype="head" expr="expr:currow + 1"/>
  121. <Cell col="1" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'"/>
  122. <Cell col="2" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:count"/>
  123. <Cell col="3" style="background:EXPR(over == 'Y' ? 'yellow' : '');background2:EXPR(over == 'Y' ? 'yellow' : '');" text="bind:max"/>
  124. </Band>
  125. </Format>
  126. </Formats>
  127. </Grid>
  128. <Static text="예약내역" position="absolute 540 8 625 24" id="caption3" class="tit_2"/>
  129. <Grid position="absolute 0 82 390 379" id="grd_calendar" class="gridcalendar" binddataset="ds_hidden_calendar_weeklist_list" oncellclick="switch1_case1_grd_calendar_oncellclick" selecttype="cell" autofittype="col,allrow">
  130. <Formats>
  131. <Format id="default">
  132. <Columns>
  133. <Column size="55"/>
  134. <Column size="55"/>
  135. <Column size="55"/>
  136. <Column size="55"/>
  137. <Column size="55"/>
  138. <Column size="55"/>
  139. <Column size="55"/>
  140. </Columns>
  141. <Rows>
  142. <Row size="24" band="head"/>
  143. <Row size="22"/>
  144. <Row size="22"/>
  145. </Rows>
  146. <Band id="head">
  147. <Cell text="일"/>
  148. <Cell col="1" text="월"/>
  149. <Cell col="2" text="화"/>
  150. <Cell col="3" text="수"/>
  151. <Cell col="4" text="목"/>
  152. <Cell col="5" text="금"/>
  153. <Cell col="6" text="토"/>
  154. </Band>
  155. <Band id="body">
  156. <Cell style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);color:BIND(colColor0);color2:BIND(colColor0);selectbackground:#daa7d9ff;" text="bind:sun"/>
  157. <Cell col="1" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);color:BIND(colColor1);color2:BIND(colColor1);selectbackground:#daa7d9ff;" text="bind:mon"/>
  158. <Cell col="2" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);color:BIND(colColor2);color2:BIND(colColor2);selectbackground:#daa7d9ff;" text="bind:tue"/>
  159. <Cell col="3" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);color:BIND(colColor3);color2:BIND(colColor3);selectbackground:#daa7d9ff;" text="bind:wed"/>
  160. <Cell col="4" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);color:BIND(colColor4);color2:BIND(colColor4);selectbackground:#daa7d9ff;" text="bind:thu"/>
  161. <Cell col="5" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);color:BIND(colColor5);color2:BIND(colColor5);selectbackground:#daa7d9ff;" text="bind:fri"/>
  162. <Cell col="6" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);color:BIND(colColor6);color2:BIND(colColor6);selectbackground:#daa7d9ff;" text="bind:sat"/>
  163. <Cell row="1" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);selectbackground:#daa7d9ff;" text="bind:sun_memo"/>
  164. <Cell row="1" col="1" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);selectbackground:#daa7d9ff;" text="bind:mon_memo"/>
  165. <Cell row="1" col="2" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);selectbackground:#daa7d9ff;" text="bind:tue_memo"/>
  166. <Cell row="1" col="3" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);selectbackground:#daa7d9ff;" text="bind:wed_memo"/>
  167. <Cell row="1" col="4" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);selectbackground:#daa7d9ff;" text="bind:thu_memo"/>
  168. <Cell row="1" col="5" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);selectbackground:#daa7d9ff;" text="bind:fri_memo"/>
  169. <Cell row="1" col="6" style="line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);selectbackground:#daa7d9ff;" text="bind:sat_memo"/>
  170. </Band>
  171. </Format>
  172. </Formats>
  173. </Grid>
  174. <Div position="absolute 0 28 394 83" id="group4" scrollbars="autoboth">
  175. <Layouts>
  176. <Layout>
  177. <Shape id="rectangle1" type="rectangle" class="calendar_header" position="absolute 0 2 390 54" 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;"/>
  178. <Button position="absolute 20 25 47 52" id="button7" class="icon_month" text="1" onclick="switch1_case1_group4_button7_onclick"/>
  179. <Button position="absolute 50 25 77 52" id="button8" class="icon_month" text="2" onclick="switch1_case1_group4_button8_onclick"/>
  180. <Button position="absolute 80 25 107 52" id="button9" class="icon_month" text="3" onclick="switch1_case1_group4_button9_onclick"/>
  181. <Button position="absolute 110 25 137 52" id="button10" class="icon_month" text="4" onclick="switch1_case1_group4_button10_onclick"/>
  182. <Button position="absolute 140 25 167 52" id="button11" class="icon_month" text="5" onclick="switch1_case1_group4_button11_onclick"/>
  183. <Button position="absolute 170 25 197 52" id="button12" class="icon_month" text="6" onclick="switch1_case1_group4_button12_onclick"/>
  184. <Button position="absolute 200 25 227 52" id="button13" class="icon_month" text="7" onclick="switch1_case1_group4_button13_onclick"/>
  185. <Button position="absolute 230 25 257 52" id="button14" class="icon_month" text="8" onclick="switch1_case1_group4_button14_onclick"/>
  186. <Button position="absolute 260 25 287 52" id="button18" class="icon_month" text="9" onclick="switch1_case1_group4_button18_onclick"/>
  187. <Button position="absolute 290 25 317 52" id="button19" class="icon_month" text="10" onclick="switch1_case1_group4_button19_onclick"/>
  188. <Button position="absolute 320 25 347 52" id="button20" class="icon_month" text="11" onclick="switch1_case1_group4_button20_onclick"/>
  189. <Button position="absolute 350 25 377 52" id="button21" class="icon_month" text="12" onclick="switch1_case1_group4_button21_onclick"/>
  190. <Edit readonly="true" position="absolute 199 5 221 24" id="opt_month" class="calendar_output" style="padding:0 0 0 3;"/>
  191. <Static text="년" position="absolute 178 7 198 21" id="caption24" style="color:white;" class="calendar_output"/>
  192. <Static text="월" position="absolute 220 7 240 21" id="caption25" class="calendar_output" style="color:white;"/>
  193. <Button position="absolute 270 8 286 24" id="button31" class="icon_next_year" text="" onclick="switch1_case1_group4_button31_onclick"/>
  194. <Button position="absolute 121 8 137 24" id="button33" class="icon_pre_month" visible="true" text="" onclick="switch1_case1_group4_button33_onclick"/>
  195. <Edit readonly="true" position="absolute 147 5 179 24" id="opt_year" class="calendar_output" style="padding:0 0 0 3;"/>
  196. <Button position="absolute 246 8 262 24" id="button35" class="icon_next_month" visible="true" text="" onclick="switch1_case1_group4_button35_onclick"/>
  197. <Button position="absolute 98 8 114 24" id="button36" class="icon_pre_year" text="" onclick="switch1_case1_group4_button36_onclick"/>
  198. </Layout>
  199. </Layouts>
  200. </Div>
  201. <Static text="예약시간" position="absolute 394 8 479 24" id="caption15" class="tit_2"/>
  202. <Shape position="absolute 540 24 1195 30" linetype="horizontal" id="line3" class="line_10"/>
  203. <Shape position="absolute 394 24 538 30" linetype="horizontal" id="line6" class="line_10"/>
  204. <Grid position="absolute 540 29 1195 635" id="datagrid1" binddataset="ds_main_rsrvprescondlist_rsrvprescond" oncelldblclick="switch1_case1_datagrid1_oncelldblclick">
  205. <Formats>
  206. <Format id="default">
  207. <Columns>
  208. <Column size="20" band="left"/>
  209. <Column size="106"/>
  210. <Column size="65"/>
  211. <Column size="58"/>
  212. <Column size="62"/>
  213. <Column size="77"/>
  214. <Column size="63"/>
  215. <Column size="280"/>
  216. <Column size="124"/>
  217. <Column size="105"/>
  218. <Column size="54"/>
  219. <Column size="62"/>
  220. <Column size="71"/>
  221. <Column size="129"/>
  222. <Column size="200"/>
  223. <Column size="200"/>
  224. <Column size="82"/>
  225. <Column size="85"/>
  226. <Column size="0"/>
  227. <Column size="0"/>
  228. <Column size="0"/>
  229. <Column size="60"/>
  230. <Column size="120"/>
  231. <Column size="110"/>
  232. </Columns>
  233. <Rows>
  234. <Row size="24" band="head"/>
  235. <Row size="24"/>
  236. </Rows>
  237. <Band id="head">
  238. <Cell/>
  239. <Cell col="1" text="예약일시"/>
  240. <Cell col="2" text="등록번호"/>
  241. <Cell col="3" text="환자명"/>
  242. <Cell col="4" text="성별/나이"/>
  243. <Cell col="5" text="처방코드"/>
  244. <Cell col="6" text="급비"/>
  245. <Cell col="7" text="처방명"/>
  246. <Cell col="8" text="진료과(진료의)"/>
  247. <Cell col="9" text="처방일시"/>
  248. <Cell col="10" text="지정의"/>
  249. <Cell col="11" text="병동"/>
  250. <Cell col="12" text="병실"/>
  251. <Cell col="13" text="예약사항"/>
  252. <Cell col="14" text="처방전달사항"/>
  253. <Cell col="15" text="임상소견"/>
  254. <Cell col="16" text="입원외래구분"/>
  255. <Cell col="17" text="처방상태"/>
  256. <Cell col="18" text="caption1"/>
  257. <Cell col="19" text="caption2"/>
  258. <Cell col="20" text="caption3"/>
  259. <Cell col="21" text="예약자"/>
  260. <Cell col="22" text="입력일시"/>
  261. <Cell col="23" text="외래진료예약일"/>
  262. </Band>
  263. <Band id="body">
  264. <Cell celltype="head" expr="expr:currow + 1"/>
  265. <Cell col="1" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) || utlf_isNull(hngnm) ? '' : '####-##-## ##:##'"/>
  266. <Cell col="2" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:pid"/>
  267. <Cell col="3" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:hngnm"/>
  268. <Cell col="4" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:age"/>
  269. <Cell col="5" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpcd"/>
  270. <Cell col="6" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:payflagnm"/>
  271. <Cell col="7" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpnm" wordwrap="word"/>
  272. <Cell col="8" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:usernm"/>
  273. <Cell col="9" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) ? '' : '####-##-## ##:##'"/>
  274. <Cell col="10" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:specdrnm"/>
  275. <Cell col="11" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:wardcd"/>
  276. <Cell col="12" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:roomcd"/>
  277. <Cell col="13" style="align:left top;padding:4 2 2 2;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:rsrvrem" wordwrap="word"/>
  278. <Cell col="14" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpdelivefact"/>
  279. <Cell col="15" style="align:left;background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:clinccmtcnts"/>
  280. <Cell col="16" displaytype="combo" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:prcpgenrflag" combodataset="ds_init2_cmb_info_prcpgenrflag_M0010" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  281. <Cell col="17" displaytype="combo" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:execprcpstatcd" combodataset="ds_init2_cmb_info_initexecprcpstatcd_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  282. <Cell col="18" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:roomcd"/>
  283. <Cell col="19" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:fromdd"/>
  284. <Cell col="20" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:todd"/>
  285. <Cell col="21" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:updnm"/>
  286. <Cell col="22" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:upddate"/>
  287. <Cell col="23" style="background:BIND(colBack);background2:BIND(colBack);font:BIND(colFont);" text="bind:orddd" mask="expr:utlf_isNull(orddd) ? '' : '####-##-## ##:##'"/>
  288. </Band>
  289. </Format>
  290. </Formats>
  291. </Grid>
  292. <Grid position="absolute 400 420 620 570" id="datagrid3" visible="false" binddataset="ds_init_calenlist_calendinfo">
  293. <Formats>
  294. <Format id="default">
  295. <Columns>
  296. <Column size="100"/>
  297. <Column size="100"/>
  298. </Columns>
  299. <Rows>
  300. <Row size="24" band="head"/>
  301. <Row size="24"/>
  302. </Rows>
  303. <Band id="head">
  304. <Cell text="caption1"/>
  305. <Cell col="1" text="caption2"/>
  306. </Band>
  307. <Band id="body">
  308. <Cell text="bind:basedd"/>
  309. <Cell col="1" text="bind:dutflag"/>
  310. </Band>
  311. </Format>
  312. </Formats>
  313. </Grid>
  314. <Grid position="absolute 630 415 805 585" id="grd_temp" visible="false" binddataset="ds_init_curerprescondlist_rsrvcalendar">
  315. <Formats>
  316. <Format id="default">
  317. <Columns>
  318. <Column size="76"/>
  319. <Column size="62"/>
  320. <Column size="32"/>
  321. </Columns>
  322. <Rows>
  323. <Row size="24" band="head"/>
  324. <Row size="24"/>
  325. </Rows>
  326. <Band id="head">
  327. <Cell text="일자(dd)"/>
  328. <Cell col="1" text="가용현황"/>
  329. <Cell col="2" text="max"/>
  330. </Band>
  331. <Band id="body">
  332. <Cell text="bind:rsrvdd"/>
  333. <Cell col="1" text="bind:count"/>
  334. <Cell col="2" text="bind:max"/>
  335. </Band>
  336. </Format>
  337. </Formats>
  338. </Grid>
  339. <Static text="예약현황" position="absolute 0 9 85 25" id="caption8" class="tit_2"/>
  340. <Shape position="absolute 0 25 390 31" linetype="horizontal" id="line5" class="line_10"/>
  341. <Static text="검사실별 휴검관리 조회" position="absolute 0 399 172 415" id="caption11" class="tit_2"/>
  342. <Shape position="absolute 0 415 390 421" linetype="horizontal" id="line2" class="line_10"/>
  343. <Grid position="absolute 0 420 390 635" id="datagrid4" taborder="8" binddataset="ds_main_rsrvupdtinfo_rsrvupdt" onsetfocus="switch1_case1_datagrid4_onsetfocus">
  344. <Formats>
  345. <Format id="default">
  346. <Columns>
  347. <Column size="70"/>
  348. <Column size="40"/>
  349. <Column size="70"/>
  350. <Column size="40"/>
  351. <Column size="155"/>
  352. <Column size="80"/>
  353. <Column size="116"/>
  354. <Column size="0"/>
  355. <Column size="0"/>
  356. <Column size="0"/>
  357. </Columns>
  358. <Rows>
  359. <Row size="24" band="head"/>
  360. <Row size="24"/>
  361. </Rows>
  362. <Band id="head">
  363. <Cell colspan="2" text="시작일시" taborder="undefined"/>
  364. <Cell col="2" colspan="2" text="종료일시" taborder="undefined"/>
  365. <Cell col="4" text="사유"/>
  366. <Cell col="5" text="최종변경자"/>
  367. <Cell col="6" text="최종변경일시"/>
  368. <Cell col="7" text="검사실코드"/>
  369. <Cell col="8" text="지원부서코드"/>
  370. <Cell col="9" text="입원외래구분"/>
  371. </Band>
  372. <Band id="body">
  373. <Cell displaytype="date" text="bind:rsrvupdtfromdd" calendardisplaynulltype="none" enable="false"/>
  374. <Cell col="1" text="bind:rsrvupdtfromtm" mask="expr:utlf_isNull(rsrvupdtfromtm) ? '' : '##:##'" enable="false"/>
  375. <Cell col="2" displaytype="date" text="bind:rsrvupdttodd" calendardisplaynulltype="none" enable="false"/>
  376. <Cell col="3" text="bind:rsrvupdttotm" mask="expr:utlf_isNull(rsrvupdttotm) ? '' : '##:##'" enable="false"/>
  377. <Cell col="4" text="bind:updtresndesc"/>
  378. <Cell col="5" text="bind:lastupdtrid"/>
  379. <Cell col="6" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  380. <Cell col="7" text="bind:excuroomcd"/>
  381. <Cell col="8" text="bind:suppdeptcd"/>
  382. <Cell col="9" text="bind:ioflag"/>
  383. </Band>
  384. </Format>
  385. </Formats>
  386. </Grid>
  387. <Button id="btn_excel" taborder="9" text="엑셀저장" class="btn7" position="absolute 1115 2 1195 24" onclick="switch1_case1_btn_excel_onclick"/>
  388. <CheckBox id="chk_cntflag" taborder="10" position="absolute 620 2 770 22" text="시간별 예약 건수 표시" truevalue="Y" onclick="switch1_case1_chk_cntflag_onclick"/>
  389. </Layout>
  390. </Layouts>
  391. </Tabpage>
  392. <Tabpage text="검사실별예약현황" id="case2" style="anchor:default;">
  393. <Layouts>
  394. <Layout>
  395. <Grid position="absolute 0 28 1195 636" id="datagrid2" binddataset="ds_main_rsrvprescondlist2_rsrvprescond" oncelldblclick="switch1_case2_datagrid2_oncelldblclick">
  396. <Formats>
  397. <Format id="default">
  398. <Columns>
  399. <Column size="106"/>
  400. <Column size="65"/>
  401. <Column size="65"/>
  402. <Column size="65"/>
  403. <Column size="106"/>
  404. <Column size="100"/>
  405. <Column size="59"/>
  406. <Column size="268"/>
  407. <Column size="124"/>
  408. <Column size="51"/>
  409. <Column size="105"/>
  410. <Column size="129"/>
  411. <Column size="200"/>
  412. <Column size="200"/>
  413. <Column size="82"/>
  414. <Column size="85"/>
  415. <Column size="0"/>
  416. <Column size="0"/>
  417. <Column size="0"/>
  418. <Column size="60"/>
  419. <Column size="100"/>
  420. </Columns>
  421. <Rows>
  422. <Row size="24" band="head"/>
  423. <Row size="24"/>
  424. </Rows>
  425. <Band id="head">
  426. <Cell text="예약일시"/>
  427. <Cell col="1" text="등록번호"/>
  428. <Cell col="2" text="환자명"/>
  429. <Cell col="3" text="성별/나이"/>
  430. <Cell col="4" text="핸드폰"/>
  431. <Cell col="5" text="처방코드"/>
  432. <Cell col="6" text="급/비급"/>
  433. <Cell col="7" text="처방명"/>
  434. <Cell col="8" text="진료과(진료의)"/>
  435. <Cell col="9" text="지정의"/>
  436. <Cell col="10" text="처방일시"/>
  437. <Cell col="11" text="예약사항"/>
  438. <Cell col="12" text="처방전달사항"/>
  439. <Cell col="13" text="임상소견"/>
  440. <Cell col="14" text="입원외래구분"/>
  441. <Cell col="15" text="처방상태"/>
  442. <Cell col="16" text="caption1"/>
  443. <Cell col="17" text="caption2"/>
  444. <Cell col="18" text="caption3"/>
  445. <Cell col="19" text="예약자"/>
  446. <Cell col="20" text="입력일시"/>
  447. </Band>
  448. <Band id="body">
  449. <Cell text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '####-##-## ##:##'"/>
  450. <Cell col="1" style="align:left;" text="bind:pid"/>
  451. <Cell col="2" style="align:left;" text="bind:hngnm"/>
  452. <Cell col="3" text="bind:age"/>
  453. <Cell col="4" text="bind:mpphontel"/>
  454. <Cell col="5" style="align:left;" text="bind:prcpcd"/>
  455. <Cell col="6" style="align:left;" text="bind:payflagnm"/>
  456. <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:prcpnm" wordwrap="word"/>
  457. <Cell col="8" style="align:left;" text="bind:usernm"/>
  458. <Cell col="9" style="align:left;" text="bind:specdrnm"/>
  459. <Cell col="10" text="bind:prcpdd" mask="expr:utlf_isNull(rsrvtm) ? '' : '####-##-## ##:##'"/>
  460. <Cell col="11" style="align:left;" text="bind:rsrvrem"/>
  461. <Cell col="12" text="bind:prcpdelivefact"/>
  462. <Cell col="13" style="align:left;" text="bind:clinccmtcnts"/>
  463. <Cell col="14" displaytype="combo" text="bind:prcpgenrflag" combodataset="ds_init2_cmb_info_prcpgenrflag_M0010" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  464. <Cell col="15" displaytype="combo" text="bind:execprcpstatcd" combodataset="ds_init2_cmb_info_initexecprcpstatcd_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  465. <Cell col="16" text="bind:roomcd"/>
  466. <Cell col="17" text="bind:fromdd"/>
  467. <Cell col="18" text="bind:todd"/>
  468. <Cell col="19" style="align:left;" text="bind:updnm"/>
  469. <Cell col="20" style="align:left top;padding:4 2 2 2;" text="bind:upddate" wordwrap="word"/>
  470. </Band>
  471. </Format>
  472. </Formats>
  473. </Grid>
  474. <Shape position="absolute 0 23 1195 29" linetype="horizontal" id="line4" class="line_10"/>
  475. <Calendar position="absolute 85 4 173 23" id="ipt_fromdd" class="input_default" visible="true" autoselect="true"/>
  476. <Calendar position="absolute 195 4 283 23" id="ipt_todd" class="input_default" visible="true" autoselect="true"/>
  477. <Static text="~" position="absolute 180 4 195 23" align="align:center middle;" id="caption4"/>
  478. <Static text="검사코드 :" position="absolute 325 6 401 23" align="align:left middle;" id="caption13" class="search_name"/>
  479. <Static text="예약자 :" position="absolute 545 6 611 23" align="align:left middle;" id="caption14" class="search_name"/>
  480. <Edit position="absolute 405 4 525 23" id="ipt_prcpcd" autoselect="true"/>
  481. <Combo position="absolute 610 4 700 23" id="cmb_rsrvid" innerdataset="@ds_init_cmb_info_rsrvidinfo_T0001" datacolumn="cdnm" codecolumn="cdid"/>
  482. <Static text="예약일자 :" position="absolute 5 6 85 23" id="caption9" class="search_name"/>
  483. </Layout>
  484. </Layouts>
  485. </Tabpage>
  486. </Tabpages>
  487. </Tab>
  488. </Layout>
  489. </Layouts>
  490. <Objects>
  491. <Dataset id="ds_init_cmb_info_rsrvidinfo_T0001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  492. <ColumnInfo>
  493. <Column id="cdnm" type="STRING"/>
  494. <Column id="cdid" type="STRING"/>
  495. </ColumnInfo>
  496. </Dataset>
  497. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  498. <ColumnInfo>
  499. <Column id="basecd" type="STRING" size="256" sumtext="부서코드"/>
  500. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  501. <Column id="rbasecdflag" type="STRING" size="256" sumtext="검사실코드"/>
  502. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  503. <Column id="instance1" type="STRING" size="256"/>
  504. <Column id="ebasecdflag" type="STRING" size="256"/>
  505. </ColumnInfo>
  506. <Rows>
  507. <Row/>
  508. </Rows>
  509. </Dataset>
  510. <Dataset id="ds_init_cmb_info_excuroomcdlist_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  511. <ColumnInfo>
  512. <Column id="basecd" type="STRING" size="256" sumtext="기본코드"/>
  513. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
  514. </ColumnInfo>
  515. </Dataset>
  516. <Dataset id="ds_init_cmb_info_execridlist_execr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  517. <ColumnInfo>
  518. <Column id="basecd" type="STRING" size="256" sumtext="사번"/>
  519. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="성명"/>
  520. </ColumnInfo>
  521. </Dataset>
  522. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  523. <ColumnInfo>
  524. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  525. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  526. <Column id="rsrvdate" type="STRING" size="256"/>
  527. </ColumnInfo>
  528. <Rows>
  529. <Row/>
  530. </Rows>
  531. </Dataset>
  532. <Dataset id="ds_init_calenlist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  533. <ColumnInfo>
  534. <Column id="basedd" type="STRING" size="256" sumtext="예약일자"/>
  535. <Column id="dutflag" type="STRING" size="256" sumtext="예약수"/>
  536. </ColumnInfo>
  537. </Dataset>
  538. <Dataset id="ds_init_curerprescondlist_rsrvcalendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  539. <ColumnInfo>
  540. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  541. <Column id="count" type="STRING" size="256" sumtext="예약수"/>
  542. <Column id="max" type="STRING" size="256" sumtext="가용인원"/>
  543. </ColumnInfo>
  544. </Dataset>
  545. <Dataset id="ds_init_curerprescondlist_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  546. <ColumnInfo>
  547. <Column id="orddeptcd" type="STRING" size="256" sumtext="수행부서"/>
  548. </ColumnInfo>
  549. </Dataset>
  550. <Dataset id="ds_init_cmb_info_suppdeptlist_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  551. <ColumnInfo>
  552. <Column id="suppdeptcd" type="STRING" size="256" sumtext="부서코드"/>
  553. <Column id="suppdeptnm" type="STRING" size="256" sumtext="부서명"/>
  554. </ColumnInfo>
  555. </Dataset>
  556. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  557. <ColumnInfo>
  558. <Column id="rsrvfromdd" type="STRING" size="256" sumtext="시작일자"/>
  559. <Column id="rsrvtodd" type="STRING" size="256" sumtext="종료일자"/>
  560. <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  561. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  562. <Column id="rsrvflag" type="STRING" size="256" sumtext="진료구분"/>
  563. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
  564. <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태"/>
  565. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  566. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  567. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  568. <Column id="execrid" type="STRING" size="256" sumtext="실시자"/>
  569. <Column id="unexecyn" type="STRING" size="256" sumtext="실시여부"/>
  570. <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
  571. <Column id="srchflag" type="STRING" size="256" sumtext="조회구분"/>
  572. <Column id="rsrvid" type="STRING" size="256" sumtext="예약자"/>
  573. <Column id="prcpcd" type="STRING" size="256" sumtext="검사코드"/>
  574. <Column id="rsrvdd" type="STRING" size="256"/>
  575. <Column id="sdate" type="STRING" size="256"/>
  576. <Column id="tdate" type="STRING" size="256"/>
  577. <Column id="instcd" type="STRING" size="256"/>
  578. <Column id="excuroomgrpcdid" type="STRING" size="256"/>
  579. <Column id="prsrvfromdd" type="STRING" size="256"/>
  580. <Column id="prsrvtodd" type="STRING" size="256"/>
  581. <Column id="psuppdeptcd" type="STRING" size="256"/>
  582. <Column id="printgubn" type="STRING" size="256"/>
  583. <Column id="deptcd" type="STRING" size="256"/>
  584. <Column id="excuroomnm" type="STRING" size="256"/>
  585. <Column id="prcpgenrflag" type="STRING" size="256"/>
  586. </ColumnInfo>
  587. <Rows>
  588. <Row/>
  589. </Rows>
  590. </Dataset>
  591. <Dataset id="ds_main_rsrvprescondlist2_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  592. <ColumnInfo>
  593. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  594. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  595. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  596. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  597. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  598. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  599. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  600. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
  601. <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
  602. <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
  603. <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
  604. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  605. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  606. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
  607. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  608. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  609. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  610. <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
  611. <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
  612. <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
  613. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  614. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  615. <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
  616. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
  617. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
  618. <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
  619. <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
  620. <!-- 2012.11.26 선택의 추가 by kya -->
  621. <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
  622. <!-- 2013.11.22 급비 추가 by kya -->
  623. <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
  624. </ColumnInfo>
  625. </Dataset>
  626. <Dataset id="ds_main_rsrvprescondlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  627. <ColumnInfo>
  628. <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
  629. <Column id="count" type="STRING" size="256" sumtext="현황"/>
  630. <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
  631. </ColumnInfo>
  632. </Dataset>
  633. <Dataset id="ds_main_rsrvprescondlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  634. <ColumnInfo>
  635. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  636. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  637. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  638. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  639. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  640. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  641. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  642. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
  643. <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
  644. <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
  645. <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
  646. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  647. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  648. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
  649. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  650. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  651. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  652. <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
  653. <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
  654. <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
  655. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  656. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  657. <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
  658. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
  659. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
  660. <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
  661. <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
  662. <!-- 2012.11.26 선택의 추가 by kya -->
  663. <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
  664. <!-- 2013.11.22 급비구분 추가 by kya -->
  665. <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
  666. <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
  667. </ColumnInfo>
  668. </Dataset>
  669. <Dataset id="ds_main_rsrvupdtinfo_rsrvupdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  670. <ColumnInfo>
  671. <Column id="rsrvupdtfromdd" type="STRING" size="256" sumtext="시작일자"/>
  672. <Column id="rsrvupdtfromtm" type="STRING" size="256" sumtext="시작시간"/>
  673. <Column id="rsrvupdttodd" type="STRING" size="256" sumtext="종료일자"/>
  674. <Column id="rsrvupdttotm" type="STRING" size="256" sumtext="종료시간"/>
  675. <Column id="updtresndesc" type="STRING" size="256" sumtext="변동사유"/>
  676. <Column id="updtresncnts" type="STRING" size="256" sumtext="비고"/>
  677. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종변경자"/>
  678. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종변경일시"/>
  679. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실"/>
  680. <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서"/>
  681. <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
  682. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="검사실명"/>
  683. </ColumnInfo>
  684. </Dataset>
  685. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  686. <ColumnInfo>
  687. <Column id="sun" type="STRING" size="256"/>
  688. <Column id="mon" type="STRING" size="256"/>
  689. <Column id="tue" type="STRING" size="256"/>
  690. <Column id="wed" type="STRING" size="256"/>
  691. <Column id="thu" type="STRING" size="256"/>
  692. <Column id="fri" type="STRING" size="256"/>
  693. <Column id="sat" type="STRING" size="256"/>
  694. <Column id="sun_memo" type="STRING" size="256"/>
  695. <Column id="mon_memo" type="STRING" size="256"/>
  696. <Column id="tue_memo" type="STRING" size="256"/>
  697. <Column id="wed_memo" type="STRING" size="256"/>
  698. <Column id="thu_memo" type="STRING" size="256"/>
  699. <Column id="fri_memo" type="STRING" size="256"/>
  700. <Column id="sat_memo" type="STRING" size="256"/>
  701. <Column id="colBack0" type="STRING" size="256"/>
  702. <Column id="colBack1" type="STRING" size="256"/>
  703. <Column id="colBack2" type="STRING" size="256"/>
  704. <Column id="colBack3" type="STRING" size="256"/>
  705. <Column id="colBack4" type="STRING" size="256"/>
  706. <Column id="colBack5" type="STRING" size="256"/>
  707. <Column id="colBack6" type="STRING" size="256"/>
  708. <Column id="colColor0" type="STRING" size="256"/>
  709. <Column id="colColor1" type="STRING" size="256"/>
  710. <Column id="colColor2" type="STRING" size="256"/>
  711. <Column id="colColor3" type="STRING" size="256"/>
  712. <Column id="colColor4" type="STRING" size="256"/>
  713. <Column id="colColor5" type="STRING" size="256"/>
  714. <Column id="colColor6" type="STRING" size="256"/>
  715. </ColumnInfo>
  716. </Dataset>
  717. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  718. <ColumnInfo>
  719. <Column id="year" type="STRING" size="256"/>
  720. <Column id="month" type="STRING" size="256"/>
  721. <Column id="dd" type="STRING" size="256"/>
  722. </ColumnInfo>
  723. <Rows>
  724. <Row/>
  725. </Rows>
  726. </Dataset>
  727. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  728. <ColumnInfo>
  729. <Column id="cntflag" type="STRING" size="256"/>
  730. </ColumnInfo>
  731. <Rows>
  732. <Row/>
  733. </Rows>
  734. </Dataset>
  735. <Dataset id="ds_init_cmb_info_orddeptcdlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  736. <ColumnInfo>
  737. <Column id="deptcd" type="STRING" size="256"/>
  738. <Column id="depthngnm" type="STRING" size="256"/>
  739. </ColumnInfo>
  740. </Dataset>
  741. <Dataset id="ds_init_cmb_info_wardcdlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  742. <ColumnInfo>
  743. <Column id="deptcd" type="STRING" size="256"/>
  744. <Column id="depthngnm" type="STRING" size="256"/>
  745. </ColumnInfo>
  746. </Dataset>
  747. <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  748. <ColumnInfo>
  749. <Column id="calrow" type="STRING" size="256"/>
  750. <Column id="calcol" type="STRING" size="256"/>
  751. <Column id="bfcalrow" type="STRING" size="256"/>
  752. <Column id="bfcalcol" type="STRING" size="256"/>
  753. <Column id="color" type="STRING" size="256"/>
  754. </ColumnInfo>
  755. <Rows>
  756. <Row/>
  757. </Rows>
  758. </Dataset>
  759. <Dataset id="ds_init2_cmb_info_prcpgenrflag_M0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  760. <ColumnInfo>
  761. <Column id="cdnm" type="STRING" size="256"/>
  762. <Column id="cdid" type="STRING" size="256"/>
  763. </ColumnInfo>
  764. </Dataset>
  765. <Dataset id="ds_init2_cmb_info_initexecprcpstatcd_M0011" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  766. <ColumnInfo>
  767. <Column id="cdnm" type="STRING" size="256"/>
  768. <Column id="cdid" type="STRING" size="256"/>
  769. </ColumnInfo>
  770. </Dataset>
  771. <Dataset id="ds_hidden_rsrvlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  774. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  775. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  776. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  777. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  778. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  779. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  780. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
  781. <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
  782. <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
  783. <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
  784. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  785. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  786. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
  787. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  788. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  789. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  790. <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
  791. <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
  792. <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
  793. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  794. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  795. <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
  796. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
  797. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
  798. <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
  799. <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
  800. <!-- 2012.11.26 선택의 추가 by kya -->
  801. <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
  802. <!-- 2013.11.22 급비구분 추가 by kya -->
  803. <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
  804. <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
  805. </ColumnInfo>
  806. </Dataset>
  807. <Dataset id="ds_temp_rsrvprescondlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  808. <ColumnInfo>
  809. <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
  810. <Column id="count" type="STRING" size="256" sumtext="현황"/>
  811. <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
  812. </ColumnInfo>
  813. </Dataset>
  814. <Dataset id="ds_temp_rsrvprescondlist_rsrvprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  815. <ColumnInfo>
  816. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  817. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  818. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  819. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  820. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  821. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  822. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  823. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰전화번호"/>
  824. <Column id="rcptyn" type="STRING" size="256" sumtext="수납"/>
  825. <Column id="orddeptcd" type="STRING" size="256" sumtext="처방과"/>
  826. <Column id="usernm" type="STRING" size="256" sumtext="처방의사"/>
  827. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  828. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  829. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실/치료실"/>
  830. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  831. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  832. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  833. <Column id="rsrvstatcd" type="STRING" size="256" sumtext="예약상태코드"/>
  834. <Column id="rsrvrem" type="STRING" size="256" sumtext="예약 comment"/>
  835. <Column id="ordrem" type="STRING" size="256" sumtext="처방 comment"/>
  836. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  837. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  838. <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태"/>
  839. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래구분"/>
  840. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견"/>
  841. <Column id="updnm" type="STRING" size="256" sumtext="입력자"/>
  842. <Column id="upddate" type="STRING" size="256" sumtext="입력일자"/>
  843. <!-- 2012.11.26 선택의 추가 by kya -->
  844. <Column id="specdrnm" type="STRING" size="256" sumtext="선택의"/>
  845. <!-- 2013.11.22 급비구분 추가 by kya -->
  846. <Column id="payflagnm" type="STRING" size="256" sumtext="급비"/>
  847. <Column id="orddd" type="STRING" size="256" sumtext="외래진료예약일"/>
  848. </ColumnInfo>
  849. </Dataset>
  850. <Dataset id="ds_hidden_rsrvlist_rsrvposstm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  851. <ColumnInfo>
  852. <Column id="rsrvtm" type="STRING" size="256" sumtext="시간"/>
  853. <Column id="count" type="STRING" size="256" sumtext="현황"/>
  854. <Column id="max" type="STRING" size="256" sumtext="가용인원수"/>
  855. </ColumnInfo>
  856. </Dataset>
  857. </Objects>
  858. <Bind>
  859. <BindItem id="item0" compid="group3.group2.combo1" propid="value" datasetid="ds_send" columnid="suppdeptcd"/>
  860. <BindItem id="item1" compid="group3.group2.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
  861. <BindItem id="item2" compid="group3.group2.combo6" propid="value" datasetid="ds_send" columnid="execrid"/>
  862. <BindItem id="item3" compid="group3.group2.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag"/>
  863. <BindItem id="item4" compid="group3.group2.rbo_gb" propid="value" datasetid="ds_send" columnid="unexecyn"/>
  864. <BindItem id="item5" compid="switch1.case1.group4.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  865. <BindItem id="item6" compid="switch1.case1.group4.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  866. <BindItem id="item7" compid="switch1.case2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="rsrvfromdd"/>
  867. <BindItem id="item8" compid="switch1.case2.ipt_todd" propid="value" datasetid="ds_send" columnid="rsrvtodd"/>
  868. <BindItem id="item9" compid="switch1.case2.ipt_prcpcd" propid="value" datasetid="ds_send" columnid="prcpcd"/>
  869. <BindItem id="item10" compid="switch1.case2.cmb_rsrvid" propid="value" datasetid="ds_send" columnid="rsrvid"/>
  870. <BindItem id="item11" compid="switch1.case1.chk_cntflag" propid="value" datasetid="ds_hidden" columnid="cntflag"/>
  871. </Bind>
  872. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  873. * System Name : 경대 의료정보시스템
  874. * Job Name : ast_examcurexp -> SMAEA05300
  875. * Creator : yjh
  876. * Make Date : 2018-02-12
  877. * Description :
  878. *---------------------------------------------------------------------------------------
  879. * Modify Date Modifier Modify Description
  880. *---------------------------------------------------------------------------------------
  881. * 2018-02-12 yjh TF->XP
  882. *
  883. *---------------------------------------------------------------------------------------
  884. ****************************************************************************************/
  885. //=======================================================================================
  886. // Lib Include
  887. //---------------------------------------------------------------------------------------
  888. include "com_commonxp::comm_main.xjs";
  889. include "ast_examcurexp::AEZ0001.xjs";
  890. include "ast_examcurexp::combolist.xjs";
  891. //=======================================================================================
  892. // Global Form Variable
  893. //---------------------------------------------------------------------------------------
  894. var arErrorCode = new HashArray();
  895. //=======================================================================================
  896. // Function
  897. //---------------------------------------------------------------------------------------
  898. function getRsrvPossTm(gridObj) {
  899. var calRow = ds_hidden_grdcellcolor.getColumn(0, "calrow");
  900. var calCol = ds_hidden_grdcellcolor.getColumn(0, "calcol");
  901. if( calCol >= 7 )
  902. calCol -= 7;
  903. var yyyy = ds_hidden_calendar.getColumn(0, "year");
  904. var mm = ds_hidden_calendar.getColumn(0, "month");
  905. var sColNm = utlf_transNullToEmpty(gridObj.getCellProperty("body", calCol, "text")).replace("bind:", "");
  906. var dd = ds_hidden_calendar_weeklist_list.getColumn(calRow, sColNm);
  907. if (utlf_getStringLength(dd) == 1) {
  908. dd = "0" + dd;
  909. }
  910. ds_send.setColumn(0, "rsrvtodd", yyyy + mm + dd);
  911. ds_send_data.setColumn(0, "rsrvdd", yyyy + mm + dd);
  912. ds_send.setColumn(0, "rsrvfromdd", "");
  913. ds_send_data.setColumn(0, "rsrvdate",ds_send_data.getColumn(0, "rsrvdd"));
  914. ds_hidden.setColumn(0, "cntflag", "");
  915. ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
  916. var oParam = {};
  917. oParam.id = "TRAEA05303";
  918. oParam.service = "examcurersrvapp.RsrvRef";
  919. oParam.method = "reqGetRsrvPresCondList";
  920. oParam.inds = "req=ds_send";
  921. oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
  922. oParam.async = false;
  923. oParam.callback = "cf_TRAEA05303";
  924. tranf_submit(oParam);
  925. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
  926. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
  927. if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
  928. ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
  929. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
  930. ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
  931. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
  932. ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
  933. }
  934. ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
  935. }
  936. function initCalendar() {
  937. var curDate = utlf_getCurrentDate().toDate();
  938. ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat('YYYY'));
  939. ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat('MM'));
  940. //model.refresh();
  941. setCalendar(curDate);
  942. }
  943. function setCurrentDate() {
  944. var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
  945. var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  946. if(curDate <10) {
  947. curDate= curDate.substr(1,1);
  948. }
  949. if(curWeek == "sun")
  950. ds_hidden_grdcellcolor.setColumn(0, "calcol",0);
  951. if(curWeek == "mon")
  952. ds_hidden_grdcellcolor.setColumn(0, "calcol",1);
  953. if(curWeek == "tue")
  954. ds_hidden_grdcellcolor.setColumn(0, "calcol",2);
  955. if(curWeek == "wed")
  956. ds_hidden_grdcellcolor.setColumn(0, "calcol",3);
  957. if(curWeek == "thu")
  958. ds_hidden_grdcellcolor.setColumn(0, "calcol",4);
  959. if(curWeek == "fri")
  960. ds_hidden_grdcellcolor.setColumn(0, "calcol",5);
  961. if(curWeek == "sat")
  962. ds_hidden_grdcellcolor.setColumn(0, "calcol",6);
  963. for(var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ ) {
  964. if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) ==curDate) {
  965. ds_hidden_grdcellcolor.setColumn(0, "calrow",i);
  966. }
  967. }
  968. setCellColor(switch1.case1.grd_calendar);
  969. }
  970. function setCellColor(gridObj) {
  971. var calRow = -1; //현재선택
  972. var calCol = -1; //현재선택
  973. var bfcalRow = -1; //전에 선택
  974. var bfcalCol = -1; //전에 선택
  975. var white = 1; //#ffffff
  976. var green = 2; //#c4e693
  977. if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "calrow")) ){
  978. calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
  979. }
  980. if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "calcol")) ){
  981. calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
  982. }
  983. if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow")) ){
  984. bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
  985. }
  986. if( !utlf_isNull(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol")) ){
  987. bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
  988. }
  989. // 1. 원래 색으로 돌려놓기
  990. if(ds_hidden_grdcellcolor.getColumn(0, "color") == "1" ) {
  991. ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff"); //yjh
  992. // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  993. //
  994. // if( bfcalCol < 7 )
  995. // bfcalCol += 7;
  996. // else
  997. // bfcalCol -= 7;
  998. //
  999. // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  1000. }
  1001. else if (ds_hidden_grdcellcolor.getColumn(0, "color") == "2" ) {
  1002. ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
  1003. // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  1004. //
  1005. // if( bfcalCol < 7 )
  1006. // bfcalCol += 7;
  1007. // else
  1008. // bfcalCol -= 7;
  1009. //
  1010. // gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  1011. }
  1012. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  1013. // if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
  1014. //
  1015. // model.setValue("/root/hidden/grdcellcolor/color", "1");
  1016. // }
  1017. // if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  1018. //
  1019. // model.setValue("/root/hidden/grdcellcolor/color", "2");
  1020. // }
  1021. if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff" ) {
  1022. //if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
  1023. ds_hidden_grdcellcolor.setColumn(0, "color", "1");
  1024. }
  1025. if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#c4e693" ) {
  1026. //if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  1027. ds_hidden_grdcellcolor.setColumn(0, "color", "2");
  1028. }
  1029. ds_hidden_grdcellcolor.setColumn(0, "bfcalrow",calRow);
  1030. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol",calCol);
  1031. ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
  1032. // gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1033. //
  1034. // if( calCol < 7 )
  1035. // calCol += 7;
  1036. // else
  1037. // calCol -= 7;
  1038. //
  1039. // gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1040. // 현재일자 색상 표시 2011.07.20 by kya
  1041. var curdate = utlf_getCurrentDate();
  1042. var caldate = utlf_transNullToEmpty(ds_hidden_calendar.getColumn(0, "year")) + utlf_transNullToEmpty(ds_hidden_calendar.getColumn(0, "month"));
  1043. var curday = curdate.substring(6,8);
  1044. var calday = "";
  1045. if ( curdate.substring(0,6) == caldate ) {
  1046. for (var i=0; i<ds_hidden_calendar_weeklist_list.rowcount; i++) {
  1047. for (var j=0; j<gridObj.getFormatColCount(); j++) {
  1048. var sColNm = utlf_transNullToEmpty(gridObj.getCellProperty("body", j, "text")).replace("bind:", "");
  1049. calday = ds_hidden_calendar_weeklist_list.getColumn(i, sColNm);
  1050. if (eval(curday) == calday) {
  1051. calRow = i;
  1052. calCol =j;
  1053. // 현재일자 색상 표시
  1054. ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#95d4fb");
  1055. // gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  1056. //
  1057. // if ( calCol < 7 ) {
  1058. // calCol += 7;
  1059. // } else {
  1060. // calCol -= 7;
  1061. // }
  1062. // gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  1063. }
  1064. }
  1065. }
  1066. }
  1067. }
  1068. function fGetCalendar(arg){
  1069. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1070. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1071. if(ds_hidden_calendar.getColumn(0, "month") < arg) {
  1072. var num = arg- isMonth ;
  1073. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  1074. }
  1075. if(ds_hidden_calendar.getColumn(0, "month") > arg) {
  1076. var num = isMonth - arg ;
  1077. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  1078. }
  1079. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1080. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1081. setCalendar(isDate);
  1082. }
  1083. function setCalendar(dateObj) {
  1084. // 그리드 초기화
  1085. ds_hidden_calendar_weeklist_list.clearData();
  1086. ds_init_curerprescondlist_rsrvcalendar.clearData();;
  1087. dateObj.setDate(1);
  1088. var startDay = dateObj.getDay();
  1089. var days = dateObj.getMonthDay();
  1090. var rows = Math.ceil( ( startDay + days ) / 7 );
  1091. /*
  1092. for( var i = 0; i < rows; i++ )
  1093. grd_calendar.addRow(false);
  1094. grd_calendar.rebuild();
  1095. */
  1096. if (rows != ds_hidden_calendar_weeklist_list.rowcount){
  1097. ds_hidden_calendar_weeklist_list.clearData();
  1098. for( var i = 0; i < rows; i++ ){
  1099. ds_hidden_calendar_weeklist_list.addRow();
  1100. }
  1101. ds_hidden_calendar_weeklist_list.rowposition = -1;
  1102. }else{
  1103. //model.setValue("/root/hidden/calendar/weeklist/list", "");
  1104. }
  1105. var rowIndex = 0;
  1106. var colIndex = startDay;
  1107. for( var i = 1; i <= days; i++ ) {
  1108. var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex, "text")).replace("bind:", "");
  1109. var sColNm2 = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex+7, "text")).replace("bind:", "");
  1110. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm, i);
  1111. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm2, "0/0");
  1112. colIndex++;
  1113. if( colIndex == 7 ) {
  1114. colIndex = 0;
  1115. rowIndex++;
  1116. }
  1117. }
  1118. ds_send_data.setColumn(0, "rsrvdd",ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")+"01");
  1119. fCalendar();
  1120. setRsrvPresCondByMonth();
  1121. //submit("TRAEA00901");
  1122. }
  1123. function fCalendar(){
  1124. var oParam = {};
  1125. oParam.id = "TRAEA02012";
  1126. oParam.service = "examcurersrvapp.SytsRsrv";
  1127. oParam.method = "reqGetCalenList";
  1128. oParam.inds = "req=ds_send_data";
  1129. oParam.outds = "ds_init_calenlist_calendinfo=calendinfo";
  1130. oParam.async = false;
  1131. oParam.callback = "cf_TRAEA02012";
  1132. tranf_submit(oParam);
  1133. if (arErrorCode.pop("TRAEA02012") > -1){
  1134. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1135. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1136. var isDate = (isYear+isMonth+1).toDate();
  1137. var startDay = isDate.getDay();
  1138. for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
  1139. var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
  1140. var colidx = dd.toDate().getDay();
  1141. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
  1142. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  1143. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  1144. if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "8"){
  1145. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "red"); //yjh
  1146. //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  1147. }else if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "4"){
  1148. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "blue");
  1149. //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  1150. }else{
  1151. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "black");
  1152. //grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  1153. }
  1154. }
  1155. }
  1156. }
  1157. function cf_TRAEA02012(sSvcId, nErrorCode, sErrorMsg) {
  1158. arErrorCode.push(sSvcId, nErrorCode);
  1159. }
  1160. function setCalendarinit(dateObj){
  1161. dateObj.setDate(1);
  1162. var startDay = dateObj.getDay();
  1163. var days = dateObj.getMonthDay();
  1164. var rowIndex = 0;
  1165. var colIndex = startDay;
  1166. for( var i = 1; i <= days; i++ ) {
  1167. var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex, "text")).replace("bind:", "");
  1168. var sColNm2 = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colIndex+7, "text")).replace("bind:", "");
  1169. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm, i);
  1170. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, sColNm2, "0/0");
  1171. colIndex++;
  1172. if( colIndex == 7 ) {
  1173. colIndex = 0;
  1174. rowIndex++;
  1175. }
  1176. }
  1177. }
  1178. function setRsrvPresCondByMonth() {
  1179. ds_send.setColumn(0, "deptcd", ds_send.getColumn(0, "suppdeptcd"));
  1180. ds_send.setColumn(0, "rsrvdd", ds_send_data.getColumn(0, "rsrvdd"));
  1181. var oParam = {};
  1182. oParam.id = "TRAEA00907";
  1183. oParam.service = "examcurersrvapp.SytsRsrv";
  1184. oParam.method = "reqGetCurerRsrvCountInfo";
  1185. oParam.inds = "req=ds_send";
  1186. oParam.outds = "ds_init_curerprescondlist_rsrvcalendar=rsrvcalendar ds_init_curerprescondlist_orddeptlist=orddeptlist";
  1187. oParam.async = false;
  1188. //oParam.callback = "cf_TRAEA00907";
  1189. tranf_submit(oParam);
  1190. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1191. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1192. var isDate = (isYear+isMonth+1).toDate();
  1193. var startDay = isDate.getDay();
  1194. for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
  1195. var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
  1196. var colidx = dd.toDate().getDay();
  1197. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
  1198. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  1199. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  1200. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colBack"+colidx, "white"); //yjh
  1201. // grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
  1202. // grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
  1203. }
  1204. //grd_calendar.rebuildStyle();
  1205. for (var i = 0; i < ds_init_curerprescondlist_rsrvcalendar.rowcount; i++) {
  1206. var dd = ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "rsrvdd");
  1207. var colidx = dd.toDate().getDay();
  1208. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
  1209. var sColNm = utlf_transNullToEmpty(switch1.case1.grd_calendar.getCellProperty("body", colidx+7, "text")).replace("bind:", "");
  1210. ds_hidden_calendar_weeklist_list.setColumn(rowidx, sColNm, ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "count")+"/"+ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"));
  1211. //예약가능일자 녹색주기
  1212. //if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") < model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")){
  1213. /*
  1214. if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") > "0"){
  1215. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  1216. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  1217. }else{
  1218. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#ffffff";
  1219. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#ffffff"; // #D9EFB9 < #C4E693 < #ABDC65
  1220. }
  1221. */
  1222. if(parseFloat(ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "count")) < parseFloat(ds_init_curerprescondlist_rsrvcalendar.getColumn(i, "max"))){
  1223. //alert("==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) + "==" + parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")));
  1224. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colBack"+colidx, "#c4e693");
  1225. // grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  1226. // grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  1227. }
  1228. }
  1229. setCellColor(switch1.case1.grd_calendar);
  1230. ds_hidden.setColumn(0, "cntflag", "");
  1231. ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
  1232. var oParam = {};
  1233. oParam.id = "TRAEA05303";
  1234. oParam.service = "examcurersrvapp.RsrvRef";
  1235. oParam.method = "reqGetRsrvPresCondList";
  1236. oParam.inds = "req=ds_send";
  1237. oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
  1238. oParam.async = false;
  1239. oParam.callback = "cf_TRAEA05303";
  1240. tranf_submit(oParam);
  1241. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
  1242. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
  1243. if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
  1244. ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
  1245. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
  1246. ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
  1247. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
  1248. ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
  1249. }
  1250. ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
  1251. //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
  1252. var sdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"01";
  1253. var tdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"31";
  1254. ds_send.setColumn(0, "sdate",sdate);
  1255. ds_send.setColumn(0, "tdate",tdate);
  1256. var oParam = {};
  1257. oParam.id = "TRAEA00701";
  1258. oParam.service = "examcurersrvapp.RsrvRef";
  1259. oParam.method = "reqGetRsrvUpdtInfo";
  1260. oParam.inds = "req=ds_send";
  1261. oParam.outds = "ds_main_rsrvupdtinfo_rsrvupdt=rsrvupdt";
  1262. oParam.async = false;
  1263. //oParam.callback = "cf_TRAEA00701";
  1264. tranf_submit(oParam);
  1265. }
  1266. //=======================================================================================
  1267. // Event
  1268. //---------------------------------------------------------------------------------------
  1269. /****************************************************************************************
  1270. * Components : Form
  1271. * Components ID : SMAEA05300
  1272. * Event : oninit
  1273. * Argument : 01.obj : Object Event has occurred
  1274. * : 02.e : Event Object
  1275. * Description : 화면 처음 초기화시
  1276. ****************************************************************************************/
  1277. function SMAEA05300_oninit(obj:Form, e:InitEventInfo)
  1278. {
  1279. frmf_initForm(obj); //폼 초기화
  1280. }
  1281. /****************************************************************************************
  1282. * Components : Form
  1283. * Components ID : SMAEA05300
  1284. * Event : onload
  1285. * Argument : 01.obj : Object Event has occurred
  1286. * : 02.e : Event Object
  1287. * Description : 화면 로딩 완료시
  1288. ****************************************************************************************/
  1289. function SMAEA05300_onload(obj:Form, e:LoadEventInfo)
  1290. {
  1291. grdf_setGridSort(switch1.case1.datagrid1);
  1292. grdf_setGridSort(switch1.case2.datagrid2);
  1293. ds_send_globalinstance.setColumn(0, "rbasecdflag", "R");
  1294. ds_send_globalinstance.setColumn(0, "ebasecdflag", "E");
  1295. group3.group2.rbo_gb.value = "";
  1296. group3.group2.rdo_ioflag.value = "";
  1297. ds_main_rsrvprescondlist_rsrvprescond.clearData();
  1298. lf_aezfSetSuppDeptcd();
  1299. ds_send_globalinstance.setColumn(0, "instance1", frmf_getParameter("AST_DEPTCD"));
  1300. //model.setValue("/root/send/rsrvfromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  1301. ds_send.setColumn(0, "rsrvtodd", utlf_getCurrentDate());
  1302. ds_send.setColumn(0, "prsrvfromdd", utlf_getCurrentDate());
  1303. ds_send.setColumn(0, "prsrvtodd", utlf_getCurrentDate());
  1304. var instcd = sysf_getUserInfo("posinstcd");
  1305. var standard_yn = "orduseyn";
  1306. var ord_deptflag = "D"; //외래진료실
  1307. var rslt_ref = "ds_init_cmb_info_orddeptcdlist_dept";
  1308. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref);
  1309. ord_deptflag = "W"; //일반병동
  1310. rslt_ref = "ds_init_cmb_info_wardcdlist_dept";
  1311. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref);
  1312. //통합예약사용자가져오기
  1313. var arrParam = [{dsNm: "ds_init_cmb_info_rsrvidinfo_T0001", cdGrpId: "T0001"}]
  1314. lf_getAstCodeList(arrParam);
  1315. //astGetComboList( new Array("T0001"), new Array("/root/init/cmb_info/rsrvidinfo") );
  1316. ds_send.setColumn(0, "rsrvid", "");//model.getValue("/root/init/cmb_info/rsrvidinfo/T0001"));
  1317. switch1.case2.cmb_rsrvid.index = 0;
  1318. var arrParam = [{dsNm: "ds_init2_cmb_info_initexecprcpstatcd_M0011", cdGrpId: "M0011"},
  1319. {dsNm: "ds_init2_cmb_info_prcpgenrflag_M0010", cdGrpId: "M0010"}]
  1320. appf_getCodeList(arrParam);
  1321. //submit("TRZBC00101", false); //사용 안하는듯..
  1322. //submit("TRAEA00904", false); //지원부서
  1323. ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  1324. var oParam = {};
  1325. oParam.id = "TRAEA05301";
  1326. oParam.service = "examcurersrvapp.RsrvRef";
  1327. oParam.method = "reqGetRsrvSuppDeptCdList";
  1328. oParam.inds = "req=ds_send_globalinstance";
  1329. oParam.outds = "ds_init_cmb_info_suppdeptlist_suppdept=item";
  1330. oParam.async = false;
  1331. //oParam.callback = "cf_TRAEA05301";
  1332. tranf_submit(oParam); //지원부서
  1333. // submit("TRAEA00902", false); //검사실
  1334. // submit("TRAEA00903", false); //검사자
  1335. // submit("TRAEA01301", false); //검사실
  1336. switch1.tabindex = 0;
  1337. ds_send.setColumn(0, "suppdeptcd",ds_send_globalinstance.getColumn(0, "instance1"));
  1338. ds_send.setColumn(0, "psuppdeptcd",ds_send_globalinstance.getColumn(0, "instance1"));
  1339. ds_send.setColumn(0, "printgubn", "1");
  1340. // //*********************************************************************************************************************************************
  1341. // //담당 검사실 갖고오기
  1342. // submit("TRAEA01115",false);
  1343. //
  1344. // //담당 검사실 세팅
  1345. // model.setValue("/root/send/excuroomcd",model.getValue("/root/init2/cmb_info/initexcuroomcd[1]/excuroomcd"));
  1346. // //*********************************************************************************************************************************************
  1347. initCalendar();
  1348. setCurrentDate();
  1349. //model.toggle("case1");
  1350. }
  1351. /****************************************************************************************
  1352. * Components : Button
  1353. * Components ID : btn_sea
  1354. * Event : onclick
  1355. * Argument : 01.obj : Object Event has occurred
  1356. * : 02.e : Event Object
  1357. * Description : 조회버튼 클릭시
  1358. ****************************************************************************************/
  1359. function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1360. {
  1361. if (switch1.tabindex == 0) {
  1362. ds_hidden.setColumn(0, "cntflag", "");
  1363. ds_send.setColumn(0, "rsrvdd", ds_send.getColumn(0, "rsrvtodd"));
  1364. var oParam = {};
  1365. oParam.id = "TRAEA05303";
  1366. oParam.service = "examcurersrvapp.RsrvRef";
  1367. oParam.method = "reqGetRsrvPresCondList";
  1368. oParam.inds = "req=ds_send";
  1369. oParam.outds = "ds_main_rsrvprescondlist_rsrvposstm=rsrvposstm ds_main_rsrvprescondlist_rsrvprescond=item";
  1370. oParam.async = false;
  1371. oParam.callback = "cf_TRAEA05303";
  1372. tranf_submit(oParam);
  1373. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colBack", "string");
  1374. ds_main_rsrvprescondlist_rsrvprescond.addColumn("colFont", "string");
  1375. if( !utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
  1376. ds_main_rsrvprescondlist_rsrvprescond.enableevent = false;
  1377. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = false;
  1378. ds_main_rsrvprescondlist_rsrvprescond.deleteColumn("prcpdelivefact");
  1379. ds_main_rsrvprescondlist_rsrvprescond.updatecontrol = true;
  1380. ds_main_rsrvprescondlist_rsrvprescond.enableevent = true;
  1381. }
  1382. ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
  1383. //2011.08.10 검사실별 휴검관리 조회 추가- 박재영
  1384. var sdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"01";
  1385. var tdate = ds_send_data.getColumn(0, "rsrvdd").substr(0,6)+"31";
  1386. ds_send.setColumn(0, "sdate",sdate);
  1387. ds_send.setColumn(0, "tdate",sdate);
  1388. var oParam = {};
  1389. oParam.id = "TRAEA00701";
  1390. oParam.service = "examcurersrvapp.RsrvRef";
  1391. oParam.method = "reqGetRsrvUpdtInfo";
  1392. oParam.inds = "req=ds_send";
  1393. oParam.outds = "ds_main_rsrvupdtinfo_rsrvupdt=rsrvupdt";
  1394. oParam.async = false;
  1395. //oParam.callback = "cf_TRAEA00701";
  1396. tranf_submit(oParam);
  1397. } else {
  1398. var oParam = {};
  1399. oParam.id = "TRAEA05302";
  1400. oParam.service = "examcurersrvapp.RsrvRef";
  1401. oParam.method = "reqGetRsrvPresCondList";
  1402. oParam.inds = "req=ds_send";
  1403. oParam.outds = "ds_main_rsrvprescondlist2_rsrvprescond=item";
  1404. oParam.async = false;
  1405. //oParam.callback = "cf_TRAEA05302";
  1406. tranf_submit(oParam);
  1407. if( !utlf_isNull(ds_main_rsrvprescondlist2_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
  1408. ds_main_rsrvprescondlist2_rsrvprescond.enableevent = false;
  1409. ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = false;
  1410. ds_main_rsrvprescondlist2_rsrvprescond.deleteColumn("prcpdelivefact");
  1411. ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = true;
  1412. ds_main_rsrvprescondlist2_rsrvprescond.enableevent = true;
  1413. }
  1414. ds_main_rsrvprescondlist2_rsrvprescond.rowposition = -1;
  1415. }
  1416. }
  1417. /****************************************************************************************
  1418. * Components : Combo
  1419. * Components ID : cmb_excuroom
  1420. * Event : onitemchanged
  1421. * Argument : 01.obj : Object Event has occurred
  1422. * : 02.e : Event Object
  1423. * Description : 콤보 값 변경시
  1424. ****************************************************************************************/
  1425. function group3_group2_cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1426. {
  1427. if (switch1.tabindex == 0) {
  1428. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1429. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1430. var isDate = (isYear+isMonth+1).toDate();
  1431. setCalendarinit(isDate);
  1432. setRsrvPresCondByMonth();
  1433. } else {
  1434. var oParam = {};
  1435. oParam.id = "TRAEA05302";
  1436. oParam.service = "examcurersrvapp.RsrvRef";
  1437. oParam.method = "reqGetRsrvPresCondList";
  1438. oParam.inds = "req=ds_send";
  1439. oParam.outds = "ds_main_rsrvprescondlist2_rsrvprescond=item";
  1440. oParam.async = false;
  1441. //oParam.callback = "cf_TRAEA05302";
  1442. tranf_submit(oParam);
  1443. if( !utlf_isNull(ds_main_rsrvprescondlist2_rsrvprescond.getColumnInfo("prcpdelivefact")) ){
  1444. ds_main_rsrvprescondlist2_rsrvprescond.enableevent = false;
  1445. ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = false;
  1446. ds_main_rsrvprescondlist2_rsrvprescond.deleteColumn("prcpdelivefact");
  1447. ds_main_rsrvprescondlist2_rsrvprescond.updatecontrol = true;
  1448. ds_main_rsrvprescondlist2_rsrvprescond.enableevent = true;
  1449. }
  1450. ds_main_rsrvprescondlist2_rsrvprescond.rowposition = -1
  1451. }
  1452. }
  1453. /****************************************************************************************
  1454. * Components : Combo
  1455. * Components ID : combo1
  1456. * Event : onitemchanged
  1457. * Argument : 01.obj : Object Event has occurred
  1458. * : 02.e : Event Object
  1459. * Description : 콤보 값 변경시
  1460. ****************************************************************************************/
  1461. function group3_group2_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1462. {
  1463. ds_send_globalinstance.setColumn(0, "instance1", ds_send.getColumn(0, "suppdeptcd"));
  1464. ds_send.setColumn(0, "excuroomcd", "");
  1465. ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  1466. var oParam = {};
  1467. oParam.id = "TRAEA00902";
  1468. oParam.service = "examcurebaseapp.ExamCureRoom";
  1469. oParam.method = "reqGetExamCureRoomGrpList";
  1470. oParam.inds = "req=ds_send_globalinstance";
  1471. oParam.outds = "ds_init_cmb_info_excuroomcdlist_excuroom=item";
  1472. oParam.async = false;
  1473. //oParam.callback = "cf_TRAEA00902";
  1474. tranf_submit(oParam);
  1475. ds_send_globalinstance.setColumn(0, "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  1476. var oParam = {};
  1477. oParam.id = "TRAEA00903";
  1478. oParam.service = "examcurebaseapp.ExecrCode";
  1479. oParam.method = "reqGetExecrCodeList";
  1480. oParam.inds = "req=ds_send_globalinstance";
  1481. oParam.outds = "ds_init_cmb_info_execridlist_execr=execrcode";
  1482. oParam.async = false;
  1483. //oParam.callback = "cf_TRAEA00903";
  1484. tranf_submit(oParam);
  1485. ds_main_rsrvprescondlist_rsrvposstm.clearData();
  1486. ds_main_rsrvprescondlist_rsrvprescond.clearData();
  1487. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1488. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1489. var isDate = (isYear+isMonth+1).toDate();
  1490. setCalendarinit(isDate);
  1491. }
  1492. /****************************************************************************************
  1493. * Components : Tab
  1494. * Components ID : switch1
  1495. * Event : onchanged
  1496. * Argument : 01.obj : Object Event has occurred
  1497. * : 02.e : Event Object
  1498. * Description : 탭 변경시
  1499. ****************************************************************************************/
  1500. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1501. {
  1502. switch( e.postindex ){
  1503. case 0 :
  1504. var excuroomcd = ds_send.getColumn(0, "excuroomcd");
  1505. ds_send.setColumn(0, "rsrvfromdd", "");
  1506. if (utlf_isNull(excuroomcd)) {
  1507. ds_main_rsrvprescondlist_rsrvposstm.clearData();
  1508. ds_main_rsrvprescondlist_rsrvprescond.clearData();
  1509. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1510. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1511. var isDate = (isYear+isMonth+1).toDate();
  1512. setCalendarinit(isDate);
  1513. } else {
  1514. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1515. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1516. var isDate = (isYear+isMonth+1).toDate();
  1517. setCalendarinit(isDate);
  1518. setRsrvPresCondByMonth();
  1519. }
  1520. break;
  1521. case 1 :
  1522. var rsrvfromdd = ds_send.getColumn(0, "rsrvfromdd");
  1523. if (utlf_isNull(rsrvfromdd)) {
  1524. switch1.case2.ipt_fromdd.value = utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  1525. ds_send.setColumn(0, "rsrvfromdd", utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  1526. }
  1527. break;
  1528. default :
  1529. break;
  1530. }
  1531. }
  1532. /****************************************************************************************
  1533. * Components : Button
  1534. * Components ID : button1
  1535. * Event : onclick
  1536. * Argument : 01.obj : Object Event has occurred
  1537. * : 02.e : Event Object
  1538. * Description : 일일예약리스트출력버튼 클릭시
  1539. ****************************************************************************************/
  1540. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  1541. {
  1542. model.setValue("/root/send/reqdata/rsrvfromdd", ds_send.getColumn(0, "rsrvfromdd"));
  1543. model.setValue("/root/send/reqdata/rsrvtodd", ds_send.getColumn(0, "rsrvtodd"));
  1544. model.setValue("/root/send/reqdata/suppdeptcd", ds_send.getColumn(0, "suppdeptcd"));
  1545. model.setValue("/root/send/reqdata/excuroomcd", ds_send.getColumn(0, "excuroomcd"));
  1546. model.setValue("/root/send/reqdata/execrid", ds_send.getColumn(0, "execrid"));
  1547. model.setValue("/root/send/reqdata/instcd", sysf_getUserInfo("dutplceinstcd"));
  1548. var _room = combo1.label
  1549. if(cmb_excuroom.label != '' && cmb_excuroom.label.length >1)
  1550. { _room += '('+ cmb_excuroom.label +')'; }
  1551. model.setValue("/root/send/reqdata/room", _room);
  1552. var printgubn = ds_send.getColumn(0, "printgubn");
  1553. if (printgubn == "1") {
  1554. exeReportPreview("RPAEA00910", "XML", "/root/send/reqdata");
  1555. } else if (printgubn == "2"){
  1556. exeReportPreview("RPAEA00911", "XML", "/root/send/reqdata");
  1557. } else {
  1558. exeReportPreview("RPAEA00912", "XML", "/root/send/reqdata");
  1559. }
  1560. }
  1561. /****************************************************************************************
  1562. * Components : Button
  1563. * Components ID : btn_reset
  1564. * Event : onclick
  1565. * Argument : 01.obj : Object Event has occurred
  1566. * : 02.e : Event Object
  1567. * Description : 초기화버튼 클릭시
  1568. ****************************************************************************************/
  1569. function grp_btn_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  1570. {
  1571. this.reload();
  1572. }
  1573. /****************************************************************************************
  1574. * Components : Grid
  1575. * Components ID : grd_calendar
  1576. * Event : oncellclick
  1577. * Argument : 01.obj : Object Event has occurred
  1578. * : 02.e : Event Object
  1579. * Description : 그리드 셀 클릭시
  1580. ****************************************************************************************/
  1581. function switch1_case1_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  1582. {
  1583. if(ds_hidden_calendar_weeklist_list.rowposition != -1 ) {
  1584. ds_hidden_grdcellcolor.setColumn(0, "calrow",ds_hidden_calendar_weeklist_list.rowposition);
  1585. ds_hidden_grdcellcolor.setColumn(0, "calcol",switch1.case1.grd_calendar.currentcol);
  1586. setCellColor(switch1.case1.grd_calendar);
  1587. getRsrvPossTm(switch1.case1.grd_calendar);
  1588. var curDate = utlf_getCurrentDate().substr(0,8); //오늘날짜
  1589. var rsrvdd =ds_send_data.getColumn(0, "rsrvdd"); //선택일자
  1590. }
  1591. }
  1592. /****************************************************************************************
  1593. * Components : Button
  1594. * Components ID : button7
  1595. * Event : onclick
  1596. * Argument : 01.obj : Object Event has occurred
  1597. * : 02.e : Event Object
  1598. * Description : 1버튼 클릭시
  1599. ****************************************************************************************/
  1600. function switch1_case1_group4_button7_onclick(obj:Button, e:ClickEventInfo)
  1601. {
  1602. if(switch1.case1.group4.opt_month.value!== "01") {
  1603. fGetCalendar("01");
  1604. }
  1605. }
  1606. /****************************************************************************************
  1607. * Components : Button
  1608. * Components ID : button8
  1609. * Event : onclick
  1610. * Argument : 01.obj : Object Event has occurred
  1611. * : 02.e : Event Object
  1612. * Description : 2버튼 클릭시
  1613. ****************************************************************************************/
  1614. function switch1_case1_group4_button8_onclick(obj:Button, e:ClickEventInfo)
  1615. {
  1616. if(switch1.case1.group4.opt_month.value!== "02") {
  1617. fGetCalendar("02");
  1618. }
  1619. }
  1620. /****************************************************************************************
  1621. * Components : Button
  1622. * Components ID : button9
  1623. * Event : onclick
  1624. * Argument : 01.obj : Object Event has occurred
  1625. * : 02.e : Event Object
  1626. * Description : 3버튼 클릭시
  1627. ****************************************************************************************/
  1628. function switch1_case1_group4_button9_onclick(obj:Button, e:ClickEventInfo)
  1629. {
  1630. if(switch1.case1.group4.opt_month.value!== "03") {
  1631. fGetCalendar("03");
  1632. }
  1633. }
  1634. /****************************************************************************************
  1635. * Components : Button
  1636. * Components ID : button10
  1637. * Event : onclick
  1638. * Argument : 01.obj : Object Event has occurred
  1639. * : 02.e : Event Object
  1640. * Description : 4버튼 클릭시
  1641. ****************************************************************************************/
  1642. function switch1_case1_group4_button10_onclick(obj:Button, e:ClickEventInfo)
  1643. {
  1644. if(switch1.case1.group4.opt_month.value!== "04") {
  1645. fGetCalendar("04");
  1646. }
  1647. }
  1648. /****************************************************************************************
  1649. * Components : Button
  1650. * Components ID : button11
  1651. * Event : onclick
  1652. * Argument : 01.obj : Object Event has occurred
  1653. * : 02.e : Event Object
  1654. * Description : 5버튼 클릭시
  1655. ****************************************************************************************/
  1656. function switch1_case1_group4_button11_onclick(obj:Button, e:ClickEventInfo)
  1657. {
  1658. if(switch1.case1.group4.opt_month.value!== "05") {
  1659. fGetCalendar("05");
  1660. }
  1661. }
  1662. /****************************************************************************************
  1663. * Components : Button
  1664. * Components ID : button12
  1665. * Event : onclick
  1666. * Argument : 01.obj : Object Event has occurred
  1667. * : 02.e : Event Object
  1668. * Description : 6버튼 클릭시
  1669. ****************************************************************************************/
  1670. function switch1_case1_group4_button12_onclick(obj:Button, e:ClickEventInfo)
  1671. {
  1672. if(switch1.case1.group4.opt_month.value!== "06") {
  1673. fGetCalendar("06");
  1674. }
  1675. }
  1676. /****************************************************************************************
  1677. * Components : Button
  1678. * Components ID : button13
  1679. * Event : onclick
  1680. * Argument : 01.obj : Object Event has occurred
  1681. * : 02.e : Event Object
  1682. * Description : 7버튼 클릭시
  1683. ****************************************************************************************/
  1684. function switch1_case1_group4_button13_onclick(obj:Button, e:ClickEventInfo)
  1685. {
  1686. if(switch1.case1.group4.opt_month.value!== "07") {
  1687. fGetCalendar("07");
  1688. }
  1689. }
  1690. /****************************************************************************************
  1691. * Components : Button
  1692. * Components ID : button14
  1693. * Event : onclick
  1694. * Argument : 01.obj : Object Event has occurred
  1695. * : 02.e : Event Object
  1696. * Description : 8버튼 클릭시
  1697. ****************************************************************************************/
  1698. function switch1_case1_group4_button14_onclick(obj:Button, e:ClickEventInfo)
  1699. {
  1700. if(switch1.case1.group4.opt_month.value!== "08") {
  1701. fGetCalendar("08");
  1702. }
  1703. }
  1704. /****************************************************************************************
  1705. * Components : Button
  1706. * Components ID : button18
  1707. * Event : onclick
  1708. * Argument : 01.obj : Object Event has occurred
  1709. * : 02.e : Event Object
  1710. * Description : 9버튼 클릭시
  1711. ****************************************************************************************/
  1712. function switch1_case1_group4_button18_onclick(obj:Button, e:ClickEventInfo)
  1713. {
  1714. if(switch1.case1.group4.opt_month.value!== "09") {
  1715. fGetCalendar("09");
  1716. }
  1717. }
  1718. /****************************************************************************************
  1719. * Components : Button
  1720. * Components ID : button19
  1721. * Event : onclick
  1722. * Argument : 01.obj : Object Event has occurred
  1723. * : 02.e : Event Object
  1724. * Description : 10버튼 클릭시
  1725. ****************************************************************************************/
  1726. function switch1_case1_group4_button19_onclick(obj:Button, e:ClickEventInfo)
  1727. {
  1728. if(switch1.case1.group4.opt_month.value!== "10") {
  1729. fGetCalendar("10");
  1730. }
  1731. }
  1732. /****************************************************************************************
  1733. * Components : Button
  1734. * Components ID : button20
  1735. * Event : onclick
  1736. * Argument : 01.obj : Object Event has occurred
  1737. * : 02.e : Event Object
  1738. * Description : 11버튼 클릭시
  1739. ****************************************************************************************/
  1740. function switch1_case1_group4_button20_onclick(obj:Button, e:ClickEventInfo)
  1741. {
  1742. if(switch1.case1.group4.opt_month.value!== "11") {
  1743. fGetCalendar("11");
  1744. }
  1745. }
  1746. /****************************************************************************************
  1747. * Components : Button
  1748. * Components ID : button21
  1749. * Event : onclick
  1750. * Argument : 01.obj : Object Event has occurred
  1751. * : 02.e : Event Object
  1752. * Description : 12버튼 클릭시
  1753. ****************************************************************************************/
  1754. function switch1_case1_group4_button21_onclick(obj:Button, e:ClickEventInfo)
  1755. {
  1756. if(switch1.case1.group4.opt_month.value!== "12") {
  1757. fGetCalendar("12");
  1758. }
  1759. }
  1760. /****************************************************************************************
  1761. * Components : Button
  1762. * Components ID : button31
  1763. * Event : onclick
  1764. * Argument : 01.obj : Object Event has occurred
  1765. * : 02.e : Event Object
  1766. * Description : >>버튼 클릭시
  1767. ****************************************************************************************/
  1768. function switch1_case1_group4_button31_onclick(obj:Button, e:ClickEventInfo)
  1769. {
  1770. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1771. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1772. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1773. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1774. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1775. setCalendar(isDate);
  1776. }
  1777. /****************************************************************************************
  1778. * Components : Button
  1779. * Components ID : button33
  1780. * Event : onclick
  1781. * Argument : 01.obj : Object Event has occurred
  1782. * : 02.e : Event Object
  1783. * Description : <버튼 클릭시
  1784. ****************************************************************************************/
  1785. function switch1_case1_group4_button33_onclick(obj:Button, e:ClickEventInfo)
  1786. {
  1787. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1788. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1789. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1790. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1791. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1792. /*
  1793. if(model.getValue("/root/send/excuroomcd") == "") {
  1794. messageBox("치료실","C002");
  1795. return;
  1796. }
  1797. */
  1798. setCalendar(isDate);
  1799. }
  1800. /****************************************************************************************
  1801. * Components : Button
  1802. * Components ID : button35
  1803. * Event : onclick
  1804. * Argument : 01.obj : Object Event has occurred
  1805. * : 02.e : Event Object
  1806. * Description : >버튼 클릭시
  1807. ****************************************************************************************/
  1808. function switch1_case1_group4_button35_onclick(obj:Button, e:ClickEventInfo)
  1809. {
  1810. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1811. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1812. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1813. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1814. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1815. /*
  1816. if(model.getValue("/root/send/excuroomcd") == "") {
  1817. messageBox("치료실","C002");
  1818. return;
  1819. }
  1820. */
  1821. setCalendar(isDate);
  1822. }
  1823. /****************************************************************************************
  1824. * Components : Button
  1825. * Components ID : button36
  1826. * Event : onclick
  1827. * Argument : 01.obj : Object Event has occurred
  1828. * : 02.e : Event Object
  1829. * Description : <<버튼 클릭시
  1830. ****************************************************************************************/
  1831. function switch1_case1_group4_button36_onclick(obj:Button, e:ClickEventInfo)
  1832. {
  1833. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  1834. var isYear = ds_hidden_calendar.getColumn(0, "year");
  1835. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1836. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  1837. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  1838. setCalendar(isDate);
  1839. }
  1840. /****************************************************************************************
  1841. * Components : Grid
  1842. * Components ID : datagrid1
  1843. * Event : oncelldblclick
  1844. * Argument : 01.obj : Object Event has occurred
  1845. * : 02.e : Event Object
  1846. * Description : 그리드 셀 더블클릭시
  1847. ****************************************************************************************/
  1848. function switch1_case1_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1849. {
  1850. if (utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumn(ds_main_rsrvprescondlist_rsrvprescond.rowposition, "hngnm"))) {
  1851. return;
  1852. }
  1853. var pid = ds_main_rsrvprescondlist_rsrvprescond.getColumn(ds_main_rsrvprescondlist_rsrvprescond.rowposition, "pid");
  1854. var main = frmf_getMainViewer();
  1855. // if (main.document.title == "통합예약관리") {
  1856. // main.window.model.makeValue("/root/send/data/srchpid", pid);
  1857. // main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
  1858. // } else if (main.document.title == "검사예약") {
  1859. // main.window.ds_send_data.setColumn(0, "pid", pid);
  1860. // setGlobalVariable("menuparam", "T");
  1861. // main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "root/send/data/pid", "root/send/data/pid");
  1862. // }
  1863. }
  1864. /****************************************************************************************
  1865. * Components : Grid
  1866. * Components ID : datagrid4
  1867. * Event : onsetfocus
  1868. * Argument : 01.obj : Object Event has occurred
  1869. * : 02.e : Event Object
  1870. * Description : 그리드 포커스 들어올때
  1871. ****************************************************************************************/
  1872. function switch1_case1_datagrid4_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  1873. {
  1874. //checkKeyColumn("datagrid2");
  1875. }
  1876. /****************************************************************************************
  1877. * Components : CheckBox
  1878. * Components ID : chk_cntflag
  1879. * Event : onclick
  1880. * Argument : 01.obj : Object Event has occurred
  1881. * : 02.e : Event Object
  1882. * Description : 체크박스 클릭시
  1883. ****************************************************************************************/
  1884. function switch1_case1_chk_cntflag_onclick(obj:CheckBox, e:ClickEventInfo)
  1885. {
  1886. obj.updateToDataset();
  1887. var mPath = ds_main_rsrvprescondlist_rsrvprescond;
  1888. var cnt = ds_main_rsrvprescondlist_rsrvprescond.rowcount;
  1889. if (cnt < 1) {
  1890. return;
  1891. }
  1892. var hPath = ds_hidden_rsrvlist_rsrvprescond;
  1893. if (ds_hidden.getColumn(0, "cntflag") == "Y") {
  1894. // 원본 노드 백업
  1895. ds_temp_rsrvprescondlist_rsrvposstm.copyData(ds_main_rsrvprescondlist_rsrvposstm);
  1896. ds_temp_rsrvprescondlist_rsrvprescond.copyData(ds_main_rsrvprescondlist_rsrvprescond);
  1897. // 작업 노드 저장
  1898. ds_hidden_rsrvlist_rsrvposstm.copyData(ds_main_rsrvprescondlist_rsrvposstm);
  1899. ds_hidden_rsrvlist_rsrvprescond.copyData(ds_main_rsrvprescondlist_rsrvprescond);
  1900. ds_hidden_rsrvlist_rsrvprescond.keystring = "S:rsrvtm";
  1901. ds_main_rsrvprescondlist_rsrvposstm.clearData();
  1902. ds_main_rsrvprescondlist_rsrvprescond.clearData();
  1903. var hCnt = 1;
  1904. var addCnt = 0;
  1905. for (var i = 0; i < cnt; i++) {
  1906. var nRow = ds_main_rsrvprescondlist_rsrvprescond.addRow();
  1907. ds_main_rsrvprescondlist_rsrvprescond.copyRow(nRow, ds_hidden_rsrvlist_rsrvprescond, i);
  1908. var hour = utlf_transNullToEmpty(ds_hidden_rsrvlist_rsrvprescond.getColumn(i, "rsrvtm")).substr(8, 2);
  1909. var nextHour = "";
  1910. if (i < (cnt-1)) {
  1911. nextHour = utlf_transNullToEmpty(ds_hidden_rsrvlist_rsrvprescond.getColumn(i+1, "rsrvtm")).substr(8, 2);
  1912. } else {
  1913. nextHour = parseInt(hour) + 1;
  1914. nextHour = nextHour.length == 1 ? "0" + nextHour : String(nextHour);
  1915. }
  1916. if (hour != nextHour) {
  1917. var nRow2 = ds_main_rsrvprescondlist_rsrvprescond.addRow();
  1918. // var node = instance1.selectSingleNode(hPath + "[" + i + "]");
  1919. // var nodeList = node.childNodes;
  1920. // while (n = nodeList.nextNode()) {
  1921. // model.makeValue(mPath + "[" + ( i + addCnt ) + "]/" + n.nodeName, "");
  1922. // }
  1923. ds_main_rsrvprescondlist_rsrvprescond.setColumn(nRow2, "rsrvtm", hour + ":00 ~ " + nextHour + ":00");
  1924. ds_main_rsrvprescondlist_rsrvprescond.setColumn(nRow2, "pid", hCnt);
  1925. addCnt++;
  1926. hCnt = 1;
  1927. } else {
  1928. hCnt++;
  1929. }
  1930. }
  1931. for (var i = 0; i < ds_main_rsrvprescondlist_rsrvprescond.rowcount; i++) {
  1932. if (utlf_isNull(ds_main_rsrvprescondlist_rsrvprescond.getColumn(i, "hngnm"))){
  1933. ds_main_rsrvprescondlist_rsrvprescond.setColumn(i, "colBack", "#ffff00");
  1934. ds_main_rsrvprescondlist_rsrvprescond.setColumn(i, "colFont", "arial,9,bold");
  1935. }
  1936. }
  1937. } else {
  1938. ds_main_rsrvprescondlist_rsrvposstm.copyData(ds_temp_rsrvprescondlist_rsrvposstm);
  1939. ds_main_rsrvprescondlist_rsrvprescond.copyData(ds_temp_rsrvprescondlist_rsrvprescond);
  1940. }
  1941. ds_main_rsrvprescondlist_rsrvprescond.rowposition = 0;
  1942. ds_main_rsrvprescondlist_rsrvprescond.rowposition = -1;
  1943. }
  1944. /****************************************************************************************
  1945. * Components : Button
  1946. * Components ID : btn_excel
  1947. * Event : onclick
  1948. * Argument : 01.obj : Object Event has occurred
  1949. * : 02.e : Event Object
  1950. * Description : 엑셀저장 클릭시
  1951. ****************************************************************************************/
  1952. function switch1_case1_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  1953. {
  1954. var filename = "검사실별 예약 현황_" + group3.group2.combo1.text + "_" + ds_send_data.getColumn(0, "rsrvdd");
  1955. if( switch1.case1.datagrid1.rowcount > 0 ){
  1956. grdf_exportExcel(switch1.case1.datagrid1, filename, "예약내역", false, "", "user", false);
  1957. } else {
  1958. sysf_messageBox("조회된 데이터가 ", "I004");
  1959. return;
  1960. }
  1961. // var filename = "검사실별 예약 현황_" + group3.group2.combo1.text + "_" + ds_send_data.getColumn(0, "rsrvdd");
  1962. // var filename = window.fileDialog("save", ",", false, filename, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1963. // if (filename == "") {
  1964. // messageBox("파일명을 지정해 주십시오.", "C999");
  1965. // return;
  1966. // }
  1967. //
  1968. // datagrid1.saveExcel(filename, "sheetname:예약내역;colhiddenextend:true;rowhiddenextend:false;");
  1969. // messageBox("엑셀 저장이 완료되었습니다.", "I999");
  1970. }
  1971. /****************************************************************************************
  1972. * Components : Grid
  1973. * Components ID : datagrid2
  1974. * Event : oncelldblclick
  1975. * Argument : 01.obj : Object Event has occurred
  1976. * : 02.e : Event Object
  1977. * Description : 그리드 셀 더블클릭시
  1978. ****************************************************************************************/
  1979. function switch1_case2_datagrid2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1980. {
  1981. var pid = ds_main_rsrvprescondlist2_rsrvprescond.getColumn(ds_main_rsrvprescondlist2_rsrvprescond.rowposition, "pid");
  1982. var main = frmf_getMainViewer();
  1983. // if (main.document.title == "통합예약관리") {
  1984. // main.window.model.makeValue("/root/send/data/srchpid", pid);
  1985. // main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
  1986. // } else if (main.document.title == "검사예약") {
  1987. // main.window.ds_send_data.setColumn(0, "pid", pid);
  1988. // main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "/root/send/data/pid", "/root/send/data/pid");
  1989. // }
  1990. }
  1991. /****************************************************************************************
  1992. * Components : Radio
  1993. * Components ID : rdo_ioflag
  1994. * Event : onitemchanged
  1995. * Argument : 01.obj : Object Event has occurred
  1996. * : 02.e : Event Object
  1997. * Description : 라디오 값 변경시
  1998. ****************************************************************************************/
  1999. function group3_group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2000. {
  2001. group3.group2.btn_sea.click();
  2002. }
  2003. /****************************************************************************************
  2004. * Components : Radio
  2005. * Components ID : rbo_gb
  2006. * Event : onitemchanged
  2007. * Argument : 01.obj : Object Event has occurred
  2008. * : 02.e : Event Object
  2009. * Description : 라디오 값 변경시
  2010. ****************************************************************************************/
  2011. function group3_group2_rbo_gb_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2012. {
  2013. group3.group2.btn_sea.click();
  2014. }
  2015. /****************************************************************************************
  2016. * Components : Button
  2017. * Components ID : btn_cls
  2018. * Event : onclick
  2019. * Argument : 01.obj : Object Event has occurred
  2020. * : 02.e : Event Object
  2021. * Description : 닫기버튼 클릭시
  2022. ****************************************************************************************/
  2023. function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  2024. {
  2025. this.close();
  2026. }
  2027. function cf_TRAEA05303(sSvcId, nErrorCode, sErrorMsg) {
  2028. if(nErrorCode < 0) return;
  2029. if(utlf_isNull(ds_main_rsrvprescondlist_rsrvposstm.getColumnInfo("excutm"))) return;
  2030. ds_main_rsrvprescondlist_rsrvposstm.addColumn("over","string");
  2031. for(var i = 1 ; i < ds_main_rsrvprescondlist_rsrvposstm.rowcount ; i++) {
  2032. var tmbefor = ds_main_rsrvprescondlist_rsrvposstm.getColumn(i-1,"rsrvtm");
  2033. var tmnow = ds_main_rsrvprescondlist_rsrvposstm.getColumn(i,"rsrvtm");
  2034. if(tmbefor == tmnow) continue;
  2035. var interval = fn_getInterval(tmnow, tmbefor);
  2036. if(interval < parseInt(ds_main_rsrvprescondlist_rsrvposstm.getColumn(i-1, "excutm"))) {
  2037. ds_main_rsrvprescondlist_rsrvposstm.setColumn(i, "over", "Y");
  2038. }
  2039. }
  2040. }
  2041. function fn_getInterval(a, b) {
  2042. var a1 = a.substring(0,2);
  2043. var a2 = a.substring(2,4);
  2044. var b1 = b.substring(0,2);
  2045. var b2 = b.substring(2,4);
  2046. var m1 = (parseInt(a1) - parseInt(b1)) * 60;
  2047. var m2 = 0;
  2048. if(parseInt(a2) < parseInt(b2)) {
  2049. m2 = ((parseInt(a2)+60) - parseInt(b2)) * -1;
  2050. } else {
  2051. m2 = parseInt(a2) - parseInt(b2);
  2052. }
  2053. return m1 + m2;
  2054. }]]></Script>
  2055. </Form>
  2056. </FDL>