SPAEA02000_AlarmNotify(재활의학과).xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA02000" position="absolute 0 0 423 527" titletext="Alarm Notify" onload="SPAEA02000_onload" ontimer="SPAEA02000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static id="Static02" class="sta_DA_box" position="absolute 1 26 421 52"/>
  8. <Grid id="grd_tmplcodelist" position="absolute 1 82 421 497" anchor="default" positiontype="position" autofittype="col" binddataset="ds_grid_grd_tmplcodelist">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="91"/>
  13. <Column size="85"/>
  14. <Column size="39"/>
  15. <Column size="159"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="24" band="head"/>
  19. <Row size="24"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell text="등록번호"/>
  23. <Cell col="1" text="이름"/>
  24. <Cell col="2" text="i/o"/>
  25. <Cell col="3" text="구분"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell text="bind:pid"/>
  29. <Cell col="1" text="bind:hngnm" maxlength="12"/>
  30. <Cell col="2" text="bind:ioflag"/>
  31. <Cell col="3" text="bind:alarmflag"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Static id="caption4" class="tit_2" position="absolute 1 62 101 82" anchor="default" positiontype="position" text="환자"/>
  37. <Static id="caption1" class="tit_2" position="absolute 1 6 103 26" anchor="default" positiontype="position" text="설정"/>
  38. <CheckBox id="checkbox1" visible="true" position="absolute 318 500 418 520" anchor="default" positiontype="position" text="최상위 윈도우" truevalue="Y" falsevalue="" onchanged="checkbox1_onchanged"/>
  39. <Button id="button1" class="btn4" position="absolute 302 29 358 49" anchor="default" positiontype="position" text="시작" onclick="button1_onclick"/>
  40. <Button id="button4" class="btn4" position="absolute 361 29 417 49" anchor="default" positiontype="position" text="종료" onclick="button4_onclick"/>
  41. <Static id="caption2" text="interval" class="cell_1" position="absolute 2 27 62 51" style="align:center middle;" positiontype="position"/>
  42. <Combo id="combo2" taborder="1" position="absolute 65 29 125 49" positiontype="position" innerdataset="@ds_interval" codecolumn="cdid" datacolumn="cdnm"/>
  43. <Static id="caption3" text="치료실" class="cell_1" position="absolute 128 27 188 51" style="align:center middle;" positiontype="position"/>
  44. <Combo id="cmb_excuroom" taborder="2" class="combo_default" position="absolute 191 29 298 49" positiontype="position" innerdataset="@ds_init_cmb_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" onitemchanged="cmb_excuroom_onitemchanged"/>
  45. <ActiveX id="object1" position="absolute 2 500 33 526" progid="{6bf52a52-394a-11d3-b153-00c04f79faa6}" useautobitmapcache="1" anchor="default" taborder="5" visible="false" URL="./IMAGES/Ringin.wav"/>
  46. </Layout>
  47. </Layouts>
  48. <Objects>
  49. <Dataset id="ds_grid_grd_tmplcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="pid" type="STRING"/>
  52. <Column id="hngnm" type="STRING"/>
  53. <Column id="ioflag" type="STRING"/>
  54. <Column id="alarmflag" type="STRING"/>
  55. </ColumnInfo>
  56. </Dataset>
  57. <Dataset id="ds_init_cmb_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="basecd" type="STRING" size="256"/>
  60. <Column id="basecdflagdesc" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row>
  64. <Col id="basecd"/>
  65. <Col id="basecdflagdesc"/>
  66. </Row>
  67. </Rows>
  68. </Dataset>
  69. <Dataset id="ds_cond_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  70. <Dataset id="ds_init_cmb_initexcuward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="execwardcdid" type="STRING" size="256"/>
  73. <Column id="execwardcdnm" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. <Dataset id="ds_interval" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="cdid" type="STRING" size="256"/>
  79. <Column id="cdnm" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row>
  83. <Col id="cdid">60000</Col>
  84. <Col id="cdnm">1분</Col>
  85. </Row>
  86. <Row>
  87. <Col id="cdid">180000</Col>
  88. <Col id="cdnm">3분</Col>
  89. </Row>
  90. <Row>
  91. <Col id="cdid">300000</Col>
  92. <Col id="cdnm">5분</Col>
  93. </Row>
  94. <Row>
  95. <Col id="cdid">600000</Col>
  96. <Col id="cdnm">10분</Col>
  97. </Row>
  98. </Rows>
  99. </Dataset>
  100. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="interval" type="STRING" size="256"/>
  103. <Column id="instance1" type="STRING" size="256"/>
  104. <Column id="retroomcd" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="interval"/>
  109. <Col id="instance1"/>
  110. <Col id="retroomcd"/>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. </Objects>
  115. <Bind>
  116. <BindItem id="item0" compid="combo2" propid="value" datasetid="ds_send" columnid="interval"/>
  117. <BindItem id="item1" compid="cmb_excuroom" propid="value" datasetid="ds_send" columnid="retroomcd"/>
  118. </Bind>
  119. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  120. * System Name :
  121. * Job Name :
  122. * File Name : SPAEA02000_AlarmNotify(재활의학과).xfdl
  123. * Creator :
  124. * Make Date :
  125. *
  126. * Description :
  127. *---------------------------------------------------------------------------------------
  128. * Modify Date Modifier Modify Description
  129. *---------------------------------------------------------------------------------------
  130. *
  131. *---------------------------------------------------------------------------------------
  132. ****************************************************************************************/
  133. //=======================================================================================
  134. // xjs Include
  135. //---------------------------------------------------------------------------------------
  136. include "com_commonxp::comm_main.xjs";
  137. include "com_basiccodexp::ZBC001.xjs";
  138. include "ast_examcurexp::AEZ0001.xjs";
  139. //=======================================================================================
  140. // Function
  141. //---------------------------------------------------------------------------------------
  142. //******************************************************************
  143. // 데이터셋 동적 생성
  144. //******************************************************************
  145. function lf_initDataSet(){
  146. // cmb_excuroom의 INIT Dataset
  147. this.cmb_excuroom.innerdataset = "ds_init_cmb_excuroom";
  148. this.cmb_excuroom.codecolumn = "excuroomcdid";
  149. this.cmb_excuroom.datacolumn = "excuroomcdnm";
  150. }
  151. //치료실코드 조회
  152. function submit_TRAEA01201(){
  153. dsf_createDsRow("ds_cond_req",
  154. [{col:"basesuppdeptcd", val:suppdeptcd} //suppdeptcd
  155. ,{col:"rbasecdflag", val:"R"}
  156. ,{col:"initflag", val:"1"}
  157. ,{col:"alladdyn", val:"Y"}
  158. ]);
  159. var objParam = new Object();
  160. objParam.id = "TRAEA01201";
  161. objParam.service = "examcureacptexecapp.ExamCureAcpt";
  162. objParam.method = "reqGetInitExamCureRoomGrpCodeList";
  163. objParam.inds = "reqparam=ds_cond_req";
  164. objParam.outds ="ds_init_cmb_excuroom=initexcuroom";
  165. tranf_submit(objParam);
  166. //trace(ds_init_cmb_excuroom.saveXML());
  167. }
  168. // 조회
  169. function submit_TRAEA02015(){
  170. dsf_createDsRow("ds_cond_req",
  171. [{col:"suppdeptcd", val:suppdeptcd} //suppdeptcd
  172. ,{col:"rbasecdflag", val:"R"}
  173. ,{col:"initflag", val:"1"}
  174. ,{col:"alladdyn", val:"Y"}
  175. ]);
  176. var objParam = new Object();
  177. objParam.id = "TRAEA02015";
  178. objParam.service = "examcureacptexecapp.AssgMngt";
  179. objParam.method = "reqGetAlarmNotify";
  180. objParam.inds = "req=ds_cond_req";
  181. objParam.outds ="ds_grid_grd_tmplcodelist=item";
  182. tranf_submit(objParam);
  183. //trace(ds_init_cmb_excuroom.saveXML());
  184. }
  185. function fGetAlarmNotify()
  186. {
  187. submit_TRAEA02015();
  188. if(ds_grid_grd_tmplcodelist.getRowCount() > 0)
  189. {
  190. inff_playsound("ringin");
  191. }
  192. }
  193. //=======================================================================================
  194. // Event
  195. //---------------------------------------------------------------------------------------
  196. /****************************************************************************************
  197. * Components :
  198. * Components ID : SPAEA02000
  199. * Event : onload
  200. * Argument : 01.obj : Object Event has occurred
  201. * : 02.e : Event Object
  202. * Description :
  203. ****************************************************************************************/
  204. function SPAEA02000_onload(obj:Form, e:LoadEventInfo)
  205. {
  206. frmf_initForm(obj); // 화면공통
  207. lf_commoduleDataSetShow(); //DataSet 조회;
  208. lf_aezfSetSuppDeptcd(); //suppdeptcd가져옴
  209. inff_initsound(); // 알람 플레이어 활성화
  210. if(!utlf_isNull(opener) && opener.frmf_getScreenID() == "SMAER00100"){
  211. // trace("1");
  212. // //frmf_setFocus(true);
  213. // this.parent.winlevel= "topmost";
  214. // this.parent.activate();
  215. checkbox1.enableevent = false;
  216. checkbox1.value = "Y";
  217. checkbox1.enableevent = true;
  218. }
  219. submit_TRAEA01201();
  220. combo2.index = 0;
  221. cmb_excuroom.index = 0;
  222. fGetAlarmNotify();
  223. fTopMost();
  224. }
  225. function fTopMost()
  226. {
  227. var popup = application.popupframes["SPAEA02000"];
  228. if (!utlf_isNull(popup))
  229. {
  230. if(checkbox1.value == "Y")
  231. {
  232. trace("topmost");
  233. popup.winlevel = "topmost";
  234. popup.activate();
  235. }
  236. else
  237. {
  238. trace("top");
  239. popup.winlevel = "bottom";
  240. popup.winlevel = "top";
  241. popup.activate();
  242. }
  243. }
  244. }
  245. /****************************************************************************************
  246. * Components :
  247. * Components ID : button1
  248. * Event : onclick
  249. * Argument : 01.obj : Object Event has occurred
  250. * : 02.e : Event Object
  251. * Description :
  252. ****************************************************************************************/
  253. function button1_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. var interval = ds_send.getColumn(0,"interval");
  256. setTimer(0, interval);
  257. }
  258. /****************************************************************************************
  259. * Components :
  260. * Components ID : button4
  261. * Event : onclick
  262. * Argument : 01.obj : Object Event has occurred
  263. * : 02.e : Event Object
  264. * Description :
  265. ****************************************************************************************/
  266. function button4_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. killTimer(0);
  269. }
  270. /****************************************************************************************
  271. * Components :
  272. * Components ID : SPAEA02000
  273. * Event : ontimer
  274. * Argument : 01.obj : Object Event has occurred
  275. * : 02.e : Event Object
  276. * Description :
  277. ****************************************************************************************/
  278. function SPAEA02000_ontimer(obj:Form, e:TimerEventInfo)
  279. {
  280. if(e.timerid == 0)
  281. {
  282. fGetAlarmNotify();
  283. }
  284. }
  285. /****************************************************************************************
  286. * Components :
  287. * Components ID : Button00
  288. * Event : onclick
  289. * Argument : 01.obj : Object Event has occurred
  290. * : 02.e : Event Object
  291. * Description :
  292. ****************************************************************************************/
  293. function Button00_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. killTimer(0);
  296. this.close();
  297. }
  298. /****************************************************************************************
  299. * Components :
  300. * Components ID : checkbox1
  301. * Event : onchanged
  302. * Argument : 01.obj : Object Event has occurred
  303. * : 02.e : Event Object
  304. * Description :
  305. ****************************************************************************************/
  306. function checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  307. {
  308. fTopMost();
  309. }
  310. function cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  311. {
  312. fGetAlarmNotify();
  313. }
  314. ]]></Script>
  315. </Form>
  316. </FDL>