SMMNE05100_EDC스케줄관리.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE05100" position="absolute 0 0 1070 805" titletext="EDCIS Schedule 당직관리" onload="SMMNE05100_onload" class="frm_POP">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 11 45 339 112">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption5" text="당직년월" class="search_name" position="absolute 8 10 82 30" onkeydown="caption5_onkeydown" anchor="default"/>
  11. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 268 10 324 30" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  12. <Static id="caption13" text="진료과" class="search_name" position="absolute 8 35 88 55" anchor="default"/>
  13. <Button id="btn_bfyear" taborder="3" onclick="btn_bfyear_onclick" class="icon_pre_year" position="absolute 74 10 90 30" anchor="default"/>
  14. <Button id="btn_bfmonth" taborder="4" onclick="btn_bfmonth_onclick" class="icon_pre_month" position="absolute 92 10 108 30" anchor="default"/>
  15. <Button id="btn_afmonth" taborder="6" onclick="btn_afmonth_onclick" class="icon_next_month" position="absolute 223 10 239 30" anchor="default"/>
  16. <Button id="btn_afyear" taborder="7" onclick="btn_afyear_onclick" class="icon_next_year" position="absolute 241 10 257 30" anchor="default"/>
  17. <Combo id="cmb_orddeptcd" taborder="8" position="absolute 74 35 257 55" index="-1" innerdataset="@ds_data_orddeptinfolist" datacolumn="deptnm" codecolumn="deptcd" onitemchanged="grp_sea_cmb_orddeptcd_onitemchanged" autoselect="false"/>
  18. <Calendar id="ipt_srchdd" taborder="9" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 111 10 218 30" style="align:center middle;"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="stt_titleText" text="EDCIS Schedule 당직관리" class="sta_POP_title" position="absolute 12 8 209 28"/>
  23. <Static id="cpt_grpmtitle" text="중증분류명" class="tit_2" position="absolute 9 244 275 265"/>
  24. <Static id="caption2" text="상 세 정 보" class="tit_2" position="absolute 17 670 128 683"/>
  25. <Shape id="sha_state" type="roundrectangle" position="absolute 9 690 338 794" style="background:transparent;"/>
  26. <Static id="op_usernm" position="absolute 18 703 158 740" onclick="op_usernm_onclick" text="김달현" style="color:royalblue;font:굴림체,22,bold;"/>
  27. <Static id="op_userid" text="00000000" position="absolute 168 703 323 740" style="color:royalblue;font:굴림체,22,bold;"/>
  28. <Static id="op_mp" text="000-0000-0000" position="absolute 18 750 238 784" style="color:royalblue;align:left top;font:굴림체,22,bold;"/>
  29. <Static id="op_bp" text="0000" position="absolute 248 750 323 784" style="color:royalblue;font:굴림체,22,bold;"/>
  30. <Grid id="grd_drlist" taborder="3" binddataset="ds_grid_grd_drlist" useinputpanel="false" oncellclick="grd_drlist_oncellclick" position="absolute 9 269 338 657" onmouseenter="grd_drlist_onmouseenter" onmouseleave="grd_drlist_onmouseleave" autofittype="col">
  31. <Formats>
  32. <Format id="default">
  33. <Columns>
  34. <Column size="311"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell text="당직대상자"/>
  47. <Cell col="1" text="userid"/>
  48. <Cell col="2" text="userdeptcd"/>
  49. <Cell col="3" text="phone"/>
  50. <Cell col="4" text="bbtel"/>
  51. <Cell col="5" text="saveyn"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell style="selectbackground:chartreuse;" text="bind:drnm"/>
  55. <Cell col="1" text="bind:drid"/>
  56. <Cell col="2" text="bind:deptcd"/>
  57. <Cell col="3" text="bind:phone"/>
  58. <Cell col="4" text="bind:bbtel"/>
  59. <Cell col="5" text="bind:saveyn"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Shape id="roundrect3" type="roundrectangle" class="roundrect_example" position="absolute 356 737 1059 793" style="background:transparent;color:transparent;"/>
  65. <Grid id="grd_grpmaster" taborder="4" binddataset="ds_grid_grd_grpmaster" useinputpanel="false" oncellclick="grd_grpmaster_oncellclick" position="absolute 11 121 340 238" onmouseenter="grd_grpmaster_onmouseenter" onmouseleave="grd_grpmaster_onmouseleave" autofittype="col" style="align:center middle;">
  66. <Formats>
  67. <Format id="default">
  68. <Columns>
  69. <Column size="326"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24"/>
  77. </Rows>
  78. <Band id="head">
  79. <Cell text="중증분류"/>
  80. <Cell col="1" text="grtype"/>
  81. <Cell col="2" text="staffid"/>
  82. <Cell col="3" text="orddeptcd"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell style="align:left;selectbackground:chartreuse;" text="bind:shownm"/>
  86. <Cell col="1" text="bind:grtype"/>
  87. <Cell col="2" text="bind:staffid"/>
  88. <Cell col="3" text="bind:orddeptcd"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <Static id="cpt_worktitle" text="당직 리스트" class="tit_2" position="absolute 354 44 529 60"/>
  94. <Button id="button42" taborder="5" text="저장" onclick="button42_onclick" class="btn2" position="absolute 1016 60 1060 80"/>
  95. <Grid id="grd_workerlist" taborder="6" binddataset="ds_grid_grd_workerlist" useinputpanel="false" oncellclick="grd_workerlist_oncellclick" position="absolute 352 85 1061 719" onbuttondown="grd_workerlist_onbuttondown" autofittype="col" onrbuttondown="grd_workerlist_onrbuttondown" style="align:left middle;">
  96. <Formats>
  97. <Format id="default">
  98. <Columns>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. <Column size="100"/>
  102. <Column size="100"/>
  103. <Column size="100"/>
  104. <Column size="100"/>
  105. <Column size="100"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. <Column size="0"/>
  124. <Column size="0"/>
  125. </Columns>
  126. <Rows>
  127. <Row size="24" band="head"/>
  128. <Row size="24"/>
  129. </Rows>
  130. <Band id="head">
  131. <Cell text="일자"/>
  132. <Cell col="1" text="1"/>
  133. <Cell col="2" text="2"/>
  134. <Cell col="3" text="3"/>
  135. <Cell col="4" text="4"/>
  136. <Cell col="5" text="5"/>
  137. <Cell col="6" text="6"/>
  138. <Cell col="7" text="7"/>
  139. <Cell col="8" text="8"/>
  140. <Cell col="9" text="9"/>
  141. <Cell col="10" text="10"/>
  142. <Cell col="11" text="fromdd"/>
  143. <Cell col="12" text="todd"/>
  144. <Cell col="13" text="grtype"/>
  145. <Cell col="14" text="orddeptcd"/>
  146. <Cell col="15" text="staffid"/>
  147. <Cell col="16" text="drid1"/>
  148. <Cell col="17" text="drid2"/>
  149. <Cell col="18" text="drid3"/>
  150. <Cell col="19" text="drid4"/>
  151. <Cell col="20" text="drid5"/>
  152. <Cell col="21" text="drid6"/>
  153. <Cell col="22" text="drid7"/>
  154. <Cell col="23" text="drid8"/>
  155. <Cell col="24" text="drid9"/>
  156. <Cell col="25" text="drid10"/>
  157. </Band>
  158. <Band id="body">
  159. <Cell text="bind:workdd" mask="@@@@-@@-@@"/>
  160. <Cell col="1" text="bind:drnm1"/>
  161. <Cell col="2" text="bind:drnm2"/>
  162. <Cell col="3" displaytype="normal" edittype="expr:ds_grid_grd_workerlist.getColumn(ds_grid_grd_workerlist.rowposition,&quot;delimage&quot;) == 1 ? 'theme://images/ico_i.png' : &quot;&quot;;" text="bind:drnm3"/>
  163. <Cell col="4" text="bind:drnm4"/>
  164. <Cell col="5" text="bind:drnm5"/>
  165. <Cell col="6" text="bind:drnm6"/>
  166. <Cell col="7" text="bind:drnm7"/>
  167. <Cell col="8" text="bind:drnm8"/>
  168. <Cell col="9" text="bind:drnm9"/>
  169. <Cell col="10" text="bind:drnm10"/>
  170. <Cell col="11" text="bind:fromdd"/>
  171. <Cell col="12" text="bind:todd"/>
  172. <Cell col="13" text="bind:grtype"/>
  173. <Cell col="14" text="bind:orddeptcd"/>
  174. <Cell col="15" text="bind:staffid"/>
  175. <Cell col="16" text="bind:drid1"/>
  176. <Cell col="17" text="bind:drid2"/>
  177. <Cell col="18" text="bind:drid3"/>
  178. <Cell col="19" text="bind:drid4"/>
  179. <Cell col="20" text="bind:drid5"/>
  180. <Cell col="21" text="bind:drid6"/>
  181. <Cell col="22" text="bind:drid7"/>
  182. <Cell col="23" text="bind:drid8"/>
  183. <Cell col="24" text="bind:drid9"/>
  184. <Cell col="25" text="bind:drid10"/>
  185. </Band>
  186. </Format>
  187. </Formats>
  188. </Grid>
  189. <Static id="caption13" text="STAFF" class="cell_1" position="absolute 353 60 468 83"/>
  190. <Static id="caption10" text="기준시간" class="cell_1" position="absolute 625 60 740 83"/>
  191. <Edit id="op_staffnm" taborder="7" position="absolute 472 62 607 82" readonly="true"/>
  192. <MaskEdit id="op_fromtm" taborder="8" mask="@@:@@" enable="false" position="absolute 745 62 820 82" imemode="hangul" maxlength="4" type="string"/>
  193. <Static id="caption11" text="~" position="absolute 828 62 845 82"/>
  194. <MaskEdit id="op_totm" taborder="9" mask="@@:@@" enable="false" position="absolute 852 62 927 82" imemode="hangul" maxlength="4" type="string"/>
  195. <Edit id="op_staffid" taborder="10" visible="false" position="absolute 514 37 649 57"/>
  196. <Static id="caption3" text="◈ 당직대상자가 근무자관리에 연락처가 등록되어 있어야 당직스케줄을 입력하실 수 있습니다.&#13;&#10; " position="absolute 361 743 1041 782"/>
  197. <Static id="caption7" text="등록할 대상자" position="absolute 504 770 584 790"/>
  198. <Static id="caption18" text="추가선택 대상자" position="absolute 384 770 479 790"/>
  199. <Static id="caption17" position="absolute 364 771 379 786" style="background:#f4a6eeff;"/>
  200. <Static id="caption5" position="absolute 484 771 499 786" style="background:#7fef0fff;"/>
  201. <Static id="caption12" visible="false" position="absolute 1009 770 1024 785" style="background:#b7daffff;"/>
  202. <Static id="caption15" visible="false" position="absolute 1039 770 1054 785" style="background:#b7f9aaff;"/>
  203. <Button id="Button00" taborder="11" onclick="Button00_onclick" class="btn_POP_cls" position="absolute 1044 12 1058 26"/>
  204. <Static id="Static00" position="absolute 13 705 152 741" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
  205. <Static id="Static01" position="absolute 165 705 312 741" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
  206. <Static id="Static02" position="absolute 13 748 232 784" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
  207. <Static id="Static03" position="absolute 245 748 312 784" style="background:transparent;border:1 double #808080ff ;align:center middle;"/>
  208. </Layout>
  209. </Layouts>
  210. <Objects>
  211. <Dataset id="ds_grid_grd_grpmaster" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="shownm" type="STRING"/>
  214. <Column id="grtype" type="STRING"/>
  215. <Column id="staffid" type="STRING"/>
  216. <Column id="orddeptcd" type="STRING"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_grid_grd_workerlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="workdd" type="STRING"/>
  222. <Column id="drnm1" type="STRING"/>
  223. <Column id="drnm2" type="STRING"/>
  224. <Column id="drnm3" type="STRING"/>
  225. <Column id="drnm4" type="STRING"/>
  226. <Column id="drnm5" type="STRING"/>
  227. <Column id="drnm6" type="STRING"/>
  228. <Column id="drnm7" type="STRING"/>
  229. <Column id="drnm8" type="STRING"/>
  230. <Column id="drnm9" type="STRING"/>
  231. <Column id="drnm10" type="STRING"/>
  232. <Column id="fromdd" type="STRING"/>
  233. <Column id="todd" type="STRING"/>
  234. <Column id="grtype" type="STRING"/>
  235. <Column id="orddeptcd" type="STRING"/>
  236. <Column id="staffid" type="STRING"/>
  237. <Column id="drid1" type="STRING"/>
  238. <Column id="drid2" type="STRING"/>
  239. <Column id="drid3" type="STRING"/>
  240. <Column id="drid4" type="STRING"/>
  241. <Column id="drid5" type="STRING"/>
  242. <Column id="drid6" type="STRING"/>
  243. <Column id="drid7" type="STRING"/>
  244. <Column id="drid8" type="STRING"/>
  245. <Column id="drid9" type="STRING"/>
  246. <Column id="drid10" type="STRING"/>
  247. </ColumnInfo>
  248. </Dataset>
  249. <Dataset id="ds_grid_grd_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="drnm" type="STRING"/>
  252. <Column id="drid" type="STRING"/>
  253. <Column id="deptcd" type="STRING"/>
  254. <Column id="phone" type="STRING"/>
  255. <Column id="bbtel" type="STRING"/>
  256. <Column id="saveyn" type="STRING"/>
  257. </ColumnInfo>
  258. </Dataset>
  259. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  260. <ColumnInfo>
  261. <Column id="srchym" type="STRING" size="256"/>
  262. <Column id="srchdd" type="STRING" size="256"/>
  263. <Column id="orddeptcd" type="STRING" size="256"/>
  264. <Column id="grtype" type="STRING" size="256"/>
  265. <Column id="staffid" type="STRING" size="256"/>
  266. <Column id="fromtm" type="STRING" size="256"/>
  267. <Column id="totm" type="STRING" size="256"/>
  268. <Column id="monthcnt" type="STRING" size="256"/>
  269. </ColumnInfo>
  270. <Rows>
  271. <Row/>
  272. </Rows>
  273. </Dataset>
  274. <Dataset id="ds_data_orddeptinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  275. <ColumnInfo>
  276. <Column id="deptcd" type="STRING" size="256"/>
  277. <Column id="deptnm" type="STRING" size="256"/>
  278. <Column id="depthngnm" type="STRING" size="256"/>
  279. <Column id="deptengabbr" type="STRING" size="256"/>
  280. </ColumnInfo>
  281. </Dataset>
  282. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  283. <ColumnInfo>
  284. <Column id="srchdd" type="STRING" size="256"/>
  285. <Column id="srchym" type="STRING" size="256"/>
  286. <Column id="orddeptcd" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row/>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_init_titleinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="worktitle" type="STRING" size="256"/>
  295. <Column id="grpmtitle" type="STRING" size="256"/>
  296. <Column id="staffnm" type="STRING" size="256"/>
  297. <Column id="staffid" type="STRING" size="256"/>
  298. <Column id="fromtm" type="STRING" size="256"/>
  299. <Column id="totm" type="STRING" size="256"/>
  300. </ColumnInfo>
  301. <Rows>
  302. <Row/>
  303. </Rows>
  304. </Dataset>
  305. <Dataset id="ds_data_drdetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  306. <ColumnInfo>
  307. <Column id="drid" type="STRING" size="256"/>
  308. <Column id="drnm" type="STRING" size="256"/>
  309. <Column id="phone" type="STRING" size="256"/>
  310. <Column id="bbtel" type="STRING" size="256"/>
  311. </ColumnInfo>
  312. <Rows>
  313. <Row/>
  314. </Rows>
  315. </Dataset>
  316. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  317. </Objects>
  318. <Bind>
  319. <BindItem id="item1" compid="grp_sea.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  320. <BindItem id="item2" compid="op_usernm" propid="text" datasetid="ds_data_drdetlinfo" columnid="drnm"/>
  321. <BindItem id="item3" compid="op_userid" propid="text" datasetid="ds_data_drdetlinfo" columnid="drid"/>
  322. <BindItem id="item4" compid="op_mp" propid="text" datasetid="ds_data_drdetlinfo" columnid="phone"/>
  323. <BindItem id="item5" compid="op_bp" propid="text" datasetid="ds_data_drdetlinfo" columnid="bbtel"/>
  324. <BindItem id="item6" compid="cpt_grpmtitle" propid="text" datasetid="ds_init_titleinfo" columnid="grpmtitle"/>
  325. <BindItem id="item7" compid="op_staffnm" propid="value" datasetid="ds_init_titleinfo" columnid="staffnm"/>
  326. <BindItem id="item8" compid="op_fromtm" propid="value" datasetid="ds_init_titleinfo" columnid="fromtm"/>
  327. <BindItem id="item9" compid="op_totm" propid="value" datasetid="ds_init_titleinfo" columnid="totm"/>
  328. <BindItem id="item10" compid="grp_sea.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
  329. </Bind>
  330. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  331. * System Name : KU2.0
  332. * Job Name :
  333. * File Name : SMMNE05100_EDC스케줄관리.xfdl
  334. * Creator :
  335. * Make Date : 2015-11-17
  336. *
  337. * Description :
  338. *---------------------------------------------------------------------------------------
  339. * Modify Date Modifier Modify Description
  340. *---------------------------------------------------------------------------------------
  341. * 2015-11-17 DBS Converting Program(TF->XP)
  342. *
  343. *---------------------------------------------------------------------------------------
  344. ****************************************************************************************/
  345. //=======================================================================================
  346. // xjs Include
  347. //---------------------------------------------------------------------------------------
  348. include "com_commonxp::comm_main.xjs";
  349. include "emr_ercarexp::SMMNE05100.xjs";
  350. //include "emr_prcpmngtxp::MMOCommon.xjs"
  351. include "emr_carecomxp::CareCom.xjs";
  352. //=======================================================================================
  353. // Function
  354. //---------------------------------------------------------------------------------------
  355. //******************************************************************
  356. // 데이터셋 동적 생성
  357. //******************************************************************
  358. function lf_initDataSet(){
  359. // cmb_orddeptcd의 INIT Dataset
  360. this.cmb_orddeptcd.innerdataset = "ds_init_cmb_orddeptcd";
  361. this.cmb_orddeptcd.codecolumn = "deptcd";
  362. this.cmb_orddeptcd.datacolumn = "deptnm";
  363. }
  364. //이전 셀의 행,열 인덱스를 저장하는 변수
  365. var col = 0;
  366. var row = 0;
  367. //=======================================================================================
  368. // Event
  369. //---------------------------------------------------------------------------------------
  370. /****************************************************************************************
  371. * Components :
  372. * Components ID : SMMNE05100
  373. * Event : onload
  374. * Argument : 01.obj : Object Event has occurred
  375. * : 02.e : Event Object
  376. * Description :
  377. ****************************************************************************************/
  378. function SMMNE05100_onload(obj:Form, e:LoadEventInfo)
  379. {
  380. frmf_initForm(obj); // 화면공통
  381. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick", [{id: "add", level: "1", title: "추가"},{id: "delete", level: "1", title: "삭제"},{id: "reload", level: "1", title: "새로고침"}]);
  382. fInit();
  383. }
  384. /****************************************************************************************
  385. * Components :
  386. * Components ID : grd_grpmaster
  387. * Event : oncellclick
  388. * Argument : 01.obj : Object Event has occurred
  389. * : 02.e : Event Object
  390. * Description :
  391. ****************************************************************************************/
  392. function grd_grpmaster_oncellclick(obj:Grid, e:GridClickEventInfo)
  393. {
  394. //20090629 dhkim
  395. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  396. var isRefresh = isScheduleRefresh();
  397. if(isRefresh == 'N'){
  398. grd_grpmaster.row = curRow;
  399. return;
  400. }
  401. var srchym = ds_cond.getColumn(0,"srchym");
  402. var grtype = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"grtype");
  403. var orddeptcd = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"orddeptcd");
  404. var staffid = ds_grid_grd_grpmaster.getColumn(ds_grid_grd_grpmaster.rowposition,"staffid");
  405. fSetStaffInfo(srchym, ds_grid_grd_grpmaster.rowposition);//당직대상자의 헤더, staff이름 세팅
  406. fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid);//당직자리스트를 조회한다
  407. }
  408. /****************************************************************************************
  409. * Components :
  410. * Components ID : button42
  411. * Event : onclick
  412. * Argument : 01.obj : Object Event has occurred
  413. * : 02.e : Event Object
  414. * Description :
  415. ****************************************************************************************/
  416. function button42_onclick(obj:Button, e:ClickEventInfo)
  417. {
  418. fSaveWorkDr();//당직자스케줄을저장한다
  419. }
  420. /****************************************************************************************
  421. * Components :
  422. * Components ID : grd_workerlist
  423. * Event : oncellclick
  424. * Argument : 01.obj : Object Event has occurred
  425. * : 02.e : Event Object
  426. * Description :
  427. ****************************************************************************************/
  428. function grd_workerlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  429. {
  430. //당직의사세팅
  431. var clickRow = e.row;
  432. var clickCol = e.cell;
  433. if(e.col !==0){ //기준일클릭한게 아니면 의사정보세팅
  434. fSetWorkDr('ADD',clickRow,clickCol);//당직리스트에 선택된 당직대상자를 그리드에 세팅
  435. }
  436. }
  437. /****************************************************************************************
  438. * Components :
  439. * Components ID : btn_search
  440. * Event : onclick
  441. * Argument : 01.obj : Object Event has occurred
  442. * : 02.e : Event Object
  443. * Description :
  444. ****************************************************************************************/
  445. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. //20090629 dhkim
  448. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  449. var isRefresh = isScheduleRefresh();
  450. if(isRefresh == 'N'){
  451. grd_grpmaster.row = curRow;
  452. return;
  453. }
  454. var orddeptcd = model.getValue('/root/cond/orddeptcd');
  455. fGetGroupMaster(orddeptcd);//선택된 진료과의 중증분류마스터조회
  456. fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
  457. }
  458. /****************************************************************************************
  459. * Components :
  460. * Components ID : btn_bfyear
  461. * Event : onclick
  462. * Argument : 01.obj : Object Event has occurred
  463. * : 02.e : Event Object
  464. * Description :
  465. ****************************************************************************************/
  466. function btn_bfyear_onclick(obj:Button, e:ClickEventInfo)
  467. {
  468. fClkArrowBtn(obj.name);
  469. }
  470. /****************************************************************************************
  471. * Components :
  472. * Components ID : btn_bfmonth
  473. * Event : onclick
  474. * Argument : 01.obj : Object Event has occurred
  475. * : 02.e : Event Object
  476. * Description :
  477. ****************************************************************************************/
  478. function btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
  479. {
  480. fClkArrowBtn(obj.name);
  481. }
  482. /****************************************************************************************
  483. * Components :
  484. * Components ID : btn_afmonth
  485. * Event : onclick
  486. * Argument : 01.obj : Object Event has occurred
  487. * : 02.e : Event Object
  488. * Description :
  489. ****************************************************************************************/
  490. function btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
  491. {
  492. fClkArrowBtn(obj.name);
  493. }
  494. /****************************************************************************************
  495. * Components :
  496. * Components ID : btn_afyear
  497. * Event : onclick
  498. * Argument : 01.obj : Object Event has occurred
  499. * : 02.e : Event Object
  500. * Description :
  501. ****************************************************************************************/
  502. function btn_afyear_onclick(obj:Button, e:ClickEventInfo)
  503. {
  504. fClkArrowBtn(obj.name);
  505. }
  506. /****************************************************************************************
  507. * Components :
  508. * Components ID : grd_drlist
  509. * Event : oncellclick
  510. * Argument : 01.obj : Object Event has occurred
  511. * : 02.e : Event Object
  512. * Description :
  513. ****************************************************************************************/
  514. function grd_drlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  515. {
  516. var drid = ds_grid_grd_drlist.getColumn(ds_grid_grd_drlist.rowposition,"drid");
  517. fSetDrInfo('drlist', drid);//의사상세정보를 세팅
  518. }
  519. /****************************************************************************************
  520. * Components :
  521. * Components ID :
  522. * Event :
  523. * Argument : 01.obj : Object Event has occurred
  524. * : 02.e : Event Object
  525. * Description : 조회버튼 클릭시
  526. ****************************************************************************************/
  527. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  528. {
  529. var isRefresh = isScheduleRefresh();
  530. if(isRefresh == "N"){
  531. grd_grpmaster.row = curRow;
  532. return;
  533. }
  534. var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
  535. fGetGroupMaster(orddeptcd);//선택된 진료과의 중증분류마스터조회
  536. fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
  537. lf_addColor(ds_grid_grd_workerlist, grd_workerlist);
  538. }
  539. /****************************************************************************************
  540. * Components :
  541. * Components ID :
  542. * Event :
  543. * Argument : 01.obj : Object Event has occurred
  544. * : 02.e : Event Object
  545. * Description : 콤보 클릭
  546. ****************************************************************************************/
  547. function grp_sea_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  548. {
  549. var isRefresh = isScheduleRefresh();
  550. if(isRefresh == 'N'){
  551. grd_grpmaster.row = curRow;
  552. return;
  553. }
  554. grp_sea_btn_sea_onclick();
  555. }
  556. /****************************************************************************************
  557. * Components :
  558. * Components ID :
  559. * Event :
  560. * Argument : 01.obj : Object Event has occurred
  561. * : 02.e : Event Object
  562. * Description : 닫기 버튼 클릭
  563. ****************************************************************************************/
  564. function Button00_onclick(obj:Button, e:ClickEventInfo)
  565. {
  566. var isRefresh = isScheduleRefresh(true);
  567. if(isRefresh == 'N'){
  568. grd_grpmaster.row = curRow;
  569. return;
  570. }else{
  571. form.close();
  572. }
  573. }
  574. /****************************************************************************************
  575. * Components :
  576. * Components ID :
  577. * Event :
  578. * Argument : 01.obj : Object Event has occurred
  579. * : 02.e : Event Object
  580. * Description : 마우스 우클릭
  581. ****************************************************************************************/
  582. var a;
  583. var b;
  584. function grd_workerlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  585. {
  586. ds_grid_grd_workerlist.rowposition = e.row;
  587. a = ds_grid_grd_workerlist.rowposition;
  588. b = e.cell;
  589. pmn_popupMenu.trackPopup(e.screenX,e.screenY);
  590. }
  591. /****************************************************************************************
  592. * Components :
  593. * Components ID :
  594. * Event :
  595. * Argument : 01.obj : Object Event has occurred
  596. * : 02.e : Event Object
  597. * Description : 마우스 우클릭후 메뉴 클릭시(추가,삭제,새로고침)
  598. ****************************************************************************************/
  599. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  600. {
  601. if(e.id == "add"){
  602. fSetWorkDr("ADD",a,b);
  603. }else if(e.id == "delete"){
  604. fSetWorkDr("del",a,b);
  605. }else if(e.id == "reload"){
  606. fRefreshWorkDr();
  607. }
  608. }
  609. function lf_addColor(objDs:Dataset, objGrd:Grid)
  610. {
  611. var sColNm = "_bgcolor";
  612. var sColNm2 = "_attdyn";
  613. var sColNm3 = "_lineAtt";
  614. var sColNm4 = "_delimage";
  615. var nCol = objGrd.getCellCount("Body");
  616. var nRow = objDs.getRowCount();
  617. var sName = "";
  618. var sName2 = "";
  619. for( var i = 0; i < nCol; i++ )
  620. {
  621. var colID = objDs.getColID(i);
  622. sName = colID+sColNm;
  623. sName2 = colID+sColNm2;
  624. sName3 = colID+sColNm3;
  625. sName4 = colID+sColNm4;
  626. var nColIndex = objGrd.getBindCellIndex("Body", colID);
  627. if( nColIndex > -1)
  628. {
  629. objDs.addColumn(sName, "string");
  630. objDs.addColumn(sName2, "string");
  631. objDs.addColumn(sName3, "string");
  632. objDs.addColumn(sName4, "string");
  633. objGrd.setCellProperty("Body", nColIndex, "background", "BIND("+sName+")");
  634. objGrd.setCellProperty("Body", nColIndex, "background2", "BIND("+sName+")");
  635. objGrd.setCellProperty("Body", nColIndex, "selectbackground", "BIND("+sName+")");
  636. objGrd.setCellProperty("Body", nColIndex, "font", "BIND("+sName2+")");
  637. objGrd.setCellProperty("Body", nColIndex, "line", "BIND("+sName3+")");
  638. objGrd.setCellProperty("Body", nColIndex, "backgroundimage", "BIND("+sName4+")");
  639. }
  640. }
  641. }]]></Script>
  642. </Form>
  643. </FDL>