SPMMO34000_응급실자동CallVisit스케줄.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO34000" position="absolute 0 0 937 877" titletext="응급 자동 CallVisit 관리" oninit="SPMMO34000_oninit" onload="SPMMO34000_onload" onclose="SPMMO34000_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="응급 의사 CallVisit Schedule 등록" class="tit_1" position="absolute 0 0 256 24"/>
  8. <Div id="group4" taborder="2" class="div_SA" position="absolute 0 24 329 106">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_search" taborder="11" text="조회" class="btn1" position="absolute 265 20 321 42" anchor="default" onclick="group4_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 255 9 261 54" anchor="default"/>
  13. <Static id="caption4" text="당직년월 :" class="search_name" position="absolute 8 9 99 26" anchor="default"/>
  14. <MaskEdit id="ipt_srchym" taborder="12" mask="@@@@-@@" class="input_search" position="absolute 126 8 214 27" anchor="default" type="string" style="align:center middle;"/>
  15. <Static id="caption1" text="진 료 과 :" class="search_name" position="absolute 8 32 86 49" anchor="default"/>
  16. <Combo id="cmb_orddeptcd" taborder="13" innerdataset="@ds_init_deptlist" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 90 32 250 51" anchor="default" onitemchanged="group4_cmb_orddeptcd_onitemchanged"/>
  17. <Button id="btn_bfyear" taborder="14" class="icon_pre_year" position="absolute 90 10 106 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
  18. <Button id="btn_bfmonth" taborder="15" class="icon_pre_month" position="absolute 108 10 124 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
  19. <Button id="btn_afmonth" taborder="16" class="icon_next_month" position="absolute 217 10 233 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
  20. <Button id="btn_afyear" taborder="17" class="icon_next_year" position="absolute 235 10 251 26" anchor="default" onclick="group4_btn_arrow_onclick"/>
  21. <Static id="caption13" text="PART :" class="search_name" position="absolute 8 56 105 73" anchor="default"/>
  22. <Combo id="cmb_partinfo" taborder="18" innerdataset="@ds_init_deptpartinfo_partlist" codecolumn="partcd" datacolumn="partnm" position="absolute 90 55 250 74" anchor="default" onitemchanged="group4_cmb_partinfo_onitemchanged"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Static id="caption2" text="상 세 정 보" class="tit_2" position="absolute 1 751 112 767"/>
  27. <Shape id="sha_state" type="roundrectangle" position="absolute 1 772 330 876"/>
  28. <Grid id="grd_drlist" taborder="3" binddataset="ds_main_drinfolist" useinputpanel="false" position="absolute 0 131 329 686" autofittype="col" onlbuttonup="grd_drlist_onlbuttonup">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="280"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="의사 Call 대상자"/>
  45. <Cell col="1" text="userid"/>
  46. <Cell col="2" text="userdeptcd"/>
  47. <Cell col="3" text="phone"/>
  48. <Cell col="4" text="bbtel"/>
  49. <Cell col="5" text="saveyn"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell text="bind:drnm"/>
  53. <Cell col="1" text="bind:drid"/>
  54. <Cell col="2" text="bind:deptcd"/>
  55. <Cell col="3" text="bind:phone"/>
  56. <Cell col="4" text="bind:bbtel"/>
  57. <Cell col="5" text="bind:saveyn"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Shape id="roundrect3" type="roundrectangle" class="roundrect_example" position="absolute 332 798 936 876"/>
  63. <Static id="caption10" text="기준시간" class="cell_1" position="absolute 0 720 115 743"/>
  64. <Static id="caption11" text="~" position="absolute 212 723 237 743" style="align:center middle;"/>
  65. <Static id="caption8" text="기 준 시 간" class="tit_2" position="absolute 1 699 112 715"/>
  66. <Static id="caption9" text="의사 Call 대상자" class="tit_2" position="absolute 1 114 143 131"/>
  67. <Static id="caption14" text="▶ 1st call 후 30분 이내 visiting하지 않을 경우 2nd call 당직자에게 자동 문자 전송" position="absolute 340 823 848 838"/>
  68. <Static id="caption16" text="▶ 2nd call 후 30분 이내 visiting하지 않을 경우 주치 교수(3rd call)에게 자동 문자 전송" position="absolute 340 841 848 856"/>
  69. <Static id="caption19" text="▶ 주치 교수 3rd call의 경우 00:00-06:00까지 발송 보류되고 06:00 이후 일괄 전송" position="absolute 340 859 848 874"/>
  70. <Grid id="grd_workerlist" taborder="6" binddataset="ds_main_workerinfolist" useinputpanel="false" position="absolute 332 42 936 796" autofittype="col" style="background:#ffffffff;" onkeyup="grd_workerlist_onkeyup" onlbuttonup="grd_workerlist_onlbuttonup" onrbuttondown="grd_workerlist_onrbuttondown" selecttype="multiarea">
  71. <Formats>
  72. <Format id="default">
  73. <Columns>
  74. <Column size="155"/>
  75. <Column size="0"/>
  76. <Column size="135"/>
  77. <Column size="135"/>
  78. <Column size="135"/>
  79. <Column size="0"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. <Column size="0"/>
  95. <Column size="0"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell text="일자"/>
  108. <Cell col="1" text="part"/>
  109. <Cell col="2" text="1"/>
  110. <Cell col="3" text="2"/>
  111. <Cell col="4" text="스탭"/>
  112. <Cell col="5" text="4"/>
  113. <Cell col="6" text="5"/>
  114. <Cell col="7" text="6"/>
  115. <Cell col="8" text="7"/>
  116. <Cell col="9" text="8"/>
  117. <Cell col="10" text="9"/>
  118. <Cell col="11" text="10"/>
  119. <Cell col="12" text="fromdd"/>
  120. <Cell col="13" text="todd"/>
  121. <Cell col="14" text="grtype"/>
  122. <Cell col="15" text="orddeptcd"/>
  123. <Cell col="16" text="staffid"/>
  124. <Cell col="17" text="drid1"/>
  125. <Cell col="18" text="drid2"/>
  126. <Cell col="19" text="drid3"/>
  127. <Cell col="20" text="drid4"/>
  128. <Cell col="21" text="drid5"/>
  129. <Cell col="22" text="drid6"/>
  130. <Cell col="23" text="drid7"/>
  131. <Cell col="24" text="drid8"/>
  132. <Cell col="25" text="drid9"/>
  133. <Cell col="26" text="drid10"/>
  134. </Band>
  135. <Band id="body">
  136. <Cell displaytype="date" style="background:#ffffffff;background2:#ffffffff;" text="bind:workdd"/>
  137. <Cell col="1" text="bind:deptdetlflag"/>
  138. <Cell col="2" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);background2:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);" text="bind:drnm1"/>
  139. <Cell col="3" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);background2:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);" text="bind:drnm2"/>
  140. <Cell col="4" style="background:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);background2:EXPR(getColumn(currow,'selyn4')=='Y'?&quot;#F4A6EE&quot;:&quot;#FFFFFF&quot;);" text="bind:drnm3"/>
  141. <Cell col="5" text="bind:drnm4"/>
  142. <Cell col="6" text="bind:drnm5"/>
  143. <Cell col="7" text="bind:drnm6"/>
  144. <Cell col="8" text="bind:drnm7"/>
  145. <Cell col="9" text="bind:drnm8"/>
  146. <Cell col="10" text="bind:drnm9"/>
  147. <Cell col="11" text="bind:drnm10"/>
  148. <Cell col="12" text="bind:fromdd"/>
  149. <Cell col="13" text="bind:todd"/>
  150. <Cell col="14" text="bind:grtype"/>
  151. <Cell col="15" text="bind:orddeptcd"/>
  152. <Cell col="16" text="bind:staffid"/>
  153. <Cell col="17" text="bind:drid1"/>
  154. <Cell col="18" text="bind:drid2"/>
  155. <Cell col="19" text="bind:drid3"/>
  156. <Cell col="20" text="bind:drid4"/>
  157. <Cell col="21" text="bind:drid5"/>
  158. <Cell col="22" text="bind:drid6"/>
  159. <Cell col="23" text="bind:drid7"/>
  160. <Cell col="24" text="bind:drid8"/>
  161. <Cell col="25" text="bind:drid9"/>
  162. <Cell col="26" text="bind:drid10"/>
  163. </Band>
  164. </Format>
  165. </Formats>
  166. </Grid>
  167. <Button id="button42" taborder="7" text="저장" class="btn4" position="absolute 880 19 936 41" onclick="button42_onclick"/>
  168. <Edit id="op_staffid" taborder="8" readonly="true" visible="false" position="absolute 524 21 659 40"/>
  169. <Static id="cpt_worktitle" text="의사 Call 리스트" class="tit_2" position="absolute 333 25 508 41"/>
  170. <Static id="caption3" text="◈ 당직대상자가 근무자관리에 연락처가 등록되어 있어야 당직스케줄을 입력하실 수 있습니다. " position="absolute 340 804 901 820"/>
  171. <Static id="caption12" visible="false" position="absolute 911 825 926 840" style="background:#b7daffff;"/>
  172. <Static id="caption15" visible="false" position="absolute 911 840 926 855" style="background:#b7f9aaff;"/>
  173. <Static id="caption18" text="추가선택 대상자" position="absolute 844 837 935 857"/>
  174. <Static id="caption7" text="등록할 대상자" position="absolute 844 857 924 877"/>
  175. <Static id="caption17" position="absolute 827 840 842 855" style="background:#f4a6eeff;border:1 solid #000000ff ;"/>
  176. <Static id="caption5" position="absolute 827 859 842 874" style="background:#7fef0fff;border:1 solid #000000ff ;"/>
  177. <Static id="op_usernm" text="김달현" position="absolute 10 784 150 821" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
  178. <Static id="op_userid" text="00000000" position="absolute 160 784 315 821" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
  179. <Static id="op_mp" text="000-0000-0000" position="absolute 10 831 230 865" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
  180. <Static id="op_bp" text="0000" position="absolute 240 831 315 865" style="border:1 solid #c0c0c0ff ;color:#333399ff;align:center middle;font:Dotum,21;"/>
  181. <Shape id="line4" class="line_1" position="absolute 0 715 329 721" style="strokepen:3 solid #9ebed4ff;"/>
  182. <Shape id="line1" class="line_1" position="absolute 1 767 329 773" style="strokepen:3 solid #9ebed4ff;"/>
  183. <MaskEdit id="op_fromtm" taborder="9" type="string" mask="@@:@@" enable="false" position="absolute 120 722 214 741" style=":disabled {align:center middle;}"/>
  184. <MaskEdit id="op_totm" taborder="10" type="string" mask="@@:@@" enable="false" position="absolute 235 722 329 741" style=":disabled {align:center middle;}"/>
  185. </Layout>
  186. </Layouts>
  187. <Objects>
  188. <Dataset id="ds_main_grpmasterinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="shownm" type="STRING" size="256"/>
  191. <Column id="grtype" type="STRING" size="256"/>
  192. <Column id="staffid" type="STRING" size="256"/>
  193. <Column id="orddeptcd" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="srchym" type="STRING" size="256"/>
  199. <Column id="orddeptcd" type="STRING" size="256"/>
  200. <Column id="deptpartinfo" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row/>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  207. <Dataset id="ds_main_titleinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="worktitle" type="STRING" size="256"/>
  210. <Column id="grpmtitle" type="STRING" size="256"/>
  211. <Column id="staffnm" type="STRING" size="256"/>
  212. <Column id="staffid" type="STRING" size="256"/>
  213. <Column id="fromtm" type="STRING" size="256"/>
  214. <Column id="totm" type="STRING" size="256"/>
  215. </ColumnInfo>
  216. </Dataset>
  217. <Dataset id="ds_init_deptpartinfo_partlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  218. <Dataset id="ds_main_drdetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="drnm" type="STRING" size="256"/>
  221. <Column id="drid" type="STRING" size="256"/>
  222. <Column id="deptcd" type="STRING" size="256"/>
  223. <Column id="phone" type="STRING" size="256"/>
  224. <Column id="bbtel" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. </Dataset>
  227. <Dataset id="ds_main_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  228. <ColumnInfo>
  229. <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
  230. <Column id="deptdetlflag" type="STRING" size="256" sumtext="부서상세구분"/>
  231. <Column id="drid1" type="STRING" size="256" sumtext="당직의사id1"/>
  232. <Column id="drid2" type="STRING" size="256" sumtext="당직의사id2"/>
  233. <Column id="drid3" type="STRING" size="256" sumtext="당직의사id3"/>
  234. <Column id="drid4" type="STRING" size="256" sumtext="당직의사id4"/>
  235. <Column id="drid5" type="STRING" size="256" sumtext="당직의사id5"/>
  236. <Column id="drid6" type="STRING" size="256" sumtext="당직의사id6"/>
  237. <Column id="drid7" type="STRING" size="256" sumtext="당직의사id7"/>
  238. <Column id="drid8" type="STRING" size="256" sumtext="당직의사id8"/>
  239. <Column id="drid9" type="STRING" size="256" sumtext="당직의사id9"/>
  240. <Column id="drid10" type="STRING" size="256" sumtext="당직의사id10"/>
  241. <Column id="fromdd" type="STRING" size="256" sumtext="당직시작일시"/>
  242. <Column id="todd" type="STRING" size="256" sumtext="당직종료일시"/>
  243. <Column id="grtype" type="STRING" size="256" sumtext="중증분류"/>
  244. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  245. <Column id="staffid" type="STRING" size="256" sumtext="스탭아이디"/>
  246. <Column id="drnm1" type="STRING" size="256" sumtext="당직의사명1"/>
  247. <Column id="drnm2" type="STRING" size="256" sumtext="당직의사명2"/>
  248. <Column id="drnm3" type="STRING" size="256" sumtext="당직의사명3"/>
  249. <Column id="drnm4" type="STRING" size="256" sumtext="당직의사명4"/>
  250. <Column id="drnm5" type="STRING" size="256" sumtext="당직의사명5"/>
  251. <Column id="drnm6" type="STRING" size="256" sumtext="당직의사명6"/>
  252. <Column id="drnm7" type="STRING" size="256" sumtext="당직의사명7"/>
  253. <Column id="drnm8" type="STRING" size="256" sumtext="당직의사명8"/>
  254. <Column id="drnm9" type="STRING" size="256" sumtext="당직의사명9"/>
  255. <Column id="drnm10" type="STRING" size="256" sumtext="당직의사명10"/>
  256. </ColumnInfo>
  257. </Dataset>
  258. <Dataset id="ds_main_drinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="drnm" type="STRING" size="256" sumtext="당직대상자명"/>
  261. <Column id="drid" type="STRING" size="256" sumtext="당직대상자코드"/>
  262. <Column id="deptcd" type="STRING" size="256" sumtext="당직대상자부서코드"/>
  263. <Column id="phone" type="STRING" size="256" sumtext="핸드폰번호"/>
  264. <Column id="bbtel" type="STRING" size="256" sumtext="beeper"/>
  265. <Column id="saveyn" type="STRING" size="256" sumtext="근무자저장여부"/>
  266. <Column id="mespclyn" type="STRING" size="256" sumtext="주치의 여부 "/>
  267. </ColumnInfo>
  268. </Dataset>
  269. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  270. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  271. <Dataset id="ds_code_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  272. <Dataset id="ds_orgscheinfo_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  273. </Objects>
  274. <Bind>
  275. <BindItem id="item5" compid="op_usernm" propid="text" datasetid="ds_main_drdetlinfo" columnid="drnm"/>
  276. <BindItem id="item6" compid="op_userid" propid="text" datasetid="ds_main_drdetlinfo" columnid="drid"/>
  277. <BindItem id="item7" compid="op_mp" propid="text" datasetid="ds_main_drdetlinfo" columnid="phone"/>
  278. <BindItem id="item8" compid="op_bp" propid="text" datasetid="ds_main_drdetlinfo" columnid="bbtel"/>
  279. <BindItem id="item0" compid="group4.ipt_srchym" propid="value" datasetid="ds_cond" columnid="srchym"/>
  280. <BindItem id="item1" compid="group4.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  281. <BindItem id="item2" compid="group4.cmb_partinfo" propid="value" datasetid="ds_cond" columnid="deptpartinfo"/>
  282. <BindItem id="item3" compid="op_staffid" propid="value" datasetid="ds_main_titleinfo" columnid="staffid"/>
  283. <BindItem id="item4" compid="op_fromtm" propid="value" datasetid="ds_main_titleinfo" columnid="fromtm"/>
  284. <BindItem id="item9" compid="op_totm" propid="value" datasetid="ds_main_titleinfo" columnid="totm"/>
  285. </Bind>
  286. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  287. * System Name :
  288. * Job Name :
  289. * Creator :
  290. * Make Date : 2015-01-27
  291. * Description :
  292. *---------------------------------------------------------------------------------------
  293. * Modify Date Modifier Modify Description
  294. *---------------------------------------------------------------------------------------
  295. * 2015-01-27 Live Converter TF->XP
  296. *
  297. *---------------------------------------------------------------------------------------
  298. ****************************************************************************************/
  299. //=======================================================================================
  300. // Lib Include
  301. //---------------------------------------------------------------------------------------
  302. include "com_commonxp::comm_main.xjs"
  303. include "emr_prcpmngtxp::MMOCommon.xjs"
  304. include "emr_prcpmngtxp::SPMMO34000.xjs"
  305. //include "emr_carecomxp::CareCom.xjs"
  306. //=======================================================================================
  307. // Event
  308. //---------------------------------------------------------------------------------------
  309. /****************************************************************************************
  310. * Components : Form
  311. * Components ID : SPMMO34000
  312. * Event : oninit
  313. * Argument : 01.obj : Object Event has occurred
  314. * : 02.e : Event Object
  315. * Description : 화면 처음 초기화시 폼초기화
  316. ****************************************************************************************/
  317. function SPMMO34000_oninit(obj:Form, e:InitEventInfo)
  318. {
  319. frmf_initForm(obj); // 폼 초기화
  320. }
  321. /****************************************************************************************
  322. * Components : Form
  323. * Components ID : SPMMO30000
  324. * Event : onload
  325. * Argument : 01.obj : Object Event has occurred
  326. * : 02.e : Event Object
  327. * Description : 화면 로드시 초기화 함수 실행
  328. ****************************************************************************************/
  329. function SPMMO34000_onload(obj:Form, e:LoadEventInfo)
  330. {
  331. fInit();
  332. frmf_createPopupMenu("popupMenu"
  333. ,"fMouseDownGridRow"
  334. ,[{id: "A", level: "0", title: "추가"} //항목추가
  335. ,{id: "R", level: "0", title: "새로고침"}] //항목추가
  336. );
  337. var ev = new ClickEventInfo;
  338. frmf_inputEnterKey("group4.btn_search", "onclick", ev );
  339. }
  340. /****************************************************************************************
  341. * Components : Form
  342. * Components ID : SPMMO30000
  343. * Event : onclose
  344. * Argument : 01.obj : Object Event has occurred
  345. * : 02.e : Event Object
  346. * Description : 화면 전환시 실행
  347. ****************************************************************************************/
  348. function SPMMO34000_onclose(obj:Form, e:CloseEventInfo)
  349. {
  350. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  351. var isRefresh = isScheduleRefresh(true);
  352. if(isRefresh == "N"){
  353. //grd_grpmaster.row = curRow;
  354. return;
  355. }else{
  356. // this.close();
  357. }
  358. }
  359. /****************************************************************************************
  360. * Components : Button
  361. * Components ID : group4.btn_search
  362. * Event : onclick
  363. * Argument : 01.obj : Object Event has occurred
  364. * : 02.e : Event Object
  365. * Description : 조회버튼 클릭
  366. ****************************************************************************************/
  367. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  368. {
  369. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  370. var isRefresh = isScheduleRefresh();
  371. if(isRefresh == "N"){
  372. //grd_grpmaster.row = curRow;
  373. return;
  374. }
  375. var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
  376. var srchym = ds_cond.getColumn(0,"srchym");
  377. var grtype = "X";
  378. var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
  379. var staffid = "";
  380. fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
  381. fGetDeptDetlFlag(); // 진료과의 파트정보 조회
  382. fChkSelDeptDetlFlag();
  383. var deptpartinfo = ds_cond.getColumn(0,"deptpartinfo");
  384. fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid, deptpartinfo);//당직자리스트를 조회한다
  385. }
  386. /****************************************************************************************
  387. * Components : MaskEdit
  388. * Components ID : group4.ipt_srchym
  389. * Event : ontextchanged
  390. * Argument : 01.obj : Object Event has occurred
  391. * : 02.e : Event Object
  392. * Description : 날자 초기화 실행
  393. ****************************************************************************************/
  394. function group4_ipt_srchym_ontextchanged(obj:MaskEdit, e:TextChangedEventInfo)
  395. {
  396. //당직년월을 조회하기전에 변경사항이 있는지 확인한다.
  397. var isRefresh = isScheduleRefresh();
  398. if(isRefresh == "N"){
  399. return;
  400. }
  401. fInit("A");
  402. //타이틀 헤더세팅
  403. var curym = ds_cond.getColumn(0,"srchym");
  404. var worktitle = curym.substring(0, 4) + "년 " + curym.substring(4, 6) + "월 당직리스트";
  405. cpt_worktitle.text = worktitle;
  406. }
  407. /****************************************************************************************
  408. * Components : Button
  409. * Components ID : group4.btn_bfyear(btn_bfmonth,btn_afmonth,btn_afyear)
  410. * Event : onclick
  411. * Argument : 01.obj : Object Event has occurred
  412. * : 02.e : Event Object
  413. * Description : 당직년월 변경 화살표 클릭시 실행
  414. ****************************************************************************************/
  415. function group4_btn_arrow_onclick(obj:Button, e:ClickEventInfo)
  416. {
  417. fClkArrowBtn(obj.name);
  418. //조회버튼 실행
  419. var ev = new ClickEventInfo;
  420. frmf_inputEnterKey("group4.btn_search", "onclick", ev );
  421. //타이틀 헤더세팅
  422. var curym = ds_cond.getColumn(0,"srchym");
  423. var worktitle = curym.substring(0, 4) + "년 " + curym.substring(4, 6) + "월 당직리스트";
  424. cpt_worktitle.text = worktitle;
  425. }
  426. /****************************************************************************************
  427. * Components : Combo
  428. * Components ID : group4.cmb_orddeptcd
  429. * Event : onitemchanged
  430. * Argument : 01.obj : Object Event has occurred
  431. * : 02.e : Event Object
  432. * Description : 진료과 변경시 조회실행
  433. ****************************************************************************************/
  434. function group4_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  435. {
  436. var ev = new ClickEventInfo;
  437. frmf_inputEnterKey("group4.btn_search", "onclick", ev );
  438. }
  439. /****************************************************************************************
  440. * Components : Combo
  441. * Components ID : group4.cmb_partinfo
  442. * Event : onitemchanged
  443. * Argument : 01.obj : Object Event has occurred
  444. * : 02.e : Event Object
  445. * Description : PART 변경시 당직자 리스트 조회
  446. ****************************************************************************************/
  447. function group4_cmb_partinfo_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  448. {
  449. var srchym = ds_cond.getColumn(0,"srchym");
  450. var grtype = "X";
  451. var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
  452. var staffid = "";
  453. var deptpartinfo = ds_cond.getColumn(0,"deptpartinfo");
  454. fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid, deptpartinfo); //당직자리스트를 조회한다
  455. }
  456. /****************************************************************************************
  457. * Components : Grid
  458. * Components ID : grd_drlist
  459. * Event : onlbuttonup
  460. * Argument : 01.obj : Object Event has occurred
  461. * : 02.e : Event Object
  462. * Description : 의사 Call 대상자 클릭시 실행
  463. ****************************************************************************************/
  464. function grd_drlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  465. {
  466. var drid = ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drid");
  467. fSetDrInfo("drlist", drid); //의사상세정보를 세팅
  468. fChkDeptDetlFlag(); // 파트정보가 있는지 확인하고 파트를 선택하지 않고 의사 선택시 블록킹
  469. }
  470. /****************************************************************************************
  471. * Components : Grid
  472. * Components ID : grd_workerlist
  473. * Event : onrbuttondown
  474. * Argument : 01.obj : Object Event has occurred
  475. * : 02.e : Event Object
  476. * Description : 마우스 우클릭시 팝업메뉴 띄움
  477. ****************************************************************************************/
  478. function grd_workerlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  479. {
  480. if(e.row > -1 && obj.selectstartcol[0] > 1 && obj.selectendcol[0] > 1) {
  481. if(obj.selectstartrow == obj.selectendrow && obj.selectstartcol == obj.selectendcol) {
  482. obj.setFocus();
  483. grdf_setSelectedCell(obj, e);
  484. }
  485. popupMenu.trackPopup(e.screenX,e.screenY);
  486. }
  487. }
  488. /****************************************************************************************
  489. * Components : Grid
  490. * Components ID : grd_workerlist
  491. * Event : onlbuttonup
  492. * Argument : 01.obj : Object Event has occurred
  493. * : 02.e : Event Object
  494. * Description : 당직리스트에 선택된 당직대상자를 그리드에 세팅
  495. ****************************************************************************************/
  496. function grd_workerlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  497. {
  498. if(e.col > 0 && obj.selectstartrow == obj.selectendrow && obj.selectstartcol == obj.selectendcol){//기준일클릭한게 아니면 의사정보세팅
  499. fSetWorkDr("ADD");//당직리스트에 선택된 당직대상자를 그리드에 세팅
  500. }
  501. }
  502. /****************************************************************************************
  503. * Components : Grid
  504. * Components ID : grd_workerlist
  505. * Event : onkeyup
  506. * Argument : 01.obj : Object Event has occurred
  507. * : 02.e : Event Object
  508. * Description : DEL키나 Backspace키 눌렀을때 의사정보삭제
  509. ****************************************************************************************/
  510. function grd_workerlist_onkeyup(obj:Grid, e:KeyEventInfo)
  511. {
  512. // if(ds_main_workerinfolist.rowposition > -1 && obj.selectstartcol[0] > 1 && obj.selectendcol[0] > 1) {
  513. // var clickColNm = lf_getBindCellName(grd_workerlist,obj.currentcol);
  514. // if(clickColNm != "workdd") {//기준일클릭한게 아니면 의사정보세팅
  515. // if(e.keycode == 46 || e.keycode == 8) {
  516. // fSetWorkDr("DEL");//의사정보삭제
  517. // }
  518. // }
  519. // }
  520. }
  521. /****************************************************************************************
  522. * Components : Button
  523. * Components ID : button42
  524. * Event : onclick
  525. * Argument : 01.obj : Object Event has occurred
  526. * : 02.e : Event Object
  527. * Description : 저장버튼 클릭 스케줄 저장
  528. ****************************************************************************************/
  529. function button42_onclick(obj:Button, e:ClickEventInfo)
  530. {
  531. fSaveWorkDr();//당직자스케줄을저장한다
  532. }
  533. ]]></Script>
  534. </Form>
  535. </FDL>