SMMND02800_병원달력.xfdl 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMND02800" position="absolute 0 0 230 220" titletext="병원달력" onload="SMMND02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 0 230 210" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" position="absolute 109 10 129 29" style="font:,,bold;align: middle;" text="년"/>
  11. <Static id="caption2" position="absolute 167 10 187 29" style="font:,,bold;align: middle;" text="월"/>
  12. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo1" class="combo_default" position="absolute 53 10 108 29" style="" onitemclick="grp_biz_combo1_onitemclick" onitemchanged="grp_biz_combo1_onitemchanged">
  13. <Dataset id="innerdataset">
  14. <ColumnInfo>
  15. <Column id="codecolumn"/>
  16. <Column id="datacolumn"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="codecolumn">2000</Col>
  21. <Col id="datacolumn">2000</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">2001</Col>
  25. <Col id="datacolumn">2001</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">2002</Col>
  29. <Col id="datacolumn">2002</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">2003</Col>
  33. <Col id="datacolumn">2003</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">2004</Col>
  37. <Col id="datacolumn">2004</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">2005</Col>
  41. <Col id="datacolumn">2005</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">2006</Col>
  45. <Col id="datacolumn">2006</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">2007</Col>
  49. <Col id="datacolumn">2007</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">2008</Col>
  53. <Col id="datacolumn">2008</Col>
  54. </Row>
  55. <Row>
  56. <Col id="codecolumn">2009</Col>
  57. <Col id="datacolumn">2009</Col>
  58. </Row>
  59. <Row>
  60. <Col id="codecolumn">2010</Col>
  61. <Col id="datacolumn">2010</Col>
  62. </Row>
  63. <Row>
  64. <Col id="codecolumn">2011</Col>
  65. <Col id="datacolumn">2011</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">2012</Col>
  69. <Col id="datacolumn">2012</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">2013</Col>
  73. <Col id="datacolumn">2013</Col>
  74. </Row>
  75. <Row>
  76. <Col id="codecolumn">2014</Col>
  77. <Col id="datacolumn">2014</Col>
  78. </Row>
  79. <Row>
  80. <Col id="codecolumn">2015</Col>
  81. <Col id="datacolumn">2015</Col>
  82. </Row>
  83. <Row>
  84. <Col id="codecolumn">2016</Col>
  85. <Col id="datacolumn">2016</Col>
  86. </Row>
  87. <Row>
  88. <Col id="codecolumn">2017</Col>
  89. <Col id="datacolumn">2017</Col>
  90. </Row>
  91. <Row>
  92. <Col id="codecolumn">2018</Col>
  93. <Col id="datacolumn">2018</Col>
  94. </Row>
  95. </Rows>
  96. </Dataset>
  97. </Combo>
  98. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo2" class="combo_default" position="absolute 126 10 166 29" style="" onitemclick="grp_biz_combo2_onitemclick" onitemchanged="grp_biz_combo2_onitemchanged">
  99. <Dataset id="innerdataset">
  100. <ColumnInfo>
  101. <Column id="codecolumn"/>
  102. <Column id="datacolumn"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row>
  106. <Col id="codecolumn">01</Col>
  107. <Col id="datacolumn">01</Col>
  108. </Row>
  109. <Row>
  110. <Col id="codecolumn">02</Col>
  111. <Col id="datacolumn">02</Col>
  112. </Row>
  113. <Row>
  114. <Col id="codecolumn">03</Col>
  115. <Col id="datacolumn">03</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">04</Col>
  119. <Col id="datacolumn">04</Col>
  120. </Row>
  121. <Row>
  122. <Col id="codecolumn">05</Col>
  123. <Col id="datacolumn">05</Col>
  124. </Row>
  125. <Row>
  126. <Col id="codecolumn">06</Col>
  127. <Col id="datacolumn">06</Col>
  128. </Row>
  129. <Row>
  130. <Col id="codecolumn">07</Col>
  131. <Col id="datacolumn">07</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">08</Col>
  135. <Col id="datacolumn">08</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">09</Col>
  139. <Col id="datacolumn">09</Col>
  140. </Row>
  141. <Row>
  142. <Col id="codecolumn">10</Col>
  143. <Col id="datacolumn">10</Col>
  144. </Row>
  145. <Row>
  146. <Col id="codecolumn">11</Col>
  147. <Col id="datacolumn">11</Col>
  148. </Row>
  149. <Row>
  150. <Col id="codecolumn">12</Col>
  151. <Col id="datacolumn">12</Col>
  152. </Row>
  153. </Rows>
  154. </Dataset>
  155. </Combo>
  156. <Grid id="datagrid1" binddataset="ds_main_cal_weeks" position="absolute 10 39 220 209" style="" oncellclick="grp_biz_datagrid1_oncellclick" oncelldblclick="grp_biz_datagrid1_oncelldblclick">
  157. <Formats>
  158. <Format id="default">
  159. <Columns>
  160. <Column size="30"/>
  161. <Column size="30"/>
  162. <Column size="30"/>
  163. <Column size="30"/>
  164. <Column size="30"/>
  165. <Column size="30"/>
  166. <Column size="30"/>
  167. </Columns>
  168. <Rows>
  169. <Row size="24" band="head"/>
  170. <Row size="24"/>
  171. </Rows>
  172. <Band id="head">
  173. <Cell text="일"/>
  174. <Cell col="1" text="월"/>
  175. <Cell col="2" text="화"/>
  176. <Cell col="3" text="수"/>
  177. <Cell col="4" text="목"/>
  178. <Cell col="5" text="금"/>
  179. <Cell col="6" text="토"/>
  180. </Band>
  181. <Band id="body">
  182. <Cell text="bind:sun"/>
  183. <Cell col="1" text="bind:mon"/>
  184. <Cell col="2" text="bind:tue"/>
  185. <Cell col="3" text="bind:wed"/>
  186. <Cell col="4" text="bind:thu"/>
  187. <Cell col="5" text="bind:fri"/>
  188. <Cell col="6" text="bind:sat"/>
  189. </Band>
  190. </Format>
  191. </Formats>
  192. </Grid>
  193. <Button id="button55" class="icon_pre_year" position="absolute 15 12 31 28" style="" text="" onclick="grp_biz_button55_onclick"/>
  194. <Button id="button56" class="icon_next_year" position="absolute 202 12 218 28" style="" text="" onclick="grp_biz_button56_onclick"/>
  195. <Button id="button57" class="icon_pre_month" position="absolute 34 12 50 28" style="" text="" onclick="grp_biz_button57_onclick"/>
  196. <Button id="button58" class="icon_next_month" position="absolute 183 12 199 28" style="" text="" onclick="grp_biz_button58_onclick"/>
  197. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 10 34 222 37" style="" anchor="default"/>
  198. </Layout>
  199. </Layouts>
  200. </Div>
  201. </Layout>
  202. </Layouts>
  203. <Objects>
  204. <Dataset id="ds_main_datelist_dateinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  205. <ColumnInfo>
  206. <Column id="getdate1" type="STRING" size="256"/>
  207. <Column id="getdate2" type="STRING" size="256"/>
  208. <Column id="getdate3" type="STRING" size="256"/>
  209. <Column id="getdate4" type="STRING" size="256"/>
  210. <Column id="getdate5" type="STRING" size="256"/>
  211. <Column id="getdate6" type="STRING" size="256"/>
  212. <Column id="getdate7" type="STRING" size="256"/>
  213. <Column id="getdate8" type="STRING" size="256"/>
  214. <Column id="getdate9" type="STRING" size="256"/>
  215. <Column id="getdate10" type="STRING" size="256"/>
  216. <Column id="getdate11" type="STRING" size="256"/>
  217. <Column id="getdate12" type="STRING" size="256"/>
  218. <Column id="getdate13" type="STRING" size="256"/>
  219. <Column id="getdate14" type="STRING" size="256"/>
  220. <Column id="getdate15" type="STRING" size="256"/>
  221. <Column id="getdate16" type="STRING" size="256"/>
  222. <Column id="getdate17" type="STRING" size="256"/>
  223. <Column id="getdate18" type="STRING" size="256"/>
  224. <Column id="getdate19" type="STRING" size="256"/>
  225. <Column id="getdate20" type="STRING" size="256"/>
  226. <Column id="getdate21" type="STRING" size="256"/>
  227. <Column id="getdate22" type="STRING" size="256"/>
  228. <Column id="getdate23" type="STRING" size="256"/>
  229. <Column id="getdate24" type="STRING" size="256"/>
  230. <Column id="getdate25" type="STRING" size="256"/>
  231. <Column id="getdate26" type="STRING" size="256"/>
  232. <Column id="getdate27" type="STRING" size="256"/>
  233. <Column id="getdate28" type="STRING" size="256"/>
  234. <Column id="getdate29" type="STRING" size="256"/>
  235. <Column id="getdate30" type="STRING" size="256"/>
  236. <Column id="getdate31" type="STRING" size="256"/>
  237. <Column id="focus1" type="STRING" size="256"/>
  238. <Column id="focus2" type="STRING" size="256"/>
  239. <Column id="focus3" type="STRING" size="256"/>
  240. <Column id="focus4" type="STRING" size="256"/>
  241. <Column id="focus5" type="STRING" size="256"/>
  242. <Column id="focus6" type="STRING" size="256"/>
  243. <Column id="focus7" type="STRING" size="256"/>
  244. <Column id="focus8" type="STRING" size="256"/>
  245. <Column id="focus9" type="STRING" size="256"/>
  246. <Column id="focus10" type="STRING" size="256"/>
  247. <Column id="focus11" type="STRING" size="256"/>
  248. <Column id="focus12" type="STRING" size="256"/>
  249. <Column id="focus13" type="STRING" size="256"/>
  250. <Column id="focus14" type="STRING" size="256"/>
  251. <Column id="focus15" type="STRING" size="256"/>
  252. <Column id="focus16" type="STRING" size="256"/>
  253. <Column id="focus17" type="STRING" size="256"/>
  254. <Column id="focus18" type="STRING" size="256"/>
  255. <Column id="focus19" type="STRING" size="256"/>
  256. <Column id="focus20" type="STRING" size="256"/>
  257. <Column id="focus21" type="STRING" size="256"/>
  258. <Column id="focus22" type="STRING" size="256"/>
  259. <Column id="focus23" type="STRING" size="256"/>
  260. <Column id="focus24" type="STRING" size="256"/>
  261. <Column id="focus25" type="STRING" size="256"/>
  262. <Column id="focus26" type="STRING" size="256"/>
  263. <Column id="focus27" type="STRING" size="256"/>
  264. <Column id="focus28" type="STRING" size="256"/>
  265. <Column id="focus29" type="STRING" size="256"/>
  266. <Column id="focus30" type="STRING" size="256"/>
  267. <Column id="focus31" type="STRING" size="256"/>
  268. <Column id="startfocus" type="STRING" size="256"/>
  269. <Column id="endfocus" type="STRING" size="256"/>
  270. </ColumnInfo>
  271. <Rows>
  272. <Row>
  273. <Col id="getdate1"/>
  274. <Col id="getdate2"/>
  275. <Col id="getdate3"/>
  276. <Col id="getdate4"/>
  277. <Col id="getdate5"/>
  278. <Col id="getdate6"/>
  279. <Col id="getdate7"/>
  280. <Col id="getdate8"/>
  281. <Col id="getdate9"/>
  282. <Col id="getdate10"/>
  283. <Col id="getdate11"/>
  284. <Col id="getdate12"/>
  285. <Col id="getdate13"/>
  286. <Col id="getdate14"/>
  287. <Col id="getdate15"/>
  288. <Col id="getdate16"/>
  289. <Col id="getdate17"/>
  290. <Col id="getdate18"/>
  291. <Col id="getdate19"/>
  292. <Col id="getdate20"/>
  293. <Col id="getdate21"/>
  294. <Col id="getdate22"/>
  295. <Col id="getdate23"/>
  296. <Col id="getdate24"/>
  297. <Col id="getdate25"/>
  298. <Col id="getdate26"/>
  299. <Col id="getdate27"/>
  300. <Col id="getdate28"/>
  301. <Col id="getdate29"/>
  302. <Col id="getdate30"/>
  303. <Col id="getdate31"/>
  304. <Col id="focus1"/>
  305. <Col id="focus2"/>
  306. <Col id="focus3"/>
  307. <Col id="focus4"/>
  308. <Col id="focus5"/>
  309. <Col id="focus6"/>
  310. <Col id="focus7"/>
  311. <Col id="focus8"/>
  312. <Col id="focus9"/>
  313. <Col id="focus10"/>
  314. <Col id="focus11"/>
  315. <Col id="focus12"/>
  316. <Col id="focus13"/>
  317. <Col id="focus14"/>
  318. <Col id="focus15"/>
  319. <Col id="focus16"/>
  320. <Col id="focus17"/>
  321. <Col id="focus18"/>
  322. <Col id="focus19"/>
  323. <Col id="focus20"/>
  324. <Col id="focus21"/>
  325. <Col id="focus22"/>
  326. <Col id="focus23"/>
  327. <Col id="focus24"/>
  328. <Col id="focus25"/>
  329. <Col id="focus26"/>
  330. <Col id="focus27"/>
  331. <Col id="focus28"/>
  332. <Col id="focus29"/>
  333. <Col id="focus30"/>
  334. <Col id="focus31"/>
  335. <Col id="startfocus"/>
  336. <Col id="endfocus"/>
  337. </Row>
  338. </Rows>
  339. </Dataset>
  340. <Dataset id="ds_main_cal_weeks" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  341. <ColumnInfo>
  342. <Column id="sun" type="STRING" size="256"/>
  343. <Column id="mon" type="STRING" size="256"/>
  344. <Column id="tue" type="STRING" size="256"/>
  345. <Column id="wed" type="STRING" size="256"/>
  346. <Column id="thu" type="STRING" size="256"/>
  347. <Column id="fri" type="STRING" size="256"/>
  348. <Column id="sat" type="STRING" size="256"/>
  349. <Column id="sun" type="STRING" size="256"/>
  350. <Column id="mon" type="STRING" size="256"/>
  351. <Column id="tue" type="STRING" size="256"/>
  352. <Column id="wed" type="STRING" size="256"/>
  353. <Column id="thu" type="STRING" size="256"/>
  354. <Column id="fri" type="STRING" size="256"/>
  355. <Column id="sat" type="STRING" size="256"/>
  356. <Column id="sun" type="STRING" size="256"/>
  357. <Column id="mon" type="STRING" size="256"/>
  358. <Column id="tue" type="STRING" size="256"/>
  359. <Column id="wed" type="STRING" size="256"/>
  360. <Column id="thu" type="STRING" size="256"/>
  361. <Column id="fri" type="STRING" size="256"/>
  362. <Column id="sat" type="STRING" size="256"/>
  363. <Column id="sun" type="STRING" size="256"/>
  364. <Column id="mon" type="STRING" size="256"/>
  365. <Column id="tue" type="STRING" size="256"/>
  366. <Column id="wed" type="STRING" size="256"/>
  367. <Column id="thu" type="STRING" size="256"/>
  368. <Column id="fri" type="STRING" size="256"/>
  369. <Column id="sat" type="STRING" size="256"/>
  370. <Column id="sun" type="STRING" size="256"/>
  371. <Column id="mon" type="STRING" size="256"/>
  372. <Column id="tue" type="STRING" size="256"/>
  373. <Column id="wed" type="STRING" size="256"/>
  374. <Column id="thu" type="STRING" size="256"/>
  375. <Column id="fri" type="STRING" size="256"/>
  376. <Column id="sat" type="STRING" size="256"/>
  377. <Column id="sun" type="STRING" size="256"/>
  378. <Column id="mon" type="STRING" size="256"/>
  379. <Column id="tue" type="STRING" size="256"/>
  380. <Column id="wed" type="STRING" size="256"/>
  381. <Column id="thu" type="STRING" size="256"/>
  382. <Column id="fri" type="STRING" size="256"/>
  383. <Column id="sat" type="STRING" size="256"/>
  384. </ColumnInfo>
  385. <Rows>
  386. <Row>
  387. <Col id="sun"/>
  388. <Col id="mon"/>
  389. <Col id="tue"/>
  390. <Col id="wed"/>
  391. <Col id="thu"/>
  392. <Col id="fri"/>
  393. <Col id="sat"/>
  394. </Row>
  395. <Row>
  396. <Col id="sun"/>
  397. <Col id="mon"/>
  398. <Col id="tue"/>
  399. <Col id="wed"/>
  400. <Col id="thu"/>
  401. <Col id="fri"/>
  402. <Col id="sat"/>
  403. </Row>
  404. <Row>
  405. <Col id="sun"/>
  406. <Col id="mon"/>
  407. <Col id="tue"/>
  408. <Col id="wed"/>
  409. <Col id="thu"/>
  410. <Col id="fri"/>
  411. <Col id="sat"/>
  412. </Row>
  413. <Row>
  414. <Col id="sun"/>
  415. <Col id="mon"/>
  416. <Col id="tue"/>
  417. <Col id="wed"/>
  418. <Col id="thu"/>
  419. <Col id="fri"/>
  420. <Col id="sat"/>
  421. </Row>
  422. <Row>
  423. <Col id="sun"/>
  424. <Col id="mon"/>
  425. <Col id="tue"/>
  426. <Col id="wed"/>
  427. <Col id="thu"/>
  428. <Col id="fri"/>
  429. <Col id="sat"/>
  430. </Row>
  431. <Row>
  432. <Col id="sun"/>
  433. <Col id="mon"/>
  434. <Col id="tue"/>
  435. <Col id="wed"/>
  436. <Col id="thu"/>
  437. <Col id="fri"/>
  438. <Col id="sat"/>
  439. </Row>
  440. </Rows>
  441. </Dataset>
  442. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  443. <ColumnInfo>
  444. <Column id="year" type="STRING" size="256"/>
  445. <Column id="month" type="STRING" size="256"/>
  446. <Column id="selecteddd" type="STRING" size="256"/>
  447. </ColumnInfo>
  448. </Dataset>
  449. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  450. <ColumnInfo>
  451. <Column id="init" type="STRING" size="256"/>
  452. </ColumnInfo>
  453. <Rows>
  454. <Row>
  455. <Col id="init"/>
  456. </Row>
  457. </Rows>
  458. </Dataset>
  459. <Dataset id="ds_main_datelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  460. <ColumnInfo/>
  461. </Dataset>
  462. <Dataset id="ds_main_cal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  463. <ColumnInfo/>
  464. </Dataset>
  465. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  466. <ColumnInfo>
  467. <Column id="hidden" type="STRING" size="256"/>
  468. </ColumnInfo>
  469. </Dataset>
  470. <Dataset id="ds_main_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  471. <ColumnInfo>
  472. <Column id="caldata" type="STRING" size="256"/>
  473. </ColumnInfo>
  474. <Rows>
  475. <Row>
  476. <Col id="caldata"/>
  477. </Row>
  478. </Rows>
  479. </Dataset>
  480. </Objects>
  481. <Bind>
  482. <BindItem id="item0" compid="grp_biz.combo1" propid="value" datasetid="ds_main" columnid="year"/>
  483. <BindItem id="item1" compid="grp_biz.combo2" propid="value" datasetid="ds_main" columnid="month"/>
  484. </Bind>
  485. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  486. var arErrorCode = new HashArray();
  487. function SMMND02800_onload(obj:Form, e:LoadEventInfo) {
  488. frmf_initForm(obj);
  489. grdf_initGrid(this.grp_biz.datagrid1);
  490. //grdf_setGridSort(grd_XXX);
  491. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  492. fInitStyle();
  493. fInitControl();
  494. fCreateCalendar();
  495. //fInitCellColor(1,2);
  496. fSelGetDate();
  497. //fGetDate('20070402','20070410');
  498. }
  499. //전체 달력에서 지정된 기간의 일자의 위치를 검색한다.
  500. function fGetDate(rsrvdd1,rsrvdd2){
  501. var dd = ds_send.getColumn(0, "date"); //해당 년,월
  502. alert(dd);
  503. var iValuedd, focusdd;
  504. for(var i=1;i<7;i++){
  505. for(var j=0;j<7;j++){
  506. //if(dd != ""){
  507. if(grp_biz.datagrid1.textmatrix(i,j)<10){
  508. iValuedd = "0" + grp_biz.datagrid1.textmatrix(i,j); //셀의 일자
  509. }else{
  510. iValuedd = grp_biz.datagrid1.textmatrix(i,j);
  511. }
  512. focusdd = i +" "+j; alert(dd+iValuedd);
  513. if((dd+iValuedd) == rsrvdd1){
  514. dsf_makeValue( ds_main_datelist_dateinfo, "startfocus", "string", focusdd); //예약시작시점의 위치값을 startdate에 넣어줌.
  515. }
  516. if((dd+iValuedd) == rsrvdd2){
  517. dsf_makeValue( ds_main_datelist_dateinfo, "endfocus", "string", focusdd); //예약종료시점의 위치값을 enddate에 넣어줌.
  518. }
  519. //}
  520. }
  521. }
  522. }
  523. //지정된 일자(cell색지정된 일자)를 리턴해준다.
  524. function fSelGetDate(i,j){
  525. var d=1; //getdate인덱스
  526. var dd = ds_send.getColumn(0, "date"); //해당 년,월
  527. var iValue, focus; //datagrid1의 값
  528. for(var i=1;i<7;i++){
  529. for(var j=0;j<7;j++){
  530. if(grp_biz.datagrid1.cellStyle("background-color", i, j) == "#cc99ff" ){
  531. if(grp_biz.datagrid1.textmatrix(i,j)<10){
  532. iValue = "0" + grp_biz.datagrid1.textmatrix(i,j); //색상 지정된 셀의 일자
  533. }else{
  534. iValue = grp_biz.datagrid1.textmatrix(i,j);
  535. }
  536. focus = i +" "+ j; //색상 지정된 셀의 위치값
  537. dsf_makeValue( ds_main_datelist_dateinfo, "getdate", "string", +d, dd+iValue); //색상 지정된 셀의 일자를 getdate에 넣어줌.
  538. dsf_makeValue( ds_main_datelist_dateinfo, "focus", "string", +d, focus); //색상 지정된 셀의 위치값을 focus에 넣어줌.
  539. d++;
  540. }
  541. }
  542. }
  543. }
  544. //지정된 일자에 해당하는 cell에 색상을 표시한다.
  545. function fInitCellColor(iRow,iCol){
  546. grp_biz.datagrid1.cellStyle("background-color", iRow, iCol) = "#cc99ff";
  547. }
  548. // 화면 open시 화면 스타일 초기화 기능을 수행한다.
  549. function fInitStyle() {
  550. //cell style
  551. // grp_biz.datagrid1.cellStyle("border-bottom-style",1 , 0, 1, 6) = "hidden";
  552. //grp_biz.datagrid1.cellStyle("background-color",2 , 0, 2, 6) = "#ffffff";
  553. // grp_biz.datagrid1.cellStyle("border-bottom-style",3 , 0, 3, 6) = "hidden";
  554. //grp_biz.datagrid1.cellStyle("background-color",4 , 0, 4, 6) = "#ffffff";
  555. // grp_biz.datagrid1.cellStyle("border-bottom-style",5 , 0, 5, 6) = "hidden";
  556. //grp_biz.datagrid1.cellStyle("background-color",6 , 0, 6, 6) = "#ffffff";
  557. // grp_biz.datagrid1.cellStyle("border-bottom-style",7 , 0, 7, 6) = "hidden";
  558. //grp_biz.datagrid1.cellStyle("background-color",8 , 0, 8, 6) = "#ffffff";
  559. // grp_biz.datagrid1.cellStyle("border-bottom-style",9 , 0, 9, 6) = "hidden";
  560. //grp_biz.datagrid1.cellStyle("background-color",10 , 0, 10, 6) = "#ffffff";
  561. // grp_biz.datagrid1.cellStyle("border-bottom-style",11 , 0, 11, 6) = "hidden";
  562. //grp_biz.datagrid1.cellStyle("background-color",12 , 0, 12, 6) = "#ffffff";
  563. //font style
  564. grp_biz.datagrid1.cellStyle("color",1 , 0, 6, 0) = "#ff0000";
  565. grp_biz.datagrid1.cellStyle("color",1 , 6, 6, 6) = "#0000ff";
  566. /*
  567. grp_biz.datagrid1.cellStyle("font-size",1 , 0, 1, 6) = "12px";
  568. grp_biz.datagrid1.cellStyle("font-size",3 , 0, 2, 6) = "12px";
  569. grp_biz.datagrid1.cellStyle("font-size",5 , 0, 3, 6) = "12px";
  570. grp_biz.datagrid1.cellStyle("font-size",7 , 0, 4, 6) = "12px";
  571. grp_biz.datagrid1.cellStyle("font-size",9 , 0, 5, 6) = "12px";
  572. grp_biz.datagrid1.cellStyle("font-size",11 , 0, 6, 6) = "12px";
  573. grp_biz.datagrid1.cellStyle("font-size",13 , 0, 13, 6) = "12px";
  574. //grp_biz.datagrid1.cellStyle("font-weight",0 , 0, 12, 6) = "bold";
  575. //grp_biz.datagrid1.cellStyle("font-family",1 , 0, 12, 6) = "가는각진제목체";
  576. */
  577. grp_biz.datagrid1.cellStyle("font-size",1 , 0, 1, 6) = "12px";
  578. grp_biz.datagrid1.cellStyle("font-size",2 , 0, 2, 6) = "12px";
  579. grp_biz.datagrid1.cellStyle("font-size",3 , 0, 3, 6) = "12px";
  580. grp_biz.datagrid1.cellStyle("font-size",4 , 0, 4, 6) = "12px";
  581. grp_biz.datagrid1.cellStyle("font-size",5 , 0, 5, 6) = "12px";
  582. grp_biz.datagrid1.cellStyle("font-size",6 , 0, 6, 6) = "12px";
  583. grp_biz.datagrid1.cellStyle("font-size",7 , 0, 7, 6) = "12px";
  584. }
  585. //화면 컨트롤 초기화
  586. function fInitControl()
  587. {
  588. //서버 일자로 처리
  589. today = new Date();
  590. var isYear, isMonth, ls_day;
  591. isYear = (today.getYear()).toString();
  592. isMonth = (today.getMonth() + 1).toString();
  593. //1~9월까지 숫자 앞에 0을 붙여준다. ex) 1 -> 01
  594. if ((isMonth.toString()).length == 1) isMonth = ("0".concat(isMonth.toString()));
  595. thisMonth = isYear.concat(isMonth);
  596. if (thisMonth < '200001')
  597. {
  598. ds_main.setColumn( 0, "year","2000");
  599. ds_main.setColumn( 0, "month","01");
  600. //model.refresh();
  601. }
  602. else
  603. {
  604. ds_main.setColumn( 0, "year",isYear);
  605. ds_main.setColumn( 0, "month",isMonth);
  606. //model.refresh();
  607. }
  608. }
  609. //해당 일자의 병원 일정 정보를 얻어 온다
  610. function fGetHospitalCalendar()
  611. {
  612. //ds_send.setColumn( 0, "mode", "reqGetHospitalCalendar"); //Action Method
  613. var dd = (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month"));
  614. ds_send.setColumn( 0, "date",dd);
  615. //alert( ds_send.getColumn(0, "date") );
  616. // if (submit("TRPMB01001") == true) return true;
  617. var oParam = {};
  618. oParam.id = "TRPMB01001";
  619. oParam.service = "pambaseinfomngtapp.OrdSche";
  620. oParam.method = "reqGetHospitalCalendar";
  621. oParam.inds = "req=ds_send";
  622. oParam.outds = "ds_=caldata";
  623. oParam.async = false;
  624. oParam.callback = "cf_TRPMB01001";
  625. tranf_submit(oParam);
  626. if(arErrorCode.pop("TRPMB01001") > -1) return true;
  627. else return false;
  628. }
  629. function cf_TRPMB01001(sSvcId, nErrorCode, sErrorMsg) {
  630. arErrorCode.push(sSvcId, nErrorCode);
  631. }
  632. //얻어 온 일정을 달력에 실제로 표시해 주는 함수
  633. function fCreateCalendar()
  634. {
  635. //TFclearNodeValue("ds_main_cal");
  636. //서버로 자료 요청
  637. if ( fGetHospitalCalendar() != true ){
  638. alert(" line 222 : 데이터를 가져오지 못했습니다.");
  639. //에러로 인한 초기화면으로 세팅
  640. fInitControl();
  641. //fCreateCalendar();
  642. return false;
  643. }else{
  644. //달력 폰트 색 설정
  645. grp_biz.datagrid1.cellStyle("color",1 , 0, 12, 6) = "#000000";
  646. grp_biz.datagrid1.cellStyle("color",1 , 0, 12, 0) = "#ff0000";
  647. grp_biz.datagrid1.cellStyle("color",1 , 6, 12, 6) = "#0000ff";
  648. //var cntDate = TFNodeDataCount("ds_main_result");
  649. var buff;
  650. var cnt = 1;
  651. var position = 1;
  652. //토요일( dutflag = 4 ) 위치를 찾아서 달력을 표시한다.
  653. while(position < 8){
  654. buff = ds_main_result_caldata.getColumn(position, "dutflag"));
  655. if(buff == "4" ) break;
  656. else position++;
  657. }
  658. // 달력에 날짜 쓰기~
  659. cnt = cnt + position - 7;
  660. for( var row = 1; row< 7; row = row+1){ //grid title 때문에 +1
  661. for( var col = 0; col < 7; col++){
  662. if( cnt > 0 && cnt <= 31){
  663. if( ds_main_result_caldata.getColumn(cnt, "basedd")) != "" ){
  664. grp_biz.datagrid1.textmatrix( row, col ) = cnt;
  665. buff = ds_main_result_caldata.getColumn(cnt, "holiflag"));
  666. //휴일 빨간색으로 표시
  667. if( buff == "1") grp_biz.datagrid1.cellStyle("color", row, col, row, col) = "#ff0000";
  668. //else grp_biz.datagrid1.cellStyle("color", row, col, row + 1, col) = "#000000"
  669. }else grp_biz.datagrid1.textmatrix( row, col ) = "";
  670. }else grp_biz.datagrid1.textmatrix( row, col ) = "";
  671. cnt++;
  672. }
  673. }
  674. //공휴일 이름을 표시한다.
  675. /* cnt = 1;
  676. cnt = cnt + position -7;
  677. for( var row = 2; row< 13; row = row+2){ //grid title 때문에 +1
  678. for( var col = 0; col < 7; col++){
  679. if( cnt > 0 && cnt <= 31 ) grp_biz.datagrid1.textmatrix( row, col ) = ds_main_result_caldata.getColumn(cnt, "holinm"));
  680. else grp_biz.datagrid1.textmatrix( row, col ) = "";
  681. cnt++;
  682. }
  683. }*/
  684. }
  685. }
  686. function grp_biz_combo1_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  687. //fCreateCalendar();
  688. }
  689. function grp_biz_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  690. fCreateCalendar();
  691. }
  692. function grp_biz_combo2_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  693. //fCreateCalendar();
  694. }
  695. function grp_biz_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  696. fCreateCalendar();
  697. }
  698. function grp_biz_datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo) {
  699. /* var //지정된 일자(cell색지정된 일자)를 리턴해준다.Cells = grp_biz.datagrid1.selectedCells;
  700. for (var i=0; i<selectedCells.length; i++)
  701. {
  702. var cell = grp_biz.datagrid1.selectedCells.item(i);
  703. if (cell)
  704. {
  705. var row = cell.row;
  706. var col = cell.col;
  707. check = row%2;
  708. //alert( "row : " + cell.row + " / col : " + cell.col);
  709. if( check == 0 ){
  710. //선택된 필드의 색상을 바꿔준다.
  711. grp_biz.datagrid1.cellStyle("background-color",1 , 0, 12, 6) = "#ffffff";
  712. grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
  713. row = row - 1;
  714. grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
  715. //선택된 날짜 정보를 인스턴스값에 넣어준다.
  716. var days = grp_biz.datagrid1.textmatrix( row, col );
  717. if( days != "" ){
  718. if( days.length == 1 ) days = "0" + days;
  719. var dd = ( (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month")) ).concat(days);
  720. ds_main.setColumn( 0, "selecteddd", dd);
  721. }
  722. }else{
  723. //선택된 날짜 정보를 인스턴스값에 넣어준다.
  724. var days = grp_biz.datagrid1.textmatrix( row, col );
  725. if( days != "" ){
  726. if( days.length == 1 ) days = "0" + days;
  727. var dd = ( (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month")) ).concat(days);
  728. ds_main.setColumn( 0, "selecteddd", dd);
  729. }
  730. //선택된 필드의 색상을 바꿔준다.
  731. grp_biz.datagrid1.cellStyle("background-color",1 , 0, 12, 6) = "#ffffff";
  732. grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
  733. row = row + 1;
  734. grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
  735. }
  736. //model.refresh();
  737. }
  738. }*/
  739. }
  740. function grp_biz_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  741. var selectedCells = grp_biz.datagrid1.selectedCells;
  742. for (var i=0; i<selectedCells.length; i++)
  743. {
  744. var cell = grp_biz.datagrid1.selectedCells.item(i);
  745. if (cell)
  746. {
  747. var row = cell.row;
  748. var col = cell.col;
  749. check = row%2;
  750. //alert( "row : " + cell.row + " / col : " + cell.col);
  751. if( check == 0 ){
  752. //row = row + 1;
  753. var msg = grp_biz.datagrid1.textmatrix( row, col );
  754. if( msg == "") alert(" no message");
  755. else alert(msg);
  756. }else{
  757. row = row + 1;
  758. var msg = grp_biz.datagrid1.textmatrix( row, col );
  759. if( msg == "") alert(" no message");
  760. else alert(msg);
  761. }
  762. }
  763. }
  764. }
  765. function grp_biz_button55_onclick(obj:Button, e:ClickEventInfo) {
  766. grp_biz.combo1.select(grp_biz.combo1.focusIndex -1);
  767. //fCreateCalendar();
  768. }
  769. function grp_biz_button56_onclick(obj:Button, e:ClickEventInfo) {
  770. grp_biz.combo1.select(grp_biz.combo1.focusIndex +1);
  771. //fCreateCalendar();
  772. }
  773. function grp_biz_button57_onclick(obj:Button, e:ClickEventInfo) {
  774. grp_biz.combo2.select(grp_biz.combo2.focusIndex -1);
  775. //fCreateCalendar();
  776. }
  777. function grp_biz_button58_onclick(obj:Button, e:ClickEventInfo) {
  778. grp_biz.combo2.select(grp_biz.combo2.focusIndex +1);
  779. //fCreateCalendar();
  780. }
  781. ]]></Script>
  782. </Form>
  783. </FDL>