SMMNE05500_응급당직전문의조회.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE05500" position="absolute 0 0 986 768" titletext="응급 당직 전문의 스케줄 조회" oninit="SMMNE05500_oninit" onload="SMMNE05500_onload" ontimer="SMMNE05500_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static text="응급실 당직 전문의 (on-call) 명단" position="absolute 0 0 980 30" align="align:center middle;" id="caption6" style="align:center middle;font:arial,14,bold;"/>
  8. <Static text="caption1" position="absolute 795 671 985 691" align="align:right middle;" id="caption1"/>
  9. <Shape id="line3" class="line_1" position="absolute 0 90 980 96" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="grd_workerlist1" taborder="1" binddataset="ds_grd_workerlist1" useinputpanel="false" autofittype="col" position="absolute 0 94 490 501" autosizemergetype="nomerge" fillareatype="none" style="font:Dotum,9,bold;">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="120"/>
  15. <Column size="70"/>
  16. <Column size="160"/>
  17. <Column size="130"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="45" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell style="font:arial,12,bold;" text="일자"/>
  25. <Cell col="1" style="font:arial,12,bold;" text="요일"/>
  26. <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
  27. <Cell col="3" style="font:arial,12,bold;" text="당직의"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle" calendardisplaynulltype="none"/>
  31. <Cell col="1" style="font:arial,12,bold;" text="bind:datenm" suppress="2" suppressalign="middle"/>
  32. <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
  33. <Cell col="3" style="font:arial,12,bold;" text="bind:drnm"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Div id="group2" taborder="2" class="div_SA" position="absolute 0 43 980 83">
  39. <Layouts>
  40. <Layout>
  41. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 891 10 897 33"/>
  42. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 910 10 966 32" onclick="group2_btn_search_onclick"/>
  43. <Static id="caption52" text="조회일자 :" class="search_name" position="absolute 30 11 116 28"/>
  44. <Calendar id="int_outdt" taborder="4" position="absolute 125 11 260 30" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Grid id="grd_workerlist2" taborder="3" binddataset="ds_grd_workerlist2" useinputpanel="false" autofittype="col" position="absolute 490 94 980 501">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="120"/>
  53. <Column size="70"/>
  54. <Column size="160"/>
  55. <Column size="130"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="45" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell style="font:arial,12,bold;" text="일자"/>
  63. <Cell col="1" style="font:arial,12,bold;" text="요일"/>
  64. <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
  65. <Cell col="3" style="font:arial,12,bold;" text="당직의"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" suppress="1" suppressalign="middle" calendardisplaynulltype="none"/>
  69. <Cell col="1" style="font:arial,12,bold;" text="bind:datenm" suppress="2" suppressalign="middle"/>
  70. <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
  71. <Cell col="3" style="font:arial,12,bold;" text="bind:drnm"/>
  72. </Band>
  73. </Format>
  74. </Formats>
  75. </Grid>
  76. <Grid id="grd_workerlist3" taborder="4" binddataset="ds_grd_workerlist3" useinputpanel="false" position="absolute 0 504 744 576">
  77. <Formats>
  78. <Format id="default">
  79. <Columns>
  80. <Column size="120"/>
  81. <Column size="70"/>
  82. <Column size="163"/>
  83. <Column size="130"/>
  84. <Column size="130"/>
  85. <Column size="130"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="45" band="head"/>
  89. <Row size="24"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell style="font:arial,12,bold;" text="일자"/>
  93. <Cell col="1" style="font:arial,12,bold;" text="요일"/>
  94. <Cell col="2" style="font:arial,12,bold;" text="진료과"/>
  95. <Cell col="3" style="font:arial,12,bold;" text="당직의D"/>
  96. <Cell col="4" style="font:arial,12,bold;" text="당직의E"/>
  97. <Cell col="5" style="font:arial,12,bold;" text="당직의N"/>
  98. </Band>
  99. <Band id="body">
  100. <Cell displaytype="date" style="font:arial,12,bold;" text="bind:workdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  101. <Cell col="1" style="font:arial,12,bold;" text="bind:datenm"/>
  102. <Cell col="2" style="align:left;font:arial,12,bold;" text="bind:orddeptnm"/>
  103. <Cell col="3" style="font:arial,12,bold;" text="bind:drnm1"/>
  104. <Cell col="4" style="font:arial,12,bold;" text="bind:drnm2"/>
  105. <Cell col="5" style="font:arial,12,bold;" text="bind:drnm3"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Static id="caption2" text="* 당직 근무시간 - 평일: 17:30 ~ 익일 08:30, 토·일요일 및 공휴일: 08:30 ~ 익일 08:30" position="absolute 0 585 980 607" style="font:arial,14,bold;"/>
  111. <Static id="caption3" text="* 위 당직 전문의는 환자 및 보호자의 요청이 아닌 응급실 근무의사의 의학적 판단에 따른 요청으로 직접진료 여부가 결정됩니다." position="absolute 0 625 980 671" style="font:arial,14,bold;"/>
  112. <Static id="caption4" text="* 당직 전문의 응급수술, 출장 등 사정에 의하여 당직 전문의가 변경될 수 있습니다." onclick="group1_caption4_onclick" position="absolute 0 605 980 627" style="font:arial,14,bold;"/>
  113. <Shape id="line00" class="line_1" position="absolute 0 501 744 507" style="strokepen:3 solid #33bbbbff;"/>
  114. </Layout>
  115. </Layouts>
  116. <Objects>
  117. <Dataset id="ds_grd_workerlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
  120. <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
  121. <Column id="duty" type="STRING" size="256" sumtext="duty"/>
  122. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  123. <Column id="drid" type="STRING" size="256" sumtext="당직의사id"/>
  124. <Column id="drnm" type="STRING" size="256" sumtext="당직의사이름"/>
  125. <Column id="nzone" type="STRING" size="256" sumtext="nzone"/>
  126. <Column id="hpno" type="STRING" size="256" sumtext="hpno"/>
  127. <Column id="orddeptcd" type="STRING" size="256" sumtext="기준과"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_grd_workerlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
  133. <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
  134. <Column id="duty" type="STRING" size="256" sumtext="duty"/>
  135. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  136. <Column id="drid" type="STRING" size="256" sumtext="당직의사id"/>
  137. <Column id="drnm" type="STRING" size="256" sumtext="당직의사이름"/>
  138. <Column id="nzone" type="STRING" size="256" sumtext="nzone"/>
  139. <Column id="hpno" type="STRING" size="256" sumtext="hpno"/>
  140. <Column id="orddeptcd" type="STRING" size="256" sumtext="기준과"/>
  141. </ColumnInfo>
  142. </Dataset>
  143. <Dataset id="ds_grd_workerlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
  146. <Column id="datenm" type="STRING" size="256" sumtext="요일"/>
  147. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  148. <Column id="drid1" type="STRING" size="256" sumtext="당직의사id"/>
  149. <Column id="drnm1" type="STRING" size="256" sumtext="당직의사이름"/>
  150. <Column id="drid2" type="STRING" size="256" sumtext="당직의사id"/>
  151. <Column id="drnm2" type="STRING" size="256" sumtext="당직의사이름"/>
  152. <Column id="drid3" type="STRING" size="256" sumtext="당직의사id"/>
  153. <Column id="drnm3" type="STRING" size="256" sumtext="당직의사이름"/>
  154. </ColumnInfo>
  155. </Dataset>
  156. </Objects>
  157. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  158. * System Name :
  159. * Job Name :
  160. * Creator :
  161. * Make Date : 2015-11-13
  162. * Description :
  163. *---------------------------------------------------------------------------------------
  164. * Modify Date Modifier Modify Description
  165. *---------------------------------------------------------------------------------------
  166. * 2015-11-13 Live Converter TF->XP
  167. *
  168. *---------------------------------------------------------------------------------------
  169. ****************************************************************************************/
  170. //=======================================================================================
  171. // Lib Include
  172. //---------------------------------------------------------------------------------------
  173. include "com_commonxp::comm_main.xjs"
  174. //=======================================================================================
  175. // Function
  176. //---------------------------------------------------------------------------------------
  177. function fSearch(){
  178. var srchdd = utlf_getCurrentDate();
  179. var srchtm = utlf_getCurrentTime();
  180. // 하단의 caption1 에 문구를 넣는다
  181. caption1.text = srchdd.substring(0,4) + "/" +
  182. srchdd.substring(4, 6) + "/" +
  183. srchdd.substring(6, 8) + " " +
  184. srchtm.substring(0, 2) + ":" +
  185. srchtm.substring(2, 4) + ":" +
  186. srchtm.substring(4, 6);
  187. // 검색 시간이 근무시간 이전이라면 이전 날짜로 설정한다
  188. if(srchtm < '083000'){
  189. srchdd = new Date();
  190. srchdd.setDate(srchdd.getDate() - 1);
  191. srchdd = srchdd.getDateFormat('YYYYMMDD');
  192. }
  193. group2.int_outdt.value = srchdd;
  194. // workerlist1 을 서버로 부터 가져온다
  195. dsf_createDsRow("ds_req",
  196. [
  197. { col: "workdd", type: "string", size: 256, val: srchdd },
  198. { col: "flag", type: "string", size: 256, val: '1' },
  199. { col: "gbn", type: "string", size: 256, val: 'E' }
  200. ],
  201. true);
  202. var oParam = {};
  203. oParam.id = "TRMNE05501";
  204. oParam.service = "ercareapp.ERPatMngt";
  205. oParam.method = "reqGetErProfscheByDate";
  206. oParam.inds = "req=ds_req";
  207. oParam.outds = "ds_grd_workerlist1=workerinfolist";
  208. oParam.async = false;
  209. //oParam.callback = "cf_TRMNE05501";
  210. tranf_submit(oParam);
  211. // workerlist2 를 서버로 부터 가져온다
  212. ds_req.setColumn(0, 'flag', '2');
  213. oParam.id = "TRMNE05501";
  214. oParam.service = "ercareapp.ERPatMngt";
  215. oParam.method = "reqGetErProfscheByDate";
  216. oParam.inds = "req=ds_req";
  217. oParam.outds = "ds_grd_workerlist2=workerinfolist";
  218. oParam.async = false;
  219. //oParam.callback = "cf_TRMNE05501";
  220. tranf_submit(oParam);
  221. // workerlist3 를 서버로 부터 가져온다
  222. dsf_createDsRow("ds_req3",
  223. [
  224. { col: "workdd", type: "string", size: 256, val: srchdd }
  225. ],
  226. true);
  227. oParam.id = "TRMNE05502";
  228. oParam.service = "ercareapp.ERPatMngt";
  229. oParam.method = "reqGetErProfscheByDateEM";
  230. oParam.inds = "req=ds_req3";
  231. oParam.outds = "ds_grd_workerlist3=workerinfolist";
  232. oParam.async = false;
  233. //oParam.callback = "cf_TRMNE05502";
  234. tranf_submit(oParam);
  235. }
  236. //=======================================================================================
  237. // Event
  238. //---------------------------------------------------------------------------------------
  239. /******************************************************************
  240. * Argument :
  241. * Description : oninit 메서드
  242. ******************************************************************/
  243. function SMMNE05500_oninit(obj:Form, e:InitEventInfo){
  244. }
  245. /******************************************************************
  246. * Argument :
  247. * Description : onload 메서드
  248. ******************************************************************/
  249. function SMMNE05500_onload(obj:Form, e:LoadEventInfo){
  250. // 화면공통
  251. frmf_initForm(obj);
  252. var instcd = sysf_getUserInfo("dutplceinstcd");
  253. if(instcd == '031'){
  254. caption3.text = '* 위 당직 전문의는 환자 및 보호자의 요청이 아닌 응급실 근무의사의 의학적 판단에 따른 요청으로 직접진료 여부가 결정됩니다.';
  255. grd_workerlist3.visible = true;
  256. }
  257. else{
  258. caption3.text = '* 칠곡경북대학교병원은 특정질환 전문병원으로서 응급실에 내원하는 환자분의 증상(진단) 또는 병원의 의료인력과 시설에 따라 필요시 진료가 가능한 상급의료기관으로 전원할 수 있음을 양해해 주시기 바랍니다.';
  259. grd_workerlist3.visible = false;
  260. }
  261. //속도개선
  262. this.setTimer(0, 100);
  263. //fSearch();
  264. }
  265. /******************************************************************
  266. * Argument :
  267. * Description : 조회 버튼 클릭
  268. ******************************************************************/
  269. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo){
  270. fSearch();
  271. }
  272. function SMMNE05500_ontimer(obj:Form, e:TimerEventInfo)
  273. {
  274. if (e.timerid == 0) {
  275. this.killTimer(0);
  276. fSearch();
  277. }
  278. }
  279. ]]></Script>
  280. </Form>
  281. </FDL>