SMAEA00910_주간예약현황조회.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA00910" position="absolute 0 0 1256 805" titletext="주간예약현황조회" oninit="model1_oninit" onload="SMAEA00910_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_prt" taborder="9" text="출력" onlbuttonup="btn_prt_onlbuttonup" class="btn6" position="absolute 1200 785 1256 805" anchor="right bottom" visible="false" positiontype="position" onclick="btn_prt_onclick"/>
  8. <Static id="caption19" text="주간예약현황" class="tit_1" position="absolute 0 0 124 25" positiontype="position"/>
  9. <Grid id="datagrid1" taborder="5" useinputpanel="false" position="absolute 0 135 1256 781" anchor="all" binddataset="ds_grid_datagrid1" positiontype="position" cellsizingtype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="125"/>
  14. <Column size="40"/>
  15. <Column size="50"/>
  16. <Column size="200"/>
  17. <Column size="40"/>
  18. <Column size="50"/>
  19. <Column size="200"/>
  20. <Column size="40"/>
  21. <Column size="50"/>
  22. <Column size="200"/>
  23. <Column size="40"/>
  24. <Column size="50"/>
  25. <Column size="200"/>
  26. <Column size="40"/>
  27. <Column size="50"/>
  28. <Column size="200"/>
  29. <Column size="40"/>
  30. <Column size="50"/>
  31. <Column size="200"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell rowspan="2" text="검사실"/>
  40. <Cell col="1" colspan="3" text="월"/>
  41. <Cell col="4" colspan="3" text="화"/>
  42. <Cell col="7" colspan="3" text="수"/>
  43. <Cell col="10" colspan="3" text="목"/>
  44. <Cell col="13" colspan="3" text="금"/>
  45. <Cell col="16" colspan="3" text="토"/>
  46. <Cell col="19" text="caption1"/>
  47. <Cell col="20" text="caption2"/>
  48. <Cell col="21" text="caption3"/>
  49. <Cell col="22" text="caption4"/>
  50. <Cell col="23" text="caption5"/>
  51. <Cell col="24" text="caption6"/>
  52. <Cell row="1" col="1" text="시간"/>
  53. <Cell row="1" col="2" text="성명"/>
  54. <Cell row="1" col="3" text="행위"/>
  55. <Cell row="1" col="4" text="시간"/>
  56. <Cell row="1" col="5" text="성명"/>
  57. <Cell row="1" col="6" text="행위"/>
  58. <Cell row="1" col="7" text="시간"/>
  59. <Cell row="1" col="8" text="성명"/>
  60. <Cell row="1" col="9" text="행위"/>
  61. <Cell row="1" col="10" text="시간"/>
  62. <Cell row="1" col="11" text="성명"/>
  63. <Cell row="1" col="12" text="행위"/>
  64. <Cell row="1" col="13" text="시간"/>
  65. <Cell row="1" col="14" text="성명"/>
  66. <Cell row="1" col="15" text="행위"/>
  67. <Cell row="1" col="16" text="시간"/>
  68. <Cell row="1" col="17" text="성명"/>
  69. <Cell row="1" col="18" text="행위"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head" style="background:azure;background2:azure;" text="bind:basecdflagdesc" suppress="1" suppressalign="middle,over"/>
  73. <Cell col="1" style="background:EXPR(rsrvtm1!=null&amp;&amp;rsrvtm1&gt;=1300?'gold':'');background2:EXPR(rsrvtm1!=null&amp;&amp;rsrvtm1&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm1!=null&amp;&amp;rsrvtm1&gt;=1300?'gold':'');" text="bind:rsrvtm1" mask="expr:rsrvtm1==null?&quot;&quot;:'@@:@@'"/>
  74. <Cell col="2" text="bind:hngnm1" tooltiptext="bind:pid1"/>
  75. <Cell col="3" style="align:left middle;" text="bind:excucdnm1" tooltiptype="mouse" tooltiptext="bind:excucdnm1"/>
  76. <Cell col="4" style="background:EXPR(rsrvtm2!=null&amp;&amp;rsrvtm2&gt;=1300?'gold':'');background2:EXPR(rsrvtm2!=null&amp;&amp;rsrvtm2&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm2!=null&amp;&amp;rsrvtm2&gt;=1300?'gold':'');" text="bind:rsrvtm2" mask="expr:rsrvtm2==null?&quot;&quot;:'@@:@@'"/>
  77. <Cell col="5" text="bind:hngnm2" tooltiptext="bind:pid2"/>
  78. <Cell col="6" style="align:left middle;" text="bind:excucdnm2" tooltiptype="mouse" tooltiptext="bind:excucdnm2"/>
  79. <Cell col="7" style="background:EXPR(rsrvtm3!=null&amp;&amp;rsrvtm3&gt;=1300?'gold':'');background2:EXPR(rsrvtm3!=null&amp;&amp;rsrvtm3&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm3!=null&amp;&amp;rsrvtm3&gt;=1300?'gold':'');" text="bind:rsrvtm3" mask="expr:rsrvtm3==null?&quot;&quot;:'@@:@@'"/>
  80. <Cell col="8" text="bind:hngnm3" tooltiptext="bind:pid3"/>
  81. <Cell col="9" style="align:left middle;" text="bind:excucdnm3" tooltiptype="mouse" tooltiptext="bind:excucdnm3"/>
  82. <Cell col="10" style="background:EXPR(rsrvtm4!=null&amp;&amp;rsrvtm4&gt;=1300?'gold':'');background2:EXPR(rsrvtm4!=null&amp;&amp;rsrvtm4&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm4!=null&amp;&amp;rsrvtm4&gt;=1300?'gold':'');" text="bind:rsrvtm4" mask="expr:rsrvtm4==null?&quot;&quot;:'@@:@@'"/>
  83. <Cell col="11" text="bind:hngnm4" tooltiptext="bind:pid4"/>
  84. <Cell col="12" style="align:left middle;" text="bind:excucdnm4" tooltiptype="mouse" tooltiptext="bind:excucdnm4"/>
  85. <Cell col="13" style="background:EXPR(rsrvtm5!=null&amp;&amp;rsrvtm5&gt;=1300?'gold':'');background2:EXPR(rsrvtm5!=null&amp;&amp;rsrvtm5&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm5!=null&amp;&amp;rsrvtm5&gt;=1300?'gold':'');" text="bind:rsrvtm5" mask="expr:rsrvtm5==null?&quot;&quot;:'@@:@@'"/>
  86. <Cell col="14" text="bind:hngnm5" tooltiptext="bind:pid5"/>
  87. <Cell col="15" style="align:left middle;" text="bind:excucdnm5" tooltiptype="mouse" tooltiptext="bind:excucdnm5"/>
  88. <Cell col="16" style="background:EXPR(rsrvtm6!=null&amp;&amp;rsrvtm6&gt;=1300?'gold':'');background2:EXPR(rsrvtm6!=null&amp;&amp;rsrvtm6&gt;=1300?'gold':'');selectbackground:EXPR(rsrvtm6!=null&amp;&amp;rsrvtm6&gt;=1300?'gold':'');" text="bind:rsrvtm6" mask="expr:rsrvtm6==null?&quot;&quot;:'@@:@@'"/>
  89. <Cell col="17" text="bind:hngnm6" tooltiptext="bind:pid6"/>
  90. <Cell col="18" style="align:left middle;" text="bind:excucdnm6" tooltiptype="mouse" tooltiptext="bind:excucdnm6"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Button id="button51" taborder="8" text="엑셀" onclick="button51_onclick" class="btn7" position="absolute 1196 75 1248 97" anchor="top right" positiontype="position"/>
  96. <Div id="roundrect1" taborder="10" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 25 1256 65" anchor="left top right" type="roundrectangle" positiontype="position">
  97. <Layouts>
  98. <Layout>
  99. <Button id="btn_sea" taborder="95" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  100. <Combo id="combo6" taborder="96" class="combo_search" position="absolute 920 11 1008 31" anchor="default" innerdataset="@ds_init_execr" datacolumn="basecdflagdesc" codecolumn="basecd" positiontype="position"/>
  101. <Static id="caption2" text="검사자/치료사" class="search_name" position="absolute 813 11 914 31" anchor="default" positiontype="position"/>
  102. <Combo id="cmb_excuroom" taborder="97" class="combo_default" position="absolute 624 11 789 31" anchor="default" innerdataset="@ds_init_excuroom" datacolumn="basecdflagdesc" codecolumn="basecd" positiontype="position"/>
  103. <Static id="caption7" text="검사실" class="search_name" position="absolute 564 11 619 31" anchor="default" positiontype="position"/>
  104. <Combo id="cmb_deptcd" taborder="98" class="combo_search" position="absolute 385 11 540 31" anchor="default" innerdataset="@ds_init_suppdept" datacolumn="depthngnm" codecolumn="suppdeptcd" onitemchanged="roundrect1_cmb_deptcd_onitemchanged" positiontype="position"/>
  105. <Static id="caption03" text="지원부서" class="search_name" position="absolute 312 11 380 31" anchor="default"/>
  106. <Calendar id="todt" taborder="99" class="input_default" position="absolute 180 11 288 31" anchor="default" enable="false" value="null" autoselect="true" positiontype="position" dateformat="yyyy-MM-dd ddd"/>
  107. <Static id="caption11" text="~" position="absolute 164 11 180 31" anchor="default" style="align:center;" positiontype="position"/>
  108. <Calendar id="ipt_frdt" taborder="100" class="input_default" position="absolute 56 11 164 31" anchor="default" onchanged="roundrect1_ipt_frdt_onchanged" value="null" onkeydown="roundrect1_ipt_frdt_onkeydown" autoselect="true" positiontype="position" dateformat="yyyy-MM-dd ddd"/>
  109. <Static id="caption04" text="날짜" class="search_name" position="absolute 8 11 52 31" anchor="default"/>
  110. </Layout>
  111. </Layouts>
  112. </Div>
  113. <Shape id="line03" class="line_10" position="absolute 0 129 1256 135" anchor="left top right"/>
  114. <Grid id="grd_rsrvcount" taborder="11" useinputpanel="false" position="absolute 1 73 1191 123" binddataset="ds_grid_rsrvcount2">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="200"/>
  119. <Column size="200"/>
  120. <Column size="200"/>
  121. <Column size="200"/>
  122. <Column size="200"/>
  123. <Column size="190"/>
  124. </Columns>
  125. <Rows>
  126. <Row size="24" band="head"/>
  127. <Row size="24"/>
  128. </Rows>
  129. <Band id="head">
  130. <Cell text="월"/>
  131. <Cell col="1" text="화"/>
  132. <Cell col="2" text="수"/>
  133. <Cell col="3" text="목"/>
  134. <Cell col="4" text="금"/>
  135. <Cell col="5" text="토"/>
  136. <Cell col="6" text="caption2"/>
  137. <Cell col="7" text="caption3"/>
  138. <Cell col="8" text="caption4"/>
  139. <Cell col="9" text="caption5"/>
  140. <Cell col="10" text="caption6"/>
  141. <Cell col="11"/>
  142. </Band>
  143. <Band id="body">
  144. <Cell style="align:center middle;" text="bind:cnt0" tooltiptype="mouse" tooltiptext="bind:excucdnm1"/>
  145. <Cell col="1" style="align:center middle;" text="bind:cnt1" tooltiptype="mouse" tooltiptext="bind:excucdnm2"/>
  146. <Cell col="2" style="align:center middle;" text="bind:cnt2" tooltiptype="mouse" tooltiptext="bind:excucdnm3"/>
  147. <Cell col="3" style="align:center middle;" text="bind:cnt3" tooltiptype="mouse" tooltiptext="bind:excucdnm4"/>
  148. <Cell col="4" style="align:center middle;" text="bind:cnt4" tooltiptype="mouse" tooltiptext="bind:excucdnm5"/>
  149. <Cell col="5" style="align:center middle;" text="bind:cnt5"/>
  150. </Band>
  151. </Format>
  152. </Formats>
  153. </Grid>
  154. </Layout>
  155. </Layouts>
  156. <Objects>
  157. <Dataset id="ds_grid_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="basecdflagdesc" type="STRING"/>
  160. <Column id="rsrvtm1" type="STRING"/>
  161. <Column id="hngnm1" type="STRING"/>
  162. <Column id="excucdnm1" type="STRING"/>
  163. <Column id="rsrvtm2" type="STRING"/>
  164. <Column id="hngnm2" type="STRING"/>
  165. <Column id="excucdnm2" type="STRING"/>
  166. <Column id="rsrvtm3" type="STRING"/>
  167. <Column id="hngnm3" type="STRING"/>
  168. <Column id="excucdnm3" type="STRING"/>
  169. <Column id="rsrvtm4" type="STRING"/>
  170. <Column id="hngnm4" type="STRING"/>
  171. <Column id="excucdnm4" type="STRING"/>
  172. <Column id="rsrvtm5" type="STRING"/>
  173. <Column id="hngnm5" type="STRING"/>
  174. <Column id="excucdnm5" type="STRING"/>
  175. <Column id="rsrvtm6" type="STRING"/>
  176. <Column id="hngnm6" type="STRING"/>
  177. <Column id="excucdnm6" type="STRING"/>
  178. <Column id="pid1" type="STRING"/>
  179. <Column id="pid2" type="STRING"/>
  180. <Column id="pid3" type="STRING"/>
  181. <Column id="pid4" type="STRING"/>
  182. <Column id="pid5" type="STRING"/>
  183. <Column id="pid6" type="STRING"/>
  184. </ColumnInfo>
  185. </Dataset>
  186. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  189. <Column id="basecd" type="STRING" size="256"/>
  190. <Column id="rbasecdflag" type="STRING" size="256"/>
  191. <Column id="ebasecdflag" type="STRING" size="256"/>
  192. <Column id="execrid" type="STRING" size="256"/>
  193. <Column id="excuroomcd" type="STRING" size="256"/>
  194. <Column id="suppdeptcd" type="STRING" size="256"/>
  195. <Column id="todt" type="STRING" size="256"/>
  196. <Column id="frdt" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="basesuppdeptcd"/>
  201. <Col id="basecd"/>
  202. <Col id="rbasecdflag"/>
  203. <Col id="ebasecdflag"/>
  204. <Col id="execrid"/>
  205. <Col id="excuroomcd"/>
  206. <Col id="suppdeptcd"/>
  207. <Col id="todt"/>
  208. <Col id="frdt"/>
  209. </Row>
  210. </Rows>
  211. </Dataset>
  212. <Dataset id="ds_init_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="suppdeptcd"/>
  215. <Column id="depthngnm"/>
  216. </ColumnInfo>
  217. </Dataset>
  218. <Dataset id="ds_init_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="basecd" type="STRING" size="256"/>
  221. <Column id="basecdflagdesc" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. <Dataset id="ds_init_execr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="basecd" type="STRING" size="256"/>
  227. <Column id="basecdflagdesc" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. </Dataset>
  230. <Dataset id="ds_report" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  231. <ColumnInfo>
  232. <Column id="rsrvtm" type="STRING" size="256"/>
  233. <Column id="hngnm1" type="STRING" size="256"/>
  234. <Column id="hngnm2" type="STRING" size="256"/>
  235. <Column id="hngnm3" type="STRING" size="256"/>
  236. <Column id="hngnm4" type="STRING" size="256"/>
  237. <Column id="hngnm5" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row>
  241. <Col id="rsrvtm">09000930</Col>
  242. </Row>
  243. <Row>
  244. <Col id="rsrvtm">09301000</Col>
  245. </Row>
  246. <Row>
  247. <Col id="rsrvtm">10001030</Col>
  248. </Row>
  249. <Row>
  250. <Col id="rsrvtm">10301100</Col>
  251. </Row>
  252. <Row>
  253. <Col id="rsrvtm">11001130</Col>
  254. </Row>
  255. <Row>
  256. <Col id="rsrvtm">12001300</Col>
  257. </Row>
  258. <Row>
  259. <Col id="rsrvtm">13001330</Col>
  260. </Row>
  261. <Row>
  262. <Col id="rsrvtm">13301400</Col>
  263. </Row>
  264. <Row>
  265. <Col id="rsrvtm">14001430</Col>
  266. </Row>
  267. <Row>
  268. <Col id="rsrvtm">14301500</Col>
  269. </Row>
  270. <Row>
  271. <Col id="rsrvtm">15001530</Col>
  272. </Row>
  273. <Row>
  274. <Col id="rsrvtm">15301600</Col>
  275. </Row>
  276. <Row>
  277. <Col id="rsrvtm">16001630</Col>
  278. </Row>
  279. <Row>
  280. <Col id="rsrvtm">16301700</Col>
  281. </Row>
  282. <Row>
  283. <Col id="rsrvtm">1700~</Col>
  284. </Row>
  285. </Rows>
  286. </Dataset>
  287. <Dataset id="ds_grid_rsrvcount" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  288. <ColumnInfo>
  289. <Column id="rsrvdd" type="STRING"/>
  290. <Column id="cnt" type="STRING"/>
  291. </ColumnInfo>
  292. </Dataset>
  293. <Dataset id="ds_grid_rsrvcount2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  294. <ColumnInfo>
  295. <Column id="cnt0" type="STRING" size="256"/>
  296. <Column id="cnt1" type="STRING" size="256"/>
  297. <Column id="cnt2" type="STRING" size="256"/>
  298. <Column id="cnt3" type="STRING" size="256"/>
  299. <Column id="cnt4" type="STRING" size="256"/>
  300. <Column id="cnt5" type="STRING" size="256"/>
  301. </ColumnInfo>
  302. </Dataset>
  303. </Objects>
  304. <Bind>
  305. <BindItem id="item0" compid="roundrect1.cmb_deptcd" propid="value" datasetid="ds_send" columnid="suppdeptcd"/>
  306. <BindItem id="item1" compid="roundrect1.ipt_frdt" propid="value" datasetid="ds_send" columnid="frdt"/>
  307. <BindItem id="item2" compid="roundrect1.todt" propid="value" datasetid="ds_send" columnid="todt"/>
  308. <BindItem id="item3" compid="roundrect1.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
  309. <BindItem id="item4" compid="roundrect1.combo6" propid="value" datasetid="ds_send" columnid="execrid"/>
  310. </Bind>
  311. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  312. * System Name : Himed
  313. * Job Name :
  314. * File Name : SMAEA00910_주간예약현황조회.xfdl
  315. * Creator :
  316. * Make Date : 2014-04-18
  317. *
  318. * Description :
  319. *---------------------------------------------------------------------------------------
  320. * Modify Date Modifier Modify Description
  321. *---------------------------------------------------------------------------------------
  322. * 2014-04-18 HIT Converting Program(TF->XP)
  323. *
  324. *---------------------------------------------------------------------------------------
  325. ****************************************************************************************/
  326. //=======================================================================================
  327. // xjs Include
  328. //---------------------------------------------------------------------------------------
  329. include "com_commonxp::comm_main.xjs";
  330. include "ast_examcurexp::AEZ0001.xjs";
  331. // include "com_commodulexp::SSZFM00401.xjs"; // Dataset 뷰어용
  332. //=======================================================================================
  333. // Function
  334. //---------------------------------------------------------------------------------------
  335. function setSearchDate(paramDate){
  336. //roundrect1.ipt_frdt.value = utlf_addDate(paramDate,eval(-utlf_getDay(paramDate)+1));
  337. ds_send.setColumn(0, "frdt", utlf_addDate(paramDate,eval(-utlf_getDay(paramDate)+1)));
  338. //roundrect1.todt.value = utlf_addDate(paramDate,eval(6-utlf_getDay(paramDate)));
  339. ds_send.setColumn(0, "todt", utlf_addDate(paramDate,eval(6-utlf_getDay(paramDate))));
  340. var date = "";
  341. var datArr = ["(월)","(화)","(수)","(목)","(금)","(토)"];
  342. for(var i=1; i<7 ;i++){
  343. date = new String(utlf_addDate(new String(roundrect1.ipt_frdt.value),i-1));
  344. datagrid1.setCellProperty("head",i,"text",date.substr(0,4)+"."+date.substr(4,2)+"."+date.substr(6,2)+"."+datArr[i-1]);
  345. }
  346. //20190703 추가
  347. for(var i=0; i<6 ;i++){
  348. date = new String(utlf_addDate(new String(roundrect1.ipt_frdt.value),i));
  349. grd_rsrvcount.setCellProperty("head",i,"text",date.substr(0,4)+"."+date.substr(4,2)+"."+date.substr(6,2)+"."+datArr[i]);
  350. }
  351. }
  352. function submit_TRAEA00904(){
  353. var objParam = new Object();
  354. objParam.id = "TRAEA00904";
  355. objParam.service = "examcurersrvapp.RsrvRef";
  356. objParam.method = "reqGetSuppDeptCdList";
  357. objParam.inds = "req=ds_send";
  358. objParam.outds ="ds_init_suppdept=item";
  359. objParam.callback = "cbf_TRAEA00904";
  360. tranf_submit(objParam);
  361. }
  362. function cbf_TRAEA00904(strSvcID, nErrorCode, strErrorMsg){
  363. //에러 처리
  364. if(nErrorCode == 0){
  365. roundrect1.cmb_deptcd.index = ds_init_suppdept.findRow("suppdeptcd",suppdeptcd);
  366. if(roundrect1.cmb_deptcd.index == -1) {
  367. roundrect1.cmb_deptcd.index = 0;
  368. }
  369. roundrect1_cmb_deptcd_onitemchanged();
  370. roundrect1.ipt_frdt.setFocus();
  371. }else{
  372. }
  373. }
  374. function submit_TRAEA00902(){
  375. ds_send.setColumn(0,"basesuppdeptcd",roundrect1.cmb_deptcd.value);
  376. ds_send.setColumn(0,"rbasecdflag","R");
  377. var objParam = new Object();
  378. objParam.id = "TRAEA00902";
  379. objParam.service = "examcurebaseapp.ExamCureRoom";
  380. objParam.method = "reqGetExamCureRoomGrpList";
  381. objParam.inds = "req=ds_send";
  382. objParam.outds ="ds_init_excuroom=item";
  383. objParam.callback = "cbf_TRAEA00902";
  384. tranf_submit(objParam);
  385. }
  386. function submit_TRAEA00903(){
  387. ds_send.setColumn(0,"ebasecdflag","E");
  388. var objParam = new Object();
  389. objParam.id = "TRAEA00903";
  390. objParam.service = "examcurebaseapp.ExecrCode";
  391. objParam.method = "reqGetExecrCodeList";
  392. objParam.inds = "req=ds_send";
  393. objParam.outds ="ds_init_execr=execrcode";
  394. objParam.callback = "cbf_TRAEA00903";
  395. tranf_submit(objParam);
  396. }
  397. function submit_TRAEA00910(){
  398. ds_send.setColumn(0,"frdt",roundrect1.ipt_frdt.value);
  399. ds_send.setColumn(0,"todt",roundrect1.todt.value);
  400. ds_send.setColumn(0,"suppdeptcd",roundrect1.cmb_deptcd.value);
  401. ds_send.setColumn(0,"excuroomcd",roundrect1.cmb_excuroom.value.replace("-",""));
  402. ds_send.setColumn(0,"execrid",roundrect1.combo6.value.replace("-",""));
  403. var objParam = new Object();
  404. objParam.id = "TRAEA00910";
  405. objParam.service = "examcurersrvapp.RsrvRef";
  406. objParam.method = "reqGetCurerRsrvWeekinfo";
  407. objParam.inds = "req=ds_send";
  408. objParam.outds ="ds_grid_datagrid1=rsrvlist ds_grid_rsrvcount=rsrvcount";
  409. //objParam.callback = "cbf_TRAEA00904";
  410. tranf_submit(objParam);
  411. //20190703 주간예약건수
  412. var colnm = '';
  413. ds_grid_rsrvcount2.clearData();
  414. ds_grid_rsrvcount2.addRow();
  415. for(var i= 0 ; i < ds_grid_rsrvcount.rowcount; i++){
  416. colnm = 'cnt' + i ;
  417. ds_grid_rsrvcount2.setColumn(0, colnm, ds_grid_rsrvcount.getColumn(i,'cnt'));
  418. }
  419. }
  420. //=======================================================================================
  421. // callback
  422. //---------------------------------------------------------------------------------------
  423. function cbf_TRAEA00902(strSvcID, nErrorCode, strErrorMsg){
  424. //에러 처리
  425. if(nErrorCode == 0){
  426. // frmf_addComboItem("roundrect1.cmb_excuroom", "", "", "");
  427. // roundrect1.cmb_excuroom.index = 0;
  428. }else{
  429. }
  430. }
  431. function cbf_TRAEA00903(strSvcID, nErrorCode, strErrorMsg){
  432. //에러 처리
  433. if(nErrorCode == 0){
  434. //frmf_addComboItem("roundrect1.combo6", "", "", "");
  435. //roundrect1.combo6.index = 0;
  436. }else{
  437. }
  438. }
  439. //=======================================================================================
  440. // Event
  441. //---------------------------------------------------------------------------------------
  442. /****************************************************************************************
  443. * Components :
  444. * Components ID : SMAEA00910
  445. * Event : onload
  446. * Argument : 01.obj : Object Event has occurred
  447. * : 02.e : Event Object
  448. * Description :
  449. ****************************************************************************************/
  450. function SMAEA00910_onload(obj:Form, e:LoadEventInfo)
  451. {
  452. frmf_initForm(obj); // 화면공통
  453. // lf_commoduleDataSetShow(); //DataSet 조회;
  454. suppdeptcd = frmf_getMenuParam();
  455. if (utlf_isNull(suppdeptcd)) {
  456. lf_aezfSetSuppDeptcd();
  457. ds_send.setColumn(0,"basesuppdeptcd", frmf_getParameter("AST_DEPTCD"));
  458. } else {
  459. ds_send.setColumn(0,"basesuppdeptcd",suppdeptcd);
  460. }
  461. //지원부서 조회
  462. submit_TRAEA00904();
  463. if( ds_init_suppdept.findRow("suppdeptcd", suppdeptcd) < 0 ){
  464. ds_send.setColumn(0,"suppdeptcd" , "2180000000"); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영
  465. ds_send.setColumn(0,"basesuppdeptcd",ds_send.getColumn(0,"suppdeptcd"));
  466. ds_send.setColumn(0,"excuroomcd", "");
  467. submit_TRAEA00902();
  468. }else{
  469. ds_send.setColumn(0,"suppdeptcd" , frmf_getPrestDeptCd() ); //지원부서코드에 해당되지않으면 기본 핵의학과로 보여줌(공통으로뺄것임) - 박재영
  470. ds_send.setColumn(0,"excuroomcd", "");
  471. submit_TRAEA00902();
  472. }
  473. submit_TRAEA00903();
  474. var basedd = utlf_getCurrentDate();
  475. setSearchDate(basedd);
  476. datagrid1.tooltiptype = "hover";
  477. }
  478. /****************************************************************************************
  479. * Components :
  480. * Components ID : button51
  481. * Event : onclick
  482. * Argument : 01.obj : Object Event has occurred
  483. * : 02.e : Event Object
  484. * Description :
  485. ****************************************************************************************/
  486. function button51_onclick(obj:Button, e:ClickEventInfo)
  487. {
  488. grdf_exportExcel(datagrid1, "주간예약현황", "sheet1");
  489. }
  490. /****************************************************************************************
  491. * Components :
  492. * Components ID : btn_sea
  493. * Event : onclick
  494. * Argument : 01.obj : Object Event has occurred
  495. * : 02.e : Event Object
  496. * Description :
  497. ****************************************************************************************/
  498. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. submit_TRAEA00910();
  501. }
  502. /****************************************************************************************
  503. * Components :
  504. * Components ID : btn_prt
  505. * Event : onclick
  506. * Argument : 01.obj : Object Event has occurred
  507. * : 02.e : Event Object
  508. * Description :
  509. ****************************************************************************************/
  510. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  511. {
  512. for(var i=0; i<ds_report.rowcount; i++){
  513. var rsrvtm = ds_report.getColumn(i,"rsrvtm");
  514. for(var j=0; j<ds_grid_datagrid1.rowcount; j++){
  515. var rsrvtms = rsrvtm.substr(0,4);
  516. var rsrvtmd = rsrvtm.substr(4,8);
  517. if(rsrvtmd=="~"){
  518. rsrvtmd = 2400;
  519. }
  520. var rsrvtm1 = ds_grid_datagrid1.getColumn(j,"rsrvtm1");
  521. var rsrvtm2 = ds_grid_datagrid1.getColumn(j,"rsrvtm2");
  522. var rsrvtm3 = ds_grid_datagrid1.getColumn(j,"rsrvtm3");
  523. var rsrvtm4 = ds_grid_datagrid1.getColumn(j,"rsrvtm4");
  524. var rsrvtm5 = ds_grid_datagrid1.getColumn(j,"rsrvtm5");
  525. var rsrvtm6 = ds_grid_datagrid1.getColumn(j,"rsrvtm6");
  526. if((rsrvtms <= rsrvtm1) && (rsrvtmd >= rsrvtm1)){
  527. var hngnm1 = ds_report.getColumn(i,"hngnm1");
  528. if(hngnm1!=null){
  529. ds_report.setColumn(i,"hngnm1",hngnm1+"/"+ds_grid_datagrid1.getColumn(j,"hngnm1"));
  530. }else{
  531. ds_report.setColumn(i,"hngnm1",ds_grid_datagrid1.getColumn(j,"hngnm1"));
  532. }
  533. }
  534. if((rsrvtms <= rsrvtm2) && (rsrvtmd >= rsrvtm2)){
  535. var hngnm2 = ds_report.getColumn(i,"hngnm2");
  536. if(hngnm2!=null){
  537. ds_report.setColumn(i,"hngnm2",hngnm2+"/"+ds_grid_datagrid1.getColumn(j,"hngnm2"));
  538. }else{
  539. ds_report.setColumn(i,"hngnm2",ds_grid_datagrid1.getColumn(j,"hngnm2"));
  540. }
  541. }
  542. if((rsrvtms <= rsrvtm3) && (rsrvtmd >= rsrvtm3)){
  543. var hngnm3 = ds_report.getColumn(i,"hngnm3");
  544. if(hngnm3!=null){
  545. ds_report.setColumn(i,"hngnm3",hngnm3+"/"+ds_grid_datagrid1.getColumn(j,"hngnm3"));
  546. }else{
  547. ds_report.setColumn(i,"hngnm3",ds_grid_datagrid1.getColumn(j,"hngnm3"));
  548. }
  549. }
  550. if((rsrvtms <= rsrvtm4) && (rsrvtmd >= rsrvtm4)){
  551. var hngnm4 = ds_report.getColumn(i,"hngnm4");
  552. if(hngnm4!=null){
  553. ds_report.setColumn(i,"hngnm4",hngnm4+"/"+ds_grid_datagrid1.getColumn(j,"hngnm4"));
  554. }else{
  555. ds_report.setColumn(i,"hngnm4",ds_grid_datagrid1.getColumn(j,"hngnm4"));
  556. }
  557. }
  558. if((rsrvtms <= rsrvtm5) && (rsrvtmd >= rsrvtm5)){
  559. var hngnm5 = ds_report.getColumn(i,"hngnm5");
  560. if(hngnm5!=null){
  561. ds_report.setColumn(i,"hngnm5",hngnm5+"/"+ds_grid_datagrid1.getColumn(j,"hngnm5"));
  562. }else{
  563. ds_report.setColumn(i,"hngnm5",ds_grid_datagrid1.getColumn(j,"hngnm5"));
  564. }
  565. }
  566. if((rsrvtms <= rsrvtm6) && (rsrvtmd >= rsrvtm6)){
  567. var hngnm6 = ds_report.getColumn(i,"hngnm6");
  568. if(hngnm6!=null){
  569. ds_report.setColumn(i,"hngnm6",hngnm6+"/"+ds_grid_datagrid1.getColumn(j,"hngnm6"));
  570. }else{
  571. ds_report.setColumn(i,"hngnm6",ds_grid_datagrid1.getColumn(j,"hngnm6"));
  572. }
  573. }
  574. }
  575. }
  576. var objDOM = rptf_createDOM(); // DOM 객체 설정
  577. rptf_setValueToDOM(objDOM, "root/rexprnt/prntrsrvlist/frdt",roundrect1.ipt_frdt.text);
  578. rptf_setValueToDOM(objDOM, "root/rexprnt/prntrsrvlist/todt",roundrect1.todt.text);
  579. rptf_setValueToDOM(objDOM, "root/rexprnt/prntrsrvlist/execrid",roundrect1.combo6.text);
  580. rptf_setValueToDOM(objDOM, "root/rexprnt/prntrsrvlist/deptcd", roundrect1.cmb_deptcd.text);
  581. rptf_setValueToDOM(objDOM, "root/rexprnt/prntrsrvlist/excuroom", roundrect1.cmb_excuroom.text);
  582. rptf_setNodeListToDOM(objDOM, "root/rexprnt/prntrsrvlist/item", ds_report);
  583. var objParam = new Object();
  584. objParam.xml_data_XML1 = objDOM.documentElement.source;;
  585. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  586. rptf_exeReportPreview30(["RPTMP00301"],[objParam], option);
  587. }
  588. function roundrect1_ipt_frdt_onchanged(obj:Calendar, e:ChangeEventInfo)
  589. {
  590. obj.updateToDataset();
  591. setSearchDate(new String(e.postvalue));
  592. }
  593. function roundrect1_cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  594. {
  595. submit_TRAEA00902();
  596. submit_TRAEA00903();
  597. }
  598. function roundrect1_ipt_frdt_onkeydown(obj:Calendar, e:KeyEventInfo)
  599. {
  600. if(e.keycode == 13){
  601. obj.updateToDataset();
  602. btn_sea_onclick();
  603. }
  604. }
  605. ]]></Script>
  606. </Form>
  607. </FDL>