SMAEB00500_부서별 메모관리.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00500" position="absolute 0 0 1256 805" titletext="부서별 메모관리" onload="SMAEB00500_onload" onclose="SMAEB00500_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="부서별 메모관리" class="tit_1" position="absolute 0 0 196 25" positiontype="position"/>
  8. <Edit id="input1" taborder="7" class="input_search" visible="false" position="absolute 811 74 911 94" imemode="hangul" positiontype="position"/>
  9. <Static id="caption3" text="메모" class="tit_2" position="absolute 571 77 653 97" positiontype="position"/>
  10. <Static id="caption2" text="일별 현황" class="tit_2" position="absolute 0 77 82 97" positiontype="position"/>
  11. <TextArea id="tar_memo" taborder="15" position="absolute 572 97 1256 400" anchor="left top right" imemode="hangul" positiontype="position" maxlength="900" lengthunit="utf8" wordwrap="word"/>
  12. <Grid id="grd_deptmemolist" taborder="16" useinputpanel="false" position="absolute 0 427 1256 782" anchor="all" autofittype="col" binddataset="ds_grid_deptmemo" positiontype="position" ondbclick="grd_deptmemolist_ondbclick" oncellclick="grd_deptmemolist_oncellclick" oncelldblclick="grd_deptmemolist_oncelldblclick" autosizingtype="row" extendsizetype="row">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="100"/>
  17. <Column size="120"/>
  18. <Column size="1041"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="22" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell text="일자"/>
  26. <Cell col="1" text="메모기록일시"/>
  27. <Cell col="2" text="내용"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell style="align:center middle;" text="bind:memodt" mask="####-##-##" autosizerow="limitmin"/>
  31. <Cell col="1" style="align:center middle;" text="bind:lastupdtdt" autosizerow="limitmin"/>
  32. <Cell col="2" displaytype="text" edittype="none" text="bind:memorem" autosizerow="limitmin"/>
  33. <Cell col="3"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Static id="caption22" text="메모내역" class="tit_2" position="absolute 0 407 84 427" positiontype="position"/>
  39. <Static id="caption1" text="* 메모 저장시 꼭 달력에서 일자선택후 메모입력하고 저장버튼 누르십시오!" position="absolute 728 785 1147 805" anchor="right bottom" positiontype="position"/>
  40. <Button id="btn_save" taborder="17" text="저장" class="btn4" position="absolute 1200 785 1256 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
  41. <Div id="grp_sea" anchor="left top right" taborder="23" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 26 1256 68" type="roundrectangle" positiontype="position">
  42. <Layouts>
  43. <Layout width="1256" height="42">
  44. <Combo id="cmb_excuroom" taborder="154" class="combo_default" position="absolute 626 11 751 31" anchor="default" innerdataset="@ds_init_initexecroom" codecolumn="basecd" datacolumn="basecdflagdesc" onitemchanged="grp_sea_cmb_excuroom_onitemchanged" positiontype="position"/>
  45. <Static id="caption12" text="검사/치료실" class="search_name" position="absolute 526 10 626 30" anchor="default" positiontype="position"/>
  46. <Combo id="cmb_deptcd" taborder="155" position="absolute 384 10 502 30" anchor="default" enable="false" innerdataset="@ds_init_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" positiontype="position"/>
  47. <Static id="caption10" text="지원부서" class="search_name" position="absolute 310 11 384 31" anchor="default" positiontype="position"/>
  48. <Calendar id="ipt_date2" taborder="156" class="input_search" position="absolute 186 10 286 30" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" autoselect="true"/>
  49. <Calendar id="ipt_date1" taborder="157" class="input_search" position="absolute 66 10 166 30" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  50. <Static id="caption02" text="~" position="absolute 170 11 186 31" style="align:center middle;" anchor="default"/>
  51. <Static id="caption4" text="일자" class="search_name" position="absolute 8 11 56 31" anchor="default" positiontype="position"/>
  52. <Button id="btn_sea" taborder="158" text="조회" class="btn1" position="absolute 1189 10 1245 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Button id="btn_execl" taborder="48" text="엑셀" position="absolute 1204 74 1256 94" anchor="top right" class="btn7" positiontype="position" onclick="btn_execl_onclick"/>
  57. <Div id="CalDiv" taborder="49" position="absolute 0 97 562 400">
  58. <Layouts>
  59. <Layout>
  60. <Grid id="grd_calendar" class="gridcalendar" taborder="16" binddataset="ds_grid_grd_calendar" useinputpanel="false" selecttype="cell" autofittype="col" oncellclick="grd_calendar_oncellclick" position="absolute 0 45 562 303" onclick="grd_calendar_onclick" anchor="default">
  61. <Formats>
  62. <Format id="default">
  63. <Columns>
  64. <Column size="55"/>
  65. <Column size="55"/>
  66. <Column size="55"/>
  67. <Column size="55"/>
  68. <Column size="55"/>
  69. <Column size="55"/>
  70. <Column size="55"/>
  71. </Columns>
  72. <Rows>
  73. <Row size="24" band="head"/>
  74. <Row size="23"/>
  75. <Row size="23"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell text="일"/>
  79. <Cell col="1" text="월"/>
  80. <Cell col="2" text="화"/>
  81. <Cell col="3" text="수"/>
  82. <Cell col="4" text="목"/>
  83. <Cell col="5" text="금"/>
  84. <Cell col="6" text="토"/>
  85. </Band>
  86. <Band id="body">
  87. <Cell rowspan="2">
  88. <Cell style="color:crimson;color2:crimson;" class="color_sun" text="bind:sun"/>
  89. <Cell row="1" text="bind:sun_memo"/>
  90. </Cell>
  91. <Cell col="1" rowspan="2">
  92. <Cell style="background: ;" text="bind:mon"/>
  93. <Cell row="1" style="background: ;" text="bind:mon_memo"/>
  94. </Cell>
  95. <Cell col="2" rowspan="2">
  96. <Cell style="color:EXPR(tue_holi==1?'crimson':'black');color2:EXPR(tue_holi==1?'crimson':'black');" text="bind:tue"/>
  97. <Cell row="1" text="bind:tue_memo"/>
  98. </Cell>
  99. <Cell col="3" rowspan="2" style="background2: ;">
  100. <Cell style="color:EXPR(wed_holi==1?'crimson':'black');color2:EXPR(wed_holi==1?'crimson':'black');" text="bind:wed"/>
  101. <Cell row="1" text="bind:wed_memo"/>
  102. </Cell>
  103. <Cell col="4" rowspan="2" style="background2: ;">
  104. <Cell style="color:EXPR(thu_holi==1?'crimson':'black');color2:EXPR(thu_holi==1?'crimson':'black');" text="bind:thu"/>
  105. <Cell row="1" text="bind:thu_memo"/>
  106. </Cell>
  107. <Cell col="5" rowspan="2">
  108. <Cell style="color:EXPR(fri_holi==1?'crimson':'black');color2:EXPR(fri_holi==1?'crimson':'black');" text="bind:fri"/>
  109. <Cell row="1" text="bind:fri_memo"/>
  110. </Cell>
  111. <Cell col="6" rowspan="2">
  112. <Cell style="color:EXPR(sat_holi==1?'crimson':'blue');color2:EXPR(sat_holi==1?'crimson':'blue');" class="color_sat" text="bind:sat"/>
  113. <Cell row="1" text="bind:sat_memo"/>
  114. </Cell>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Div id="grp_calendar" taborder="17" class="div_SA" position="absolute 0 1 562 43" anchor="default"/>
  120. <Button id="btn_nextyear" taborder="18" onclick="clickCalButton" onlbuttonup="btn_nextyear_onlbuttonup" class="icon_next_year" position="absolute 352 12 368 32" anchor="default"/>
  121. <Button id="btn_nextmonth" taborder="19" onclick="clickCalButton" onlbuttonup="btn_nextmonth_onlbuttonup" class="icon_next_month" position="absolute 334 12 350 32" anchor="default"/>
  122. <Static id="caption18" text="월" class="calendar_output" position="absolute 315 12 335 32" anchor="default" style="color:black;"/>
  123. <Edit id="opt_month" taborder="20" readonly="true" class="calendar_output" position="absolute 282 12 312 32" anchor="default"/>
  124. <Static id="caption15" text="년" class="calendar_output" position="absolute 263 12 283 32" anchor="default" style="color:black;"/>
  125. <Edit id="opt_year" taborder="21" readonly="true" class="calendar_output" position="absolute 226 12 260 32" anchor="default"/>
  126. <Button id="btn_premonth" taborder="22" onclick="clickCalButton" onlbuttonup="btn_premonth_onlbuttonup" class="icon_pre_month" position="absolute 202 12 218 32" anchor="default"/>
  127. <Button id="btn_preyear" taborder="23" onclick="clickCalButton" class="icon_pre_year" position="absolute 184 12 200 32" anchor="default"/>
  128. </Layout>
  129. </Layouts>
  130. </Div>
  131. </Layout>
  132. </Layouts>
  133. <Objects>
  134. <Dataset id="ds_grid_deptmemo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="memodt" type="STRING"/>
  137. <Column id="lastupdtdt" type="STRING"/>
  138. <Column id="memorem" type="STRING"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_cond_reqparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  144. <Column id="rbasecdflag" type="STRING" size="256"/>
  145. <Column id="ebasecdflag" type="STRING" size="256"/>
  146. <Column id="instcd" type="STRING" size="256"/>
  147. <Column id="initflag" type="STRING" size="256"/>
  148. <Column id="alladdyn" type="STRING" size="256"/>
  149. <Column id="grupcdid" type="STRING" size="256"/>
  150. <Column id="screenflag" type="STRING" size="256"/>
  151. <Column id="baseinfoflag" type="STRING" size="256"/>
  152. <Column id="screen" type="STRING" size="256"/>
  153. <Column id="memodt1" type="STRING" size="256"/>
  154. <Column id="memodt2" type="STRING" size="256"/>
  155. <Column id="memorem" type="STRING" size="256"/>
  156. <Column id="excuroomcd" type="STRING" size="256"/>
  157. <Column id="svflag" type="STRING" size="256"/>
  158. <Column id="grddatadt1" type="STRING" size="256"/>
  159. <Column id="flag" type="STRING" size="256"/>
  160. <Column id="searchDate" type="STRING" size="256"/>
  161. <Column id="searchmm" type="STRING" size="256"/>
  162. <Column id="memodt" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row>
  166. <Col id="basesuppdeptcd"/>
  167. <Col id="rbasecdflag"/>
  168. <Col id="ebasecdflag"/>
  169. <Col id="instcd"/>
  170. <Col id="initflag"/>
  171. <Col id="alladdyn"/>
  172. <Col id="grupcdid"/>
  173. <Col id="screenflag"/>
  174. <Col id="baseinfoflag"/>
  175. <Col id="screen"/>
  176. <Col id="memodt1"/>
  177. <Col id="memodt2"/>
  178. <Col id="memorem"/>
  179. <Col id="excuroomcd"/>
  180. <Col id="svflag"/>
  181. <Col id="grddatadt1"/>
  182. <Col id="flag"/>
  183. <Col id="searchDate"/>
  184. </Row>
  185. </Rows>
  186. </Dataset>
  187. <Dataset id="ds_init_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="basecdcnts"/>
  190. <Column id="basecdcnts2"/>
  191. </ColumnInfo>
  192. </Dataset>
  193. <Dataset id="ds_init_listexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="basecdcnts"/>
  196. <Column id="basecdcnts2"/>
  197. </ColumnInfo>
  198. </Dataset>
  199. <Dataset id="ds_init_initexcuroomgrp2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="basecdcnts"/>
  202. <Column id="basecdcnts2"/>
  203. </ColumnInfo>
  204. </Dataset>
  205. <Dataset id="ds_init_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="basecd"/>
  208. <Column id="basecdflagdesc"/>
  209. <Column id="excuposseqcd"/>
  210. </ColumnInfo>
  211. </Dataset>
  212. <Dataset id="ds_init_initexecrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="basecd"/>
  215. <Column id="basecdflagdesc"/>
  216. <Column id="equaluserid"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_init_initexecrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="basecd"/>
  222. <Column id="basecdflagdesc"/>
  223. </ColumnInfo>
  224. </Dataset>
  225. <Dataset id="ds_init_initexecrid3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  226. <ColumnInfo>
  227. <Column id="basecd"/>
  228. <Column id="basecdflagdesc"/>
  229. </ColumnInfo>
  230. </Dataset>
  231. <Dataset id="ds_init_initexecrid4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  232. <ColumnInfo>
  233. <Column id="basecd"/>
  234. <Column id="basecdflagdesc"/>
  235. </ColumnInfo>
  236. </Dataset>
  237. <Dataset id="ds_init_initexecward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  238. <ColumnInfo>
  239. <Column id="wardroomcdid"/>
  240. <Column id="wardroomcdnm"/>
  241. </ColumnInfo>
  242. </Dataset>
  243. <Dataset id="ds_init_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="suppdeptcd"/>
  246. <Column id="depthngnm"/>
  247. </ColumnInfo>
  248. </Dataset>
  249. <Dataset id="ds_init_initsystgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="basecdcnts"/>
  252. <Column id="basecdcnts2"/>
  253. </ColumnInfo>
  254. </Dataset>
  255. <Dataset id="ds_init_initsystmdl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="basecdcnts"/>
  258. <Column id="basecdcnts2"/>
  259. <Column id="cntlcd1"/>
  260. </ColumnInfo>
  261. </Dataset>
  262. <Dataset id="ds_init_prcpexecdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  263. <ColumnInfo>
  264. <Column id="prcpexecdeptcd"/>
  265. </ColumnInfo>
  266. </Dataset>
  267. <Dataset id="ds_grid_grd_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  268. <ColumnInfo>
  269. <Column id="sun" type="STRING" size="0"/>
  270. <Column id="mon" type="STRING" size="0"/>
  271. <Column id="tue" type="STRING" size="0"/>
  272. <Column id="wed" type="STRING" size="0"/>
  273. <Column id="thu" type="STRING" size="0"/>
  274. <Column id="fri" type="STRING" size="0"/>
  275. <Column id="sat" type="STRING" size="0"/>
  276. <Column id="sun_memo" type="STRING" size="0"/>
  277. <Column id="mon_memo" type="STRING" size="0"/>
  278. <Column id="tue_memo" type="STRING" size="0"/>
  279. <Column id="wed_memo" type="STRING" size="0"/>
  280. <Column id="thu_memo" type="STRING" size="0"/>
  281. <Column id="fri_memo" type="STRING" size="0"/>
  282. <Column id="sat_memo" type="STRING" size="0"/>
  283. <Column id="sun_dut" type="STRING" size="256"/>
  284. <Column id="mon_dut" type="STRING" size="256"/>
  285. <Column id="tue_dut" type="STRING" size="256"/>
  286. <Column id="wed_dut" type="STRING" size="256"/>
  287. <Column id="thu_dut" type="STRING" size="256"/>
  288. <Column id="fri_dut" type="STRING" size="256"/>
  289. <Column id="sat_dut" type="STRING" size="256"/>
  290. <Column id="sun_holi" type="STRING" size="256"/>
  291. <Column id="mon_holi" type="STRING" size="256"/>
  292. <Column id="tue_holi" type="STRING" size="256"/>
  293. <Column id="wed_holi" type="STRING" size="256"/>
  294. <Column id="thu_holi" type="STRING" size="256"/>
  295. <Column id="fri_holi" type="STRING" size="256"/>
  296. <Column id="sat_holi" type="STRING" size="256"/>
  297. <Column id="sun_bgc" type="STRING" size="256"/>
  298. <Column id="mon_bgc" type="STRING" size="256"/>
  299. <Column id="tue_bgc" type="STRING" size="256"/>
  300. <Column id="wed_bgc" type="STRING" size="256"/>
  301. <Column id="thu_bgc" type="STRING" size="256"/>
  302. <Column id="fri_bgc" type="STRING" size="256"/>
  303. <Column id="sat_bgc" type="STRING" size="256"/>
  304. </ColumnInfo>
  305. </Dataset>
  306. <Dataset id="ds_grid_deptmemocnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  307. <ColumnInfo>
  308. <Column id="memodt" type="STRING" size="256"/>
  309. <Column id="cnt" type="STRING" size="256"/>
  310. </ColumnInfo>
  311. </Dataset>
  312. <Dataset id="ds_init_initsystchief" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  313. </Objects>
  314. <Bind>
  315. <BindItem id="item0" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_cond_reqparam" columnid="basesuppdeptcd"/>
  316. <BindItem id="item1" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_cond_reqparam" columnid="excuroomcd"/>
  317. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_cond_reqparam" columnid="svflag"/>
  318. <BindItem id="item3" compid="grp_sea.ipt_date1" propid="value" datasetid="ds_cond_reqparam" columnid="memodt1"/>
  319. <BindItem id="item4" compid="grp_sea.ipt_date2" propid="value" datasetid="ds_cond_reqparam" columnid="memodt2"/>
  320. </Bind>
  321. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  322. * System Name : KU2.0
  323. * Job Name :
  324. * File Name :
  325. * Creator :
  326. * Make Date : 2016-04-04
  327. *
  328. * Description :
  329. *---------------------------------------------------------------------------------------
  330. * Modify Date Modifier Modify Description
  331. *---------------------------------------------------------------------------------------
  332. *---------------------------------------------------------------------------------------
  333. ****************************************************************************************/
  334. include "com_commonxp::comm_main.xjs";
  335. include "com_basiccodexp::ZBC001.xjs";
  336. include "ast_examcurexp::AEZ0001.xjs";
  337. var lv_chk = "";
  338. //=======================================================================================
  339. // Function
  340. //---------------------------------------------------------------------------------------
  341. /* @group : 부서별 메모관리
  342. * @ver : 2007.08.09
  343. * @by : 임헤정
  344. * @-----------------------------------
  345. * @type : function
  346. * @access : public
  347. * @desc : 선택한 날짜로 memodt1,memodt2 세팅
  348. */
  349. function getRsrvPossTm(gridObj)
  350. {
  351. var yyyy = getSelectCalDate().substr(0, 4);
  352. var mm = getSelectCalDate().substr(4, 2);
  353. var dd = getSelectCalDate().substr(6, 2);
  354. if (utlf_getStringLength(dd) == 1) {
  355. dd = "0" + dd;
  356. }
  357. var yyyymmdd = yyyy+mm+dd;
  358. ds_cond_reqparam.setColumn(0, "searchDate",yyyymmdd);
  359. ds_cond_reqparam.setColumn(0, "memodt1",yyyymmdd);
  360. ds_cond_reqparam.setColumn(0, "memodt2",yyyymmdd);
  361. }
  362. /* @group : 부서별 메모관리
  363. * @ver : 2013.01.08
  364. * @by : 이경노
  365. * @-----------------------------------
  366. * @type : function
  367. * @access : public
  368. * @desc : 상황별 조회방식 변경
  369. */
  370. function funcInputDataCheck(chk)
  371. {
  372. tar_memo.value = "";
  373. ds_cond_reqparam.setColumn(0, "flag" , "A");
  374. ds_cond_reqparam.setColumn(0, "svflag" , "cal");
  375. ds_cond_reqparam.setColumn(0, "searchDate","");
  376. ds_cond_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
  377. ds_cond_reqparam.setColumn(0,"searchmm",CalDiv.opt_year.value+""+CalDiv.opt_month.value);
  378. if(chk == 'cal')
  379. {
  380. ds_cond_reqparam.setColumn(0, "flag" , "B");
  381. getRsrvPossTm(grd_deptmemolist);
  382. }
  383. // if(utlf_isNull(ds_cond_reqparam.getColumn(0, "excuroomcd")) == true)
  384. // {
  385. // sysf_messageBox("검사/치료실을 선택하십시오.","I999");
  386. // return;
  387. // }
  388. var oParam = {};
  389. oParam.id = "TRAEB00501";
  390. oParam.service = "examcurebaseapp.ExamCureCode";
  391. oParam.method = "reqGetDeptMemoCodeList";
  392. oParam.inds = "req=ds_cond_reqparam";
  393. oParam.outds = "ds_grid_deptmemo=deptmemo";
  394. oParam.async = false;
  395. oParam.callback = "cf_TRAEB00501";
  396. tranf_submit(oParam);
  397. }
  398. //=======================================================================================
  399. // Event
  400. //---------------------------------------------------------------------------------------
  401. /****************************************************************************************
  402. * Components :
  403. * Components ID : SMAEB00500
  404. * Event : onload
  405. * Argument : 01.obj : Object Event has occurred
  406. * : 02.e : Event Object
  407. * Description :
  408. ****************************************************************************************/
  409. function SMAEB00500_onload(obj:Form, e:LoadEventInfo)
  410. {
  411. frmf_initForm(obj); // 화면공통
  412. aezGetCalendar();
  413. lf_aezfSetSuppDeptcd();
  414. //부서정보 가져오기
  415. lv_chk = "";
  416. ds_cond_reqparam.clearData();
  417. ds_cond_reqparam.addRow();
  418. ds_cond_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
  419. ds_cond_reqparam.setColumn(0, "rbasecdflag", "R");
  420. ds_cond_reqparam.setColumn(0, "ebasecdflag", "E");
  421. ds_cond_reqparam.setColumn(0, "initflag", "1");
  422. //검사실코드 갖고오기
  423. var oParam = {};
  424. oParam.id = "TRAEA01301";
  425. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  426. oParam.method = "reqGetInitExamCureRoomGrpCodeList";
  427. oParam.inds = "reqparam=ds_cond_reqparam";
  428. oParam.outds = "ds_init_initexcuroomgrp=initexcuroomgrp ds_init_initexcuroomgrp2=initexcuroomgrp2 ds_init_initexecroom=initexcuroom ds_init_initexecrid1=initexecrid ds_init_initexecrid2=initexecrid ds_init_initexecrid3=initexecrid ds_init_initexecrid4=initexecrid ds_init_initexecward=initexcuward ds_init_suppdept=suppdept ds_init_initsystgrd=initsystgrd ds_init_initsystmdl=initsystmdl ds_=initsystchief";
  429. oParam.async = false;
  430. oParam.callback = "cf_TRAEA01301";
  431. tranf_submit(oParam);
  432. grp_sea.ipt_date1.value = utlf_getCurrentDate();
  433. grp_sea.ipt_date2.value = utlf_getCurrentDate();
  434. funcInputDataCheck();
  435. }
  436. function cf_TRAEA01301(strSvcID, nErrorCode, strErrorMsg){
  437. //에러 처리
  438. if(nErrorCode == 0){
  439. if(ds_init_suppdept.findRow("suppdeptcd", suppdeptcd) < 0)
  440. {
  441. ds_cond_reqparam.setColumn(0, "basesuppdeptcd", "");
  442. }
  443. }
  444. }
  445. function cf_TRAEB00501(strSvcID, nErrorCode, strErrorMsg){
  446. //에러 처리
  447. if(nErrorCode == 0){
  448. if(lv_chk =='cal')
  449. {
  450. return;
  451. }
  452. for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
  453. ds_grid_calendarAST.setColumn(j,"memo1","");
  454. ds_grid_calendarAST.setColumn(j,"memo2","");
  455. }
  456. if(ds_grid_deptmemocnt.rowcount!=0){
  457. for(var i=0; i<ds_grid_deptmemocnt.rowcount; i++){
  458. for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
  459. //trace(ds_grid_deptmemocnt.getColumn(i,"memodt"));
  460. //trace(ds_grid_calendarAST.getColumn(j,"basedd"));
  461. if(ds_grid_deptmemocnt.getColumn(i,"memodt")==ds_grid_calendarAST.getColumn(j,"basedd")){
  462. //trace("@@@@@@@@@@@@@@@@@@@");
  463. ds_grid_calendarAST.setColumn(j,"memo1",ds_grid_deptmemocnt.getColumn(i,"cnt"));
  464. ds_grid_calendarAST.setColumn(j,"memo2","");
  465. }
  466. }
  467. }
  468. }else{
  469. for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
  470. ds_grid_calendarAST.setColumn(j,"memo1","");
  471. ds_grid_calendarAST.setColumn(j,"memo2","");
  472. }
  473. }
  474. for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
  475. if(utlf_isNull(ds_grid_calendarAST.getColumn(j,"memo1"))){
  476. ds_grid_calendarAST.setColumn(j,"memo1","");
  477. ds_grid_calendarAST.setColumn(j,"memo2","");
  478. }
  479. }
  480. setCalMemo("ds_grid_calendarAST","memo1","","memo2");
  481. }else{
  482. }
  483. }
  484. /****************************************************************************************
  485. * Components :
  486. * Components ID : grd_calendar
  487. * Event : oncellclick
  488. * Argument : 01.obj : Object Event has occurred
  489. * : 02.e : Event Object
  490. * Description :
  491. ****************************************************************************************/
  492. function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  493. {
  494. lv_chk = "cal"
  495. funcInputDataCheck('cal');
  496. }
  497. /****************************************************************************************
  498. * Components :
  499. * Components ID : btn_sea
  500. * Event : onclick
  501. * Argument : 01.obj : Object Event has occurred
  502. * : 02.e : Event Object
  503. * Description :
  504. ****************************************************************************************/
  505. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  506. {
  507. lv_chk = "";
  508. funcInputDataCheck();
  509. }
  510. /****************************************************************************************
  511. * Components :
  512. * Components ID : grd_deptmemolist
  513. * Event : oncelldblclick(
  514. * Argument : 01.obj : Object Event has occurred
  515. * : 02.e : Event Object
  516. * Description :
  517. ****************************************************************************************/
  518. function grd_deptmemolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  519. {
  520. ds_cond_reqparam.setColumn(0, "svflag" , "grd");
  521. // model.setValue("/root/main/insmemo/insmemolist", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.row+"]/memorem"));
  522. tar_memo.value = ds_grid_deptmemo.getColumn(ds_grid_deptmemo.rowposition, "memorem");
  523. ds_cond_reqparam.setColumn(0, "grddatadt1", ds_grid_deptmemo.getColumn(ds_grid_deptmemo.rowposition, "memodt").substr(0, 8));
  524. }
  525. /****************************************************************************************
  526. * Components :
  527. * Components ID : btn_execl
  528. * Event : onclick
  529. * Argument : 01.obj : Object Event has occurred
  530. * : 02.e : Event Object
  531. * Description :
  532. ****************************************************************************************/
  533. function btn_execl_onclick(obj:Button, e:ClickEventInfo)
  534. {
  535. grdf_exportExcel(grd_deptmemolist, "부서별메모관리_" + grp_sea.cmb_deptcd.text + "_" + grp_sea.cmb_excuroom.text , "메모목록");
  536. }
  537. /****************************************************************************************
  538. * Components :
  539. * Components ID : btn_save
  540. * Event : onclick
  541. * Argument : 01.obj : Object Event has occurred
  542. * : 02.e : Event Object
  543. * Description :
  544. ****************************************************************************************/
  545. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  546. {
  547. if( ds_cond_reqparam.getColumn(0, "svflag") == "grd")
  548. {
  549. ds_cond_reqparam.setColumn(0, "memorem", tar_memo.value);
  550. }
  551. else if(ds_cond_reqparam.getColumn(0, "svflag") == "cal")
  552. {
  553. var strValue = utlf_transNullToEmpty(ds_grid_deptmemo.getColumn(ds_grid_deptmemo.getRowCount() - 1, "memorem"));
  554. if(strValue == "")
  555. {
  556. strValue += tar_memo.value;
  557. }
  558. else
  559. {
  560. strValue += "\n" + tar_memo.value;
  561. }
  562. if(strValue.getByteLength() > 600)
  563. {
  564. sysf_messageBox("기존메모내용과 추가된 메모내용의 합이 900(byte)를", "E003");
  565. return;
  566. }
  567. ds_cond_reqparam.setColumn(0, "memorem", strValue);
  568. }
  569. ds_cond_reqparam.setColumn(0, "memodt", ds_cond_reqparam.getColumn(0,"memodt1"));
  570. var oParam = {};
  571. oParam.id = "TXAEB00501";
  572. oParam.service = "examcurebaseapp.ExamCureCode";
  573. oParam.method = "reqExeDeptMemoCodeList";
  574. oParam.inds = "req=ds_cond_reqparam";
  575. oParam.outds = "ds_data_item=item";
  576. oParam.async = false;
  577. oParam.callback = "cf_TXAEB00501";
  578. tranf_submit(oParam);
  579. }
  580. function cf_TXAEB00501(strSvcID, nErrorCode, strErrorMsg){
  581. //에러 처리
  582. if(nErrorCode == 0){
  583. tar_memo.value = "";
  584. var oParam = {};
  585. oParam.id = "TRAEB00501";
  586. oParam.service = "examcurebaseapp.ExamCureCode";
  587. oParam.method = "reqGetDeptMemoCodeList";
  588. oParam.inds = "req=ds_cond_reqparam";
  589. oParam.outds = "ds_grid_deptmemo=deptmemo";
  590. oParam.async = false;
  591. oParam.callback = "cf_TRAEB00501";
  592. tranf_submit(oParam);
  593. }else{
  594. }
  595. }
  596. function grp_sea_cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  597. {
  598. grp_sea.btn_sea.click();
  599. }
  600. function aezSetCalMemo(){
  601. }
  602. function clickCalButton(obj:Button, e:ClickEventInfo)
  603. {
  604. var button = obj.class;
  605. if(button=="icon_pre_year"){
  606. eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)-1;
  607. aezGetCalendar(null,"Y");
  608. }else if(button=="icon_pre_month"){
  609. if(eval(aezCalpath).opt_month.value=="01"){
  610. eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)-1;
  611. eval(aezCalpath).opt_month.value = "12";
  612. }else{
  613. var getMonth = eval(eval(aezCalpath).opt_month.value)-1;
  614. var month = getMonth>9? getMonth:"0"+getMonth;
  615. eval(aezCalpath).opt_month.value = month;
  616. }
  617. aezGetCalendar(null,"Y");
  618. }else if(button=="icon_next_month"){
  619. if(eval(aezCalpath).opt_month.value=="12"){
  620. eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)+1;
  621. eval(aezCalpath).opt_month.value = "01";
  622. }else{
  623. var getMonth = eval(eval(aezCalpath).opt_month.value)+1;
  624. var month = getMonth>9? getMonth:"0"+getMonth;
  625. eval(aezCalpath).opt_month.value = month;
  626. }
  627. aezGetCalendar(null,"Y");
  628. }else{
  629. eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)+1;
  630. aezGetCalendar(null,"Y");
  631. }
  632. grp_sea.ipt_date1.value = ds_grid_calendarAST.getColumn(0, "basedd");
  633. grp_sea.ipt_date2.value = ds_grid_calendarAST.getColumn(ds_grid_calendarAST.rowcount -1, "basedd");
  634. grp_sea.btn_sea.click();
  635. }
  636. function SMAEB00500_onclose(obj:Form, e:CloseEventInfo)
  637. {
  638. }
  639. ]]></Script>
  640. </Form>
  641. </FDL>