SPPMB01001_병원달력.xfdl 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMB01001" position="absolute 0 0 389 474" titletext="병원달력" oninit="SPPMB01001_oninit" onload="SPPMB01001_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="9" position="absolute 0 0 384 40" class="div_SA2"/>
  8. <Button position="absolute 140 11 156 27" id="button31" class="icon_pre_year" text="" onclick="button31_onclick" taborder="6"/>
  9. <Button position="absolute 231 11 247 27" id="button32" class="icon_next_year" text="" onclick="button32_onclick" taborder="5"/>
  10. <Button position="absolute 117 11 133 27" id="btn_premonth" class="icon_pre_month" visible="false" text="" onclick="btn_premonth_onclick" taborder="4"/>
  11. <Button position="absolute 254 11 270 27" id="button34" class="icon_next_month" visible="false" text="" onclick="button34_onclick" taborder="3"/>
  12. <Edit readonly="true" position="absolute 162 6 212 33" id="opt_year" class="calendar_output" taborder="2" style="background:transparent;border:1 none #3576aeff ;padding:0 0 0 0;align:center middle;font:Dotum,9,bold;"/>
  13. <Edit readonly="true" position="absolute 310 7 340 26" id="opt_month" class="calendar_output" visible="false" taborder="1" style="background:transparent;border:1 none #3576aeff ;"/>
  14. <Static text="년" position="absolute 211 10 231 29" id="caption1" class="calendar_output" style="color:black;font:Dotum,9,bold;"/>
  15. <Static text="월" position="absolute 340 7 360 26" id="caption2" class="calendar_output" visible="false" style="color:black;font:Dotum,9,bold;"/>
  16. <Grid position="absolute 0 79 384 442" id="grd_calendar" binddataset="ds_hidden_calendar_weeklist_list" oncellclick="grd_calendar_oncellclick" selecttype="cell" taborder="7" tooltiptype="hover" autoenter="select" autofittype="col" cellsizingtype="both" extendsizetype="row" autosizingtype="row">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="55"/>
  21. <Column size="55"/>
  22. <Column size="55"/>
  23. <Column size="55"/>
  24. <Column size="55"/>
  25. <Column size="55"/>
  26. <Column size="55"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="27" band="head"/>
  30. <Row size="22"/>
  31. <Row size="40"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell text="일"/>
  35. <Cell col="1" text="월"/>
  36. <Cell col="2" text="화"/>
  37. <Cell col="3" text="수"/>
  38. <Cell col="4" text="목"/>
  39. <Cell col="5" text="금"/>
  40. <Cell col="6" text="토"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell displaytype="normal" style="align:center middle;padding:0 0 0 0;background:BIND(sun_background);background2:BIND(sun_background);color:EXPR(sun_dutflag == '8' ? 'red' : 'black');color2:EXPR(sun_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;controlbackground:transparent;" text="bind:sun" wordwrap="both" taborder="undefined" tooltiptext="bind:sun"/>
  44. <Cell col="1" style="align:center middle;padding:2 2 2 2;background:BIND(mon_background);background2:BIND(mon_background);color:EXPR(mon_dutflag == '8' ? 'red' : 'black');color2:EXPR(mon_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;selectgradation:EXPR(fSetProperty_tooltip(currow,&quot;mon&quot;,0));" text="bind:mon" wordwrap="both" tooltiptext="bind:mon"/>
  45. <Cell col="2" style="align:center middle;padding:2 2 2 2;background:BIND(tue_background);background2:BIND(tue_background);color:EXPR(tue_dutflag == '8' ? 'red' : 'black');color2:EXPR(tue_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;selectgradation:EXPR(fSetProperty_tooltip(currow,&quot;tue&quot;,0));" text="bind:tue" wordwrap="both" tooltiptext="bind:tue"/>
  46. <Cell col="3" displaytype="normal" style="align:center middle;padding:2 2 2 2;background:BIND(wed_background);background2:BIND(wed_background);color:EXPR(wed_dutflag == '8' ? 'red' : 'black');color2:EXPR(wed_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;selectgradation:EXPR(fSetProperty_tooltip(currow,&quot;wed&quot;,0));" text="bind:wed" wordwrap="both" tooltiptext="bind:wed"/>
  47. <Cell col="4" style="align:center middle;padding:2 2 2 2;background:BIND(thu_background);background2:BIND(thu_background);color:EXPR(thu_dutflag == '8' ? 'red' : 'black');color2:EXPR(thu_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;" text="bind:thu" wordwrap="both" tooltiptext="bind:thu"/>
  48. <Cell col="5" style="align:center middle;padding:2 2 2 2;background:BIND(fri_background);background2:BIND(fri_background);color:EXPR(fri_dutflag == '8' ? 'red' : 'black');color2:EXPR(fri_dutflag == '8' ? 'red' : 'black');font:arial,9,bold;selectbackground:transparent;selectgradation:EXPR(fSetProperty_tooltip(currow,&quot;fri&quot;,0));" text="bind:fri" wordwrap="both" tooltiptext="bind:fri"/>
  49. <Cell col="6" style="align:center middle;padding:2 2 2 2;background:BIND(sat_background);background2:BIND(sat_background);color:EXPR(sat_dutflag == '8' ? 'red' : 'blue');color2:EXPR(sat_dutflag == '8' ? 'red' : 'blue');font:arial,9,bold;selectbackground:transparent;" text="bind:sat" wordwrap="both" tooltiptext="bind:sat"/>
  50. <Cell row="1" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(sun_background);background2:BIND(sun_background);color:EXPR(sun_dutflag == '8' ? 'red' : 'black');color2:EXPR(sun_dutflag == '8' ? 'red' : 'black');font:굴림,9,bold;selectbackground:transparent;selectfont:돋움체,11,bold;controlbackground:transparent;controlborder:EXPR(sun == currentData ? '2 solid red' : '');" text="bind:sun_memo" wordwrap="word" taborder="undefined" tooltiptext="expr:utlf_isNull(sun_tooltip) ? getColumn(currow, 'sun_memo') : getColumn(currow, 'sun_tooltip')" autosizerow="limitmin"/>
  51. <Cell row="1" col="1" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(mon_background);background2:BIND(mon_background);color:EXPR(mon_dutflag == '8' ? 'red' : 'black');color2:EXPR(mon_dutflag == '8' ? 'red' : 'black');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(mon == currentData ? '2 solid red' : '');" text="bind:mon_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(mon_tooltip) ? getColumn(currow, 'mon_memo') : getColumn(currow, 'mon_tooltip')" autosizerow="limitmin"/>
  52. <Cell row="1" col="2" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(tue_background);background2:BIND(tue_background);color:EXPR(tue_dutflag == '8' ? 'red' : 'black');color2:EXPR(tue_dutflag == '8' ? 'red' : 'black');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(tue == currentData ? '2 solid red' : '');" text="bind:tue_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(tue_tooltip) ? getColumn(currow, 'tue_memo') : getColumn(currow, 'tue_tooltip')" autosizerow="limitmin"/>
  53. <Cell row="1" col="3" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(wed_background);background2:BIND(wed_background);color:EXPR(wed_dutflag == '8' ? 'red' : 'black');color2:EXPR(wed_dutflag == '8' ? 'red' : 'black');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(wed == currentData ? '2 solid red' : '');" text="bind:wed_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(wed_tooltip) ? getColumn(currow, 'wed_memo') : getColumn(currow, 'wed_tooltip')" autosizerow="limitmin"/>
  54. <Cell row="1" col="4" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(thu_background);background2:BIND(thu_background);color:EXPR(thu_dutflag == '8' ? 'red' : 'black');color2:EXPR(thu_dutflag == '8' ? 'red' : 'black');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(thu == currentData ? '2 solid red' : '');" text="bind:thu_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(thu_tooltip) ? getColumn(currow, 'thu_memo') : getColumn(currow, 'thu_tooltip')" autosizerow="limitmin"/>
  55. <Cell row="1" col="5" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(fri_background);background2:BIND(fri_background);color:EXPR(fri_dutflag == '8' ? 'red' : 'black');color2:EXPR(fri_dutflag == '8' ? 'red' : 'black');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(fri == currentData ? '2 solid red' : '');" text="bind:fri_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(fri_tooltip) ? getColumn(currow, 'fri_memo') : getColumn(currow, 'fri_tooltip')" autosizerow="limitmin"/>
  56. <Cell row="1" col="6" displaytype="button" style="align:center middle;padding:0 0 0 0;background:BIND(sat_background);background2:BIND(sat_background);color:EXPR(sat_dutflag == '8' ? 'red' : 'blue');color2:EXPR(sat_dutflag == '8' ? 'red' : 'blue');selectbackground:transparent;controlbackground:transparent;controlborder:EXPR(sat == currentData ? '2 solid red' : '');" text="bind:sat_memo" wordwrap="word" tooltiptext="expr:utlf_isNull(sat_tooltip) ? getColumn(currow, 'sat_memo') : getColumn(currow, 'sat_tooltip')" autosizerow="limitmin"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Static text="오후" position="absolute 37 448 68 466" align="align:center middle;" id="caption4" onclick="caption4_onclick" style="background:#ccffffff;align:center middle;"/>
  62. <Static text="전일" position="absolute 69 447 107 467" align="align:center middle;" id="caption6" style="background:#ffcc99ff;align:center middle;"/>
  63. <Static text="임시오전" position="absolute 108 447 161 467" align="align:center middle;" id="caption8" style="background:#c9c299ff;align:center middle;"/>
  64. <Static text="임시오후" position="absolute 163 447 213 467" align="align:center middle;" id="caption10" style="background:#ffccffff;align:center middle;" onclick="caption10_onclick"/>
  65. <Static text="당일마감" position="absolute 215 447 270 467" align="align:center middle;" id="caption16" style="background:#999999ff;align:center middle;"/>
  66. <Div id="caption3" taborder="8" text="오전" position="absolute 0 448 35 465" style="background:#ffff99ff;"/>
  67. <Button id="btn_jan" taborder="10" text="1" position="absolute 13 45 40 72" class="icon_month" onclick="btn_click"/>
  68. <Button id="btn_feb" taborder="11" text="2" onclick="btn_click" position="absolute 43 45 70 72"/>
  69. <Button id="btn_mar" taborder="12" text="3" onclick="btn_click" position="absolute 73 45 100 72"/>
  70. <Button id="btn_apr" taborder="13" text="4" onclick="btn_click" position="absolute 103 45 130 72"/>
  71. <Button id="btn_may" taborder="14" text="5" onclick="btn_click" position="absolute 133 45 160 72"/>
  72. <Button id="btn_jun" taborder="15" text="6" onclick="btn_click" position="absolute 163 45 190 72"/>
  73. <Button id="btn_jul" taborder="16" text="7" onclick="btn_click" position="absolute 193 45 220 72"/>
  74. <Button id="btn_aug" taborder="17" text="8" onclick="btn_click" position="absolute 223 45 250 72"/>
  75. <Button id="btn_sep" taborder="18" text="9" onclick="btn_click" position="absolute 253 45 280 72"/>
  76. <Button id="btn_oct" taborder="19" text="10" onclick="btn_click" position="absolute 283 45 310 72"/>
  77. <Button id="btn_nov" taborder="20" text="11" onclick="btn_click" position="absolute 313 45 340 72"/>
  78. <Button id="btn_dec" taborder="21" text="12" onclick="btn_click" position="absolute 343 45 370 72"/>
  79. <Static id="caption00" text="오늘" position="absolute 271 447 302 467" style="background:transparent;border:2 solid red ;align:center middle;" align="align:center middle;"/>
  80. </Layout>
  81. </Layouts>
  82. <Objects>
  83. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  84. <ColumnInfo>
  85. <Column id="year" type="STRING" size="256"/>
  86. <Column id="month" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row/>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="sun" type="STRING" size="256"/>
  95. <Column id="mon" type="STRING" size="256"/>
  96. <Column id="tue" type="STRING" size="256"/>
  97. <Column id="wed" type="STRING" size="256"/>
  98. <Column id="thu" type="STRING" size="256"/>
  99. <Column id="fri" type="STRING" size="256"/>
  100. <Column id="sat" type="STRING" size="256"/>
  101. <Column id="sun_memo" type="STRING" size="256"/>
  102. <Column id="mon_memo" type="STRING" size="256"/>
  103. <Column id="tue_memo" type="STRING" size="256"/>
  104. <Column id="wed_memo" type="STRING" size="256"/>
  105. <Column id="thu_memo" type="STRING" size="256"/>
  106. <Column id="fri_memo" type="STRING" size="256"/>
  107. <Column id="sat_memo" type="STRING" size="256"/>
  108. <Column id="sun_dutflag" type="STRING" size="256"/>
  109. <Column id="mon_dutflag" type="STRING" size="256"/>
  110. <Column id="tue_dutflag" type="STRING" size="256"/>
  111. <Column id="wed_dutflag" type="STRING" size="256"/>
  112. <Column id="thu_dutflag" type="STRING" size="256"/>
  113. <Column id="fri_dutflag" type="STRING" size="256"/>
  114. <Column id="sat_dutflag" type="STRING" size="256"/>
  115. <Column id="sun_tooltip" type="STRING" size="256"/>
  116. <Column id="mon_tooltip" type="STRING" size="256"/>
  117. <Column id="tue_tooltip" type="STRING" size="256"/>
  118. <Column id="wed_tooltip" type="STRING" size="256"/>
  119. <Column id="thu_tooltip" type="STRING" size="256"/>
  120. <Column id="fri_tooltip" type="STRING" size="256"/>
  121. <Column id="sat_tooltip" type="STRING" size="256"/>
  122. <Column id="sun_background" type="STRING" size="256"/>
  123. <Column id="mon_background" type="STRING" size="256"/>
  124. <Column id="tue_background" type="STRING" size="256"/>
  125. <Column id="wed_background" type="STRING" size="256"/>
  126. <Column id="thu_background" type="STRING" size="256"/>
  127. <Column id="fri_background" type="STRING" size="256"/>
  128. <Column id="sat_background" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="sun"/>
  133. <Col id="mon"/>
  134. <Col id="tue"/>
  135. <Col id="wed"/>
  136. <Col id="thu"/>
  137. <Col id="fri"/>
  138. <Col id="sat"/>
  139. <Col id="sun_memo"/>
  140. <Col id="mon_memo"/>
  141. <Col id="tue_memo"/>
  142. <Col id="wed_memo"/>
  143. <Col id="thu_memo"/>
  144. <Col id="fri_memo"/>
  145. <Col id="sat_memo"/>
  146. </Row>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_hidden_calendarinfo_calendarinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="basedd" type="STRING" size="256" sumtext="날짜"/>
  152. <Column id="holinm" type="STRING" size="256" sumtext="휴일명칭"/>
  153. <Column id="holiflag" type="STRING" size="256" sumtext="휴일구분"/>
  154. <Column id="dutflag" type="STRING" size="256" sumtext="근무구분"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_hidden_calendar_btnid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="cdid" type="STRING" size="256"/>
  160. <Column id="cdnm" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="cdid">01</Col>
  165. <Col id="cdnm">btn_jan</Col>
  166. </Row>
  167. <Row>
  168. <Col id="cdid">02</Col>
  169. <Col id="cdnm">btn_feb</Col>
  170. </Row>
  171. <Row>
  172. <Col id="cdid">03</Col>
  173. <Col id="cdnm">btn_mar</Col>
  174. </Row>
  175. <Row>
  176. <Col id="cdid">04</Col>
  177. <Col id="cdnm">btn_apr</Col>
  178. </Row>
  179. <Row>
  180. <Col id="cdid">05</Col>
  181. <Col id="cdnm">btn_may</Col>
  182. </Row>
  183. <Row>
  184. <Col id="cdid">06</Col>
  185. <Col id="cdnm">btn_jun</Col>
  186. </Row>
  187. <Row>
  188. <Col id="cdid">07</Col>
  189. <Col id="cdnm">btn_jul</Col>
  190. </Row>
  191. <Row>
  192. <Col id="cdid">08</Col>
  193. <Col id="cdnm">btn_aug</Col>
  194. </Row>
  195. <Row>
  196. <Col id="cdid">09</Col>
  197. <Col id="cdnm">btn_sep</Col>
  198. </Row>
  199. <Row>
  200. <Col id="cdid">10</Col>
  201. <Col id="cdnm">btn_oct</Col>
  202. </Row>
  203. <Row>
  204. <Col id="cdid">11</Col>
  205. <Col id="cdnm">btn_nov</Col>
  206. </Row>
  207. <Row>
  208. <Col id="cdid">12</Col>
  209. <Col id="cdnm">btn_dec</Col>
  210. </Row>
  211. </Rows>
  212. </Dataset>
  213. </Objects>
  214. <Bind>
  215. <BindItem id="item0" compid="opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  216. <BindItem id="item1" compid="opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  217. </Bind>
  218. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  219. * System Name :
  220. * Job Name :
  221. * Creator :
  222. * Make Date : 2016-05-24
  223. * Description :
  224. *---------------------------------------------------------------------------------------
  225. * Modify Date Modifier Modify Description
  226. *---------------------------------------------------------------------------------------
  227. * 2016-05-24 Live Converter TF->XP
  228. *
  229. *---------------------------------------------------------------------------------------
  230. ****************************************************************************************/
  231. include "com_commonxp::comm_main.xjs"
  232. var arErrorCode = new HashArray();
  233. var beforeId = "";
  234. var currentData = "";
  235. function SPPMB01001_oninit(obj:Form, e:InitEventInfo)
  236. {
  237. frmf_initForm(obj);
  238. currentData = fGetCurDate();
  239. }
  240. function SPPMB01001_onload(obj:Form, e:LoadEventInfo)
  241. {
  242. initCalendar();
  243. //2008-10-04 이동식 추가
  244. fChangeButtonColor();
  245. }
  246. function initCalendar()
  247. {
  248. if( utlf_isNull(ds_hidden_calendar.getColumn(0, "year")) || utlf_isNull(ds_hidden_calendar.getColumn(0, "month")))
  249. {
  250. var curDate = utlf_getCurrentDate().toDate();
  251. ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat('YYYY'));
  252. ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat('MM'));
  253. setCalendar(curDate);
  254. }
  255. }
  256. function setCalendar(dateObj)
  257. {
  258. //서버로 자료 요청
  259. if ( fGetHospitalCalendar() != true )
  260. {
  261. sysf_messageBox("병원일정 데이터를 가져올 수", "I004");
  262. }
  263. // 그리드 초기화
  264. ds_hidden_calendar_weeklist_list.clearData();
  265. dateObj.setDate(1);
  266. var startDay = dateObj.getDay();
  267. var days = dateObj.getMonthDay();
  268. var rows = Math.ceil( ( startDay + days ) / 7 );
  269. for( var i = 0; i < rows; i++ )
  270. {
  271. ds_hidden_calendar_weeklist_list.addRow();
  272. }
  273. var rowIndex = 0;
  274. var colIndex = startDay;
  275. var dutflag = '';
  276. for( var i = 1; i <= days; i++ )
  277. {
  278. //write date
  279. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i);
  280. //write memo
  281. ds_hidden_calendar_weeklist_list.setColumn(rowIndex , colIndex + 7 , fGetCalendarMemo( parseInt(i-1) ));
  282. if(colIndex == 0) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sun_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  283. if(colIndex == 1) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "mon_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  284. if(colIndex == 2) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "tue_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  285. if(colIndex == 3) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "wed_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  286. if(colIndex == 4) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "thu_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  287. if(colIndex == 5) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "fri_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  288. if(colIndex == 6) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sat_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  289. colIndex++;
  290. if( colIndex == 7 )
  291. {
  292. colIndex = 0;
  293. rowIndex++;
  294. }
  295. }
  296. ds_hidden_calendar_weeklist_list.clearSelect();
  297. ds_hidden_calendar_weeklist_list.rowposition = -1;
  298. }
  299. function fGetHospitalCalendar()
  300. {
  301. var dd = (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month"));
  302. dsf_makeValue(ds_send, "date", "string",dd);
  303. var oParam = {};
  304. oParam.id = "TRPMB01001";
  305. oParam.service = "pambaseinfomngtapp.OrdSche";
  306. oParam.method = "reqGetHospitalCalendar";
  307. oParam.inds = "req=ds_send";
  308. oParam.outds = "ds_hidden_calendarinfo_calendarinfolist=caldata";
  309. oParam.async = false;
  310. oParam.callback = "cf_TRPMB01001";
  311. tranf_submit(oParam);
  312. if(arErrorCode.pop("TRPMB01001") > -1)
  313. {
  314. return true;
  315. }
  316. else
  317. {
  318. return false;
  319. }
  320. }
  321. function cf_TRPMB01001(sSvcId, nErrorCode, sErrorMsg)
  322. {
  323. arErrorCode.push(sSvcId, nErrorCode);
  324. if(nErrorCode < 0) return;
  325. }
  326. function fGetCalendarMemo( i )
  327. {
  328. var holiflag = "";
  329. var holinm = "";
  330. holiflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holiflag");
  331. holinm = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holinm");
  332. if( holinm == '-' )
  333. {
  334. holinm = "";
  335. }
  336. return holinm;
  337. }
  338. function fChangeButtonColor()
  339. {
  340. var curMonth = ds_hidden_calendar.getColumn(0, "month");
  341. switch( curMonth )
  342. {
  343. case '01' : //button1.attribute("class") = "btn5_letter2";
  344. btn_jan.enable = false;
  345. beforeId = 'btn_jan';
  346. break;
  347. case '02' : //button2.attribute("class") = "btn5_letter2";
  348. btn_feb.enable = false;
  349. beforeId = 'btn_feb';
  350. break;
  351. case '03' : //button3.attribute("class") = "btn5_letter2";
  352. btn_mar.enable = false;
  353. beforeId = 'btn_mar';
  354. break;
  355. case '04' : //button4.attribute("class") = "btn5_letter2";
  356. btn_apr.enable = false;
  357. beforeId = 'btn_apr';
  358. break;
  359. case '05' : //button5.attribute("class") = "btn5_letter2";
  360. btn_may.enable = false;
  361. beforeId = 'btn_may';
  362. break;
  363. case '06' : //button6.attribute("class") = "btn5_letter2";
  364. btn_jun.enable = false;
  365. beforeId = 'btn_jun';
  366. break;
  367. case '07' : //button7.attribute("class") = "btn5_letter2";
  368. btn_jul.enable = false;
  369. beforeId = 'btn_jul';
  370. break;
  371. case '08' : //button8.attribute("class") = "btn5_letter2";
  372. btn_aug.enable = false;
  373. beforeId = 'btn_aug';
  374. break;
  375. case '09' : //button9.attribute("class") = "btn5_letter2";
  376. btn_sep.enable = false;
  377. beforeId = 'btn_sep';
  378. break;
  379. case '10' : //button10.attribute("class") = "btn5_letter2";
  380. btn_oct.enable = false;
  381. beforeId = 'btn_oct';
  382. break;
  383. case '11' : //button11.attribute("class") = "btn5_letter2";
  384. btn_nov.enable = false;
  385. beforeId = 'btn_nov';
  386. break;
  387. case '12' : //button12.attribute("class") = "btn5_letter2";
  388. btn_dec.enable = false;
  389. beforeId = 'btn_dec';
  390. break;
  391. }
  392. }
  393. function btn_premonth_onclick(obj:Button, e:ClickEventInfo)
  394. {
  395. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  396. var isYear = ds_hidden_calendar.getColumn(0, "year");
  397. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  398. if(isDate.toFormatString("%Y%m") == utlf_getCurrentDate().substr(0, 6)){
  399. currentData = fGetCurDate();
  400. }else{
  401. currentData = "";
  402. }
  403. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  404. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  405. ds_hidden_calendarinfo_calendarinfolist.clearData();
  406. fGetCalendarData();
  407. fClickMonth(ds_hidden_calendar.getColumn(0, "month"));
  408. }
  409. function button31_onclick(obj:Button, e:ClickEventInfo)
  410. {
  411. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  412. var isYear = ds_hidden_calendar.getColumn(0, "year");
  413. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  414. if(isDate.toFormatString("%Y%m") == utlf_getCurrentDate().substr(0, 6)){
  415. currentData = fGetCurDate();
  416. }else{
  417. currentData = "";
  418. }
  419. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  420. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  421. ds_hidden_calendarinfo_calendarinfolist.clearData();
  422. fGetCalendarData();
  423. }
  424. function button32_onclick(obj:Button, e:ClickEventInfo)
  425. {
  426. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  427. var isYear = ds_hidden_calendar.getColumn(0, "year");
  428. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  429. if(isDate.toFormatString("%Y%m") == utlf_getCurrentDate().substr(0, 6)){
  430. currentData = fGetCurDate();
  431. }else{
  432. currentData = "";
  433. }
  434. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  435. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  436. ds_hidden_calendarinfo_calendarinfolist.clearData();
  437. fGetCalendarData();
  438. }
  439. function button34_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  442. var isYear = ds_hidden_calendar.getColumn(0, "year");
  443. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  444. if(isDate.toFormatString("%Y%m") == utlf_getCurrentDate().substr(0, 6)){
  445. currentData = fGetCurDate();
  446. }else{
  447. currentData = "";
  448. }
  449. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  450. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  451. ds_hidden_calendarinfo_calendarinfolist.clearData();
  452. fGetCalendarData();
  453. fClickMonth(ds_hidden_calendar.getColumn(0, "month"));
  454. }
  455. function btn_click(obj)
  456. {
  457. var trgObj = obj;
  458. if( sysf_getObjType(trgObj) == "Button" )
  459. {
  460. var btnMark = trgObj.text;
  461. if(!utlf_isNull(beforeId) || beforeId != "")
  462. {
  463. beforeObj = frmf_getComponents(beforeId);
  464. if(!utlf_isNull(beforeObj)) frmf_getComponents(beforeId).enable = true;
  465. }
  466. trgObj.enable = false;
  467. grd_calendar.setFocus();
  468. beforeId = trgObj.name;
  469. //달력 변경
  470. if( btnMark.length == 1 )
  471. {
  472. btnMark = '0' + btnMark;
  473. }
  474. fSetMonth(btnMark);
  475. }
  476. ds_hidden_calendar_weeklist_list.rowposition = -1;
  477. ds_hidden_calendar_weeklist_list.clearSelect();
  478. }
  479. function fSetMonth(newMonth)
  480. {
  481. ds_hidden_calendar.setColumn(0, "month", newMonth);
  482. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  483. var isYear = ds_hidden_calendar.getColumn(0, "year");
  484. var isDate = (isYear+isMonth+1).toDate();
  485. fGetCalendarData();
  486. }
  487. var oOpener = null;
  488. function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  489. {
  490. var oOpener = frmf_getoOpener();
  491. oOpener.fClickOnCalendar();
  492. }
  493. function setCalendar2(dateObj)
  494. {
  495. // 그리드 초기화
  496. ds_hidden_calendar_weeklist_list.clearData();
  497. dateObj.setDate(1);
  498. var startDay = dateObj.getDay();
  499. var days = dateObj.getMonthDay();
  500. var rows = Math.ceil( ( startDay + days ) / 7 );
  501. for( var i = 0; i < rows; i++ )
  502. {
  503. ds_hidden_calendar_weeklist_list.addRow();
  504. }
  505. var rowIndex = 0;
  506. var colIndex = startDay;
  507. var ampmflag = '';
  508. var dutflag = '';
  509. var ordendresn = '';
  510. var reglscheflag = '';
  511. for( var i = 1; i <= days; i++ )
  512. {
  513. //write date
  514. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i);
  515. ampmflag = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "ampmflag"));
  516. dutflag = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "dutflag"));
  517. ordendresn = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "ordendresn"));
  518. ordendresnmin = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "ordendresnmin"));
  519. reglscheflag = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(parseInt(i-1), "reglscheflag"));
  520. //write memo
  521. if((reglscheflag != 'X') || (ordendresnmin != 'H' && ordendresnmin != 'T'))
  522. {
  523. //검사일정이고, 마감이 아닐경우 정원표시 안함.!
  524. ds_hidden_calendar_weeklist_list.setColumn(rowIndex , colIndex + 7, fGetCalendarMemo2( parseInt(i-1) ));
  525. if(colIndex == 0) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sun_tooltip", ordendresn);}
  526. if(colIndex == 1) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "mon_tooltip", ordendresn);}
  527. if(colIndex == 2) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "tue_tooltip", ordendresn);}
  528. if(colIndex == 3) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "wed_tooltip", ordendresn);}
  529. if(colIndex == 4) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "thu_tooltip", ordendresn);}
  530. if(colIndex == 5) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "fri_tooltip", ordendresn);}
  531. if(colIndex == 6) {ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sat_tooltip", ordendresn);}
  532. }
  533. var tooltiptext = ""; //tooltip text input
  534. if( ordendresnmin != 'H' && ordendresnmin != 'T')
  535. {
  536. if( ampmflag == '1' )
  537. { //오전
  538. if( reglscheflag == 'Y' )
  539. { //정규일정
  540. fSetBGColor(rowIndex, colIndex, '#ffff99');
  541. }
  542. else if( reglscheflag == 'N' )
  543. { //임시일정
  544. fSetBGColor(rowIndex, colIndex, '#c9c299');
  545. tooltiptext = "임시";
  546. // grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
  547. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
  548. }
  549. else if( reglscheflag == 'Z' )
  550. { //대진
  551. fSetBGColor(rowIndex, colIndex, '#c9c299');
  552. tooltiptext = "대진"
  553. // grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
  554. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
  555. }
  556. }
  557. else if( ampmflag == '10' )
  558. { //오후
  559. if( reglscheflag == 'Y' )
  560. { //정규일정
  561. fSetBGColor(rowIndex, colIndex, '#ccffff');
  562. }
  563. else if( reglscheflag == 'N' )
  564. { //임시일정
  565. fSetBGColor(rowIndex, colIndex, '#ffccff');
  566. tooltiptext = "임시";
  567. // grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
  568. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
  569. }
  570. else if( reglscheflag == 'Z' )
  571. { //대진
  572. fSetBGColor(rowIndex, colIndex, '#ffccff');
  573. tooltiptext = "대진";
  574. // grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
  575. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
  576. }
  577. }
  578. else if( ampmflag == '11' || ampmflag == '110' || ampmflag == '101' || ampmflag == '111' || ampmflag == '100')
  579. { //전일, 야간포함
  580. if( reglscheflag == 'Y' )
  581. { //정규일정
  582. fSetBGColor(rowIndex, colIndex, '#ffcc99');
  583. }
  584. else if( reglscheflag == 'N' )
  585. { //임시일정
  586. fSetBGColor(rowIndex, colIndex, '#ffcc99');
  587. tooltiptext = "임시";
  588. // grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
  589. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
  590. }
  591. else if( reglscheflag == 'Z' )
  592. { //대진
  593. fSetBGColor(rowIndex, colIndex, '#ffcc99');
  594. tooltiptext = "대진";
  595. // grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
  596. // grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
  597. }
  598. }
  599. if(!utlf_isNull(tooltiptext) || tooltiptext != "")
  600. {
  601. if(colIndex == 0) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sun_tooltip", tooltiptext);
  602. if(colIndex == 1) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "mon_tooltip", tooltiptext);
  603. if(colIndex == 2) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "tue_tooltip", tooltiptext);
  604. if(colIndex == 3) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "wed_tooltip", tooltiptext);
  605. if(colIndex == 4) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "thu_tooltip", tooltiptext);
  606. if(colIndex == 5) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "fri_tooltip", tooltiptext);
  607. if(colIndex == 6) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sat_tooltip", tooltiptext);
  608. }
  609. }
  610. else
  611. {
  612. if( ordendresnmin == 'H' )
  613. {
  614. fSetBGColor(rowIndex, colIndex, '#ffffff'); //휴진마감
  615. }
  616. else if( ordendresnmin == 'T' )
  617. {
  618. fSetBGColor(rowIndex, colIndex, '#999999'); //부분마감
  619. }
  620. }
  621. if( dutflag == '8' )
  622. {
  623. if(colIndex == 0) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sun_dutflag", dutflag);
  624. if(colIndex == 1) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "mon_dutflag", dutflag);
  625. if(colIndex == 2) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "tue_dutflag", dutflag);
  626. if(colIndex == 3) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "wed_dutflag", dutflag);
  627. if(colIndex == 4) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "thu_dutflag", dutflag);
  628. if(colIndex == 5) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "fri_dutflag", dutflag);
  629. if(colIndex == 6) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sat_dutflag", dutflag);
  630. }
  631. colIndex++;
  632. if( colIndex == 7 )
  633. {
  634. colIndex = 0;
  635. rowIndex++;
  636. }
  637. }
  638. }
  639. function fGetCalendarMemo2( i )
  640. {
  641. var holinm = "";
  642. var ordendresn = "";
  643. var fstexamcnt = 0;
  644. var reexamcnt = 0;
  645. var totalexamcnt = 0;
  646. var totalexamcap = 0;
  647. var totalrsrvcnt = 0;
  648. var telrsrvcnt = 0;
  649. var reglscheflag = '';
  650. holinm = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holinm"));
  651. if( holinm == '-' )
  652. {
  653. holinm = "";
  654. }
  655. ordendresn = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "ordendresn"));
  656. ordendresnmin = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "ordendresnmin"));
  657. var caloption = ds_main.getColumn(0, "caloption");
  658. var retValue = "";
  659. var memo = "";
  660. var checkSche = '';
  661. //예약 현황
  662. if( caloption == "2" )
  663. {
  664. totalrsrvcnt = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalrsrvcnt"));
  665. telrsrvcnt = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "telrsrvcnt"));
  666. totalexamcap = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalexamcap"));
  667. //의사일정이 있을 경우
  668. if( ordendresn == "" || ordendresn == "0" || ordendresn == "00" || ordendresn == "-")
  669. {
  670. memo = telrsrvcnt + "/" + totalrsrvcnt;
  671. checkSche = String(totalexamcap)+ String(totalrsrvcnt);
  672. if( memo == '/' || checkSche == '0')
  673. {
  674. memo = "";
  675. }
  676. retValue = holinm + "\n" + memo;
  677. }
  678. else
  679. { //의사진료일정이 없을 경우
  680. memo = telrsrvcnt + "/" + totalrsrvcnt;
  681. checkSche = String(totalexamcap) + String(totalrsrvcnt);
  682. if( memo == '/' || checkSche == '0')
  683. {
  684. memo = '';
  685. }
  686. if(ordendresnmin == 'H')
  687. {
  688. retValue = "휴진" + "\n" + memo;
  689. }
  690. else if(ordendresnmin == 'T')
  691. {
  692. retValue = "당일" + "\n" + memo;
  693. }
  694. else
  695. {
  696. retValue = "\n" + memo;
  697. }
  698. }
  699. //예약가능 인원
  700. }
  701. else
  702. {
  703. fstexamcnt = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "fstexamcnt"));
  704. reexamcnt = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "reexamcnt"));
  705. totalexamcnt = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalexamcnt"));
  706. fstexamcap = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "fstexamcap"));
  707. reexamcap = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "reexamcap"));
  708. totalexamcap = utlf_transNullToEmpty(ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalexamcap"));
  709. if( ordendresn == "" || ordendresn == "0" || ordendresn == "00" || ordendresn == "-")
  710. {
  711. if( totalexamcap == '0' || totalexamcap == '')
  712. {
  713. memo = fstexamcnt + "/" + reexamcnt;
  714. if( memo == "/" || memo == "0/0")
  715. {
  716. memo = "";
  717. }
  718. retValue = holinm + "\n" + memo;
  719. //전일마감
  720. if( ordendresn == ordendresnmin )
  721. {
  722. }
  723. else
  724. { //부분마감
  725. retValue = holinm + "\n" + memo;
  726. }
  727. }
  728. else
  729. {
  730. retValue = holinm + "\n" + (parseInt(totalexamcnt) + parseInt(fstexamcap) + parseInt(reexamcap) - parseInt(totalrsrvcnt));
  731. }
  732. }
  733. else
  734. {
  735. if( totalexamcap == '0' || totalexamcap == '')
  736. {
  737. memo = fstexamcnt + "/" + reexamcnt;
  738. if( memo == '/' || memo == '0/0')
  739. {
  740. memo = '';
  741. }
  742. //전일마감
  743. if( ordendresn == ordendresnmin )
  744. {
  745. }
  746. else
  747. { //부분마감
  748. if(ordendresnmin == 'H')
  749. {
  750. retValue = "휴진" + "\n" + memo;
  751. }
  752. else if(ordendresnmin == 'T')
  753. {
  754. retValue = "당일" + "\n" + memo;
  755. }
  756. else
  757. {
  758. retValue = "\n" + memo;
  759. }
  760. }
  761. }
  762. else
  763. {
  764. retValue = totalexamcnt;
  765. }
  766. }
  767. }
  768. return retValue;
  769. }
  770. function fSetBGColor(calRow, calCol, bgColor)
  771. {
  772. if( calCol < 7 )
  773. {
  774. if(calCol == 0) ds_hidden_calendar_weeklist_list.setColumn(calRow, "sun_background", bgColor);
  775. if(calCol == 1) ds_hidden_calendar_weeklist_list.setColumn(calRow, "mon_background", bgColor);
  776. if(calCol == 2) ds_hidden_calendar_weeklist_list.setColumn(calRow, "tue_background", bgColor);
  777. if(calCol == 3) ds_hidden_calendar_weeklist_list.setColumn(calRow, "wed_background", bgColor);
  778. if(calCol == 4) ds_hidden_calendar_weeklist_list.setColumn(calRow, "thu_background", bgColor);
  779. if(calCol == 5) ds_hidden_calendar_weeklist_list.setColumn(calRow, "fri_background", bgColor);
  780. if(calCol == 6) ds_hidden_calendar_weeklist_list.setColumn(calRow, "sat_background", bgColor);
  781. }
  782. }
  783. function setCellColor(calRow, calCol)
  784. {
  785. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  786. var isYear = ds_hidden_calendar.getColumn(0, "year");
  787. var isDate = (isYear+isMonth+1).toDate();
  788. setCalendar2(isDate);
  789. var backgroundcolor = "#c0c0c0";
  790. if( calCol < 7 )
  791. {
  792. if(calCol == 0) ds_hidden_calendar_weeklist_list.setColumn(calRow, "sun_background", backgroundcolor);
  793. if(calCol == 1) ds_hidden_calendar_weeklist_list.setColumn(calRow, "mon_background", backgroundcolor);
  794. if(calCol == 2) ds_hidden_calendar_weeklist_list.setColumn(calRow, "tue_background", backgroundcolor);
  795. if(calCol == 3) ds_hidden_calendar_weeklist_list.setColumn(calRow, "wed_background", backgroundcolor);
  796. if(calCol == 4) ds_hidden_calendar_weeklist_list.setColumn(calRow, "thu_background", backgroundcolor);
  797. if(calCol == 5) ds_hidden_calendar_weeklist_list.setColumn(calRow, "fri_background", backgroundcolor);
  798. if(calCol == 6) ds_hidden_calendar_weeklist_list.setColumn(calRow, "sat_background", backgroundcolor);
  799. }
  800. else
  801. {
  802. // grd_calendar.cellStyle("background-color", calRow, calCol) = "#c0c0c0";
  803. // grd_calendar.cellStyle("background-color", calRow, calCol - 7) = "#c0c0c0";
  804. }
  805. }
  806. function fClickMonth(month){
  807. var btnId = ds_hidden_calendar_btnid.getColumn(ds_hidden_calendar_btnid.findRow("cdid", month), "cdnm");
  808. btnId = eval(btnId);
  809. btnId.onclick.fireEvent(btnId, new ClickEventInfo());
  810. }
  811. function fGetCurDate(){
  812. return (utlf_getCurrentDate().substr(6, 2).charAt(0) == "0") ? utlf_getCurrentDate().substr(7, 1) : utlf_getCurrentDate().substr(6, 2);
  813. }
  814. ]]></Script>
  815. </Form>
  816. </FDL>