SMMNE05501_응급진료보고체계조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE05501" position="absolute 0 0 1229 906" titletext="환자상태 변화 시 보고체계" oninit="SMMNE05500_oninit" onload="SMMNE05500_onload" ontimer="SMMNE05500_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static text="환자상태 변화 시 보고체계" position="absolute 0 0 1219 30" align="align:center middle;" id="caption6" style="align:center middle;font:dorum,16,bold;" onclick="caption6_onclick"/>
  8. <Shape id="line3" class="line_1" position="absolute 0 77 1220 88" style="strokepen:3 solid #33bbbbff;"/>
  9. <Grid id="grd_workerlist1" taborder="1" binddataset="ds_grd_workerlist1" useinputpanel="false" position="absolute 0 82 1222 900" autosizemergetype="nomerge" fillareatype="none" style="font:Dotum,9,bold;" cellsizingtype="row" scrollbars="autoboth" oncelldblclick="grd_workerlist1_oncelldblclick" extendsizetype="none" autosizingtype="none">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="123"/>
  15. <Column size="100"/>
  16. <Column size="180"/>
  17. <Column size="210"/>
  18. <Column size="180"/>
  19. <Column size="210"/>
  20. <Column size="200"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="25" band="head"/>
  24. <Row size="27" band="head"/>
  25. <Row size="27" band="head"/>
  26. <Row size="24"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" rowspan="3" style="font:dotum,12,bold;" text="진료과" taborder="undefined"/>
  32. <Cell col="2" rowspan="3" style="font:dotum,12,bold;" text="과장" taborder="undefined"/>
  33. <Cell col="3" colspan="5" style="font:dotum,12,bold;" text="응급상황 발생 시 보고 체계" taborder="undefined"/>
  34. <Cell row="1" rowspan="2" style="font:dotum,12,bold;" text="일자" taborder="undefined"/>
  35. <Cell row="1" col="3" colspan="2" style="font:dotum,12,bold;" text="1차" taborder="undefined"/>
  36. <Cell row="1" col="5" colspan="2" style="font:dotum,12,bold;" text="2차" taborder="undefined"/>
  37. <Cell row="1" col="7" rowspan="2" style="font:dotum,12,bold;" text="3차" taborder="undefined"/>
  38. <Cell row="2" col="3" style="font:dotum,12,bold;" text="정규"/>
  39. <Cell row="2" col="4" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
  40. <Cell row="2" col="5" style="font:dotum,12,bold;" text="정규"/>
  41. <Cell row="2" col="6" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell/>
  45. <Cell col="1" rowspan="2" celltype="body" style="align:left;font:dotun,10,bold;" text="bind:deptnm" taborder="undefined"/>
  46. <Cell col="2" rowspan="2" celltype="body" style="font:dotum,9,bold;" text="bind:docname1" taborder="undefined"/>
  47. <Cell col="3" celltype="body" style="padding:2 2 2 2;" text="bind:cdnm2"/>
  48. <Cell col="4" celltype="body" text="bind:cdnm3"/>
  49. <Cell col="5" celltype="body" text="bind:cdnm4"/>
  50. <Cell col="6" celltype="body" text="bind:cdnm5" suppress="0"/>
  51. <Cell col="7" celltype="body" text="bind:cdnm6"/>
  52. <Cell row="1"/>
  53. <Cell row="1" col="3" style="align:left;padding:2 2 2 2;" text="bind:docname2" autosizerow="default"/>
  54. <Cell row="1" col="4" style="align:left;" text="bind:docname3"/>
  55. <Cell row="1" col="5" style="align:left;" text="bind:docname4"/>
  56. <Cell row="1" col="6" style="align:left;" text="bind:docname5" suppress="0" suppressalign="first"/>
  57. <Cell row="1" col="7" style="align:left;" text="bind:docname6"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Div id="group2" taborder="2" class="div_SA" position="absolute 0 35 1221 75">
  63. <Layouts>
  64. <Layout>
  65. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 1131 10 1137 33" anchor="default"/>
  66. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1150 10 1206 32" onclick="group2_btn_search_onclick" anchor="default"/>
  67. <Static id="caption52" text="조회일자 :" class="search_name" position="absolute 14 11 100 28" anchor="default"/>
  68. <Calendar id="int_outdt" taborder="4" position="absolute 112 11 223 30" dateformat="yyyy-MM-dd" value="null" autoselect="true" oneditclick="group2_int_outdt_oneditclick" style="align:center middle;" anchor="default"/>
  69. <CheckBox id="CheckBox00" taborder="5" text="의사보기" position="absolute 294 10 394 30" onchanged="group2_CheckBox00_onchanged"/>
  70. <CheckBox id="CheckBox01" taborder="6" text="재생성" position="absolute 1049 14 1108 34" onclick="group2_CheckBox01_onclick" visible="false"/>
  71. </Layout>
  72. </Layouts>
  73. </Div>
  74. <Shape id="line00" class="line_1" position="absolute 0 899 1222 905" style="strokepen:3 solid #33bbbbff;"/>
  75. <Button id="btn_bfday" taborder="4" onclick="group4_btn_bfmonth_onclick" class="icon_pre" position="absolute 92 47 108 63"/>
  76. <Button id="btn_afday" taborder="5" onclick="group4_btn_afmonth_onclick" class="icon_next" position="absolute 225 47 241 63"/>
  77. <Grid id="grd_workerlist2" taborder="6" binddataset="ds_grd_workerlist1" useinputpanel="false" cellsizingtype="row" oncelldblclick="grd_workerlist1_oncelldblclick" position="absolute 0 82 1222 900" style="font:Dotum,9,bold;">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="0"/>
  82. <Column size="123"/>
  83. <Column size="100"/>
  84. <Column size="180"/>
  85. <Column size="210"/>
  86. <Column size="180"/>
  87. <Column size="210"/>
  88. <Column size="200"/>
  89. </Columns>
  90. <Rows>
  91. <Row size="25" band="head"/>
  92. <Row size="27" band="head"/>
  93. <Row size="27" band="head"/>
  94. <Row size="24"/>
  95. </Rows>
  96. <Band id="head">
  97. <Cell/>
  98. <Cell col="1" rowspan="3" style="font:dotum,12,bold;" text="진료과" taborder="undefined"/>
  99. <Cell col="2" rowspan="3" style="font:dotum,12,bold;" text="과장" taborder="undefined"/>
  100. <Cell col="3" colspan="5" style="font:dotum,12,bold;" text="응급상황 발생 시 보고 체계" taborder="undefined"/>
  101. <Cell row="1" rowspan="2" style="font:dotum,12,bold;" text="일자" taborder="undefined"/>
  102. <Cell row="1" col="3" colspan="2" style="font:dotum,12,bold;" text="1차" taborder="undefined"/>
  103. <Cell row="1" col="5" colspan="2" style="font:dotum,12,bold;" text="2차" taborder="undefined"/>
  104. <Cell row="1" col="7" rowspan="2" style="font:dotum,12,bold;" text="3차" taborder="undefined"/>
  105. <Cell row="2" col="3" style="font:dotum,12,bold;" text="정규"/>
  106. <Cell row="2" col="4" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
  107. <Cell row="2" col="5" style="font:dotum,12,bold;" text="정규"/>
  108. <Cell row="2" col="6" style="font:dotum,12,bold;" text="야간 및 공휴일"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell/>
  112. <Cell col="1" celltype="body" style="align:left;font:dotun,10,bold;" text="bind:deptnm" taborder="undefined"/>
  113. <Cell col="2" celltype="body" style="font:dotum,9,bold;" text="bind:docname1" taborder="undefined"/>
  114. <Cell col="3" celltype="body" style="padding:2 2 2 2;" text="bind:cdnm2"/>
  115. <Cell col="4" celltype="body" text="bind:cdnm3"/>
  116. <Cell col="5" celltype="body" text="bind:cdnm4"/>
  117. <Cell col="6" celltype="body" text="bind:cdnm5" suppress="0"/>
  118. <Cell col="7" celltype="body" text="bind:cdnm6"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. </Layout>
  124. </Layouts>
  125. <Objects>
  126. <Dataset id="ds_grd_workerlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="deptcd" type="STRING" size="256" sumtext="진료과코드"/>
  129. <Column id="deptnm" type="STRING" size="256" sumtext="진료과명"/>
  130. <Column id="docname1" type="STRING" size="256"/>
  131. <Column id="docname2" type="STRING" size="256"/>
  132. <Column id="docname3" type="STRING" size="256"/>
  133. <Column id="docname4" type="STRING" size="256"/>
  134. <Column id="docname5" type="STRING" size="256"/>
  135. <Column id="docname6" type="STRING" size="256"/>
  136. <Column id="bigo" type="STRING" size="256"/>
  137. <Column id="cdnm1" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="instcd" type="STRING" size="256"/>
  143. <Column id="workdd" type="STRING" size="256"/>
  144. <Column id="flag" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row/>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="instcd" type="STRING" size="256"/>
  153. <Column id="workdd" type="STRING" size="256"/>
  154. <Column id="orddeptcd" type="STRING" size="256"/>
  155. <Column id="dutycd" type="STRING" size="256"/>
  156. <Column id="dutycdnm" type="STRING" size="256"/>
  157. <Column id="pid" type="STRING" size="256"/>
  158. <Column id="flag" type="STRING" size="256"/>
  159. </ColumnInfo>
  160. <Rows>
  161. <Row/>
  162. </Rows>
  163. </Dataset>
  164. </Objects>
  165. <Bind>
  166. <BindItem id="item1" compid="group2.int_outdt" propid="value" datasetid="ds_send" columnid="workdd"/>
  167. </Bind>
  168. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  169. * System Name :
  170. * Job Name :
  171. * Creator :
  172. * Make Date : 2015-11-13
  173. * Description :
  174. *---------------------------------------------------------------------------------------
  175. * Modify Date Modifier Modify Description
  176. *---------------------------------------------------------------------------------------
  177. * 2015-11-13 Live Converter TF->XP
  178. *
  179. *---------------------------------------------------------------------------------------
  180. ****************************************************************************************/
  181. //=======================================================================================
  182. // Lib Include
  183. //---------------------------------------------------------------------------------------
  184. include "com_commonxp::comm_main.xjs"
  185. //=======================================================================================
  186. // Function
  187. //---------------------------------------------------------------------------------------
  188. function fSearch(){
  189. var oParam = {};
  190. oParam.id = "TRMNE05503";
  191. oParam.service = "ercareapp.ERPatMngt";
  192. oParam.method = "reqGetReportWorkScheList";
  193. oParam.inds = "req=ds_send";
  194. oParam.outds = "ds_grd_workerlist1=workerinfolist";
  195. oParam.async = false;
  196. //oParam.callback = "cf_TRMNE05501";
  197. tranf_submit(oParam);
  198. //trace(ds_grd_workerlist1.saveXML());
  199. var docname1 = ds_grd_workerlist1.getColumn(0,"docname1");
  200. if(ds_grd_workerlist1.rowcount < 0 || utlf_isNull(docname1) ) {
  201. var oParam = {};
  202. oParam.id = "TRMNE05507";
  203. oParam.service = "ercareapp.ERPatMngt";
  204. oParam.method = "reqGetReportWorkScheList5";
  205. oParam.inds = "req=ds_send";
  206. oParam.outds = "";
  207. oParam.async = false;
  208. tranf_submit(oParam);
  209. var oParam = {};
  210. oParam.id = "TRMNE05503";
  211. oParam.service = "ercareapp.ERPatMngt";
  212. oParam.method = "reqGetReportWorkScheList";
  213. oParam.inds = "req=ds_send";
  214. oParam.outds = "ds_grd_workerlist1=workerinfolist";
  215. oParam.async = false;
  216. //oParam.callback = "cf_TRMNE05501";
  217. tranf_submit(oParam);
  218. }
  219. }
  220. function fSearch2(){
  221. var oParam = {};
  222. oParam.id = "TRMNE05507";
  223. oParam.service = "ercareapp.ERPatMngt";
  224. oParam.method = "reqGetReportWorkScheList5";
  225. oParam.inds = "req=ds_send";
  226. oParam.outds = "";
  227. oParam.async = false;
  228. tranf_submit(oParam);
  229. var oParam = {};
  230. oParam.id = "TRMNE05503";
  231. oParam.service = "ercareapp.ERPatMngt";
  232. oParam.method = "reqGetReportWorkScheList";
  233. oParam.inds = "req=ds_send";
  234. oParam.outds = "ds_grd_workerlist1=workerinfolist";
  235. oParam.async = false;
  236. //oParam.callback = "cf_TRMNE05501";
  237. tranf_submit(oParam);
  238. }
  239. //=======================================================================================
  240. // Event
  241. //---------------------------------------------------------------------------------------
  242. /******************************************************************
  243. * Argument :
  244. * Description : oninit 메서드
  245. ******************************************************************/
  246. function SMMNE05500_oninit(obj:Form, e:InitEventInfo){
  247. }
  248. /******************************************************************
  249. * Argument :
  250. * Description : onload 메서드
  251. ******************************************************************/
  252. function SMMNE05500_onload(obj:Form, e:LoadEventInfo){
  253. // 화면공통
  254. frmf_initForm(obj);
  255. var instcd = sysf_getUserInfo("dutplceinstcd");
  256. var srchdd = utlf_getCurrentDate();
  257. ds_send.setColumn(0,"instcd",instcd);
  258. ds_send.setColumn(0,"workdd",srchdd);
  259. grdf_setToolTipBind(grd_workerlist1); //내용풍선으로 보이기
  260. grdf_setToolTipBind(grd_workerlist2); //내용풍선으로 보이기
  261. var mGrupCd = sysf_getGlobalVariable("menugroupcd");
  262. //MG01800000 //간호부서장용
  263. //MG02260000 //간호 superuser용
  264. var userid = sysf_getUserInfo("userid");
  265. if (userid == "EMR" || userid == "ENR" || mGrupCd == "MG01800000" || mGrupCd == "MG02260000" ) {
  266. group2.CheckBox01.visible = true;
  267. }
  268. grd_workerlist1.visible = false;
  269. this.setTimer(0, 100);
  270. //fSearch();
  271. }
  272. /******************************************************************
  273. * Argument :
  274. * Description : 조회 버튼 클릭
  275. ******************************************************************/
  276. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo){
  277. fSearch();
  278. }
  279. function SMMNE05500_ontimer(obj:Form, e:TimerEventInfo)
  280. {
  281. if (e.timerid == 0) {
  282. this.killTimer(0);
  283. fSearch();
  284. }
  285. }
  286. function grd_workerlist1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  287. {
  288. var objArg = new Object();
  289. ds_send_cond.clearData();
  290. ds_send_cond.addRow();
  291. var dutycd = "";
  292. var dutycdnm = "";
  293. if (e.col == 3 || e.col == 4 || e.col == 5 || e.col == 6 || e.col == 7 || e.col == 8 ) {
  294. if (e.col == 3) {
  295. dutycd = '10';
  296. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm2")
  297. }else if (e.col == 4) {
  298. dutycd = '11';
  299. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm3")
  300. }else if (e.col == 5) {
  301. dutycd = '20';
  302. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm4")
  303. }else if (e.col == 6) {
  304. dutycd = '21';
  305. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm5")
  306. }else if (e.col == 7) {
  307. dutycd = '30';
  308. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm6")
  309. }else if (e.col == 8) {
  310. dutycd = '99';
  311. dutycdnm = ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"cdnm7")
  312. }
  313. ds_send_cond.setColumn(0,"instcd",ds_send.getColumn(0,"instcd"));
  314. ds_send_cond.setColumn(0,"workdd",ds_send.getColumn(0,"workdd"));
  315. ds_send_cond.setColumn(0,"orddeptcd",ds_grd_workerlist1.getColumn(ds_grd_workerlist1.rowposition,"deptcd"));
  316. ds_send_cond.setColumn(0,"dutycd",dutycd);
  317. ds_send_cond.setColumn(0,"dutycdnm",dutycdnm);
  318. objArg.arg_cond = ds_send_cond;
  319. frmf_modal("SMMNE05502", "SMMNE05502", objArg, null, null,null,null, null, null, null, null, null, "M");
  320. }
  321. }
  322. function group4_btn_afyear_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. fClkArrowBtn(obj.name);
  325. }
  326. function fClkArrowBtn(objName){
  327. var basedd = ds_send.getColumn(0,"workdd");
  328. var sNewdd = "";
  329. //trace(objName);
  330. if(objName == "btn_bfday") {
  331. sNewdd = basedd.toDate("YYYYMMDD").getAddDate(-1, "D").getDateFormat();
  332. } else if(objName == "btn_bfmonth") {
  333. sNewdd = basedd.toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat();
  334. } else if(objName == "btn_afmonth") {
  335. sNewdd = basedd.toDate("YYYYMMDD").getAddDate(1, "M").getDateFormat();
  336. } else if(objName == "btn_afday"){
  337. sNewdd = basedd.toDate("YYYYMMDD").getAddDate(1, "D").getDateFormat();
  338. }
  339. if (!utlf_isNull(sNewdd)) {
  340. ds_send.setColumn(0,"workdd", sNewdd);
  341. fSearch();
  342. }
  343. }
  344. function group4_btn_afmonth_onclick(obj:Button, e:ClickEventInfo)
  345. {
  346. fClkArrowBtn(obj.name);
  347. }
  348. function group4_btn_bfmonth_onclick(obj:Button, e:ClickEventInfo)
  349. {
  350. fClkArrowBtn(obj.name);
  351. }
  352. function group2_CheckBox00_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  353. {
  354. check_yn = obj.value;
  355. if (check_yn == true) {
  356. grd_workerlist1.visible = true;
  357. grd_workerlist2.visible = false;
  358. }else {
  359. grd_workerlist2.visible = true;
  360. grd_workerlist1.visible = false;
  361. }
  362. }
  363. function group2_CheckBox01_onclick(obj:CheckBox, e:ClickEventInfo)
  364. {
  365. check_yn = obj.value;
  366. if (check_yn == true) {
  367. fSearch2();
  368. }
  369. }
  370. ]]></Script>
  371. </Form>
  372. </FDL>