SPMNE04700_중증응급환자조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE04700" position="absolute 0 0 820 460" titletext="중증응급 환자조회" oninit="SPMNE04700_oninit" onload="SPMNE04700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 0 26 801 66" id="roundrect1" type="roundrectangle"/>
  8. <Static text="중증응급 환자조회" position="absolute 0 0 210 25" align="align:center middle;" id="caption9" class="tit_1"/>
  9. <Static text="등록일자 :" position="absolute 5 36 100 53" align="align:center middle;" id="caption2" class="search_name"/>
  10. <Calendar position="absolute 92 36 177 55" id="input4" class="input"/>
  11. <Static text="~" position="absolute 180 36 195 56" id="caption3"/>
  12. <Calendar position="absolute 193 36 278 55" id="input3" class="input"/>
  13. <Combo position="absolute 280 36 343 55" id="cmb_prid" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="cmb_prid_onitemchanged" value="1M" text="1개월" index="0">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn"/>
  17. <Column id="datacolumn"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1M</Col>
  22. <Col id="datacolumn">1개월</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">3M</Col>
  26. <Col id="datacolumn">3개월</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">6M</Col>
  30. <Col id="datacolumn">6개월</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">9M</Col>
  34. <Col id="datacolumn">9개월</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">1Y</Col>
  38. <Col id="datacolumn">1년</Col>
  39. </Row>
  40. <Row>
  41. <Col id="codecolumn">2Y</Col>
  42. <Col id="datacolumn">2년</Col>
  43. </Row>
  44. </Rows>
  45. </Dataset>
  46. </Combo>
  47. <Shape position="absolute 717 32 723 62" linetype="vertical" id="line3"/>
  48. <Button position="absolute 735 36 791 58" id="btn_req" class="btn1" text="조회" onclick="btn_req_onclick"/>
  49. <Button position="absolute 5 425 109 447" id="button3" class="btn3" text="통합기록조회" onclick="button3_onclick"/>
  50. <Button position="absolute 114 425 218 447" id="button5" class="btn3" text="통합결과조회" onclick="button5_onclick"/>
  51. <Shape position="absolute 0 71 801 72" linetype="vertical" id="line1" class="line_1"/>
  52. <Grid position="absolute 0 70 801 415" id="grd_serdiagflist" binddataset="ds_grd_serdiagflist" onheadclick="grd_serdiagflist_onheadclick">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="70"/>
  57. <Column size="0"/>
  58. <Column size="60"/>
  59. <Column size="70"/>
  60. <Column size="40"/>
  61. <Column size="170"/>
  62. <Column size="100"/>
  63. <Column size="70"/>
  64. <Column size="70"/>
  65. <Column size="70"/>
  66. <Column size="100"/>
  67. <Column size="100"/>
  68. <Column size="100"/>
  69. <Column size="70"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell text="등록일자"/>
  77. <Cell col="1" text="일련번호"/>
  78. <Cell col="2" text="환자번호"/>
  79. <Cell col="3" text="환자명"/>
  80. <Cell col="4" text="유형"/>
  81. <Cell col="5" text="진단명"/>
  82. <Cell col="6" text="진료과"/>
  83. <Cell col="7" text="진료의"/>
  84. <Cell col="8" text="병동"/>
  85. <Cell col="9" text="퇴원일"/>
  86. <Cell col="10" text="적용시작"/>
  87. <Cell col="11" text="적용종료"/>
  88. <Cell col="12" text="등록부서"/>
  89. <Cell col="13" text="등록자"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell displaytype="date" text="bind:genrdd" mask="yyyy-MM-dd"/>
  93. <Cell col="1" text="bind:genrno"/>
  94. <Cell col="2" displaytype="text" edittype="text" text="bind:pid"/>
  95. <Cell col="3" text="bind:hngnm"/>
  96. <Cell col="4" text="bind:serflagnm"/>
  97. <Cell col="5" style="align:left middle;" text="bind:diagnm"/>
  98. <Cell col="6" text="bind:orddeptnm"/>
  99. <Cell col="7" text="bind:orddrnm"/>
  100. <Cell col="8" style="align:left middle;" text="bind:wardnm"/>
  101. <Cell col="9" displaytype="date" text="bind:dschdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  102. <Cell col="10" displaytype="date" text="bind:fromdt" mask="yyyy-MM-dd hh:mm" calendardisplaynulltype="nulltext"/>
  103. <Cell col="11" displaytype="date" text="bind:todt" mask="yyyy-MM-dd hh:mm" calendardisplaynulltype="nulltext"/>
  104. <Cell col="12" text="bind:fstrgstdeptnm"/>
  105. <Cell col="13" text="bind:fstrgstrnm"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Static text="응급유형 :" position="absolute 355 36 450 53" align="align:center middle;" id="caption5" class="search_name"/>
  111. <Combo position="absolute 442 36 510 55" id="cmb_orddrid" class="combo_default" innerdataset="@ds_init_M0757" datacolumn="cdnm" codecolumn="cdid"/>
  112. <Static text="적용여부 :" position="absolute 515 36 610 53" align="align:center middle;" id="caption1" class="search_name"/>
  113. <Combo position="absolute 602 36 670 55" id="combo1" class="combo_default" codecolumn="codecolumn" datacolumn="datacolumn" value="Y" text="적용" index="1">
  114. <Dataset id="innerdataset">
  115. <ColumnInfo>
  116. <Column id="codecolumn"/>
  117. <Column id="datacolumn"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row>
  121. <Col id="codecolumn">A</Col>
  122. <Col id="datacolumn">전체</Col>
  123. </Row>
  124. <Row>
  125. <Col id="codecolumn">Y</Col>
  126. <Col id="datacolumn">적용</Col>
  127. </Row>
  128. <Row>
  129. <Col id="codecolumn">N</Col>
  130. <Col id="datacolumn">해제</Col>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. </Combo>
  135. <Button position="absolute 744 425 800 447" id="btn_close" class="btn4" text="닫기" onclick="btn_close_onclick"/>
  136. </Layout>
  137. </Layouts>
  138. <Objects>
  139. <Dataset id="ds_grd_serdiagflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="genrdd" type="STRING"/>
  142. <Column id="genrno" type="STRING"/>
  143. <Column id="pid" type="STRING"/>
  144. <Column id="hngnm" type="STRING"/>
  145. <Column id="serflagnm" type="STRING"/>
  146. <Column id="diagnm" type="STRING"/>
  147. <Column id="orddeptnm" type="STRING"/>
  148. <Column id="orddrnm" type="STRING"/>
  149. <Column id="wardnm" type="STRING"/>
  150. <Column id="dschdd" type="STRING"/>
  151. <Column id="fromdt" type="STRING"/>
  152. <Column id="todt" type="STRING"/>
  153. <Column id="fstrgstdeptnm" type="STRING"/>
  154. <Column id="fstrgstrnm" type="STRING"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_init_M0757" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="cdnm" type="STRING"/>
  160. <Column id="cdid" type="STRING"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. </Objects>
  164. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  165. * System Name :
  166. * Job Name :
  167. * Creator :
  168. * Make Date : 2015-10-22
  169. * Description :
  170. *---------------------------------------------------------------------------------------
  171. * Modify Date Modifier Modify Description
  172. *---------------------------------------------------------------------------------------
  173. * 2015-10-22 Live Converter TF->XP
  174. *
  175. *---------------------------------------------------------------------------------------
  176. ****************************************************************************************/
  177. include "com_commonxp::comm_main.xjs";
  178. // CVR 리스트를 조회 한다.
  179. function fReqGetSerDiagList() {
  180. dsf_createDsRow("ds_cond"
  181. , [{col: "fromdd", val:input4.value}
  182. ,{col: "todd", val:input3.value}
  183. ,{col: "appyn", val:combo1.value}
  184. ,{col: "serflag", val:cmb_orddrid.value}]);
  185. var oParam = {};
  186. oParam.id = "TRMNE04702";
  187. oParam.service = "ercareapp.ERInRmOutRmMngt";
  188. oParam.method = "reqGetSerDiagList";
  189. oParam.inds = "req=ds_cond";
  190. oParam.outds = "ds_grd_serdiagflist=serdiaglist";
  191. oParam.async = false;
  192. oParam.callback = "cf_TRMNE04702";
  193. tranf_submit(oParam);
  194. }
  195. function cf_TRMNE04702(sSvcId, nErrorCode, sErrorMsg) {
  196. if(nErrorCode < 0) return;
  197. }
  198. function SPMNE04700_oninit(obj:Form, e:InitEventInfo)
  199. {
  200. frmf_initForm(obj);
  201. }
  202. function SPMNE04700_onload(obj:Form, e:LoadEventInfo)
  203. {
  204. grdf_initGrid(grd_serdiagflist);
  205. input4.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat(); //시작일자는 1개월 전
  206. input3.value = utlf_getCurrentDate(); //종료일자는 현재일자
  207. var arrParam = [{dsNm: "ds_init_M0757", cdGrpId: "M0757"}
  208. ]
  209. appf_getCodeList(arrParam);
  210. dsf_addDsItem(ds_init_M0757,"cdid","cdnm", "전체","-","above");
  211. cmb_orddrid.value = "-";
  212. //addComboInstance("/root/init/serdiagcls" , "cdid^cdnm", "-^전체", "M0757"); //응급유형 '전체'추가
  213. fReqGetSerDiagList();
  214. }
  215. function cmb_prid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  216. {
  217. var today = utlf_getCurrentDate();
  218. var idate = new Date();
  219. var prid = cmb_prid.value;
  220. if (prid =="1M") {
  221. var threeMDate = idate.getAddDate(-1, "M");
  222. input4.value = threeMDate.getDateFormat();
  223. input3.value = today;
  224. }else if (prid =="3M") {
  225. var threeMDate = idate.getAddDate(-3, "M");
  226. input4.value = threeMDate.getDateFormat();
  227. input3.value = today;
  228. } else if (prid =="6M") {
  229. var sixMDate = idate.getAddDate(-6, "M");
  230. input4.value = sixMDate.getDateFormat();
  231. input3.value = today;
  232. } else if (prid =="9M") {
  233. var nineMDate = idate.getAddDate(-9, "M");
  234. input4.value = nineMDate.getDateFormat();
  235. input3.value = today;
  236. } else if (prid =="1Y") {
  237. var oneYDate = idate.getAddDate(-1, "Y");
  238. input4.value = oneYDate.getDateFormat();
  239. input3.value = today;
  240. } else if (prid =="2Y") {
  241. var twoYDate = idate.getAddDate(-2, "Y");
  242. input4.value = twoYDate.getDateFormat();
  243. input3.value = today;
  244. }
  245. }
  246. function btn_req_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. fReqGetSerDiagList();
  249. }
  250. function button3_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. var curRow = ds_grd_serdiagflist.rowposition;
  253. if (curRow < 0) return;
  254. var pid = ds_grd_serdiagflist.getColumn(curRow, "pid");
  255. if(utlf_isNull(pid)){
  256. sysf_messageBox("통합기록조회를 검색할 환자를", "C002");
  257. return;
  258. }
  259. var wndobj = frmf_findPopup("SMMRI00400");
  260. if(!utlf_isNull(wndobj)){
  261. frmf_setParameter("SMMRI00400_param_pid", pid);
  262. wndobj.fInitalize();
  263. }else{
  264. frmf_setParameter("SMMRI00400_param_pid", pid);
  265. frmf_open("SMMRI00400","SMMRI00400","","","","","","","","","","","M");
  266. }
  267. }
  268. function button5_onclick(obj:Button, e:ClickEventInfo)
  269. {
  270. var curRow = ds_grd_serdiagflist.rowposition;
  271. if (curRow < 0) return;
  272. var pid = ds_grd_serdiagflist.getColumn(curRow, "pid");
  273. if(utlf_isNull(pid)){
  274. sysf_messageBox("통합결과조회를 검색할 환자를", "C002");
  275. return;
  276. }
  277. curExamRsltObj = frmf_findPopup("SMAER00800"); //활성화된 검사결과 화면 object loading
  278. if(!utlf_isNull(curExamRsltObj)){
  279. sysf_trace("curExamRsltObj = " + curExamRsltObj.name);
  280. curExamRsltObj.ds_singdata.setColumn(0,"srchpid", pid );
  281. var e = new ClickEventInfo;
  282. curExamRsltObj.frmf_inputEnterKey("group3.grp_sea.btn_srch", "onclick", e );
  283. } else {
  284. dsf_createDsRow("ds_temp_SMAER00800", [{col:"srchpid", type:"string", size:256, val:pid}]);
  285. var objArg = new Object();
  286. objArg.arg_ds_send_singdata = ds_temp_SMAER00800;
  287. frmf_open("SMAER00800", "SMAER00800", objArg, null, null, null, null, null, null, null, null, null, "M");
  288. }
  289. }
  290. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  291. {
  292. this.close();
  293. }
  294. function grd_serdiagflist_onheadclick(obj:Grid, e:GridClickEventInfo)
  295. {
  296. if (e.col != e.oldcol) grdf_clearSort(obj);
  297. grdf_gridSort(grd_serdiagflist,e);
  298. }
  299. ]]></Script>
  300. </Form>
  301. </FDL>