SMMNE15000_응급전용중환자실입원실환자재실기간연장환자관리대장.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE15000_응급전용중환자실입원실활자재실기간연장환자관리대장" classname="SMMNE15000_응급전용중환자실입원실활자재실기간연장환자관리대장" inheritanceid="" position="absolute 0 0 1200 764" titletext="응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장" oninit="SMMNE15000_oninit" onload="SMMNE15000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장" class="tit_1" position="absolute 0 0 395 25"/>
  8. <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 563 87">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_srch" taborder="15" text="조회" onclick="grp_search_btn_srch_onclick" class="btn1" position="absolute 443 7 499 27" anchor="top right"/>
  12. <Static id="caption5" text="내원일 :" class="search_name" position="absolute 10 33 88 53" anchor="default"/>
  13. <Calendar id="ipt_fromdd" taborder="16" autoselect="true" autoskip="true" class="input_essential" position="absolute 74 33 166 53" anchor="default"/>
  14. <Static id="caption8" text="~" position="absolute 168 33 183 53" style="font:Dotum,9,bold;" anchor="default"/>
  15. <Calendar id="ipt_todd" taborder="17" autoselect="true" class="input_essential" position="absolute 183 33 275 53" anchor="default"/>
  16. <Button id="btn_execl" taborder="18" text="엑셀" onclick="grp_search_btn_execl_onclick" class="btn7" position="absolute 500 7 556 27" anchor="top right"/>
  17. <Radio id="rdo_gubun" taborder="19" columncount="2" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="1" class="radio_search" position="absolute 83 7 228 27" anchor="default">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn" size="256"/>
  21. <Column id="datacolumn" size="256"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">1</Col>
  26. <Col id="datacolumn">중환자실</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">2</Col>
  30. <Col id="datacolumn">입원실</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 10 7 81 27" anchor="default"/>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Grid id="Grid_patlist" taborder="2" binddataset="ds_main_patlist" useinputpanel="false" position="absolute 0 92 563 764" anchor="all" autofitbandtype="body" autofittype="col" oncelldblclick="Grid_patlist_oncelldblclick">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="20"/>
  44. <Column size="60"/>
  45. <Column size="60"/>
  46. <Column size="70"/>
  47. <Column size="70"/>
  48. <Column size="60"/>
  49. <Column size="70"/>
  50. <Column size="70"/>
  51. <Column size="70"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="30" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell rowspan="2" taborder="undefined"/>
  60. <Cell col="1" rowspan="2" text="환자명" taborder="undefined"/>
  61. <Cell col="2" rowspan="2" text="등록번호" taborder="undefined"/>
  62. <Cell col="3" rowspan="2" text="입실일" taborder="undefined"/>
  63. <Cell col="4" rowspan="2" text="연장&#13;&#10;신청일" taborder="undefined"/>
  64. <Cell col="5" rowspan="2" text="연장&#13;&#10;신청자" taborder="undefined"/>
  65. <Cell col="6" rowspan="2" text="연장&#13;&#10;승인일" taborder="undefined"/>
  66. <Cell col="7" rowspan="2" text="예상&#13;&#10;퇴실일" taborder="undefined"/>
  67. <Cell col="8" rowspan="2" text="실제&#13;&#10;퇴실일" taborder="undefined"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell celltype="head" expr="expr:currow + 1"/>
  71. <Cell col="1" text="bind:hngnm"/>
  72. <Cell col="2" text="bind:pid"/>
  73. <Cell col="3" displaytype="normal" text="bind:inroomdd"/>
  74. <Cell col="4" displaytype="normal" text="bind:applydd"/>
  75. <Cell col="5" displaytype="normal" text="bind:applynm"/>
  76. <Cell col="6" displaytype="normal" style="align:left middle;" text="bind:approvaldt" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
  77. <Cell col="7" displaytype="normal" text="bind:expecoutdd"/>
  78. <Cell col="8" displaytype="normal" edittype="none" text="bind:outroomdd"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Shape id="line8" class="line_10" position="absolute 0 87 563 93" anchor="left top right"/>
  84. <Div id="ivw_loader" anchor="all" taborder="3" url="emr_medirecxp::SSMMR01100_서식로더.xfdl" position="absolute 564 32 1200 764"/>
  85. <Shape id="line2" class="line_10" position="absolute 565 24 1200 30" anchor="left top right"/>
  86. <Static id="caption7" text="기록작성" class="tit_2" position="absolute 565 8 676 24"/>
  87. <Button id="btn_signsave" taborder="4" text="인증저장" onclick="btn_signsave_onclick" class="btn5" position="absolute 1136 4 1200 23" anchor="top right"/>
  88. <Edit id="opt_patinfo" taborder="5" readonly="true" class="edt_transbg" position="absolute 640 6 1127 24" anchor="left top" style="font:Dotum,9,bold;"/>
  89. </Layout>
  90. </Layouts>
  91. <Bind>
  92. <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send_req" columnid="gubun"/>
  93. <BindItem id="item1" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
  94. <BindItem id="item2" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
  95. </Bind>
  96. <Objects>
  97. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="gubun" type="STRING" size="256" sumtext="1 : 중환자실, 2: 입원실"/>
  100. <Column id="fromdd" type="STRING" size="256" sumtext="조회기간"/>
  101. <Column id="todd" type="STRING" size="256" sumtext="조회기간"/>
  102. </ColumnInfo>
  103. <Rows>
  104. <Row/>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="roomnm" type="STRING" size="256"/>
  110. <Column id="bednm" type="STRING" size="256"/>
  111. <Column id="pid" type="STRING" size="256"/>
  112. <Column id="hngnm" type="STRING" size="256"/>
  113. <Column id="sexage" type="STRING" size="256"/>
  114. <Column id="indd" type="STRING" size="256"/>
  115. <Column id="cretno" type="STRING" size="256"/>
  116. <Column id="inroomdd" type="STRING" size="256"/>
  117. <Column id="outroomdd" type="STRING" size="256"/>
  118. <Column id="applydd" type="STRING" size="256"/>
  119. <Column id="applynm" type="STRING" size="256"/>
  120. <Column id="approvalnm" type="STRING" size="256"/>
  121. <Column id="approvaldt" type="STRING" size="256"/>
  122. <Column id="expecoutdd" type="STRING" size="256"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. <Dataset id="ds_cond_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="formcd" type="STRING" size="256"/>
  128. <Column id="formkind" type="STRING" size="256"/>
  129. <Column id="pid" type="STRING" size="256"/>
  130. <Column id="orddd" type="STRING" size="256"/>
  131. <Column id="cretno" type="STRING" size="256"/>
  132. <Column id="btnvisible" type="STRING" size="256"/>
  133. <Column id="btnenable" type="STRING" size="256"/>
  134. <Column id="unpreprec" type="STRING" size="256"/>
  135. <Column id="modalyn" type="STRING" size="256"/>
  136. <Column id="orddeptcd" type="STRING" size="256"/>
  137. <Column id="ioflag" type="STRING" size="256"/>
  138. <Column id="topyn" type="STRING" size="256"/>
  139. <Column id="formrecddenable" type="STRING" size="256"/>
  140. <Column id="formrecdd" type="STRING" size="256"/>
  141. <Column id="wardcd" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="formkind"/>
  146. <Col id="formcd"/>
  147. <Col id="pid"/>
  148. <Col id="orddd"/>
  149. <Col id="cretno"/>
  150. <Col id="btnvisible"/>
  151. <Col id="orddeptcd"/>
  152. <Col id="modalyn"/>
  153. <Col id="unpreprec"/>
  154. <Col id="btnenable"/>
  155. <Col id="ioflag"/>
  156. <Col id="topyn"/>
  157. <Col id="formrecdd"/>
  158. <Col id="formrecddenable"/>
  159. </Row>
  160. </Rows>
  161. </Dataset>
  162. </Objects>
  163. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  164. include "emr_medirecxp::MMR01100.xjs";
  165. function SMMNE15000_oninit(obj:Form, e:InitEventInfo)
  166. {
  167. frmf_initForm(obj);
  168. }
  169. function SMMNE15000_onload(obj:Form, e:LoadEventInfo)
  170. {
  171. ds_send_req.setColumn(0, "gubun", "1");
  172. ds_send_req.setColumn(0, "fromdd", utlf_getCurrentDate());
  173. ds_send_req.setColumn(0, "todd", utlf_getCurrentDate());
  174. grdf_setGridSort(Grid_patlist);
  175. }
  176. function grp_search_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  177. {
  178. fSearch();
  179. }
  180. function fSearch(nFlag) {
  181. if(utlf_diffDate(grp_search.ipt_fromdd.value, grp_search.ipt_todd.value) > 31){
  182. sysf_messageBox("조회 기간은 31일을 초과할 수 없습니다.");
  183. return;
  184. }
  185. var oParam = {};
  186. oParam.id = "SMMNE13001";
  187. oParam.service = "ercareapp.ERPatMngt";
  188. oParam.method = "reqERIntensiveCareUnitAndWardExtenstionApplicationList";
  189. oParam.inds = "req=ds_send_req";
  190. oParam.outds = "ds_main_patlist=patlist";
  191. oParam.async = true;
  192. tranf_submit(oParam);
  193. ds_main_patlist.rowposition = -1;
  194. if( utlf_isNull(nFlag) ){
  195. ivw_loader.ivw_base.url = "";
  196. lf_SetPatInfo(-1);
  197. }
  198. }
  199. function grp_search_btn_execl_onclick(obj:Button, e:ClickEventInfo)
  200. {
  201. grdf_exportExcel(Grid_patlist, "응급전용중환자실/입원실 환자 재실기간 연장 환자 관리 대장", "SheetName" , true, "" , "" , true);
  202. }
  203. function fRecordsearch() {
  204. // 16.12.07_프로그램 내에서 환자 기본정보에 대한 Parameter을 넘기더라도 우선적으로 상단정보를 가져가는 것을 막기위함.
  205. var nRow = ds_main_patlist.rowposition;
  206. var instcd = ds_main_patlist.getColumn(nRow, "instcd");
  207. var pid = ds_main_patlist.getColumn(nRow, "pid");
  208. var indd = ds_main_patlist.getColumn(nRow, "indd");
  209. var cretno = ds_main_patlist.getColumn(nRow, "cretno");
  210. var formrecseq = ds_main_patlist.getColumn(nRow, "formrecseq");
  211. var formcd = "";
  212. if( utlf_isNull(pid) || utlf_isNull(indd) || utlf_isNull(cretno) ){
  213. sysf_messageBox("환자가 선택되지 " , "E007");
  214. return;
  215. }
  216. ivw_loader.ivw_base.url = "";
  217. // 서식 로드
  218. var objArg = new Object();
  219. var vFormKind = "new";
  220. if(formrecseq != "N"){
  221. vFormKind = "rec";
  222. formcd = formrecseq;
  223. }
  224. else{
  225. sysf_messageBox("재실기간 연장 신청서가 작성되지 " , "E007");
  226. return;
  227. }
  228. ds_cond_formdata.clearData();
  229. ds_cond_formdata.addRow();
  230. ds_cond_formdata.setColumn(0, "formcd", formcd); // 서식목록 - linkcd, 기록목록 - formrecseq 컬럼값.
  231. ds_cond_formdata.setColumn(0, "formkind", vFormKind); // 서식목록 탭 - new , 기록목록 - rec
  232. ds_cond_formdata.setColumn(0, "btnvisible", false);
  233. ds_cond_formdata.setColumn(0, "pid", pid);
  234. ds_cond_formdata.setColumn(0, "orddd", indd);
  235. ds_cond_formdata.setColumn(0, "cretno", cretno);
  236. ds_cond_formdata.setColumn(0, "topyn", "N");
  237. ds_cond_formdata.setColumn(0, "formrecddenable", "N");
  238. objArg.ds_cond_formdata = ds_cond_formdata;
  239. lf_loadSMMMR01100(false, objArg);
  240. lf_SetPatInfo(nRow);
  241. }
  242. function btn_signsave_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. var grd_row = Grid_patlist.currentrow;
  245. if (grd_row >= 0) {
  246. if( utlf_isNull(ivw_loader.ivw_base.url) ){
  247. sysf_messageBox("선택한 기록이 존재하지 않습니다." , "E");
  248. return;
  249. }
  250. if( ivw_loader.fClickSave("Y") ) {
  251. fSearch(true);
  252. ds_main_patlist.selectRow(grd_row);
  253. ds_main_patlist.rowposition = grd_row;
  254. fRecordsearch();
  255. }
  256. } else {
  257. sysf_messageBox("환자를 선택하지" , "E007");
  258. return;
  259. }
  260. }
  261. /****************************************************************************************
  262. * Argument : 01.nRow : Grid rowposition
  263. * Description : 선택한 기록에 대한 환자정보
  264. ****************************************************************************************/
  265. function lf_SetPatInfo(nRow){
  266. if( !utlf_isNull(nRow) ){
  267. if( nRow == -1 ){
  268. opt_patinfo.value = "";
  269. return;
  270. }
  271. var grdDs = this.objects["ds_main_patlist"];
  272. var nPid = grdDs.getColumn(nRow, "pid");
  273. var nPatnm = grdDs.getColumn(nRow, "hngnm");
  274. var nSa = grdDs.getColumn(nRow, "sexage");
  275. var nRoomcd = grdDs.getColumn(nRow, "roomcd");
  276. opt_patinfo.value = "- " + nPid + " " + nPatnm + "(" + nSa + ") " + nRoomcd;
  277. }
  278. }
  279. function Grid_patlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  280. {
  281. fRecordsearch();
  282. }
  283. ]]></Script>
  284. </Form>
  285. </FDL>