SMAHB01500_예약일정관리.xfdl 135 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHB01500" position="absolute 0 0 1189 783" titletext="예약일정관리" onload="SMAHB01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" taborder="1" tabindex="0" position="absolute 0 28 1188 755" anchor="all" onchanged="switch1_onchanged">
  8. <Tabpages>
  9. <Tabpage id="case_cret" text=" 건진예약일정관리 ">
  10. <Layouts>
  11. <Layout>
  12. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 395 96 793 102"/>
  13. <Shape id="line19" class="line_3" position="absolute 0 98 387 104"/>
  14. <Button id="button3" taborder="53" text="부분영역저장" class="btn5" position="absolute 1101 1 1187 23" anchor="top right" onclick="switch1_case_cret_button3_onclick"/>
  15. <Static id="caption41" text="공통" class="cell_1" position="absolute 245 76 281 99" style="padding:0 0 0 4;"/>
  16. <Static id="caption10" text="명" class="search_no_b" position="absolute 325 79 343 96"/>
  17. <Edit id="input1" taborder="7" class="input_default" position="absolute 283 78 323 97" onkeyup="Edit_onkeyup" autoselect="true"/>
  18. <Button id="button5" taborder="55" text="추가" class="btn2" position="absolute 549 127 591 149" onclick="switch1_case_cret_button5_onclick"/>
  19. <Button id="button4" taborder="56" text="삭제" class="btn2" position="absolute 594 127 636 149" onclick="switch1_case_cret_button4_onclick"/>
  20. <Button id="button1" taborder="57" text="전체삭제" class="btn2" position="absolute 639 127 703 149" onclick="switch1_case_cret_button1_onclick"/>
  21. <Static id="caption15" text="시간" class="cell_1" position="absolute 395 76 441 123" style="padding:0 0 0 4;"/>
  22. <CheckBox id="chx_fri" taborder="27" position="absolute 615 54 651 74" text="금" truevalue="5" onclick="CheckBox_onclick"/>
  23. <Static id="caption18" text="오전" class="cell_1" position="absolute 462 76 508 99" style="padding:0 0 0 4;"/>
  24. <Static id="caption29" text="분" class="search_no_b" position="absolute 722 103 740 120"/>
  25. <CheckBox id="chx_mon" taborder="23" position="absolute 443 54 479 74" text="월" truevalue="1" onclick="CheckBox_onclick"/>
  26. <Button id="btn_search" taborder="8" text="조회" class="btn1" position="absolute 735 54 790 74" anchor="top right" onclick="switch1_case_cret_btn_search_onclick"/>
  27. <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 395 72 793 78"/>
  28. <Static id="caption27" text="요일" class="cell_1" position="absolute 395 52 441 75" style="padding:0 0 0 4;"/>
  29. <Static id="caption26" text="오후" class="cell_1" position="absolute 462 100 508 123" style="padding:0 0 0 4;"/>
  30. <Static id="caption25" text="~" class="search_no_b" position="absolute 561 79 579 96"/>
  31. <Static id="caption5" text="분" class="search_no_b" position="absolute 722 79 740 96"/>
  32. <Static id="caption24" text="상담예약스케줄 생성" class="tit_2" position="absolute 395 7 603 24"/>
  33. <Static id="caption4" text="간격" class="cell_1" position="absolute 625 76 671 99" style="padding:0 0 0 4;"/>
  34. <Static id="caption23" text="~" class="search_no_b" position="absolute 542 31 554 48"/>
  35. <Shape id="line14" linetype="horizontal" class="line_2" position="absolute 395 48 793 54"/>
  36. <Static id="caption22" text="간격" class="cell_1" position="absolute 625 100 671 123" style="padding:0 0 0 4;"/>
  37. <CheckBox id="chx_wed" taborder="25" position="absolute 529 54 565 74" text="수" truevalue="3" onclick="CheckBox_onclick"/>
  38. <Static id="caption21" text="일자" class="cell_1" position="absolute 395 28 441 51" style="padding:0 0 0 4;"/>
  39. <Button id="btn_savecnst" taborder="61" text="스케줄 저장" class="btn5" position="absolute 706 127 792 149" onclick="switch1_case_cret_btn_savecnst_onclick"/>
  40. <Button id="btn_cnstmake" taborder="18" text="생성" class="btn2" position="absolute 751 101 793 123" onclick="switch1_case_cret_btn_cnstmake_onclick"/>
  41. <MaskEdit id="ipt_cnstfmterm" taborder="17" mask="##" class="input_default" position="absolute 674 102 720 121" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  42. <MaskEdit id="ipt_cnstfmtotm" taborder="16" mask="##:##" class="input_default" position="absolute 576 102 622 121" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  43. <MaskEdit id="ipt_cnstfmfromtm" taborder="15" mask="##:##" class="input_default" position="absolute 511 102 557 121" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  44. <MaskEdit id="ipt_cnstamterm" taborder="14" mask="##" class="input_default" position="absolute 674 78 720 97" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  45. <MaskEdit id="ipt_cnstamtotm" taborder="13" mask="##:##" class="input_default" position="absolute 576 78 622 97" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  46. <MaskEdit id="ipt_cnstamfromtm" taborder="12" mask="##:##" class="input_default" position="absolute 511 78 557 97" onkeyup="MaskEdit_onkeyup" autoselect="true" type="string"/>
  47. <Combo id="cmb_cnstdrid" taborder="11" innerdataset="@ds_init_cnst_drlst_itemdr" codecolumn="drid" datacolumn="drnm" class="combo_essential" position="absolute 704 29 792 48" onitemchanged="switch1_case_cret_cmb_cnstdrid_onitemchanged"/>
  48. <Calendar id="ipt_cnsttodd" taborder="10" class="input_essential" position="absolute 557 29 652 48" dateformat="yyyy-MM-dd" onkeyup="Calendar_onkeyup" autoselect="true"/>
  49. <Calendar id="ipt_cnstfromdd" taborder="9" class="input_essential" position="absolute 443 29 538 48" dateformat="yyyy-MM-dd" onkeyup="Calendar_onkeyup" autoselect="true"/>
  50. <CheckBox id="chx_tue" taborder="24" position="absolute 486 54 522 74" text="화" truevalue="2" onclick="CheckBox_onclick"/>
  51. <CheckBox id="chx_sat" taborder="28" position="absolute 658 54 694 74" text="토" truevalue="6" onclick="CheckBox_onclick"/>
  52. <Static id="caption20" text="스케줄내역" class="tit_2" position="absolute 395 133 493 149"/>
  53. <Shape id="line11" linetype="horizontal" class="line_10" position="absolute 395 23 793 29"/>
  54. <Static id="caption30" text="~" class="search_no_b" position="absolute 561 103 579 120"/>
  55. <Button id="btn_cnstclear" taborder="74" text="초기화" class="btn2" position="absolute 494 127 547 149" onclick="switch1_case_cret_btn_cnstclear_onclick"/>
  56. <Shape id="line10" linetype="horizontal" class="line_3" position="absolute 395 122 793 128"/>
  57. <Grid id="grd_cnstschlst" taborder="75" binddataset="ds_main_cnst_schlst_item" useinputpanel="false" position="absolute 395 154 793 700" anchor="left top bottom" autoenter="key" selecttype="multirow">
  58. <Formats>
  59. <Format id="default">
  60. <Columns>
  61. <Column size="25" band="left"/>
  62. <Column size="108"/>
  63. <Column size="49"/>
  64. <Column size="97"/>
  65. <Column size="95"/>
  66. </Columns>
  67. <Rows>
  68. <Row size="24" band="head"/>
  69. <Row size="24"/>
  70. </Rows>
  71. <Band id="head">
  72. <Cell/>
  73. <Cell col="1" text="일자"/>
  74. <Cell col="2" text="요일"/>
  75. <Cell col="3" text="시간"/>
  76. <Cell col="4" text="인원"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head"/>
  80. <Cell col="1" displaytype="date" edittype="date" text="bind:rsrvdd"/>
  81. <Cell col="2" text="bind:rsrvweek"/>
  82. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'" editautoselect="true"/>
  83. <Cell col="4" displaytype="number" edittype="masknumber" text="bind:psnnocnt" mask="999" editautoselect="true"/>
  84. </Band>
  85. </Format>
  86. </Formats>
  87. </Grid>
  88. <CheckBox id="chx_thu" taborder="26" position="absolute 572 54 608 74" text="목" truevalue="4" onclick="CheckBox_onclick"/>
  89. <Shape id="line8" linetype="horizontal" class="line_10" position="absolute 395 149 793 155"/>
  90. <Static id="caption39" text="명" class="search_no_b" position="absolute 970 55 988 72"/>
  91. <Static id="caption35" text="여" class="cell_1" position="absolute 154 76 180 99" style="padding:0 0 0 4;"/>
  92. <Shape id="line17" linetype="horizontal" class="line_2" position="absolute 0 72 387 78"/>
  93. <Shape id="line7" linetype="horizontal" class="line_3" position="absolute 800 74 1187 80" anchor="left top right"/>
  94. <Static id="caption34" text="인원" class="cell_1" position="absolute 801 52 862 75"/>
  95. <Button id="btn_roomalldel" taborder="77" text="전체삭제" class="btn2" position="absolute 1033 263 1097 285" anchor="top right" onclick="switch1_case_cret_btn_roomalldel_onclick"/>
  96. <CheckBox id="chx_totsunyn" taborder="78" visible="false" position="absolute 300 51 380 71" text="일요일제외" truevalue="Y" onclick="CheckBox_onclick"/>
  97. <CheckBox id="chx_totsatyn" taborder="79" position="absolute 295 30 375 50" text="토요일제외" truevalue="Y" onclick="CheckBox_onclick"/>
  98. <Static id="caption7" text="~" class="search_no_b" position="absolute 108 56 120 73"/>
  99. <Shape id="line21" linetype="horizontal" class="line_2" position="absolute 800 47 1187 53" anchor="left top right"/>
  100. <Static id="caption37" text="스케줄내역" class="tit_2" position="absolute 800 269 890 285"/>
  101. <Button id="btn_roomsave" taborder="80" text="스케줄 저장" class="btn5" position="absolute 1100 263 1186 285" anchor="top right" onclick="switch1_case_cret_btn_roomsave_onclick"/>
  102. <Button id="btn_roomdel" taborder="81" text="삭제" class="btn2" position="absolute 988 263 1030 285" anchor="top right" onclick="switch1_case_cret_btn_roomdel_onclick"/>
  103. <Button id="btn_roomadd" taborder="82" text="추가" class="btn2" position="absolute 943 263 985 285" anchor="top right" onclick="switch1_case_cret_btn_roomadd_onclick"/>
  104. <Button id="btn_roomclear" taborder="83" text="초기화" class="btn2" position="absolute 887 263 940 285" anchor="top right" onclick="switch1_case_cret_btn_roomclear_onclick"/>
  105. <Grid id="grd_roomlst" taborder="84" binddataset="ds_init_room_roomlst_itemroom" useinputpanel="false" position="absolute 800 78 1187 261" anchor="left top right" cellclickbound="cell" autoenter="key" oncelldblclick="switch1_case_cret_grd_roomlst_oncelldblclick">
  106. <Formats>
  107. <Format id="default">
  108. <Columns>
  109. <Column size="25" band="left"/>
  110. <Column size="32"/>
  111. <Column size="67"/>
  112. <Column size="186"/>
  113. <Column size="52"/>
  114. </Columns>
  115. <Rows>
  116. <Row size="24" band="head"/>
  117. <Row size="24"/>
  118. </Rows>
  119. <Band id="head">
  120. <Cell/>
  121. <Cell col="1" text="선택"/>
  122. <Cell col="2" text="검사실코드"/>
  123. <Cell col="3" text="검사실명"/>
  124. <Cell col="4" text="인원"/>
  125. </Band>
  126. <Band id="body">
  127. <Cell celltype="head" text="expr:currow+1"/>
  128. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel==&quot;Y&quot;||sel==1)?1:0"/>
  129. <Cell col="2" displaytype="text" text="bind:testroomcd"/>
  130. <Cell col="3" displaytype="text" text="bind:testroomnm"/>
  131. <Cell col="4" displaytype="number" edittype="masknumber" text="bind:cnt" editautoselect="true"/>
  132. </Band>
  133. </Format>
  134. </Formats>
  135. </Grid>
  136. <Button id="btn_roommake" taborder="22" text="생성" class="btn2" position="absolute 1145 53 1187 75" anchor="top right" onclick="switch1_case_cret_btn_roommake_onclick"/>
  137. <Edit id="ipt_roomcnt" taborder="21" class="input_default" position="absolute 864 54 964 73" onkeyup="Edit_onkeyup" autoselect="true" onkeydown="switch1_case_cret_ipt_roomcnt_onkeydown"/>
  138. <CheckBox id="chx_roomsunyn" taborder="87" visible="false" position="absolute 1050 55 1130 75" text="일요일제외" truevalue="Y" onclick="CheckBox_onclick"/>
  139. <CheckBox id="chx_roomsatyn" taborder="88" position="absolute 1095 30 1175 50" text="토요일제외" truevalue="Y" onclick="CheckBox_onclick"/>
  140. <Calendar id="ipt_roomtodd" taborder="20" class="input_essential" position="absolute 985 29 1085 48" dateformat="yyyy-MM-dd" onkeyup="Calendar_onkeyup" autoselect="true"/>
  141. <Calendar id="ipt_roomfromdd" taborder="19" class="input_essential" position="absolute 864 29 964 48" dateformat="yyyy-MM-dd" onkeyup="Calendar_onkeyup" autoselect="true"/>
  142. <Static id="caption33" text="~" class="search_no_b" position="absolute 970 31 982 48"/>
  143. <Static id="caption32" text="기간" class="cell_1" position="absolute 801 28 862 51"/>
  144. <Shape id="line20" class="line_10" position="absolute 800 23 1187 29" anchor="left top right"/>
  145. <Static id="caption36" text="검사실별 예약스케줄생성" class="tit_2" position="absolute 800 7 1026 24"/>
  146. <Shape id="line18" linetype="horizontal" class="line_3" position="absolute 800 258 1187 264"/>
  147. <Shape id="line16" linetype="horizontal" class="line_10" position="absolute 800 285 1187 291" anchor="left top right"/>
  148. <Grid id="grd_roomschlst" taborder="91" binddataset="ds_main_room_schlst_item" useinputpanel="false" position="absolute 800 290 1187 700" anchor="all" autoenter="key" selecttype="multirow">
  149. <Formats>
  150. <Format id="default">
  151. <Columns>
  152. <Column size="25" band="left"/>
  153. <Column size="85"/>
  154. <Column size="34"/>
  155. <Column size="170"/>
  156. <Column size="52"/>
  157. </Columns>
  158. <Rows>
  159. <Row size="24" band="head"/>
  160. <Row size="24"/>
  161. </Rows>
  162. <Band id="head">
  163. <Cell/>
  164. <Cell col="1" text="일자"/>
  165. <Cell col="2" text="요일"/>
  166. <Cell col="3" text="검사실"/>
  167. <Cell col="4" text="인원"/>
  168. </Band>
  169. <Band id="body">
  170. <Cell celltype="head"/>
  171. <Cell col="1" displaytype="date" edittype="date" text="bind:rsrvdd"/>
  172. <Cell col="2" text="bind:rsrvweek"/>
  173. <Cell col="3" displaytype="combo" edittype="combo" text="bind:testroomcd" combodataset="ds_init_room_roomlst_itemroom" combocodecol="testroomcd" combodatacol="testroomnm" enable="false"/>
  174. <Cell col="4" displaytype="number" edittype="masknumber" text="bind:psnnocnt" editautoselect="true"/>
  175. </Band>
  176. </Format>
  177. </Formats>
  178. </Grid>
  179. <Button id="btn_totsave" taborder="92" text="스케줄 저장" class="btn5" position="absolute 301 127 387 149" onclick="switch1_case_cret_btn_totsave_onclick"/>
  180. <Static id="caption12" text="남" class="cell_1" position="absolute 63 76 89 99" style="padding:0 0 0 4;"/>
  181. <Static id="caption11" text="명" class="search_no_b" position="absolute 224 79 242 96"/>
  182. <Shape id="line13" linetype="horizontal" class="line_10" position="absolute 0 149 387 155"/>
  183. <Static id="caption71" text="스케줄내역" class="tit_2" position="absolute 0 133 88 151"/>
  184. <Button id="btn_totalldel" taborder="93" text="전체삭제" class="btn2" position="absolute 234 127 298 149" onclick="switch1_case_cret_btn_totalldel_onclick"/>
  185. <Button id="btn_totdel" taborder="94" text="삭제" class="btn2" position="absolute 189 127 231 149" onclick="switch1_case_cret_btn_totdel_onclick"/>
  186. <Button id="btn_totadd" taborder="95" text="추가" class="btn2" position="absolute 144 127 186 149" onclick="switch1_case_cret_btn_totadd_onclick"/>
  187. <Button id="btn_totclear" taborder="96" text="초기화" class="btn2" position="absolute 88 127 141 149" onclick="switch1_case_cret_btn_totclear_onclick"/>
  188. <Shape id="line12" linetype="horizontal" class="line_2" position="absolute 0 48 387 54"/>
  189. <CheckBox id="chx_cnstam" taborder="98" position="absolute 443 77 468 97" onclick="switch1_case_cret_chx_cnstam_onclick"/>
  190. <CheckBox id="chx_cnstfm" taborder="99" position="absolute 443 102 469 122" onclick="switch1_case_cret_chx_cnstfm_onclick"/>
  191. <Grid id="grd_totalschlst" taborder="97" binddataset="ds_main_total_schlst_item" useinputpanel="false" position="absolute 0 154 387 700" anchor="left top bottom" autoenter="key" selecttype="multirow">
  192. <Formats>
  193. <Format id="default">
  194. <Columns>
  195. <Column size="25" band="left"/>
  196. <Column size="90"/>
  197. <Column size="35"/>
  198. <Column size="60"/>
  199. <Column size="50"/>
  200. <Column size="50"/>
  201. <Column size="50"/>
  202. </Columns>
  203. <Rows>
  204. <Row size="24" band="head"/>
  205. <Row size="24"/>
  206. </Rows>
  207. <Band id="head">
  208. <Cell/>
  209. <Cell col="1" text="일자"/>
  210. <Cell col="2" text="요일"/>
  211. <Cell col="3" text="시간"/>
  212. <Cell col="4" text="남자"/>
  213. <Cell col="5" text="여자"/>
  214. <Cell col="6" text="공통"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell celltype="head"/>
  218. <Cell col="1" displaytype="date" edittype="date" text="bind:rsrvdd"/>
  219. <Cell col="2" text="bind:rsrvweek"/>
  220. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'" editautoselect="true"/>
  221. <Cell col="4" displaytype="text" edittype="text" text="bind:psnnomancnt" editautoselect="true"/>
  222. <Cell col="5" displaytype="text" edittype="text" text="bind:psnnowomcnt" editautoselect="true"/>
  223. <Cell col="6" displaytype="text" edittype="text" text="bind:psnnocomcnt" editautoselect="true"/>
  224. </Band>
  225. </Format>
  226. </Formats>
  227. </Grid>
  228. <Static id="caption70" text="명" class="search_no_b" position="absolute 133 79 151 96"/>
  229. <Static id="caption45" text="인원" class="cell_1" position="absolute 0 76 61 99" style="padding:0 0 0 4;"/>
  230. <Static id="caption38" text="분" class="search_no_b" position="absolute 261 54 279 71"/>
  231. <Static id="caption31" text="기간" class="cell_1" position="absolute 0 28 61 51" style="padding:0 0 0 4;"/>
  232. <Static id="caption16" text="간격" class="cell_1" position="absolute 169 52 200 75" style="padding:0 0 0 4;"/>
  233. <Static id="caption14" text="건진전체예약스케쥴생성" class="tit_2" position="absolute 0 7 170 24"/>
  234. <Shape id="line6" linetype="horizontal" class="line_10" position="absolute 0 23 387 29"/>
  235. <Static id="caption13" text="~" class="search_no_b" position="absolute 169 32 181 49"/>
  236. <Static id="caption6" text="시간" class="cell_1" position="absolute 0 52 61 75" style="padding:0 0 0 4;"/>
  237. <Button id="btn_totalmake" taborder="8" text="생성" class="btn2" position="absolute 345 77 387 99" onclick="switch1_case_cret_btn_totalmake_onclick"/>
  238. <Edit id="ipt_totwomcnt" taborder="6" class="input_default" position="absolute 182 78 222 97" onkeyup="Edit_onkeyup" autoselect="true"/>
  239. <Edit id="ipt_totmancnt" taborder="5" class="input_default" position="absolute 91 78 131 97" onkeyup="Edit_onkeyup" autoselect="true"/>
  240. <Edit id="ipt_tottermtm" taborder="4" class="input_default" position="absolute 202 53 257 72" onkeyup="Edit_onkeyup" autoselect="true"/>
  241. <MaskEdit id="ipt_tottotm" taborder="3" mask="##:##" class="input_default" position="absolute 120 54 163 73" type="string" onkeyup="MaskEdit_onkeyup" autoselect="true"/>
  242. <MaskEdit id="ipt_totfromtm" taborder="2" mask="##:##" class="input_default" position="absolute 63 54 106 73" type="string" onkillfocus="switch1_case_cret_ipt_totfromtm_onkillfocus" onkeyup="MaskEdit_onkeyup" autoselect="true"/>
  243. <Calendar id="ipt_tottodd" taborder="1" class="input_essential" position="absolute 184 29 284 48" dateformat="yyyy-MM-dd" onkeyup="Calendar_onkeyup" autoselect="true" onchanged="switch1_case_cret_ipt_tottodd_onchanged"/>
  244. <Calendar id="ipt_totfromdd" taborder="0" class="input_essential" position="absolute 63 29 163 48" dateformat="yyyy-MM-dd" value="null" onkeyup="Calendar_onkeyup" autoselect="true"/>
  245. <Static id="caption28" text="상담의" class="cell_1" position="absolute 655 28 701 51" style="padding:0 0 0 4;"/>
  246. </Layout>
  247. </Layouts>
  248. </Tabpage>
  249. <Tabpage id="case_modify" text=" 예약일정수정/조회 ">
  250. <Layouts>
  251. <Layout>
  252. <Div id="group2" taborder="14" position="absolute 0 0 1188 40" class="div_SA2" anchor="left top right">
  253. <Layouts>
  254. <Layout>
  255. <Static id="caption3" text="조회구분 :" class="search_name" position="absolute 16 12 102 29" anchor="default"/>
  256. <Button id="btn_searchcnnst" taborder="6" text="조회" class="btn1" position="absolute 1115 9 1171 31" anchor="top right" onclick="switch1_case_modify_group2_btn_searchcnnst_onclick"/>
  257. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1097 9 1103 31" anchor="top right"/>
  258. <Static id="cap_cnstdr" text="상담의 :" class="search_name" visible="false" position="absolute 530 12 616 29" anchor="default"/>
  259. <Static id="cap_room" text="검사실 :" class="search_name" visible="false" position="absolute 530 12 605 29" anchor="default"/>
  260. <Combo id="cmb_srchroomcd" taborder="7" innerdataset="ds_init_cmb_srchroomcd" codecolumn="testroomcd" datacolumn="testroomnm" class="combo_search" visible="false" position="absolute 605 11 780 30" anchor="default" onitemchanged="switch1_case_modify_group2_cmb_srchroomcd_onitemchanged"/>
  261. <Radio id="rdo_srchcond2" taborder="8" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 105 12 510 28" anchor="default" onitemchanged="switch1_case_modify_group2_rdo_srchcond2_onitemchanged">
  262. <Dataset id="innerdataset">
  263. <ColumnInfo>
  264. <Column id="codecolumn"/>
  265. <Column id="datacolumn"/>
  266. </ColumnInfo>
  267. <Rows>
  268. <Row>
  269. <Col id="codecolumn">T</Col>
  270. <Col id="datacolumn">건진전체일정</Col>
  271. </Row>
  272. <Row>
  273. <Col id="codecolumn">C</Col>
  274. <Col id="datacolumn">상담예약일정</Col>
  275. </Row>
  276. <Row>
  277. <Col id="codecolumn">R</Col>
  278. <Col id="datacolumn">검사실예약인원</Col>
  279. </Row>
  280. </Rows>
  281. </Dataset>
  282. </Radio>
  283. <Combo id="cmb_srchcnstdrid" taborder="9" innerdataset="ds_init_cmb_srchcnstdrid" codecolumn="drid" datacolumn="drnm" class="combo_search" visible="false" position="absolute 605 11 745 30" anchor="default" onitemchanged="switch1_case_modify_group2_cmb_srchcnstdrid_onitemchanged"/>
  284. <CheckBox id="chk_srchallroom" taborder="10" class="checkbox_search" position="absolute 785 11 885 31" anchor="default" text="전체검사실" truevalue="Y" onclick="CheckBox_onclick"/>
  285. </Layout>
  286. </Layouts>
  287. </Div>
  288. <Static id="caption17" text="예약내역" class="tit_2" position="absolute 0 48 110 65"/>
  289. <Shape id="line9" linetype="horizontal" class="line_10" position="absolute 0 64 532 70"/>
  290. <Shape id="line15" linetype="horizontal" class="line_2" position="absolute 5 379 532 385"/>
  291. <Grid id="grd_rsrvtmlst" binddataset="ds_main_schedule_rsrvtmlst_item" useinputpanel="false" position="absolute 537 69 1188 380" anchor="left top right" autoenter="key" selecttype="multirow" taborder="16">
  292. <Formats>
  293. <Format id="default">
  294. <Columns>
  295. <Column size="25" band="left"/>
  296. <Column size="50"/>
  297. <Column size="120"/>
  298. <Column size="90"/>
  299. <Column size="90"/>
  300. <Column size="90"/>
  301. <Column size="90"/>
  302. <Column size="90"/>
  303. <Column size="90"/>
  304. <Column size="90"/>
  305. <Column size="90"/>
  306. </Columns>
  307. <Rows>
  308. <Row size="30" band="head"/>
  309. <Row size="24"/>
  310. </Rows>
  311. <Band id="head">
  312. <Cell/>
  313. <Cell col="1" text="시간" wordwrap="char"/>
  314. <Cell col="2" text="검사실코드" wordwrap="char"/>
  315. <Cell col="3" text="예약가능&#13;&#10;인원(남)" wordwrap="char"/>
  316. <Cell col="4" text="예약인원(남)" wordwrap="char"/>
  317. <Cell col="5" text="예약가능&#13;&#10;인원(여)" wordwrap="char"/>
  318. <Cell col="6" text="예약인원(여)" wordwrap="char"/>
  319. <Cell col="7" text="예약가능인원" wordwrap="char"/>
  320. <Cell col="8" text="예약인원" wordwrap="char"/>
  321. <Cell col="9" text="예약가능&#13;&#10;인원(공통)" wordwrap="char"/>
  322. <Cell col="10" text="예약인원(공통)" wordwrap="char"/>
  323. </Band>
  324. <Band id="body">
  325. <Cell celltype="head"/>
  326. <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'"/>
  327. <Cell col="2" displaytype="combo" edittype="combo" text="bind:testroomcd" combodataset="ds_init_room_roomlst_itemroom" combocodecol="testroomcd" combodatacol="testroomnm" enable="false"/>
  328. <Cell col="3" displaytype="number" edittype="masknumber" text="bind:psnnomancnt"/>
  329. <Cell col="4" displaytype="number" text="bind:rsrvpsnnomancnt"/>
  330. <Cell col="5" displaytype="number" edittype="masknumber" text="bind:psnnowomcnt"/>
  331. <Cell col="6" displaytype="number" text="bind:rsrvpsnnowomcnt"/>
  332. <Cell col="7" displaytype="number" edittype="masknumber" text="bind:psnnocnt"/>
  333. <Cell col="8" displaytype="number" text="bind:rsrvpsnnocnt"/>
  334. <Cell col="9" displaytype="number" text="bind:psnnocomcnt"/>
  335. <Cell col="10" displaytype="number" text="bind:rsrvpsnnocomcnt"/>
  336. </Band>
  337. </Format>
  338. </Formats>
  339. </Grid>
  340. <Grid id="grd_rsrvpatlst" taborder="17" binddataset="ds_main_schedule_rsrvacptlst_item" useinputpanel="false" position="absolute 0 452 1188 700" anchor="all">
  341. <Formats>
  342. <Format id="default">
  343. <Columns>
  344. <Column size="25" band="left"/>
  345. <Column size="93"/>
  346. <Column size="80"/>
  347. <Column size="127"/>
  348. <Column size="78"/>
  349. <Column size="181"/>
  350. <Column size="100"/>
  351. <Column size="161"/>
  352. <Column size="0"/>
  353. </Columns>
  354. <Rows>
  355. <Row size="24" band="head"/>
  356. <Row size="24"/>
  357. </Rows>
  358. <Band id="head">
  359. <Cell/>
  360. <Cell col="1" text="환자명"/>
  361. <Cell col="2" text="등록번호"/>
  362. <Cell col="3" text="주민번호"/>
  363. <Cell col="4" text="예약시간"/>
  364. <Cell col="5" text="건진명"/>
  365. <Cell col="6" text="최종수정자"/>
  366. <Cell col="7" text="최종수정일시"/>
  367. <Cell col="8"/>
  368. </Band>
  369. <Band id="body">
  370. <Cell celltype="head" text="expr:currow+1"/>
  371. <Cell col="1" displaytype="text" text="bind:hngnm"/>
  372. <Cell col="2" text="bind:pid"/>
  373. <Cell col="3" text="bind:rgstno"/>
  374. <Cell col="4" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) ? '' : '##:##'"/>
  375. <Cell col="5" displaytype="text" text="bind:pkgnm"/>
  376. <Cell col="6" text="bind:lastupdtrid"/>
  377. <Cell col="7" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  378. <Cell col="8" text="bind:rsrvdd"/>
  379. </Band>
  380. </Format>
  381. </Formats>
  382. </Grid>
  383. <Button id="btn_modify" taborder="18" text="저장" class="btn5" position="absolute 1146 42 1188 64" anchor="top right" onclick="switch1_case_modify_btn_modify_onclick"/>
  384. <Button id="btn_tmdel" taborder="19" text="선택행삭제" class="btn2" position="absolute 1068 42 1143 64" anchor="top right" onclick="switch1_case_modify_btn_tmdel_onclick"/>
  385. <Button id="btn_tmadd" taborder="20" text="행추가" class="btn2" position="absolute 1012 42 1065 64" anchor="top right" onclick="switch1_case_modify_btn_tmadd_onclick"/>
  386. <Shape id="line22" linetype="horizontal" class="line_10" position="absolute 537 64 1188 70" anchor="left top right"/>
  387. <Static id="caption40" text="시간대별인원" class="tit_2" position="absolute 537 48 696 65"/>
  388. <Shape id="line23" linetype="horizontal" class="line_2" position="absolute 537 379 1186 385" anchor="left top right"/>
  389. <Button id="btn_scheduletmclear" taborder="22" text="초기화" class="btn2" position="absolute 956 42 1009 64" anchor="top right" onclick="switch1_case_modify_btn_scheduletmclear_onclick"/>
  390. <Static id="caption1" text="일자별 비고" class="tit_2" position="absolute 0 390 159 407"/>
  391. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 406 1188 412" anchor="left top right"/>
  392. <TextArea id="tar_remcnts" taborder="23" position="absolute 0 411 1188 451" anchor="left top right"/>
  393. <Button id="button2" taborder="24" text="저장" class="btn5" position="absolute 1146 384 1188 406" anchor="top right" onclick="switch1_case_modify_button2_onclick"/>
  394. <Button id="btn_srch_dayb" taborder="25" text="조회" class="btn2" position="absolute 1102 384 1144 406" anchor="top right" onclick="switch1_case_modify_btn_srch_dayb_onclick"/>
  395. <Calendar id="ipt_remdd" taborder="26" position="absolute 100 387 200 406" onchanged="switch1_case_modify_ipt_remdd_onchanged"/>
  396. <Grid id="grd_calendar" class="gridcalendar" taborder="27" binddataset="ds_temp_calendar_weeklist_list" useinputpanel="false" selecttype="cell" autofittype="col,allrow" position="absolute 0 109 532 380" oncellclick="switch1_case_modify_grd_calendar_oncellclick">
  397. <Formats>
  398. <Format id="default">
  399. <Columns>
  400. <Column size="40"/>
  401. <Column size="40"/>
  402. <Column size="40"/>
  403. <Column size="40"/>
  404. <Column size="40"/>
  405. <Column size="40"/>
  406. <Column size="40"/>
  407. </Columns>
  408. <Rows>
  409. <Row size="24" band="head"/>
  410. <Row size="24"/>
  411. <Row size="24"/>
  412. </Rows>
  413. <Band id="head">
  414. <Cell text="일"/>
  415. <Cell col="1" text="월"/>
  416. <Cell col="2" text="화"/>
  417. <Cell col="3" text="수"/>
  418. <Cell col="4" text="목"/>
  419. <Cell col="5" text="금"/>
  420. <Cell col="6" text="토"/>
  421. </Band>
  422. <Band id="body">
  423. <Cell rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  424. <Cell style="background:#ffffffff;background2:#ffffffff;color:red;color2:red;selectbackground:#daa7d9ff;" text="bind:sun" taborder="undefined"/>
  425. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;color:red;color2:red;selectbackground:#daa7d9ff;" text="bind:sun_memo" taborder="undefined"/>
  426. </Cell>
  427. <Cell col="1" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  428. <Cell style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:mon" taborder="undefined"/>
  429. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:mon_memo" taborder="undefined"/>
  430. </Cell>
  431. <Cell col="2" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  432. <Cell style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:tue" taborder="undefined"/>
  433. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:tue_memo" taborder="undefined"/>
  434. </Cell>
  435. <Cell col="3" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  436. <Cell style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:wed" taborder="undefined"/>
  437. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:wed_memo" taborder="undefined"/>
  438. </Cell>
  439. <Cell col="4" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  440. <Cell style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:thu" taborder="undefined"/>
  441. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:thu_memo" taborder="undefined"/>
  442. </Cell>
  443. <Cell col="5" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  444. <Cell style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:fri" taborder="undefined"/>
  445. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" text="bind:fri_memo" taborder="undefined"/>
  446. </Cell>
  447. <Cell col="6" rowspan="2" style="background:#ffffffff;background2:#ffffffff;selectbackground:#daa7d9ff;" taborder="undefined">
  448. <Cell style="background:#ffffffff;background2:#ffffffff;color:blue;color2:blue;selectbackground:#daa7d9ff;" text="bind:sat" taborder="undefined"/>
  449. <Cell row="1" style="background:#ffffffff;background2:#ffffffff;color:blue;color2:blue;selectbackground:#daa7d9ff;" text="bind:sat_memo" taborder="undefined"/>
  450. </Cell>
  451. </Band>
  452. </Format>
  453. </Formats>
  454. </Grid>
  455. <Shape id="rectangle1" type="rectangle" class="calendar_header" position="absolute 0 69 532 109" style="strokepen:1 solid transparent;fillbrush:solid darkslateblue true;fillgradation:linear 0,0 white 100,100 darkmagenta;border:1 solid black ;gradation:linear 0,0 white 100,100 black;"/>
  456. <Div id="grp_calendar" taborder="28" position="absolute 1 70 532 108">
  457. <Layouts>
  458. <Layout>
  459. <Button id="btn_nextyear" taborder="1" class="icon_next_year" position="absolute 340 12 356 28" anchor="default" onclick="switch1_case_modify_grp_calendar_btn_nextyear_onclick"/>
  460. <Button id="btn_premonth" taborder="2" class="icon_pre_month" position="absolute 175 12 191 28" anchor="default" onclick="switch1_case_modify_grp_calendar_btn_premonth_onclick"/>
  461. <Button id="btn_nextmonth" taborder="3" class="icon_next_month" position="absolute 321 12 337 28" anchor="default" onclick="switch1_case_modify_grp_calendar_btn_nextmonth_onclick"/>
  462. <Edit id="opt_year" taborder="4" readonly="true" class="calendar_output" position="absolute 202 9 240 28" anchor="default"/>
  463. <Edit id="opt_month" taborder="5" readonly="true" class="calendar_output" position="absolute 260 9 290 28" anchor="default"/>
  464. <Static id="caption2" text="년" class="calendar_output" position="absolute 240 9 260 28" anchor="default"/>
  465. <Static id="caption8" text="월" class="calendar_output" position="absolute 290 9 310 28" anchor="default"/>
  466. <Button id="btn_preyear" taborder="6" class="icon_pre_year" position="absolute 157 12 173 28" anchor="default" onclick="switch1_case_modify_grp_calendar_btn_preyear_onclick"/>
  467. </Layout>
  468. </Layouts>
  469. </Div>
  470. </Layout>
  471. </Layouts>
  472. </Tabpage>
  473. </Tabpages>
  474. </Tab>
  475. <Div id="grp_btn" taborder="3" position="absolute 0 753 1188 780" anchor="left right bottom" visible="false">
  476. <Layouts>
  477. <Layout>
  478. <Button id="button26" taborder="4" text="화면이동" class="btn3" position="absolute 59 5 139 27" anchor="default"/>
  479. <Button id="btn_print" taborder="5" text="출력" class="btn6" position="absolute 0 5 56 27" anchor="default"/>
  480. <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1132 5 1188 27" anchor="right"/>
  481. </Layout>
  482. </Layouts>
  483. </Div>
  484. <Static id="caption19" text="예약일정관리" class="tit_1" position="absolute 0 0 120 25"/>
  485. <Combo id="cmb_healexamdetlflag" taborder="2" innerdataset="@ds_init_baseinfo_healexamdetlflag" codecolumn="cdid" datacolumn="cdnm" class="combo_default" visible="false" position="absolute 359 30 469 49" onitemchanged="cmb_healexamdetlflag_onitemchanged"/>
  486. <Static id="caption2" text="건진구분 :" class="search_name" visible="false" position="absolute 280 33 366 50"/>
  487. </Layout>
  488. </Layouts>
  489. <Objects>
  490. <Dataset id="ds_send_save_saveroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  491. <Dataset id="ds_send_save_savecnst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  492. <Dataset id="ds_send_save_savetotal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  493. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  494. <ColumnInfo>
  495. <Column id="instcd" type="STRING" size="256"/>
  496. <Column id="healexamflag" type="STRING" size="256"/>
  497. <Column id="mode" type="STRING" size="256"/>
  498. <Column id="rsrvdd" type="STRING" size="256"/>
  499. <Column id="cnstdrid" type="STRING" size="256"/>
  500. <Column id="roomcd" type="STRING" size="256"/>
  501. <Column id="healexamdetlflag" type="STRING" size="256"/>
  502. </ColumnInfo>
  503. <Rows>
  504. <Row>
  505. <Col id="instcd"/>
  506. <Col id="healexamflag"/>
  507. <Col id="mode"/>
  508. <Col id="rsrvdd"/>
  509. <Col id="cnstdrid"/>
  510. <Col id="roomcd"/>
  511. <Col id="healexamdetlflag"/>
  512. </Row>
  513. </Rows>
  514. </Dataset>
  515. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  516. <ColumnInfo>
  517. <Column id="hidden" type="STRING" size="256"/>
  518. </ColumnInfo>
  519. <Rows>
  520. <Row>
  521. <Col id="hidden"/>
  522. </Row>
  523. </Rows>
  524. </Dataset>
  525. <Dataset id="ds_main_cnst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_cnst_oncolumnchanged">
  526. <ColumnInfo>
  527. <Column id="fromdd" type="STRING" size="256"/>
  528. <Column id="todd" type="STRING" size="256"/>
  529. <Column id="amfromtm" type="STRING" size="256"/>
  530. <Column id="amtotm" type="STRING" size="256"/>
  531. <Column id="amterm" type="STRING" size="256"/>
  532. <Column id="fmfromtm" type="STRING" size="256"/>
  533. <Column id="fmtotm" type="STRING" size="256"/>
  534. <Column id="fmterm" type="STRING" size="256"/>
  535. <Column id="cnstdrid" type="STRING" size="256"/>
  536. <Column id="srchcnstdrid" type="STRING" size="256"/>
  537. </ColumnInfo>
  538. <Rows>
  539. <Row>
  540. <Col id="fromdd"/>
  541. <Col id="todd"/>
  542. <Col id="amfromtm"/>
  543. <Col id="amtotm"/>
  544. <Col id="amterm"/>
  545. <Col id="fmfromtm"/>
  546. <Col id="fmtotm"/>
  547. <Col id="fmterm"/>
  548. <Col id="cnstdrid"/>
  549. <Col id="srchcnstdrid"/>
  550. </Row>
  551. </Rows>
  552. </Dataset>
  553. <Dataset id="ds_main_cnst_schlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  554. <ColumnInfo>
  555. <Column id="rsrvdd" type="STRING" size="256"/>
  556. <Column id="rsrvweek" type="STRING" size="256"/>
  557. <Column id="rsrvtm" type="STRING" size="256"/>
  558. <Column id="psnnocnt" type="STRING" size="256"/>
  559. </ColumnInfo>
  560. <Rows>
  561. <Row>
  562. <Col id="rsrvdd"/>
  563. <Col id="rsrvweek"/>
  564. <Col id="rsrvtm"/>
  565. <Col id="psnnocnt"/>
  566. </Row>
  567. </Rows>
  568. </Dataset>
  569. <Dataset id="ds_main_total_schlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_total_schlst_item_oncolumnchanged">
  570. <ColumnInfo>
  571. <Column id="rsrvdd" type="STRING" size="256"/>
  572. <Column id="rsrvweek" type="STRING" size="256"/>
  573. <Column id="rsrvtm" type="STRING" size="256"/>
  574. <Column id="psnnomancnt" type="STRING" size="256"/>
  575. <Column id="psnnowomcnt" type="STRING" size="256"/>
  576. <Column id="psnnocomcnt" type="STRING" size="256"/>
  577. <Column id="rsrvpsnnomancnt" type="STRING" size="256"/>
  578. <Column id="rsrvpsnnowomcnt" type="STRING" size="256"/>
  579. <Column id="rsrvpsnnocomcnt" type="STRING" size="256"/>
  580. </ColumnInfo>
  581. <Rows>
  582. <Row>
  583. <Col id="rsrvdd"/>
  584. <Col id="rsrvweek"/>
  585. <Col id="rsrvtm"/>
  586. <Col id="psnnomancnt"/>
  587. <Col id="psnnowomcnt"/>
  588. <Col id="psnnocomcnt"/>
  589. <Col id="rsrvpsnnomancnt"/>
  590. <Col id="rsrvpsnnowomcnt"/>
  591. <Col id="rsrvpsnnocomcnt"/>
  592. </Row>
  593. </Rows>
  594. </Dataset>
  595. <Dataset id="ds_main_total" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_total_oncolumnchanged">
  596. <ColumnInfo>
  597. <Column id="fromdd" type="STRING" size="256"/>
  598. <Column id="todd" type="STRING" size="256"/>
  599. <Column id="fromtm" type="STRING" size="256"/>
  600. <Column id="totm" type="STRING" size="256"/>
  601. <Column id="termtm" type="STRING" size="256"/>
  602. <Column id="mancnt" type="STRING" size="256"/>
  603. <Column id="womcnt" type="STRING" size="256"/>
  604. <Column id="comcnt" type="STRING" size="256"/>
  605. <Column id="satyn" type="STRING" size="256"/>
  606. <Column id="sunyn" type="STRING" size="256"/>
  607. </ColumnInfo>
  608. <Rows>
  609. <Row>
  610. <Col id="fromdd"/>
  611. <Col id="todd"/>
  612. <Col id="fromtm"/>
  613. <Col id="totm"/>
  614. <Col id="termtm"/>
  615. <Col id="mancnt"/>
  616. <Col id="womcnt"/>
  617. <Col id="comcnt"/>
  618. </Row>
  619. </Rows>
  620. </Dataset>
  621. <Dataset id="ds_temp_templst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  622. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  623. <ColumnInfo>
  624. <Column id="holiday" type="STRING" size="256"/>
  625. </ColumnInfo>
  626. </Dataset>
  627. <Dataset id="ds_init_room_roomlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  628. <ColumnInfo/>
  629. </Dataset>
  630. <Dataset id="ds_init_baseinfo_healexamdetlflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  631. <Dataset id="ds_init_room_roomlst_itemroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_init_room_roomlst_itemroom_oncolumnchanged">
  632. <ColumnInfo>
  633. <Column id="sel" type="STRING" size="256"/>
  634. <Column id="testroomcd" type="STRING" size="256"/>
  635. <Column id="testroomnm" type="STRING" size="256"/>
  636. <Column id="cnt" type="STRING" size="256"/>
  637. <Column id="rsrvyn" type="STRING" size="256"/>
  638. </ColumnInfo>
  639. <Rows>
  640. <Row>
  641. <Col id="sel"/>
  642. <Col id="testroomcd"/>
  643. <Col id="testroomnm"/>
  644. <Col id="cnt"/>
  645. <Col id="rsrvyn"/>
  646. </Row>
  647. </Rows>
  648. </Dataset>
  649. <Dataset id="ds_send_partchngroomcode_chnglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  650. <Dataset id="ds_send_partchngroomcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  651. <ColumnInfo>
  652. <Column id="healexamflag" type="STRING" size="256"/>
  653. <Column id="healexamdetlflag" type="STRING" size="256"/>
  654. <Column id="fromdd" type="STRING" size="256"/>
  655. <Column id="todd" type="STRING" size="256"/>
  656. </ColumnInfo>
  657. <Rows>
  658. <Row>
  659. <Col id="healexamflag"/>
  660. <Col id="healexamdetlflag"/>
  661. <Col id="fromdd"/>
  662. <Col id="todd"/>
  663. </Row>
  664. </Rows>
  665. </Dataset>
  666. <Dataset id="ds_main_schedule_rsrvtmlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  667. <ColumnInfo>
  668. <Column id="rsrvtm" type="STRING" size="256"/>
  669. <Column id="testroomcd" type="STRING" size="256"/>
  670. <Column id="psnnomancnt" type="STRING" size="256"/>
  671. <Column id="rsrvpsnnomancnt" type="STRING" size="256"/>
  672. <Column id="psnnowomcnt" type="STRING" size="256"/>
  673. <Column id="rsrvpsnnowomcnt" type="STRING" size="256"/>
  674. <Column id="psnnocnt" type="STRING" size="256"/>
  675. <Column id="rsrvpsnnocnt" type="STRING" size="256"/>
  676. </ColumnInfo>
  677. <Rows>
  678. <Row>
  679. <Col id="rsrvtm"/>
  680. <Col id="testroomcd"/>
  681. <Col id="psnnomancnt"/>
  682. <Col id="rsrvpsnnomancnt"/>
  683. <Col id="psnnowomcnt"/>
  684. <Col id="rsrvpsnnowomcnt"/>
  685. <Col id="psnnocnt"/>
  686. <Col id="rsrvpsnnocnt"/>
  687. </Row>
  688. </Rows>
  689. </Dataset>
  690. <Dataset id="ds_temp_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  691. <ColumnInfo>
  692. <Column id="year" type="STRING" size="256"/>
  693. <Column id="month" type="STRING" size="256"/>
  694. </ColumnInfo>
  695. <Rows>
  696. <Row>
  697. <Col id="year"/>
  698. <Col id="month"/>
  699. </Row>
  700. </Rows>
  701. </Dataset>
  702. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  703. <ColumnInfo/>
  704. </Dataset>
  705. <Dataset id="ds_main_cnst_week" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  706. <ColumnInfo>
  707. <Column id="monyn" type="STRING" size="256"/>
  708. <Column id="tueyn" type="STRING" size="256"/>
  709. <Column id="wedyn" type="STRING" size="256"/>
  710. <Column id="thuyn" type="STRING" size="256"/>
  711. <Column id="friyn" type="STRING" size="256"/>
  712. <Column id="satyn" type="STRING" size="256"/>
  713. </ColumnInfo>
  714. <Rows>
  715. <Row>
  716. <Col id="monyn">1</Col>
  717. <Col id="tueyn">2</Col>
  718. <Col id="wedyn">3</Col>
  719. <Col id="thuyn">4</Col>
  720. <Col id="friyn">5</Col>
  721. <Col id="satyn"/>
  722. </Row>
  723. </Rows>
  724. </Dataset>
  725. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  726. <ColumnInfo/>
  727. </Dataset>
  728. <Dataset id="ds_main_roomschedule_roomschlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  729. <ColumnInfo>
  730. <Column id="rsrvdd" type="STRING" size="256"/>
  731. <Column id="rsrvweek" type="STRING" size="256"/>
  732. <Column id="totalcnt" type="STRING" size="256"/>
  733. <Column id="rsrvcnt" type="STRING" size="256"/>
  734. <Column id="acptcnt" type="STRING" size="256"/>
  735. <Column id="cnclcnt" type="STRING" size="256"/>
  736. <Column id="holdcnt" type="STRING" size="256"/>
  737. <Column id="remcnts" type="STRING" size="256"/>
  738. <Column id="todaychoicnt" type="STRING" size="256"/>
  739. <Column id="roomcd" type="STRING" size="256"/>
  740. <Column id="roomcnt" type="STRING" size="256"/>
  741. </ColumnInfo>
  742. <Rows>
  743. <Row>
  744. <Col id="rsrvdd"/>
  745. <Col id="rsrvweek"/>
  746. <Col id="totalcnt"/>
  747. <Col id="rsrvcnt"/>
  748. <Col id="acptcnt"/>
  749. <Col id="cnclcnt"/>
  750. <Col id="holdcnt"/>
  751. <Col id="remcnts"/>
  752. <Col id="todaychoicnt"/>
  753. <Col id="roomcd"/>
  754. <Col id="roomcnt"/>
  755. </Row>
  756. </Rows>
  757. </Dataset>
  758. <Dataset id="ds_init_cnst_drlst_itemdr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  759. <ColumnInfo>
  760. <Column id="drid" type="STRING" size="256"/>
  761. <Column id="drnm" type="STRING" size="256"/>
  762. </ColumnInfo>
  763. <Rows>
  764. <Row>
  765. <Col id="drid"/>
  766. <Col id="drnm"/>
  767. </Row>
  768. </Rows>
  769. </Dataset>
  770. <Dataset id="ds_init_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  771. <ColumnInfo/>
  772. </Dataset>
  773. <Dataset id="ds_main_schedule_rsrvacptlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  774. <ColumnInfo>
  775. <Column id="hngnm" type="STRING" size="256"/>
  776. <Column id="pid" type="STRING" size="256"/>
  777. <Column id="rgstno" type="STRING" size="256"/>
  778. <Column id="rsrvtm" type="STRING" size="256"/>
  779. <Column id="pkgnm" type="STRING" size="256"/>
  780. <Column id="lastupdtrid" type="STRING" size="256"/>
  781. <Column id="lastupdtdt" type="STRING" size="256"/>
  782. <Column id="statfg" type="STRING" size="256"/>
  783. <Column id="rsrvdd" type="STRING" size="256"/>
  784. </ColumnInfo>
  785. <Rows>
  786. <Row>
  787. <Col id="hngnm"/>
  788. <Col id="pid"/>
  789. <Col id="rgstno"/>
  790. <Col id="rsrvtm"/>
  791. <Col id="pkgnm"/>
  792. <Col id="lastupdtrid"/>
  793. <Col id="lastupdtdt"/>
  794. <Col id="statfg"/>
  795. <Col id="rsrvdd"/>
  796. </Row>
  797. </Rows>
  798. </Dataset>
  799. <Dataset id="ds_main_dayblist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  800. <ColumnInfo>
  801. <Column id="remdd" type="STRING" size="256"/>
  802. <Column id="remcnts" type="STRING" size="256"/>
  803. <Column id="instcd" type="STRING" size="256"/>
  804. </ColumnInfo>
  805. <Rows>
  806. <Row>
  807. <Col id="remdd"/>
  808. <Col id="remcnts"/>
  809. <Col id="instcd"/>
  810. </Row>
  811. </Rows>
  812. </Dataset>
  813. <Dataset id="ds_temp_calendar_weeklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  814. <ColumnInfo/>
  815. </Dataset>
  816. <Dataset id="ds_main_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_room_oncolumnchanged">
  817. <ColumnInfo>
  818. <Column id="fromdd" type="STRING" size="256"/>
  819. <Column id="todd" type="STRING" size="256"/>
  820. <Column id="cnt" type="STRING" size="256"/>
  821. <Column id="satyn" type="STRING" size="256"/>
  822. <Column id="sunyn" type="STRING" size="256"/>
  823. </ColumnInfo>
  824. <Rows>
  825. <Row>
  826. <Col id="fromdd"/>
  827. <Col id="todd"/>
  828. <Col id="cnt"/>
  829. <Col id="satyn"/>
  830. <Col id="sunyn"/>
  831. </Row>
  832. </Rows>
  833. </Dataset>
  834. <Dataset id="ds_temp_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  835. <ColumnInfo>
  836. <Column id="sun" type="STRING" size="256"/>
  837. <Column id="mon" type="STRING" size="256"/>
  838. <Column id="tue" type="STRING" size="256"/>
  839. <Column id="wed" type="STRING" size="256"/>
  840. <Column id="thu" type="STRING" size="256"/>
  841. <Column id="fri" type="STRING" size="256"/>
  842. <Column id="sat" type="STRING" size="256"/>
  843. <Column id="sun_memo" type="STRING" size="256"/>
  844. <Column id="mon_memo" type="STRING" size="256"/>
  845. <Column id="tue_memo" type="STRING" size="256"/>
  846. <Column id="wed_memo" type="STRING" size="256"/>
  847. <Column id="thu_memo" type="STRING" size="256"/>
  848. <Column id="fri_memo" type="STRING" size="256"/>
  849. <Column id="sat_memo" type="STRING" size="256"/>
  850. </ColumnInfo>
  851. </Dataset>
  852. <Dataset id="ds_main_schedule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  853. <ColumnInfo>
  854. <Column id="srchcnstdrid" type="STRING" size="256"/>
  855. <Column id="srchroomcd" type="STRING" size="256"/>
  856. </ColumnInfo>
  857. <Rows>
  858. <Row>
  859. <Col id="srchcnstdrid"/>
  860. <Col id="srchroomcd"/>
  861. </Row>
  862. </Rows>
  863. </Dataset>
  864. <Dataset id="ds_main_roomschedule_roomschlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  865. <ColumnInfo/>
  866. </Dataset>
  867. <Dataset id="ds_main_room_schlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_room_schlst_item_oncolumnchanged">
  868. <ColumnInfo>
  869. <Column id="rsrvdd" type="STRING" size="256"/>
  870. <Column id="rsrvweek" type="STRING" size="256"/>
  871. <Column id="testroomcd" type="STRING" size="256"/>
  872. <Column id="psnnocnt" type="STRING" size="256"/>
  873. </ColumnInfo>
  874. <Rows>
  875. <Row>
  876. <Col id="rsrvdd"/>
  877. <Col id="rsrvweek"/>
  878. <Col id="testroomcd"/>
  879. <Col id="psnnocnt"/>
  880. </Row>
  881. </Rows>
  882. </Dataset>
  883. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  884. <ColumnInfo>
  885. <Column id="srchinstcd" type="STRING" size="256"/>
  886. <Column id="srchhealexamflag" type="STRING" size="256"/>
  887. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  888. <Column id="srchroomcd" type="STRING" size="256"/>
  889. <Column id="srchcnstdrid" type="STRING" size="256"/>
  890. <Column id="srchfromdd" type="STRING" size="256"/>
  891. <Column id="srchtodd" type="STRING" size="256"/>
  892. <Column id="srchcond" type="STRING" size="256"/>
  893. <Column id="srchcond" type="STRING" size="256"/>
  894. <Column id="srchcond2" type="STRING" size="256"/>
  895. <Column id="srchrsrvmon" type="STRING" size="256"/>
  896. <Column id="srchrsrvdd" type="STRING" size="256"/>
  897. <Column id="srchallroomyn" type="STRING" size="256"/>
  898. <Column id="srchrsrvflag" type="STRING" size="256"/>
  899. <Column id="srchhopedd" type="STRING" size="256"/>
  900. <Column id="srchstatfg" type="STRING" size="256"/>
  901. <Column id="srchrsrvyn" type="STRING" size="256"/>
  902. <Column id="srchrsltcnstrsrvdd" type="STRING" size="256"/>
  903. <Column id="srchdateyn" type="STRING" size="256"/>
  904. <Column id="daylist" type="STRING" size="256"/>
  905. </ColumnInfo>
  906. <Rows>
  907. <Row>
  908. <Col id="srchinstcd"/>
  909. <Col id="srchhealexamflag"/>
  910. <Col id="srchhealexamdetlflag"/>
  911. <Col id="srchroomcd"/>
  912. <Col id="srchcnstdrid"/>
  913. <Col id="srchfromdd"/>
  914. <Col id="srchtodd"/>
  915. <Col id="srchcond"/>
  916. <Col id="daylist"/>
  917. </Row>
  918. </Rows>
  919. </Dataset>
  920. <Dataset id="ds_main_roomschedule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  921. <ColumnInfo>
  922. <Column id="inqfromdd" type="STRING" size="256"/>
  923. <Column id="inqtodd" type="STRING" size="256"/>
  924. </ColumnInfo>
  925. </Dataset>
  926. <Dataset id="ds_init_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  927. <Dataset id="ds_init_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  928. <Dataset id="ds_temp_schlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  929. <Dataset id="ds_temp_templst_rsrvddlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  930. <Dataset id="ds_temp_templst_rsrvtmlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  931. <Dataset id="ds_temp_holiday_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  932. <Dataset id="ds_temp_srchdel_srchrow" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  933. <Dataset id="ds_hidden_savetotal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  934. <Dataset id="ds_hidden_saveroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  935. <Dataset id="ds_hidden_savecnst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  936. </Objects>
  937. <Bind>
  938. <BindItem id="item0" compid="switch1.case_cret.ipt_totfromdd" propid="value" datasetid="ds_main_total" columnid="fromdd"/>
  939. <BindItem id="item1" compid="switch1.case_cret.ipt_tottodd" propid="value" datasetid="ds_main_total" columnid="todd"/>
  940. <BindItem id="item2" compid="switch1.case_cret.ipt_totfromtm" propid="value" datasetid="ds_main_total" columnid="fromtm"/>
  941. <BindItem id="item3" compid="switch1.case_cret.ipt_tottotm" propid="value" datasetid="ds_main_total" columnid="totm"/>
  942. <BindItem id="item4" compid="switch1.case_cret.ipt_tottermtm" propid="value" datasetid="ds_main_total" columnid="termtm"/>
  943. <BindItem id="item5" compid="switch1.case_cret.ipt_totmancnt" propid="value" datasetid="ds_main_total" columnid="mancnt"/>
  944. <BindItem id="item6" compid="switch1.case_cret.ipt_totwomcnt" propid="value" datasetid="ds_main_total" columnid="womcnt"/>
  945. <BindItem id="item7" compid="switch1.case_cret.ipt_roomfromdd" propid="value" datasetid="ds_main_room" columnid="fromdd"/>
  946. <BindItem id="item8" compid="switch1.case_cret.ipt_roomtodd" propid="value" datasetid="ds_main_room" columnid="todd"/>
  947. <BindItem id="item9" compid="switch1.case_cret.chx_roomsatyn" propid="value" datasetid="ds_main_room" columnid="satyn"/>
  948. <BindItem id="item10" compid="switch1.case_cret.chx_roomsunyn" propid="value" datasetid="ds_main_room" columnid="sunyn"/>
  949. <BindItem id="item11" compid="switch1.case_cret.ipt_roomcnt" propid="value" datasetid="ds_main_room" columnid="cnt"/>
  950. <BindItem id="item12" compid="switch1.case_cret.chx_totsatyn" propid="value" datasetid="ds_main_total" columnid="satyn"/>
  951. <BindItem id="item13" compid="switch1.case_cret.chx_totsunyn" propid="value" datasetid="ds_main_total" columnid="sunyn"/>
  952. <BindItem id="item14" compid="switch1.case_cret.chx_thu" propid="value" datasetid="ds_main_cnst_week" columnid="thuyn"/>
  953. <BindItem id="item15" compid="switch1.case_cret.chx_sat" propid="value" datasetid="ds_main_cnst_week" columnid="satyn"/>
  954. <BindItem id="item16" compid="switch1.case_cret.chx_tue" propid="value" datasetid="ds_main_cnst_week" columnid="tueyn"/>
  955. <BindItem id="item17" compid="switch1.case_cret.ipt_cnstfromdd" propid="value" datasetid="ds_main_cnst" columnid="fromdd"/>
  956. <BindItem id="item18" compid="switch1.case_cret.ipt_cnsttodd" propid="value" datasetid="ds_main_cnst" columnid="todd"/>
  957. <BindItem id="item19" compid="switch1.case_cret.cmb_cnstdrid" propid="value" datasetid="ds_main_cnst" columnid="cnstdrid"/>
  958. <BindItem id="item20" compid="switch1.case_cret.ipt_cnstamfromtm" propid="value" datasetid="ds_main_cnst" columnid="amfromtm"/>
  959. <BindItem id="item21" compid="switch1.case_cret.ipt_cnstamtotm" propid="value" datasetid="ds_main_cnst" columnid="amtotm"/>
  960. <BindItem id="item22" compid="switch1.case_cret.ipt_cnstamterm" propid="value" datasetid="ds_main_cnst" columnid="amterm"/>
  961. <BindItem id="item23" compid="switch1.case_cret.ipt_cnstfmfromtm" propid="value" datasetid="ds_main_cnst" columnid="fmfromtm"/>
  962. <BindItem id="item24" compid="switch1.case_cret.ipt_cnstfmtotm" propid="value" datasetid="ds_main_cnst" columnid="fmtotm"/>
  963. <BindItem id="item25" compid="switch1.case_cret.ipt_cnstfmterm" propid="value" datasetid="ds_main_cnst" columnid="fmterm"/>
  964. <BindItem id="item26" compid="switch1.case_cret.chx_wed" propid="value" datasetid="ds_main_cnst_week" columnid="wedyn"/>
  965. <BindItem id="item27" compid="switch1.case_cret.chx_mon" propid="value" datasetid="ds_main_cnst_week" columnid="monyn"/>
  966. <BindItem id="item28" compid="switch1.case_cret.chx_fri" propid="value" datasetid="ds_main_cnst_week" columnid="friyn"/>
  967. <BindItem id="item29" compid="switch1.case_cret.input1" propid="value" datasetid="ds_main_total" columnid="comcnt"/>
  968. <BindItem id="item30" compid="switch1.case_modify.group2.cmb_srchroomcd" propid="value" datasetid="ds_main_schedule" columnid="srchroomcd"/>
  969. <BindItem id="item31" compid="switch1.case_modify.group2.rdo_srchcond2" propid="value" datasetid="ds_send" columnid="srchcond2"/>
  970. <BindItem id="item32" compid="switch1.case_modify.group2.cmb_srchcnstdrid" propid="value" datasetid="ds_main_schedule" columnid="srchcnstdrid"/>
  971. <BindItem id="item33" compid="switch1.case_modify.group2.chk_srchallroom" propid="value" datasetid="ds_send" columnid="srchallroomyn"/>
  972. <BindItem id="item36" compid="switch1.case_modify.tar_remcnts" propid="value" datasetid="ds_main_dayblist" columnid="remcnts"/>
  973. <BindItem id="item37" compid="switch1.case_modify.ipt_remdd" propid="value" datasetid="ds_main_dayblist" columnid="remdd"/>
  974. <BindItem id="item38" compid="cmb_healexamdetlflag" propid="value" datasetid="ds_init_baseinfo" columnid="healexamdetlflag"/>
  975. <BindItem id="item34" compid="switch1.case_modify.grp_calendar.opt_year" propid="value" datasetid="ds_temp_calendar" columnid="year"/>
  976. <BindItem id="item35" compid="switch1.case_modify.grp_calendar.opt_month" propid="value" datasetid="ds_temp_calendar" columnid="month"/>
  977. </Bind>
  978. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  979. * System Name :
  980. * Job Name :
  981. * Creator :
  982. * Make Date : 2017-12-04
  983. * Description :
  984. *---------------------------------------------------------------------------------------
  985. * Modify Date Modifier Modify Description
  986. *---------------------------------------------------------------------------------------
  987. * 2017-06-19 Live Converter TF->XP
  988. *
  989. *---------------------------------------------------------------------------------------
  990. ****************************************************************************************/
  991. //=======================================================================================
  992. // Lib Include
  993. //---------------------------------------------------------------------------------------
  994. include "com_commonxp::comm_main.xjs";
  995. include "ast_healexamxp::AHA001.xjs";
  996. //include "mis_miscommonxp::MIS.xjs";
  997. //=======================================================================================
  998. // Global Form Variable
  999. //---------------------------------------------------------------------------------------
  1000. var m_vHealexamflag = "";
  1001. var m_vHealexamdetlflag = "";
  1002. var m_vHealexamplacecd = "";
  1003. var arErrorCode = new HashArray();
  1004. //=======================================================================================
  1005. // Function
  1006. //---------------------------------------------------------------------------------------
  1007. /*-**************************************************************************************
  1008. * Argument : N/A
  1009. * Description :
  1010. ****************************************************************************************/
  1011. function call_TRAHB01501() {
  1012. ds_temp_schlst_item.clearData();
  1013. var oParam = {};
  1014. oParam.id = "TRAHB01501";
  1015. oParam.service = "healexambaseapp.ScheduleCode";
  1016. oParam.method = "reqGetScheduleCodeList";
  1017. oParam.inds = "req=ds_send";
  1018. oParam.outds = "ds_temp_schlst_item=item";
  1019. oParam.async = false;
  1020. oParam.callback = "cf_TRAHB01501";
  1021. tranf_submit(oParam);
  1022. }
  1023. function cf_TRAHB01501(sSvcId, nErrorCode, sErrorMsg) {
  1024. arErrorCode.push(sSvcId, nErrorCode);
  1025. ds_temp_schlst_item.updateColID("week","rsrvweek");
  1026. }
  1027. /*-**************************************************************************************
  1028. * Argument : N/A
  1029. * Description :
  1030. ****************************************************************************************/
  1031. function call_TRAHB01509() {
  1032. var oParam = {};
  1033. oParam.id = "TRAHB01509";
  1034. oParam.service = "healexambaseapp.ScheduleCode";
  1035. oParam.method = "reqGetHoliDaybList";
  1036. oParam.inds = "req=ds_send";
  1037. oParam.outds = "ds_temp_holiday_item=item";
  1038. oParam.async = false;
  1039. oParam.callback = "cf_TRAHB01509";
  1040. tranf_submit(oParam);
  1041. }
  1042. function cf_TRAHB01509(sSvcId, nErrorCode, sErrorMsg) {
  1043. arErrorCode.push(sSvcId, nErrorCode);
  1044. }
  1045. /*-**************************************************************************************
  1046. * Argument : N/A
  1047. * Description :
  1048. ****************************************************************************************/
  1049. function call_TRAHB01507() {
  1050. var oParam = {};
  1051. oParam.id = "TRAHB01507";
  1052. oParam.service = "healexambaseapp.ScheduleCode";
  1053. oParam.method = "reqDelCheckScheduleCode";
  1054. oParam.inds = "req=ds_send";
  1055. oParam.outds = "ds_temp_srchdel_srchrow=srchrow";
  1056. oParam.async = false;
  1057. oParam.callback = "cf_TRAHB01507";
  1058. tranf_submit(oParam);
  1059. }
  1060. function cf_TRAHB01507(sSvcId, nErrorCode, sErrorMsg) {
  1061. arErrorCode.push(sSvcId, nErrorCode);
  1062. }
  1063. /*-**************************************************************************************
  1064. * Argument : N/A
  1065. * Description : 초기화 작업
  1066. ****************************************************************************************/
  1067. function fInitCtrl(){
  1068. switch1.tabindex = 0;
  1069. //건진전체 일정관리 초기화
  1070. var curDt = utlf_getCurrentDate();
  1071. initCalendar();
  1072. //예약현황집계내역 from_to초기화
  1073. switch1.case_cret.ipt_totfromdd.value = curDt;
  1074. switch1.case_cret.ipt_tottodd.value = curDt;
  1075. switch1.case_cret.ipt_totfromtm.value = "0800";
  1076. switch1.case_cret.ipt_tottotm.value = "1300";
  1077. switch1.case_cret.ipt_tottermtm.value = "30";
  1078. switch1.case_cret.ipt_totmancnt.value = "10";
  1079. switch1.case_cret.ipt_totwomcnt.value = "10";
  1080. switch1.case_cret.input1.value = "10";
  1081. switch1.case_cret.chx_totsunyn.value = "Y";
  1082. fClearSch("T");
  1083. //경과상담예약일정관리 초기화
  1084. switch1.case_cret.ipt_cnstfromdd.value = curDt;
  1085. switch1.case_cret.ipt_cnsttodd.value = curDt;
  1086. switch1.case_cret.ipt_cnstamfromtm.value = "0800";
  1087. switch1.case_cret.ipt_cnstamtotm.value = "1200";
  1088. switch1.case_cret.ipt_cnstfmfromtm.value = "1300";
  1089. switch1.case_cret.ipt_cnstfmtotm.value = "1700";
  1090. switch1.case_cret.ipt_cnstamterm.value = "30";
  1091. switch1.case_cret.ipt_cnstfmterm.value = "30";
  1092. switch1.case_cret.chx_mon.value = "1";
  1093. switch1.case_cret.chx_tue.value = "2";
  1094. switch1.case_cret.chx_wed.value = "3";
  1095. switch1.case_cret.chx_thu.value = "4";
  1096. switch1.case_cret.chx_fri.value = "5";
  1097. switch1.case_cret.chx_sat.value = "6";
  1098. fClearSch("C");
  1099. ds_send.setColumn( 0, "srchcond", "C" );
  1100. ds_init_cnst_drlst_itemdr.clearData();
  1101. var oParam = {};
  1102. oParam.id = "TRAHB01504";
  1103. oParam.service = "healexambaseapp.ComCode";
  1104. oParam.method = "reqGetHealExamDrList";
  1105. oParam.inds = "req=ds_send";
  1106. oParam.outds = "ds_init_cnst_drlst_itemdr=item";
  1107. oParam.async = false;
  1108. //oParam.callback = "cf_TRAHB01504";
  1109. tranf_submit(oParam);
  1110. //검사실별 일정관리 초기화
  1111. switch1.case_cret.ipt_roomfromdd.value = curDt;
  1112. switch1.case_cret.ipt_roomtodd.value = curDt;
  1113. switch1.case_cret.chx_roomsunyn.value = "Y";
  1114. fClearSch("R");
  1115. switch1.case_cret.ipt_roomcnt.value = 10;
  1116. ds_send.setColumn( 0, "srchrsrvyn", "Y");
  1117. ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
  1118. var oParam = {};
  1119. oParam.id = "TRAHB01502";
  1120. oParam.service = "healexambaseapp.ComCode";
  1121. oParam.method = "reqGetRoomCdList";
  1122. oParam.inds = "req=ds_send";
  1123. oParam.outds = "ds_init_room_roomlst_itemroom=item";
  1124. oParam.async = false;
  1125. //oParam.callback = "cf_TRAHB01502";
  1126. tranf_submit(oParam);
  1127. dsf_setDefaultVal(ds_init_room_roomlst_itemroom, "all");
  1128. switch1.case_modify.group2.rdo_srchcond2.value = "T";
  1129. fSetSrchCtrlState("T");
  1130. fGetRsrvSchList(2);
  1131. }
  1132. /*-**************************************************************************************
  1133. * Argument : vMode - T: 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  1134. * Description : 조회구분별 control 처리
  1135. ****************************************************************************************/
  1136. function fSetSrchCtrlState(vMode){
  1137. var col_tm = 1;
  1138. var col_roomcd = 2;
  1139. var col_mancnt = 3;
  1140. var col_rsrvmancnt = 4;
  1141. var col_womcnt = 5;
  1142. var col_rsrvwomcnt = 6;
  1143. var col_cnt = 7;
  1144. var col_rsrvcnt = 8;
  1145. var col_comcnt = 9;
  1146. var col_rsrvcomcnt = 10;
  1147. switch1.case_modify.group2.cap_cnstdr.visible = false;
  1148. switch1.case_modify.group2.cap_room.visible = false;
  1149. switch1.case_modify.group2.cmb_srchcnstdrid.visible = false;
  1150. switch1.case_modify.group2.cmb_srchroomcd.visible = false;
  1151. switch1.case_modify.group2.chk_srchallroom.visible = false;
  1152. for( var i = 0; i < switch1.case_modify.grd_rsrvtmlst.getCellCount("Head"); i++){
  1153. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( i, "size", 0);
  1154. }
  1155. if( vMode == "T"){
  1156. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_tm, "size", 50);
  1157. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_mancnt, "size", 100);
  1158. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_rsrvmancnt, "size", 100);
  1159. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_womcnt, "size", 100);
  1160. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_rsrvwomcnt, "size", 100);
  1161. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_comcnt, "size", 100);
  1162. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_rsrvcomcnt, "size", 100);
  1163. }
  1164. else
  1165. if( vMode == "R" ) {
  1166. switch1.case_modify.group2.chk_srchallroom.visible = true;
  1167. switch1.case_modify.group2.cap_room.visible = true;
  1168. switch1.case_modify.group2.cmb_srchroomcd.visible = true;
  1169. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_roomcd, "size", 120);
  1170. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_cnt, "size", 100);
  1171. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_rsrvcnt, "size", 100);
  1172. }
  1173. else
  1174. if( vMode == "C" ) {
  1175. switch1.case_modify.group2.cap_cnstdr.visible = true;
  1176. switch1.case_modify.group2.cmb_srchcnstdrid.visible = true;
  1177. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_tm, "size", 50);
  1178. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_cnt, "size", 100);
  1179. switch1.case_modify.grd_rsrvtmlst.setFormatColProperty( col_rsrvcnt, "size", 100);
  1180. }
  1181. }
  1182. /*-**************************************************************************************
  1183. * Argument : N/A
  1184. * Description : 건진전체 일정 생성
  1185. ****************************************************************************************/
  1186. function fMakeTotSch(){
  1187. var fromdd = switch1.case_cret.ipt_totfromdd.value;
  1188. var todd = switch1.case_cret.ipt_tottodd.value;
  1189. if(fCheckTerm(fromdd, todd, "D") < 0) return;
  1190. var fromtm = switch1.case_cret.ipt_totfromtm.value;
  1191. var totm = switch1.case_cret.ipt_tottotm.value;
  1192. if(fCheckTerm(fromtm, totm, "T") < 0) return;
  1193. var term = parseInt(switch1.case_cret.ipt_tottermtm.value);
  1194. var man = switch1.case_cret.ipt_totmancnt.value;
  1195. var wom = switch1.case_cret.ipt_totwomcnt.value;
  1196. var com = switch1.case_cret.input1.value;
  1197. var cur_cnt = switch1.case_cret.grd_totalschlst.rowcount;
  1198. fMakeSchlst(switch1.case_cret.grd_totalschlst, fromdd, todd, fromtm, totm, term, man, wom, com, true/*sex*/, false/*week*/ );
  1199. for(var i=cur_cnt; i<switch1.case_cret.grd_totalschlst.rowcount; i++){
  1200. grdf_setStatus(switch1.case_cret.grd_totalschlst, "I", [i]);
  1201. }
  1202. }
  1203. /*-**************************************************************************************
  1204. * Argument : vGrdObj - 대상 grid
  1205. * : vRsrvdd - 시작일시
  1206. * : vRsrvtm - 시작시간
  1207. * Description : 종합건진 전체_결과상담 일정관리- 중복일자_시간 check.
  1208. ****************************************************************************************/
  1209. function fCheckDupDateTime(vGrdObj, vRsrvdd, vRsrvtm) {
  1210. if(utlf_isNull(vGrdObj)) return false;
  1211. var rsv_cnt = vGrdObj.rowcount;
  1212. var sNode = this.objects[vGrdObj.binddataset];
  1213. for(var i=0; i<rsv_cnt; i++){
  1214. if((vRsrvdd == sNode.getColumn(i, "rsrvdd")) && (vRsrvtm == sNode.getColumn(i, "rsrvtm"))){
  1215. return false;
  1216. }
  1217. }
  1218. return true;
  1219. }
  1220. /*-**************************************************************************************
  1221. * Argument : N/A
  1222. * Description : 검사실별 일별 인원관리 일정 생성
  1223. ****************************************************************************************/
  1224. function fMakeRoomSch(){
  1225. var fromdd = switch1.case_cret.ipt_roomfromdd.value;
  1226. var todd = switch1.case_cret.ipt_roomtodd.value;
  1227. if(fCheckTerm(fromdd, todd, "D") < 0) return;
  1228. call_TRAHB01509();
  1229. if(arErrorCode.pop("TRAHB01509") < 0){
  1230. sysf_messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
  1231. return;
  1232. }
  1233. var holiday = "";
  1234. var holidayNode = null;
  1235. var dateFrom = String(fromdd).toDate();
  1236. var dateTo = String(todd).toDate();
  1237. var cnt = ds_init_room_roomlst_itemroom.rowcount;
  1238. var sNode = ds_main_room_schlst_item;
  1239. var j = ds_main_room_schlst_item.rowcount;
  1240. var cur_cnt = j;
  1241. var roomcd = "";
  1242. var psnocnt = "";
  1243. var startdd = fromdd;
  1244. var ret = "";
  1245. for(var i=0; i<ds_init_room_roomlst_itemroom.rowcount; i++){
  1246. if(ds_init_room_roomlst_itemroom.getColumn(i, "sel") == "N") continue;
  1247. roomcd = ds_init_room_roomlst_itemroom.getColumn(i, "testroomcd");
  1248. psnocnt = ds_init_room_roomlst_itemroom.getColumn(i, "cnt");
  1249. if(psnocnt == 0) psnocnt = ds_main_room.getColumn(0, "cnt");
  1250. if(utlf_isNull(roomcd)) continue;
  1251. fromdd = startdd;
  1252. dateFrom = String(fromdd).toDate();
  1253. while(utlf_getDateInterval(fromdd, todd) >= 0){
  1254. //중복값 skip
  1255. if(!fCheckRoomDupDate(fromdd, roomcd)){
  1256. dateFrom.getAddDate(1);
  1257. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1258. continue;
  1259. }
  1260. ret = dateFrom.getDayOfWeek("N");
  1261. //일요일 skip, 토요일 skip
  1262. if(((switch1.case_cret.chx_roomsunyn.value == "Y" ) && (ret == "0")) || ((switch1.case_cret.chx_roomsatyn.value == "Y") && (ret == "6"))){
  1263. dateFrom.getAddDate(1);
  1264. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1265. continue;
  1266. }
  1267. //휴일 skip
  1268. // holidayNode = instance1.selectSingleNode("ds_temp_holiday");
  1269. // if(holidayNode != null){
  1270. holidayNode = ds_temp_holiday_item;
  1271. if(holidayNode.rowcount > 0){
  1272. for(var h=0; h<holidayNode.rowcount; h++){
  1273. holiday = ds_temp_holiday_item.getColumn(h, "basedd");
  1274. if(holiday == dateFrom.getDateFormat("YYYYMMDD")) {
  1275. dateFrom.getAddDate(1);
  1276. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1277. continue;
  1278. }
  1279. }
  1280. }
  1281. dsf_makeValue(sNode, "rsrvdd" , "string", fromdd, j);
  1282. dsf_makeValue(sNode, "rsrvweek" , "string", dateFrom.getDayOfWeek("K"), j);
  1283. dsf_makeValue(sNode, "testroomcd" , "string", roomcd, j);
  1284. dsf_makeValue(sNode, "psnnocnt" , "string", psnocnt, j);
  1285. dateFrom.getAddDate(1);
  1286. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1287. j++;
  1288. }
  1289. }
  1290. for(var i=cur_cnt; i<j; i++){
  1291. grdf_setStatus(switch1.case_cret.grd_roomschlst, "I", [i]);
  1292. }
  1293. }
  1294. /*-**************************************************************************************
  1295. * Argument : vRsrvdd - 시작일자
  1296. * : vRoomcd - 검사실코드
  1297. * Description : 검사실별 인원관리-중복일자_검사실 check.
  1298. ****************************************************************************************/
  1299. function fCheckRoomDupDate(vRsrvdd, vRoomcd){
  1300. var rsv_cnt = ds_main_room_schlst_item.rowcount;
  1301. var sNode = ds_main_room_schlst_item;
  1302. for(var i=0; i<rsv_cnt; i++){
  1303. if((vRsrvdd == sNode.getColumn(i, "rsrvdd")) && (vRoomcd == sNode.getColumn(i, "testroomcd"))) return false;
  1304. }
  1305. return true;
  1306. }
  1307. /*-**************************************************************************************
  1308. * Argument : N/A
  1309. * Description : 상담의별 상담예약일정 생성
  1310. ****************************************************************************************/
  1311. function fMakeCnstSch(){
  1312. var fromdd = switch1.case_cret.ipt_cnstfromdd.value;
  1313. var todd = switch1.case_cret.ipt_cnsttodd.value;
  1314. if( fCheckTerm(fromdd, todd, "D") < 0 ) return ;
  1315. var cur_cnt = ds_main_cnst_schlst_item.rowcount;
  1316. var fromtm = switch1.case_cret.ipt_cnstamfromtm.value;
  1317. var totm = switch1.case_cret.ipt_cnstamtotm.value;
  1318. if( fCheckTerm(fromtm, totm, "T") < 0 ) return ;
  1319. var term = parseInt( switch1.case_cret.ipt_cnstamterm.value );
  1320. if ((fromtm != '0000') && (totm != '0000')) {
  1321. fMakeSchlst(switch1.case_cret.grd_cnstschlst, fromdd, todd, fromtm, totm, term, 1, 0, 0, false, true );
  1322. }
  1323. var tfromtm = switch1.case_cret.ipt_cnstfmfromtm.value;
  1324. var ttotm = switch1.case_cret.ipt_cnstfmtotm.value;
  1325. if( fCheckTerm(tfromtm, ttotm, "T") < 0 ) return ;
  1326. var tterm = parseInt(switch1.case_cret.ipt_cnstfmterm.value);
  1327. if ((tfromtm != '0000') && (ttotm != '0000')) {
  1328. fMakeSchlst(switch1.case_cret.grd_cnstschlst, fromdd, todd, tfromtm, ttotm, tterm, 1, 0, 0, false, true );
  1329. }
  1330. for(var i = cur_cnt ; i < ds_main_cnst_schlst_item.rowcount ; i++ ){
  1331. grdf_setStatus(switch1.case_cret.grd_cnstschlst, "I", [i]);
  1332. }
  1333. }
  1334. /*-**************************************************************************************
  1335. * Argument : vGrdObj : 대상 grid
  1336. * : fromdd : 시작일시
  1337. * : todd : 종료일시
  1338. * : fromtm : 시작시간
  1339. * : totm : 종료시간
  1340. * : term : 시간간격
  1341. * : mancnt : 예약가능인원(남)
  1342. * : womcnt : 예약가능인원(여)
  1343. * : comcnt : 예약가능인원(공통)
  1344. * : bSexFg : 성별구분(false일 경우 예약가능인원은 mancnt로 들어감)
  1345. * : bWeekFg : 요일check여부(false일 경우 토_일요일만 check, true일 경우 월~토 중 check된 일자만 생성)
  1346. * Description : grid에 조건에 따른 스케쥴 생성
  1347. ****************************************************************************************/
  1348. function fMakeSchlst(vGrdObj, fromdd, todd, fromtm, totm, term, mancnt, womcnt, comcnt, bSexFg, bWeekFg){
  1349. if( vGrdObj == null ) return;
  1350. call_TRAHB01509();
  1351. if(arErrorCode.pop("TRAHB01509") < 0) {
  1352. sysf_messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
  1353. return;
  1354. }
  1355. var holiday = "";
  1356. var holidayNode = null;
  1357. var i = 0;
  1358. var cur_cnt = vGrdObj.rowcount;
  1359. var j = cur_cnt;
  1360. var sNode = this.objects[vGrdObj.binddataset];
  1361. var curtm = fromtm;
  1362. var ret = "";
  1363. var dateFrom = String(fromdd).toDate();
  1364. var dateTo = String(todd).toDate();
  1365. var tmFrom = String(fromdd+fromtm).toDate("YYYYMMDDhhmm");
  1366. var tmTo = String(todd+totm).toDate("YYYYMMDDhhmm");
  1367. if(utlf_isNull(mancnt)) mancnt = 0;
  1368. if(utlf_isNull(womcnt)) womcnt = 0;
  1369. if(utlf_isNull(comcnt)) comcnt = 0;
  1370. while(utlf_getDateInterval(fromdd, todd) >= 0){
  1371. ret = dateFrom.getDayOfWeek("N");
  1372. //중복값 skip
  1373. if(!fCheckDupDateTime(vGrdObj, fromdd, fromtm)){
  1374. //alert(fromdd+" "+fromtm+" "+!fCheckDupDateTime(vGrdObj, fromdd, fromtm));
  1375. dateFrom.getAddDate(1);
  1376. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1377. continue;
  1378. }
  1379. //일요일 skip, 토요일 skip
  1380. if(!bWeekFg){
  1381. if(((switch1.case_cret.chx_totsunyn.value == "Y" ) && (ret == "0")) || ((switch1.case_cret.chx_totsatyn.value == "Y" ) && (ret == "6" ))){
  1382. dateFrom.getAddDate(1);
  1383. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1384. continue;
  1385. }
  1386. }else{
  1387. //상담예약스케쥴 : 선택되지 않은 요일은 skip
  1388. if((switch1.case_cret.chx_mon.value != ret ) && (switch1.case_cret.chx_tue.value != ret) && (switch1.case_cret.chx_wed.value != ret) && ( switch1.case_cret.chx_thu.value != ret ) && (switch1.case_cret.chx_fri.value != ret ) && (switch1.case_cret.chx_sat.value != ret )){
  1389. dateFrom.getAddDate(1);
  1390. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1391. continue;
  1392. }
  1393. }
  1394. //휴일 skip
  1395. // holidayNode = instance1.selectSingleNode("ds_temp_holiday");
  1396. // if(holidayNode != null){
  1397. holidayNode = ds_temp_holiday_item;
  1398. if(holidayNode.rowcount > 0){
  1399. for(var h=0; h<holidayNode.rowcount; h++){
  1400. holiday = ds_temp_holiday_item.getColumn(h, "basedd");
  1401. if(holiday == dateFrom.getDateFormat("YYYYMMDD")) {
  1402. dateFrom.getAddDate(1);
  1403. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1404. continue;
  1405. }
  1406. }
  1407. }
  1408. fromtm = curtm;
  1409. tmFrom = String(fromdd + fromtm).toDate("YYYYMMDDhhmm");
  1410. while(utlf_getTimeInterval(fromtm, totm) >= 0){
  1411. dsf_makeValue(sNode, "rsrvdd", "string", fromdd, j);
  1412. dsf_makeValue(sNode, "rsrvtm", "string", fromtm, j);
  1413. dsf_makeValue(sNode, "rsrvweek", "string", dateFrom.getDayOfWeek("K"), j);
  1414. if(bSexFg){
  1415. dsf_makeValue(sNode, "psnnomancnt", "string", mancnt, j);
  1416. dsf_makeValue(sNode, "psnnowomcnt", "string", womcnt, j);
  1417. dsf_makeValue(sNode, "psnnocomcnt", "string", comcnt, j);
  1418. }else{
  1419. dsf_makeValue(sNode, "psnnocnt", "string", mancnt, j);
  1420. }
  1421. tmFrom.getAddDate(term, "m");
  1422. fromtm = tmFrom.getDateFormat("hhmm");
  1423. j++;
  1424. }
  1425. fromtm = curtm;
  1426. dateFrom.getAddDate(1);
  1427. fromdd = dateFrom.getDateFormat("YYYYMMDD");
  1428. }
  1429. }
  1430. /*-**************************************************************************************
  1431. * Argument : vFrom - 시작일자
  1432. * : vTo - 종료일자
  1433. * : vDTFlag - 구분
  1434. * Description : 일자 check
  1435. ****************************************************************************************/
  1436. function fCheckTerm(vFrom, vTo, vDTFlag){
  1437. var ret = -1 ;
  1438. if( vDTFlag = "D" ){
  1439. ret = utlf_getDateInterval(vFrom, vTo) ;
  1440. }
  1441. else {
  1442. ret = utlf_getTimeInterval(vFrom, vTo);
  1443. }
  1444. if( ret < 0 ) {
  1445. alert("기간설정이 잘못되었습니다.");
  1446. }
  1447. return ret;
  1448. }
  1449. /*-**************************************************************************************
  1450. * Argument : vMode - T: 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  1451. * Description : 건진전체예약일정내역 clear
  1452. ****************************************************************************************/
  1453. function fClearSch(vMode){
  1454. if( vMode == "T" ) ds_main_total_schlst_item.clearData();
  1455. else
  1456. if( vMode == "R" ) ds_main_room_schlst_item.clearData();
  1457. else
  1458. if( vMode == "C" ) ds_main_cnst_schlst_item.clearData();
  1459. }
  1460. /*-**************************************************************************************
  1461. * Argument : vMode - T: 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  1462. * Description : 스케줄 조회
  1463. ****************************************************************************************/
  1464. function fGetSchList(vMode){
  1465. ds_temp_schlst_item.clearData();
  1466. ds_send.setColumn( 0, "srchhealexamflag", m_vHealexamflag);
  1467. var sFromdd = "";
  1468. var sTodd = "";
  1469. var sDest = "";
  1470. var cnt = 0;
  1471. var sDays = new Array();
  1472. if( vMode == "T" ){
  1473. sFromdd = switch1.case_cret.ipt_totfromdd.value;
  1474. sTodd = switch1.case_cret.ipt_tottodd.value;
  1475. sDest = "ds_main_total_schlst";
  1476. }else if( vMode == "R" ){
  1477. sFromdd = switch1.case_cret.ipt_roomfromdd.value;
  1478. sTodd = switch1.case_cret.ipt_roomtodd.value;
  1479. sDest = "ds_main_room_schlst";
  1480. }else if( vMode == "C" ){
  1481. sFromdd = switch1.case_cret.ipt_cnstfromdd.value;
  1482. sTodd = switch1.case_cret.ipt_cnsttodd.value;
  1483. sDest = "ds_main_cnst_schlst";
  1484. //삼당예약 스케쥴생성에서 요일 관련 조회 조건 추가 202020211 임승주
  1485. if( switch1.case_cret.chx_mon.value != false){
  1486. sDays[cnt] = "'"+ "월"+"'";
  1487. cnt++;
  1488. }
  1489. if( switch1.case_cret.chx_tue.value != false){
  1490. sDays[cnt] = "'"+ "화"+"'";
  1491. cnt++;
  1492. }
  1493. if( switch1.case_cret.chx_wed.value != false){
  1494. sDays[cnt] = "'"+ "수"+"'";
  1495. cnt++;
  1496. }
  1497. if( switch1.case_cret.chx_thu.value != false){
  1498. sDays[cnt] = "'"+ "목"+"'";
  1499. cnt++;
  1500. }
  1501. if( switch1.case_cret.chx_fri.value != false){
  1502. sDays[cnt] = "'"+ "금"+"'";
  1503. cnt++;
  1504. }
  1505. if( switch1.case_cret.chx_sat.value != false){
  1506. sDays[cnt] = "'"+ "토"+"'";
  1507. }
  1508. ds_send.setColumn(0,"daylist", sDays);
  1509. ds_send.setColumn( 0, "srchcnstdrid", ds_main_cnst.getColumn(0, "cnstdrid"));
  1510. }else{
  1511. return;
  1512. }
  1513. this.objects[sDest+"_item"].clearData();
  1514. ds_send.setColumn( 0, "srchhealexamflag" , m_vHealexamflag);
  1515. ds_send.setColumn( 0, "srchcond" , vMode);
  1516. ds_send.setColumn( 0, "srchfromdd" , sFromdd );
  1517. ds_send.setColumn( 0, "srchtodd" , sTodd );
  1518. ds_send.setColumn( 0, "srchhealexamdetlflag" , cmb_healexamdetlflag.value);
  1519. //trace("fGetSchList" + ds_send.saveXML());
  1520. call_TRAHB01501();
  1521. if( ds_temp_schlst_item.rowcount > 0 ) {
  1522. this.objects[sDest+"_item"].copyData(ds_temp_schlst_item);
  1523. }
  1524. }
  1525. /*-**************************************************************************************
  1526. * Argument : vMode - T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  1527. * : vCaseFg - 일정생성(I)/ 수정(U) case구분
  1528. * Description : 스케줄 저장
  1529. ****************************************************************************************/
  1530. function fSaveSch(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj, vCaseFg) {
  1531. if( !fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj) ) {
  1532. alert("저장할 내역이 없습니다.");
  1533. return ;
  1534. }
  1535. ds_send_save.clearData(); ds_send_save.addRow();
  1536. ds_send_save.setColumn( 0, "healexamflag", m_vHealexamflag );
  1537. if(m_vHealexamflag == "G") {
  1538. ds_send_save.setColumn( 0, "healexamdetlflag", cmb_healexamdetlflag.value);
  1539. }else{
  1540. ds_send_save.setColumn( 0, "healexamdetlflag", cmb_healexamdetlflag.value);
  1541. }
  1542. ds_send_save.setColumn( 0, "mode", vMode );
  1543. var Tmp = "";
  1544. if(vCaseFg == "U"){
  1545. if(vMode == "C"){
  1546. Tmp = switch1.case_modify.group2.cmb_srchcnstdrid.value;
  1547. if(utlf_isNull(Tmp)) {
  1548. sysf_messageBox("상담의를 선택하세요", "E999");
  1549. return ;
  1550. }
  1551. ds_send_save.setColumn( 0, "cnstdrid", Tmp);
  1552. }else if(vMode == "R"){
  1553. }
  1554. ds_send_save.setColumn( 0, "rsrvdd", fGetCalendarDate(switch1.case_modify.grd_calendar));
  1555. }else if( vCaseFg = "I" ){
  1556. if(vMode == "C"){
  1557. Tmp = switch1.case_cret.cmb_cnstdrid.value;
  1558. if(utlf_isNull(Tmp)) {
  1559. sysf_messageBox("상담의를 선택하세요", "E999");
  1560. return ;
  1561. }
  1562. ds_send_save.setColumn( 0, "cnstdrid", Tmp);
  1563. }
  1564. }
  1565. if( vMode == "T" ){
  1566. var dsUpdate = grdf_getGridUpdateData(vTotGrdObj, "all");
  1567. grdf_setStatusColumn(dsUpdate, "m");
  1568. ds_send_save_savetotal.copyData(dsUpdate, true);
  1569. }else if( vMode == "R" ){
  1570. var dsUpdate = grdf_getGridUpdateData(vRoomGrdObj, "all");
  1571. grdf_setStatusColumn(dsUpdate, "m");
  1572. ds_send_save_saveroom.copyData(dsUpdate, true);
  1573. }else if( vMode == "C" ){
  1574. var dsUpdate = grdf_getGridUpdateData(vCnstGrdObj, "all");
  1575. grdf_setStatusColumn(dsUpdate, "m");
  1576. ds_send_save_savecnst.copyData(dsUpdate, true);
  1577. }else{
  1578. var dsUpdate1 = grdf_getGridUpdateData(vTotGrdObj, "all");
  1579. grdf_setStatusColumn(dsUpdate1, "m");
  1580. var dsUpdate2 = grdf_getGridUpdateData(vRoomGrdObj, "all");
  1581. grdf_setStatusColumn(dsUpdate2, "m");
  1582. var dsUpdate3 = grdf_getGridUpdateData(vCnstGrdObj, "all");
  1583. grdf_setStatusColumn(dsUpdate3, "m");
  1584. ds_send_save_savetotal.copyData(dsUpdate1, true);
  1585. ds_send_save_saveroom.copyData(dsUpdate2, true);
  1586. ds_send_save_savecnst.copyData(dsUpdate3, true);
  1587. }
  1588. ds_send_save_savetotal.updateColID("week","rsrvweek");
  1589. ds_send_save_saveroom.updateColID("week","rsrvweek");
  1590. var oParam = {};
  1591. oParam.id = "TXAHB01501";
  1592. oParam.service = "healexambaseapp.ScheduleCode";
  1593. oParam.method = "reqExeScheduleCode";
  1594. oParam.inds = "save=ds_send_save savetotal=ds_send_save_savetotal saveroom=ds_send_save_saveroom savecnst=ds_send_save_savecnst";
  1595. oParam.outds = "ds_hidden_savetotal=savetotal ds_hidden_saveroom=saveroom ds_hidden_savecnst=savecnst";
  1596. oParam.async = false;
  1597. oParam.callback = "cf_TXAHB01501";
  1598. tranf_submit(oParam);
  1599. if(arErrorCode.pop("TXAHB01501") > -1){
  1600. if(vCaseFg == "I"){
  1601. fGetSchList(vMode);
  1602. }else{
  1603. fGetRsrvSchList(2);
  1604. fGetRsrvSchList(1);
  1605. }
  1606. }
  1607. }
  1608. function cf_TXAHB01501(sSvcId, nErrorCode, sErrorMsg) {
  1609. arErrorCode.push(sSvcId, nErrorCode);
  1610. }
  1611. /*-**************************************************************************************
  1612. * Argument : vMode - T: 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
  1613. * Description : 저장대상 데이터 check
  1614. ****************************************************************************************/
  1615. function fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj){
  1616. var vSaveData = null;
  1617. if( vMode == "T" ){
  1618. vSaveData = grdf_getGridUpdateData(vTotGrdObj, "all");
  1619. if( utlf_isNull(vSaveData) || vSaveData.rowcount < 0 ) return false;
  1620. }
  1621. else
  1622. if( vMode == "R" ){
  1623. vSaveData = grdf_getGridUpdateData(vRoomGrdObj, "all");
  1624. if( utlf_isNull(vSaveData) || vSaveData.rowcount < 0 ) return false;
  1625. }
  1626. else
  1627. if( vMode == "C" ){
  1628. vSaveData = grdf_getGridUpdateData(vCnstGrdObj, "all");
  1629. if( utlf_isNull(vSaveData) || vSaveData.rowcount < 0 ) return false;
  1630. }
  1631. else {
  1632. var vSaveData1 = grdf_getGridUpdateData(vTotGrdObj, "all");
  1633. var vSaveData2 = grdf_getGridUpdateData(vRoomGrdObj, "all");
  1634. var vSaveData3 = grdf_getGridUpdateData(vCnstGrdObj, "all");
  1635. if( (utlf_isNull(vSaveData1) || vSaveData1.rowcount < 0) && (utlf_isNull(vSaveData2) || vSaveData2.rowcount < 0) && (utlf_isNull(vSaveData3) || vSaveData3.rowcount < 0)
  1636. ) return false;
  1637. }
  1638. return true;
  1639. }
  1640. /*-**************************************************************************************
  1641. * Argument : vMode - 1 : 일자별 시간대별 가능인원 조회( 시간대만 조회)
  1642. * : 2 : 월별 일자별 가능 인원 조회(달력만 조회~)
  1643. * Description : 월별 일별 스케쥴내역 조회. (달력으로 조회~~)
  1644. ****************************************************************************************/
  1645. function fGetRsrvSchList(vMode){
  1646. ds_temp_templst.clearData();
  1647. ds_main_schedule_rsrvacptlst_item.clearData();
  1648. ds_main_schedule_rsrvtmlst_item.clearData();
  1649. ds_send.setColumn( 0, "srchcond", switch1.case_modify.group2.rdo_srchcond2.value);
  1650. var sRsrvMon = ds_temp_calendar.getColumn(0, "year") + ds_temp_calendar.getColumn(0, "month");
  1651. dsf_makeValue(ds_send, "srchhealexamflag", "string", m_vHealexamflag);
  1652. dsf_makeValue(ds_send, "srchrsrvmon", "string", sRsrvMon);
  1653. ds_send.setColumn( 0, "srchcnstdrid" , switch1.case_modify.group2.cmb_srchcnstdrid.value);
  1654. ds_send.setColumn( 0, "srchroomcd" , switch1.case_modify.group2.cmb_srchroomcd.value);
  1655. if (cmb_healexamdetlflag.value=="") {
  1656. ds_send.setColumn( 0, "srchhealexamdetlflag", m_vHealexamdetlflag);
  1657. } else {
  1658. ds_send.setColumn( 0, "srchhealexamdetlflag", cmb_healexamdetlflag.value);
  1659. }
  1660. var sNode = null;
  1661. if( vMode == 1 ) {
  1662. ds_send.setColumn( 0, "srchhealexamflag", m_vHealexamflag);
  1663. ds_send.setColumn( 0, "srchfromdd" , fGetCalendarDate(switch1.case_modify.grd_calendar));
  1664. ds_send.setColumn( 0, "srchtodd" , fGetCalendarDate(switch1.case_modify.grd_calendar));
  1665. //trace("fGetRsrvSchList" + ds_send.saveXML());
  1666. call_TRAHB01501();
  1667. if( ds_temp_schlst_item.rowcount > 0 ) {
  1668. ds_main_schedule_rsrvtmlst_item.copyData(ds_temp_schlst_item);
  1669. }
  1670. }
  1671. else if( vMode == 2 ) {
  1672. ds_send.setColumn( 0, "srchrsrvdd", "" );
  1673. ds_temp_templst_rsrvddlst.clearData();
  1674. ds_temp_templst_rsrvtmlst.clearData();
  1675. var oParam = {};
  1676. oParam.id = "TRAHB01503";
  1677. oParam.service = "healexambaseapp.ScheduleCode";
  1678. oParam.method = "reqGetRsrvScheduleList";
  1679. oParam.inds = "req=ds_send";
  1680. oParam.outds = "ds_temp_templst_rsrvddlst=ddlst ds_temp_templst_rsrvtmlst=tmlst";
  1681. oParam.async = false;
  1682. //oParam.callback = "cf_TRAHB01503";
  1683. tranf_submit(oParam);
  1684. if( ds_temp_templst_rsrvddlst.rowcount > 0 ){
  1685. var dd = null ;
  1686. var iCol = null;
  1687. var iRow = null;
  1688. var firstDay = String(sRsrvMon+ "01").toDate().getDay();
  1689. for( var i = 0 ; i < ds_temp_templst_rsrvddlst.rowcount ; i++){
  1690. dd = ds_temp_templst_rsrvddlst.getColumn(i, "rsrvdd");
  1691. iCol = String(sRsrvMon + dd).toDate().getDay();
  1692. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 ) -1;
  1693. ds_temp_calendar_weeklist_list.setColumn(iRow , iCol + 7, ds_temp_templst_rsrvddlst.getColumn(i, "psnnocnt"));
  1694. }
  1695. }
  1696. }
  1697. }
  1698. /*-**************************************************************************************
  1699. * Argument : srchcond2
  1700. * Description : 예약시간 선택 시 해당 일자 예약자 리스트 조회
  1701. ****************************************************************************************/
  1702. function fGetRsrvPatList(srchcond2){
  1703. //건진전체일정 , 검사실예약인원 리스트 조회
  1704. if(switch1.case_modify.group2.rdo_srchcond2.value == "T" || switch1.case_modify.group2.rdo_srchcond2.value == "R") {
  1705. var sRsrvDate = fGetCalendarDate(switch1.case_modify.grd_calendar);
  1706. var sHealExamFlag = m_vHealexamflag;
  1707. var sStatFg = "C";
  1708. ds_send.setColumn( 0, "srchhealexamflag" , sHealExamFlag);
  1709. ds_send.setColumn( 0, "srchstatfg" , sStatFg);
  1710. ds_send.setColumn( 0, "srchdateyn" , "Y");
  1711. ds_send.setColumn( 0, "srchrsltcnstrsrvdd" , sRsrvDate);
  1712. ds_send.setColumn( 0, "srchfromdd" , fGetCalendarDate(switch1.case_modify.grd_calendar));
  1713. ds_send.setColumn( 0, "srchtodd" , fGetCalendarDate(switch1.case_modify.grd_calendar));
  1714. ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd") );
  1715. ds_send.setColumn( 0, "srchcnstdrid" , "");
  1716. ds_main_schedule_rsrvacptlst_item.clearData();
  1717. var oParam = {};
  1718. oParam.id = "TRAHA00401";
  1719. oParam.service = "healexamrsrvacptapp.HealExamPrest";
  1720. oParam.method = "reqGetHealExamPrestList";
  1721. oParam.inds = "req=ds_send";
  1722. oParam.outds = "ds_main_schedule_rsrvacptlst_item=item";
  1723. oParam.async = false;
  1724. oParam.callback = "cf_TRAHA00401";
  1725. tranf_submit(oParam);
  1726. }
  1727. else if(switch1.case_modify.group2.rdo_srchcond2.value == "C"){
  1728. var sRsrvDate = fGetCalendarDate(switch1.case_modify.grd_calendar);
  1729. var sHealExamFlag = m_vHealexamflag;
  1730. ds_send.setColumn( 0, "srchhealexamflag" , sHealExamFlag);
  1731. ds_send.setColumn( 0, "srchrsltcnstrsrvdd" , sRsrvDate);
  1732. ds_send.setColumn( 0, "srchfromdd" , fGetCalendarDate(switch1.case_modify.grd_calendar) );
  1733. ds_send.setColumn( 0, "srchtodd" , fGetCalendarDate(switch1.case_modify.grd_calendar) );
  1734. ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd") );
  1735. ds_main_schedule_rsrvacptlst_item.clearData();
  1736. var oParam = {};
  1737. oParam.id = "TRAHA00901";
  1738. oParam.service = "healexamrsltjudgapp.InqrInpt";
  1739. oParam.method = "reqGetCnstRsrvPatList";
  1740. oParam.inds = "req=ds_send";
  1741. oParam.outds = "ds_main_schedule_rsrvacptlst_item=item";
  1742. oParam.async = false;
  1743. //oParam.callback = "cf_TRAHA00901";
  1744. tranf_submit(oParam);
  1745. }
  1746. }
  1747. function cf_TRAHA00401(sSvcId, nErrorCode, sErrorMsg) {
  1748. if(nErrorCode < 0) return;
  1749. ds_main_schedule_rsrvacptlst_item.updatecontrol = false;
  1750. dsf_setFixVal(ds_main_schedule_rsrvacptlst_item, "sel:N");
  1751. ds_main_schedule_rsrvacptlst_item.updatecontrol = true;
  1752. }
  1753. /*-**************************************************************************************
  1754. * Argument : vGrd - 대상그리드
  1755. * Description : 전제삭제 함수
  1756. ****************************************************************************************/
  1757. function fDeleteAllRows(vGrd) {
  1758. var dsObj = this.objects[vGrd.binddataset];
  1759. for(var i = dsObj.rowcount-1; i >= 0; i--) {
  1760. if( dsObj.getRowType(i) == 2 ) {
  1761. dsObj.deleteRow(i);
  1762. }else{
  1763. grdf_setStatus(vGrd, "D", [i]);
  1764. }
  1765. }
  1766. }
  1767. /*-**************************************************************************************
  1768. * Argument : sCompId - 체크박스명
  1769. * Description : 바인딩된 데이터셋에 empty값 set
  1770. ****************************************************************************************/
  1771. function setFalseToEmpty(sCompId) {
  1772. for(var i = 0; i < this.binds.length; i++) {
  1773. if(eval(this.binds[i].compid).name == sCompId) {
  1774. var colNm = this.binds[i].columnid;
  1775. var dsNm = this.binds[i].datasetid;
  1776. eval(dsNm).setColumn(0,colNm,"");
  1777. break;
  1778. }
  1779. }
  1780. }
  1781. //=======================================================================================
  1782. // Event
  1783. //---------------------------------------------------------------------------------------
  1784. /****************************************************************************************
  1785. * Components : Form
  1786. * Description : 화면 처음 초기화시 폼초기화
  1787. ****************************************************************************************/
  1788. function SMAHB01500_onload(obj:Form, e:LoadEventInfo) {
  1789. frmf_initForm(obj);
  1790. //grdf_initGrid(grd_XXX);
  1791. //grdf_setGridSort(grd_XXX);
  1792. grdf_setRowTypeIcon(switch1.case_cret.grd_totalschlst, 0);
  1793. grdf_setRowTypeIcon(switch1.case_cret.grd_cnstschlst, 0);
  1794. grdf_setRowTypeIcon(switch1.case_cret.grd_roomschlst, 0);
  1795. grdf_setRowTypeIcon(switch1.case_modify.grd_rsrvtmlst, 0);
  1796. var flag = String(frmf_getMenuParam());
  1797. m_vHealexamflag = flag.substr(0, 1);
  1798. if(flag.length >= 3) {
  1799. m_vHealexamdetlflag = flag;
  1800. } else {
  1801. m_vHealexamdetlflag = flag + '01';
  1802. }
  1803. ds_send.setColumn( 0, "srchhealexamflag" , m_vHealexamflag);
  1804. ds_send.setColumn( 0, "srchhealexamdetlflag" , m_vHealexamdetlflag);
  1805. var arrParam = [{dsNm: "ds_init_A0069", cdGrpId: "A0069"}
  1806. ,{dsNm: "ds_init_A0070", cdGrpId: "A0070"}
  1807. ];
  1808. appf_getCodeList(arrParam);
  1809. if(m_vHealexamflag == "G"){
  1810. caption2.visible = true;
  1811. cmb_healexamdetlflag.visible = true;
  1812. ds_init_baseinfo_healexamdetlflag.copyData(ds_init_A0070);
  1813. }else if(m_vHealexamflag == "C"){
  1814. caption2.visible = true;
  1815. cmb_healexamdetlflag.visible = true;
  1816. ds_init_baseinfo_healexamdetlflag.copyData(ds_init_A0069);
  1817. if (m_vHealexamdetlflag == 'C01'){
  1818. m_vHealexamplacecd = 'S'
  1819. }else if (m_vHealexamdetlflag == 'C03'){
  1820. m_vHealexamplacecd = 'K'
  1821. }
  1822. dsf_makeValue( ds_send, "srchhealexamplacecd", "string", m_vHealexamplacecd );
  1823. }else{
  1824. caption2.visible = false;
  1825. cmb_healexamdetlflag.visible = false;
  1826. }
  1827. fInitCtrl();
  1828. cmb_healexamdetlflag.value = m_vHealexamdetlflag;
  1829. cmb_healexamdetlflag.onitemchanged.fireEvent(cmb_healexamdetlflag, new ItemChangeEventInfo);
  1830. ds_main_cnst.setColumn( 0, "cnstdrid", ds_init_cnst_drlst_itemdr.getColumn(0, "drid"));
  1831. switch1.case_modify.group2.btn_searchcnnst.enable = frmf_checkAuth("R");
  1832. grp_btn.btn_save.enable = frmf_checkAuth("X");
  1833. grp_btn.btn_print.enable = frmf_checkAuth("P");
  1834. //T=> 건진전체일정관리, C: 상담의별 인원관리, R: 검사실별 일별 인원관리
  1835. fGetSchList("T");
  1836. fGetSchList("C");
  1837. fGetSchList("R");
  1838. switch1.case_cret.chx_cnstam.value = true;
  1839. switch1.case_cret.chx_cnstfm.value = true ;
  1840. }
  1841. /****************************************************************************************
  1842. * Components : Button
  1843. * Description : 건진정체예약스케쥴 생성
  1844. ****************************************************************************************/
  1845. function switch1_case_cret_btn_totalmake_onclick(obj:Button, e:ClickEventInfo) {
  1846. frmf_openLoadingBar("스케쥴 생성하고 있습니다.");
  1847. fMakeTotSch();
  1848. frmf_closeLoadingBar();
  1849. switch1.case_cret.btn_totsave.setFocus();
  1850. }
  1851. /****************************************************************************************
  1852. * Components : Button
  1853. * Description : 건진정체예약스케쥴 초기화
  1854. ****************************************************************************************/
  1855. function switch1_case_cret_btn_totclear_onclick(obj:Button, e:ClickEventInfo) {
  1856. fClearSch("T");
  1857. }
  1858. /****************************************************************************************
  1859. * Components : Button
  1860. * Description : 건진정체예약스케쥴 추가
  1861. ****************************************************************************************/
  1862. function switch1_case_cret_btn_totadd_onclick(obj:Button, e:ClickEventInfo) {
  1863. var nRow = ds_main_total_schlst_item.addRow();
  1864. ds_main_total_schlst_item.setColumn(nRow, "rsrvdd", utlf_getCurrentDate());
  1865. ds_main_total_schlst_item.setColumn(nRow, "psnnomancnt", 0);
  1866. ds_main_total_schlst_item.setColumn(nRow, "psnnowomcnt", 0);
  1867. ds_main_total_schlst_item.setColumn(nRow, "psnnocomcnt", 0);
  1868. switch1.case_cret.grd_totalschlst.setFocus();
  1869. switch1.case_cret.grd_totalschlst.setCellPos(1);
  1870. switch1.case_cret.grd_totalschlst.showEditor(true);
  1871. }
  1872. /****************************************************************************************
  1873. * Components : Button
  1874. * Description : 건진정체예약스케쥴 삭제
  1875. ****************************************************************************************/
  1876. function switch1_case_cret_btn_totdel_onclick(obj:Button, e:ClickEventInfo) {
  1877. var objGrd = switch1.case_cret.grd_totalschlst;
  1878. var selectedRows = grdf_getSelectedRows(objGrd);
  1879. for (var i = selectedRows.length-1; i >= 0; i--){
  1880. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  1881. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  1882. }else{
  1883. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  1884. }
  1885. }
  1886. }
  1887. /****************************************************************************************
  1888. * Components : Button
  1889. * Description : 건진정체예약스케쥴 전체삭제
  1890. ****************************************************************************************/
  1891. function switch1_case_cret_btn_totalldel_onclick(obj:Button, e:ClickEventInfo) {
  1892. fDeleteAllRows(switch1.case_cret.grd_totalschlst);
  1893. }
  1894. /****************************************************************************************
  1895. * Components : Button
  1896. * Description : 건진정체예약스케쥴 저장
  1897. ****************************************************************************************/
  1898. function switch1_case_cret_btn_totsave_onclick(obj:Button, e:ClickEventInfo) {
  1899. ds_temp_srchdel_srchrow.clearData();
  1900. ds_send.setColumn( 0, "srchcond", "T");
  1901. //cal_TRAHB01507();
  1902. var oParam = {};
  1903. oParam.id = "TRAHB01507";
  1904. oParam.service = "healexambaseapp.ScheduleCode";
  1905. oParam.method = "reqDelCheckScheduleCode";
  1906. oParam.inds = "req=ds_send";
  1907. oParam.outds = "ds_temp_srchdel_srchrow=srchrow";
  1908. oParam.async = false;
  1909. //oParam.callback = "cf_TRAHB01507";
  1910. tranf_submit(oParam);
  1911. if(ds_temp_srchdel_srchrow.getColumn(0, "rowcnt") > 0){
  1912. if(sysf_messageBox(ds_temp_srchdel_srchrow.getColumn(0, "rowcnt") + " 건의 예약일정 내역이 존재합니다. 예약일정 내역을", "Q002") != 6) return;
  1913. fSaveSch("T", switch1.case_cret.grd_totalschlst, null, null, "I") ;
  1914. }else{
  1915. if(sysf_messageBox("예약일정 내역을", "Q002") != 6) return;
  1916. fSaveSch("T", switch1.case_cret.grd_totalschlst, null, null, "I") ;
  1917. }
  1918. }
  1919. /****************************************************************************************
  1920. * Components : Button
  1921. * Description : 검사실별 예약스케줄생성
  1922. ****************************************************************************************/
  1923. function switch1_case_cret_btn_roommake_onclick(obj:Button, e:ClickEventInfo) {
  1924. frmf_openLoadingBar("스케쥴 생성하고 있습니다.");
  1925. fMakeRoomSch();
  1926. frmf_closeLoadingBar();
  1927. }
  1928. /****************************************************************************************
  1929. * Components : Grid
  1930. * Description : 검사실별 예약스케줄생성 검사실 코드 선택
  1931. ****************************************************************************************/
  1932. function switch1_case_cret_grd_roomlst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  1933. if(e.row < 0) return;
  1934. fGetSchList("R");
  1935. }
  1936. /****************************************************************************************
  1937. * Components : Button
  1938. * Description : 검사실별 예약스케줄생성 초기화
  1939. ****************************************************************************************/
  1940. function switch1_case_cret_btn_roomclear_onclick(obj:Button, e:ClickEventInfo) {
  1941. fClearSch("R");
  1942. fGetSchList("R");
  1943. }
  1944. /****************************************************************************************
  1945. * Components : Button
  1946. * Description : 검사실별 예약스케줄생성 행추가
  1947. ****************************************************************************************/
  1948. function switch1_case_cret_btn_roomadd_onclick(obj:Button, e:ClickEventInfo) {
  1949. var nRow = ds_main_room_schlst_item.addRow();
  1950. ds_main_room_schlst_item.setColumn(nRow, "rsrvdd", utlf_getCurrentDate());
  1951. switch1.case_cret.grd_roomschlst.setFocus();
  1952. switch1.case_cret.grd_roomschlst.setCellPos(1);
  1953. switch1.case_cret.grd_roomschlst.showEditor(true);
  1954. }
  1955. /****************************************************************************************
  1956. * Components : Button
  1957. * Description : 검사실별 예약스케줄생성 행삭제
  1958. ****************************************************************************************/
  1959. function switch1_case_cret_btn_roomdel_onclick(obj:Button, e:ClickEventInfo) {
  1960. var objGrd = switch1.case_cret.grd_roomschlst;
  1961. var selectedRows = grdf_getSelectedRows(objGrd);
  1962. for (var i = selectedRows.length-1; i >= 0; i--){
  1963. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  1964. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  1965. }else{
  1966. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  1967. }
  1968. }
  1969. }
  1970. /****************************************************************************************
  1971. * Components : Button
  1972. * Description : 검사실별 예약스케줄생성 저장
  1973. ****************************************************************************************/
  1974. function switch1_case_cret_btn_roomsave_onclick(obj:Button, e:ClickEventInfo) {
  1975. if(sysf_messageBox("검사실별 일별 예약인원 설정내역을", "Q002") != 6) return;
  1976. fSaveSch("R", null , switch1.case_cret.grd_roomschlst, null, "I");
  1977. }
  1978. /****************************************************************************************
  1979. * Components : Button
  1980. * Description : 검사실별 예약스케줄생성 전체삭제
  1981. ****************************************************************************************/
  1982. function switch1_case_cret_btn_roomalldel_onclick(obj:Button, e:ClickEventInfo) {
  1983. fDeleteAllRows(switch1.case_cret.grd_roomschlst);
  1984. }
  1985. /****************************************************************************************
  1986. * Components : Button
  1987. * Description : 상담예약스케줄 초기화
  1988. ****************************************************************************************/
  1989. function switch1_case_cret_btn_cnstclear_onclick(obj:Button, e:ClickEventInfo) {
  1990. fClearSch("C");
  1991. fGetSchList("C");
  1992. }
  1993. /****************************************************************************************
  1994. * Components : Combo
  1995. * Description : 상담의 변경시
  1996. ****************************************************************************************/
  1997. function switch1_case_cret_cmb_cnstdrid_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  1998. fGetSchList("C");
  1999. switch1.case_cret.ipt_cnstamfromtm.setFocus();
  2000. }
  2001. /****************************************************************************************
  2002. * Components : Button
  2003. * Description : 상담예약스케줄 생성
  2004. ****************************************************************************************/
  2005. function switch1_case_cret_btn_cnstmake_onclick(obj:Button, e:ClickEventInfo) {
  2006. frmf_openLoadingBar("스케쥴 생성하고 있습니다.");
  2007. fMakeCnstSch();
  2008. frmf_closeLoadingBar();
  2009. switch1.case_cret.btn_savecnst.setFocus();
  2010. }
  2011. /****************************************************************************************
  2012. * Components : Button
  2013. * Description : 상담예약스케줄 저장
  2014. ****************************************************************************************/
  2015. function switch1_case_cret_btn_savecnst_onclick(obj:Button, e:ClickEventInfo) {
  2016. ds_temp_srchdel_srchrow.clearData();
  2017. ds_send.setColumn( 0, "srchcond", "C");
  2018. call_TRAHB01507();
  2019. if(ds_temp_srchdel_srchrow.getColumn(0, "rowcnt") > 0){
  2020. if(sysf_messageBox(ds_temp_srchdel_srchrow.getColumn(0, "rowcnt") + " 건의 상담예약 내역이 존재합니다. 상담예약 내역을", "Q002") != 6) return;
  2021. fSaveSch("C", null , null, switch1.case_cret.grd_cnstschlst, "I");
  2022. }else{
  2023. if(sysf_messageBox("상담예약 내역을", "Q002") != 6) return;
  2024. fSaveSch("C", null , null, switch1.case_cret.grd_cnstschlst, "I");
  2025. }
  2026. }
  2027. /****************************************************************************************
  2028. * Components : Button
  2029. * Description : 상담예약스케줄 전체삭제
  2030. ****************************************************************************************/
  2031. function switch1_case_cret_button1_onclick(obj:Button, e:ClickEventInfo) {
  2032. fDeleteAllRows(switch1.case_cret.grd_cnstschlst);
  2033. }
  2034. /****************************************************************************************
  2035. * Components : Button
  2036. * Description : 상담예약스케줄 삭제
  2037. ****************************************************************************************/
  2038. function switch1_case_cret_button4_onclick(obj:Button, e:ClickEventInfo) {
  2039. var objGrd = switch1.case_cret.grd_cnstschlst;
  2040. var selectedRows = grdf_getSelectedRows(objGrd);
  2041. for (var i = selectedRows.length-1; i >= 0; i--){
  2042. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  2043. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  2044. }else{
  2045. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  2046. }
  2047. }
  2048. }
  2049. /****************************************************************************************
  2050. * Components : Button
  2051. * Description : 상담예약스케줄 추가
  2052. ****************************************************************************************/
  2053. function switch1_case_cret_button5_onclick(obj:Button, e:ClickEventInfo) {
  2054. var nRow = ds_main_cnst_schlst_item.addRow();
  2055. ds_main_cnst_schlst_item.setColumn(nRow, "rsrvdd", utlf_getCurrentDate());
  2056. switch1.case_cret.grd_cnstschlst.setFocus();
  2057. switch1.case_cret.grd_cnstschlst.setCellPos(1);
  2058. switch1.case_cret.grd_cnstschlst.showEditor(true);
  2059. }
  2060. /****************************************************************************************
  2061. * Components : Button
  2062. * Description : 부분영역저장
  2063. ****************************************************************************************/
  2064. function switch1_case_cret_button3_onclick(obj:Button, e:ClickEventInfo) {
  2065. // 경고메세지
  2066. sysf_messageBox(" !!!!!!!!!! 주의 요망 !!!!!!!!!! \n검사실 기간, 인원 재차 ","I007");
  2067. // 부분영역수정저장가능하게 수정요청함.
  2068. if( sysf_messageBox("설정하신 ##기간##, 선택하신 검사실 ##인원##으로", "Q002") != 6) return ;
  2069. var fromdd = ds_main_room.getColumn(0, "fromdd");
  2070. var todd = ds_main_room.getColumn(0, "todd");
  2071. if(fromdd >= todd){
  2072. sysf_messageBox("시작일이 종료일보다 클 수 ","I004");
  2073. return;
  2074. }
  2075. ds_send_partchngroomcode.setColumn( 0, "healexamflag", m_vHealexamflag );
  2076. ds_send_partchngroomcode.setColumn( 0, "healexamdetlflag", m_vHealexamdetlflag );
  2077. ds_send_partchngroomcode.setColumn( 0, "fromdd", fromdd);
  2078. ds_send_partchngroomcode.setColumn( 0, "todd", todd);
  2079. var dsUpdate = grdf_getGridUpdateData(switch1.case_cret.grd_roomlst, "all");
  2080. grdf_setStatusColumn(dsUpdate, "m");
  2081. ds_send_partchngroomcode_chnglist.copyData(dsUpdate, true);
  2082. var oParam = {};
  2083. oParam.id = "TXAHB01502";
  2084. oParam.service = "healexambaseapp.ScheduleCode";
  2085. oParam.method = "reqExeScheduleCodeChng";
  2086. oParam.inds = "dd=ds_send_partchngroomcode list=ds_send_partchngroomcode_chnglist";
  2087. oParam.outds = "ds_hidden_saveroom=saveroom";
  2088. oParam.async = false;
  2089. //oParam.callback = "cf_TXAHB01502";
  2090. tranf_submit(oParam);
  2091. }
  2092. /****************************************************************************************
  2093. * Components : Button
  2094. * Description : 예약일정수정/조회 조회
  2095. ****************************************************************************************/
  2096. function switch1_case_modify_group2_btn_searchcnnst_onclick(obj:Button, e:ClickEventInfo) {
  2097. fGetRsrvSchList(2);
  2098. }
  2099. /****************************************************************************************
  2100. * Components : Grid
  2101. * Description : 예약일정 선택
  2102. ****************************************************************************************/
  2103. function switch1_case_modify_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2104. // setCellColor(switch1.case_modify.grd_calendar);
  2105. fGetRsrvSchList(1);
  2106. fGetRsrvPatList();
  2107. //달력의 선택한 일자 일자비고일자에 셋팅.
  2108. dsf_makeValue( ds_main_dayblist, "remdd", "string", fGetCalendarDate(switch1.case_modify.grd_calendar));
  2109. switch1.case_modify.btn_srch_dayb.click();
  2110. }
  2111. /****************************************************************************************
  2112. * Components : Button
  2113. * Description : 예약일정 시간대별인원 저장
  2114. ****************************************************************************************/
  2115. function switch1_case_modify_btn_modify_onclick(obj:Button, e:ClickEventInfo) {
  2116. if(sysf_messageBox( switch1.case_modify.group2.rdo_srchcond2.text + " 변경내역을 " , "Q002" ) != 6) return;
  2117. fSaveSch(switch1.case_modify.group2.rdo_srchcond2.value , switch1.case_modify.grd_rsrvtmlst, switch1.case_modify.grd_rsrvtmlst, switch1.case_modify.grd_rsrvtmlst, "U") ;
  2118. }
  2119. /****************************************************************************************
  2120. * Components : Button
  2121. * Description : 예약일정 시간대별인원 행삭제
  2122. ****************************************************************************************/
  2123. function switch1_case_modify_btn_tmdel_onclick(obj:Button, e:ClickEventInfo) {
  2124. var objGrd = switch1.case_modify.grd_rsrvtmlst;
  2125. var selectedRows = grdf_getSelectedRows(objGrd);
  2126. for (var i = selectedRows.length-1; i >= 0; i--){
  2127. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  2128. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  2129. }else{
  2130. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  2131. }
  2132. }
  2133. }
  2134. /****************************************************************************************
  2135. * Components : Button
  2136. * Description : 예약일정 시간대별인원 행추가
  2137. ****************************************************************************************/
  2138. function switch1_case_modify_btn_tmadd_onclick(obj:Button, e:ClickEventInfo) {
  2139. var nRow = ds_main_schedule_rsrvtmlst_item.addRow();
  2140. ds_main_schedule_rsrvtmlst_item.setColumn(nRow, 1, utlf_getCurrentDate());
  2141. switch1.case_modify.grd_rsrvtmlst.setFocus();
  2142. switch1.case_modify.grd_rsrvtmlst.setCellPos(1);
  2143. switch1.case_modify.grd_rsrvtmlst.showEditor(true);
  2144. }
  2145. /****************************************************************************************
  2146. * Components : Button
  2147. * Description : 예약일정 전년
  2148. ****************************************************************************************/
  2149. function switch1_case_modify_grp_calendar_btn_preyear_onclick(obj:Button, e:ClickEventInfo) {
  2150. fHRefreshCalender("Y", -1);
  2151. fGetRsrvSchList(2);
  2152. }
  2153. /****************************************************************************************
  2154. * Components : Button
  2155. * Description : 예약일정 후년
  2156. ****************************************************************************************/
  2157. function switch1_case_modify_grp_calendar_btn_nextyear_onclick(obj:Button, e:ClickEventInfo) {
  2158. fHRefreshCalender("Y", 1);
  2159. fGetRsrvSchList(2);
  2160. }
  2161. /****************************************************************************************
  2162. * Components : Button
  2163. * Description : 예약일정 전월
  2164. ****************************************************************************************/
  2165. function switch1_case_modify_grp_calendar_btn_premonth_onclick(obj:Button, e:ClickEventInfo) {
  2166. fHRefreshCalender("M", -1);
  2167. fGetRsrvSchList(2);
  2168. }
  2169. /****************************************************************************************
  2170. * Components : Button
  2171. * Description : 예약일정 후월
  2172. ****************************************************************************************/
  2173. function switch1_case_modify_grp_calendar_btn_nextmonth_onclick(obj:Button, e:ClickEventInfo) {
  2174. fHRefreshCalender("M",1);
  2175. fGetRsrvSchList(2);
  2176. }
  2177. /****************************************************************************************
  2178. * Components : Button
  2179. * Description : 예약일정 시간대별인원 초기화
  2180. ****************************************************************************************/
  2181. function switch1_case_modify_btn_scheduletmclear_onclick(obj:Button, e:ClickEventInfo) {
  2182. fGetRsrvSchList(1);
  2183. }
  2184. /****************************************************************************************
  2185. * Components : Button
  2186. * Description : 예약일정 일자별 저장
  2187. ****************************************************************************************/
  2188. function switch1_case_modify_button2_onclick(obj:Button, e:ClickEventInfo) {
  2189. dsf_makeValue( ds_main_dayblist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  2190. dsf_makeValue( ds_main_dayblist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  2191. var oParam = {};
  2192. oParam.id = "TXAHB01509";
  2193. oParam.service = "healexambaseapp.ScheduleCode";
  2194. oParam.method = "reqExeDaybList";
  2195. oParam.inds = "req=ds_main_dayblist";
  2196. oParam.outds = "ds_main_dayblist=dayblist";
  2197. oParam.async = false;
  2198. //oParam.callback = "cf_TXAHB01509";
  2199. tranf_submit(oParam);
  2200. if(utlf_isNull(ds_main_dayblist.getColumn(0, "remdd"))) {
  2201. //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
  2202. dsf_makeValue( ds_main_dayblist, "remcnts", "string", "" );
  2203. dsf_makeValue( ds_main_dayblist, "remdd", "string", fGetCalendarDate(switch1.case_modify.grd_calendar));
  2204. }
  2205. }
  2206. /****************************************************************************************
  2207. * Components : Button
  2208. * Description : 예약일정 일자별 조회
  2209. ****************************************************************************************/
  2210. function switch1_case_modify_btn_srch_dayb_onclick(obj:Button, e:ClickEventInfo) {
  2211. dsf_makeValue( ds_main_dayblist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  2212. var oParam = {};
  2213. oParam.id = "TRAHB01508";
  2214. oParam.service = "healexambaseapp.ScheduleCode";
  2215. oParam.method = "reqGetDaybList";
  2216. oParam.inds = "req=ds_main_dayblist";
  2217. oParam.outds = "ds_main_dayblist=dayblist";
  2218. oParam.async = false;
  2219. //oParam.callback = "cf_TRAHB01508";
  2220. tranf_submit(oParam);
  2221. if(utlf_isNull(ds_main_dayblist.getColumn(0, "remdd"))) {
  2222. //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
  2223. dsf_makeValue( ds_main_dayblist, "remcnts", "string", "" );
  2224. dsf_makeValue( ds_main_dayblist, "remdd", "string", fGetCalendarDate(switch1.case_modify.grd_calendar));
  2225. }
  2226. }
  2227. /****************************************************************************************
  2228. * Components : Button
  2229. * Description : 예약일정 일자별 일자변경
  2230. ****************************************************************************************/
  2231. function switch1_case_modify_ipt_remdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  2232. {
  2233. switch1.case_modify.btn_srch_dayb.click();
  2234. }
  2235. /****************************************************************************************
  2236. * Components : Combo
  2237. * Description : 건진구분 변경시
  2238. ****************************************************************************************/
  2239. function cmb_healexamdetlflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2240. if (cmb_healexamdetlflag.value == 'C01') {
  2241. m_vHealexamplacecd = 'S'
  2242. } else if (cmb_healexamdetlflag.value == 'C03') {
  2243. m_vHealexamplacecd = 'K'
  2244. }
  2245. dsf_makeValue( ds_send, "srchhealexamdetlflag", "string", cmb_healexamdetlflag.value );
  2246. dsf_makeValue( ds_send, "srchhealexamplacecd", "string", m_vHealexamplacecd );
  2247. fInitCtrl();
  2248. ds_main_cnst.setColumn( 0, "cnstdrid", ds_init_cnst_drlst_itemdr.getColumn(0, "drid"));
  2249. switch1.case_modify.group2.btn_searchcnnst.enable = frmf_checkAuth("R");
  2250. grp_btn.btn_save.enable = frmf_checkAuth("X");
  2251. grp_btn.btn_print.enable = frmf_checkAuth("P");
  2252. fGetSchList("T");
  2253. fGetSchList("C");
  2254. fGetSchList("R");
  2255. }
  2256. /****************************************************************************************
  2257. * Components : CheckBox
  2258. * Description : 체크해제시 empty값 입력
  2259. ****************************************************************************************/
  2260. function CheckBox_onclick(obj:CheckBox, e:ClickEventInfo)
  2261. {
  2262. if(obj.value == false) setFalseToEmpty(obj.name);
  2263. else if(obj.name == "chk_srchallroom") {
  2264. switch1.case_modify.group2.cmb_srchroomcd.value = "";
  2265. fHRefreshCalender("M", 0);
  2266. fGetRsrvSchList(2);
  2267. }
  2268. }
  2269. function ds_init_room_roomlst_itemroom_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2270. {
  2271. if(e.columnid=="sel") {
  2272. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  2273. }
  2274. }
  2275. /****************************************************************************************
  2276. * Components : Tab
  2277. * Description : 예약일정수정/조회 탭 선택시
  2278. ****************************************************************************************/
  2279. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  2280. {
  2281. if( e.postindex == 1 ) {
  2282. ds_main_schedule.setColumn(0, "srchcnstdrid", ds_init_cnst_drlst_itemdr.getColumn(0, "drid"));
  2283. ds_temp_calendar_weeklist_list.rowposition = -1;
  2284. }
  2285. }
  2286. /****************************************************************************************
  2287. * Components : Dataset
  2288. * Description : 스케줄 일자 변경시 다음 컴포넌트 setfocus 및 조회실행
  2289. ****************************************************************************************/
  2290. function ds_main_total_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2291. {
  2292. if(e.columnid == "fromdd") {
  2293. fGetSchList("T");
  2294. switch1.case_cret.ipt_tottodd.setFocus();
  2295. }
  2296. if(e.columnid == "todd") {
  2297. fGetSchList("T");
  2298. switch1.case_cret.ipt_totfromtm.setFocus();
  2299. }
  2300. }
  2301. function ds_main_cnst_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2302. {
  2303. if(e.columnid == "fromdd") {
  2304. fGetSchList("C");
  2305. switch1.case_cret.ipt_cnsttodd.setFocus();
  2306. }
  2307. if(e.columnid == "todd") {
  2308. fGetSchList("C");
  2309. switch1.case_cret.cmb_cnstdrid.setFocus();
  2310. }
  2311. }
  2312. function ds_main_room_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2313. {
  2314. if(e.columnid == "fromdd") {
  2315. fGetSchList("R");
  2316. switch1.case_cret.ipt_roomtodd.setFocus();
  2317. }
  2318. if(e.columnid == "todd") {
  2319. fGetSchList("R");
  2320. switch1.case_cret.ipt_roomcnt.setFocus();
  2321. }
  2322. }
  2323. /****************************************************************************************
  2324. * Components : common
  2325. * Description : 값입력 후 엔터시 다음 taborder 로 setfocus
  2326. ****************************************************************************************/
  2327. function Calendar_onkeyup(obj:Calendar, e:KeyEventInfo)
  2328. {
  2329. if(e.keycode == 13) {
  2330. obj.updateToDataset();
  2331. this.getNextComponent(obj).setFocus();
  2332. }
  2333. }
  2334. function MaskEdit_onkeyup(obj:MaskEdit, e:KeyEventInfo)
  2335. {
  2336. if(e.keycode == 13) {
  2337. obj.updateToDataset();
  2338. this.getNextComponent(obj).setFocus();
  2339. }
  2340. }
  2341. function Edit_onkeyup(obj:Edit, e:KeyEventInfo)
  2342. {
  2343. if(e.keycode == 13) {
  2344. obj.updateToDataset();
  2345. this.getNextComponent(obj).setFocus();
  2346. }
  2347. }
  2348. function switch1_case_cret_ipt_roomcnt_onkeydown(obj:Edit, e:KeyEventInfo)
  2349. {
  2350. if(e.keycode == 13) {
  2351. var cnt = switch1.case_cret.ipt_roomcnt.text ;
  2352. for( var i = 0; i < ds_init_room_roomlst_itemroom.rowcount ; i++){
  2353. ds_init_room_roomlst_itemroom.setColumn(i, "cnt", cnt);
  2354. }
  2355. }
  2356. }
  2357. function ds_main_total_schlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2358. {
  2359. var idx = e.row;
  2360. if( idx < 0 ) return ;
  2361. if( e.col == 1 ) {
  2362. var rsrvdd = obj.getColumn(idx, 1);
  2363. if( !utlf_isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
  2364. obj.setColumn(idx, 2, String(rsrvdd).toDate("YYYYMMDD").getDayOfWeek("K"));
  2365. }
  2366. }
  2367. function ds_main_room_schlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2368. {
  2369. var idx = e.row;
  2370. if( idx < 0 ) return ;
  2371. if( e.col == 1 ){
  2372. var rsrvdd = obj.getColumn(idx, 1);
  2373. if( !utlf_isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
  2374. obj.setColumn(idx, 2, String(rsrvdd).toDate("YYYYMMDD").getDayOfWeek("K"));
  2375. }
  2376. }
  2377. /****************************************************************************************
  2378. * Components : Radio
  2379. * Description : 예약일정 조회구분 선택
  2380. ****************************************************************************************/
  2381. function switch1_case_modify_group2_rdo_srchcond2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2382. {
  2383. fHRefreshCalender("M", 0);
  2384. fSetSrchCtrlState(switch1.case_modify.group2.rdo_srchcond2.value);
  2385. fGetRsrvSchList(2);
  2386. }
  2387. /****************************************************************************************
  2388. * Components : Combo
  2389. * Description : 예약일정 상담의 변경
  2390. ****************************************************************************************/
  2391. function switch1_case_modify_group2_cmb_srchcnstdrid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2392. {
  2393. fHRefreshCalender("M", 0);
  2394. fGetRsrvSchList(2);
  2395. }
  2396. /****************************************************************************************
  2397. * Components : Combo
  2398. * Description : 예약일정 검사실 변경
  2399. ****************************************************************************************/
  2400. function switch1_case_modify_group2_cmb_srchroomcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2401. {
  2402. fHRefreshCalender("M", 0);
  2403. fGetRsrvSchList(2);
  2404. }
  2405. function switch1_case_cret_ipt_tottodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  2406. {
  2407. fGetSchList("T");
  2408. }
  2409. //상담예약 스케쥴 생성 조회 기능 추가 20200211 임승주
  2410. function switch1_case_cret_btn_search_onclick(obj:Button, e:ClickEventInfo)
  2411. {
  2412. fGetSchList("C");
  2413. switch1.case_cret.ipt_cnstamfromtm.setFocus();
  2414. }
  2415. //상담예약 스케쥴 오전/오후 생선 관련 함수 추가 20200317 임승주
  2416. function switch1_case_cret_chx_cnstam_onclick(obj:CheckBox, e:ClickEventInfo)
  2417. {
  2418. if( switch1.case_cret.chx_cnstam.value == true)
  2419. {
  2420. switch1.case_cret.ipt_cnstamfromtm.value = "0830";
  2421. switch1.case_cret.ipt_cnstamtotm.value = "1200";
  2422. }
  2423. else
  2424. {
  2425. switch1.case_cret.ipt_cnstamfromtm.value = "0000";
  2426. switch1.case_cret.ipt_cnstamtotm.value = "0000";
  2427. }
  2428. }
  2429. function switch1_case_cret_chx_cnstfm_onclick(obj:CheckBox, e:ClickEventInfo)
  2430. {
  2431. if( switch1.case_cret.chx_cnstfm.value == true)
  2432. {
  2433. switch1.case_cret.ipt_cnstfmfromtm.value = "1300";
  2434. switch1.case_cret.ipt_cnstfmtotm.value = "1700";
  2435. }
  2436. else
  2437. {
  2438. switch1.case_cret.ipt_cnstfmfromtm.value = "0000";
  2439. switch1.case_cret.ipt_cnstfmtotm.value = "0000";
  2440. }
  2441. }
  2442. ]]></Script>
  2443. </Form>
  2444. </FDL>