SMPMC02100_방문객용 재원환자조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC02100_방문객용재원환자조회" classname="SMPMC02100_방문객용재원환자조회" inheritanceid="" position="absolute 0 0 1196 682" titletext="방문객용 재원환자조회" oninit="SMPMC02100_oninit" onload="SMPMC02100_onload" onkeydown="SMPMC02100_방문객용재원환자조회_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Static id="stt_titleText2" text="방문객용 재원환자 조회" onclick="caption00_onclick" position="absolute 0 0 180 25" class="tit_1"/>
  8. <Div id="div_search" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1195 65">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_search" taborder="14" text="조회" onclick="div_search_btn_search_onclick" class="btn1" position="absolute 1126 10 1182 30" anchor="top right"/>
  12. <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 11 82 31" anchor="default"/>
  13. <Static id="caption01" text="초기화시 F9버튼을 눌러 주세요!" visible="true" position="absolute 333 10 606 30" anchor="default" style="color:#0000ffff;font:Dotum,9,bold;"/>
  14. <Combo id="cmb_flag" taborder="18" value="1" text="환자 이름" codecolumn="codecolumn" datacolumn="datacolumn" index="0" onitemchanged="div_search_cmb_flag_onitemchanged" position="absolute 75 10 177 31" anchor="default" class="combo_essential">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn" size="256"/>
  18. <Column id="datacolumn" size="256"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">1</Col>
  23. <Col id="datacolumn">환자 이름</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">2</Col>
  27. <Col id="datacolumn">피보험자 이름</Col>
  28. </Row>
  29. </Rows>
  30. </Dataset>
  31. </Combo>
  32. <Edit id="search_data" taborder="19" imemode="hangul" onkeydown="div_search_ed_ipt_data_onkeydown" position="absolute 187 10 325 30" class="input_essential" anchor="default" autoselect="true"/>
  33. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 10 1110 32" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Static id="caption3" text="재원환자 리스트" class="tit_2" position="absolute 0 73 154 89"/>
  38. <Grid id="gd_PatientInfo" taborder="3" binddataset="ds_result_data" useinputpanel="false" position="absolute 0 94 1195 652" tabstop="true" tooltiptype="default" autosizingtype="none" anchor="all" cellsizingtype="col" scrollpixel="all" cellsizebandtype="allband" oncelldblclick="gd_PatientInfo_oncelldblclick">
  39. <Formats>
  40. <Format id="default">
  41. <Columns>
  42. <Column size="20" band="left"/>
  43. <Column size="61"/>
  44. <Column size="0"/>
  45. <Column size="65"/>
  46. <Column size="34"/>
  47. <Column size="109"/>
  48. <Column size="0"/>
  49. <Column size="110"/>
  50. <Column size="110"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="110"/>
  54. <Column size="102"/>
  55. <Column size="66"/>
  56. <Column size="110"/>
  57. <Column size="169"/>
  58. <Column size="70"/>
  59. <Column size="120"/>
  60. <Column size="120"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="24" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="재원상태"/>
  70. <Cell col="2" text="구분"/>
  71. <Cell col="3" text="환자명"/>
  72. <Cell col="4" text="나이"/>
  73. <Cell col="5" text="주민번호"/>
  74. <Cell col="6" text="사생활보호여부"/>
  75. <Cell col="7" text="사생활보호신청자"/>
  76. <Cell col="8" text="사생활보호대상자"/>
  77. <Cell col="9" text="사생활보호내용"/>
  78. <Cell col="10" text="사생활보호비고"/>
  79. <Cell col="11" text="병동"/>
  80. <Cell col="12" text="병실"/>
  81. <Cell col="13" text="병실위치"/>
  82. <Cell col="14" text="전화번호(내선)"/>
  83. <Cell col="15" text="진료과"/>
  84. <Cell col="16" text="성별"/>
  85. <Cell col="17" text="입원일"/>
  86. <Cell col="18" text="퇴원일"/>
  87. <Cell col="19" text="환자번호"/>
  88. </Band>
  89. <Band id="body">
  90. <Cell celltype="head" expr="expr:currow + 1"/>
  91. <Cell col="1" displaytype="normal" style="align:center;background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:inhospstatus" tooltiptype="none"/>
  92. <Cell col="2" style="color:EXPR(EXPR(privacyyn=='Y'?'#FF99CC':'#000000'));color2:EXPR(EXPR(privacyyn=='Y'?'#FF99CC':'#000000'));" text="bind:instcd"/>
  93. <Cell col="3" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:hngnm"/>
  94. <Cell col="4" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:age"/>
  95. <Cell col="5" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:rrgstno"/>
  96. <Cell col="6" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyyn"/>
  97. <Cell col="7" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyrequest"/>
  98. <Cell col="8" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacytarget" tooltiptype="bottom"/>
  99. <Cell col="9" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacytype"/>
  100. <Cell col="10" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyrmk"/>
  101. <Cell col="11" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:wardnm"/>
  102. <Cell col="12" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:roomnm"/>
  103. <Cell col="13" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:posinfonm"/>
  104. <Cell col="14" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:roomtel"/>
  105. <Cell col="15" style="align:left;background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:orddeptnm"/>
  106. <Cell col="16" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:sexnm"/>
  107. <Cell col="17" displaytype="date" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:indd" calendardisplaynulltype="none"/>
  108. <Cell col="18" displaytype="date" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:dschdd" calendardisplaynulltype="none"/>
  109. <Cell col="19" text="bind:pid"/>
  110. </Band>
  111. </Format>
  112. </Formats>
  113. </Grid>
  114. <Button id="btn_init" taborder="4" text="초기화" onclick="grp_btn_btn_init_onclick" class="btn4" position="absolute 1127 656 1195 678" anchor="right bottom" hotkey="F9"/>
  115. <ImageViewer id="ImageViewer00" taborder="5" position="absolute 125 70 144 89" style="background:#ff99ccff;border:1 solid black ;"/>
  116. <Static id="caption00" text="사생활 보호 요청환자입니다. 안내시 주의하시기 바랍니다!!!" visible="true" position="absolute 148 71 526 91" style="color:red;font:Dotum,9;"/>
  117. <Button id="btn_print" taborder="6" text="출력" class="btn6" position="absolute 1139 67 1195 89" onclick="btn_print_onclick" anchor="top right"/>
  118. <Button id="Button00" taborder="7" text="병문안객 기록" position="absolute 1037 67 1137 89" onclick="Button00_onclick" class="btn2" anchor="top right"/>
  119. <Shape id="line18" class="line_1" position="absolute 0 89 1195 95" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  120. </Layout>
  121. </Layouts>
  122. <Bind>
  123. <BindItem id="item0" compid="div_search.cmb_flag" propid="value" datasetid="ds_req_data" columnid="srchcondflag"/>
  124. <BindItem id="item1" compid="div_search.search_data" propid="value" datasetid="ds_req_data" columnid="srchcond"/>
  125. </Bind>
  126. <Objects>
  127. <Dataset id="ds_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="srchcondflag" type="STRING" size="1"/>
  130. <Column id="srchcond" type="STRING" size="256"/>
  131. <Column id="instcd" type="STRING" size="256"/>
  132. </ColumnInfo>
  133. <Rows>
  134. <Row>
  135. <Col id="srchcondflag">1</Col>
  136. <Col id="srchcond"/>
  137. <Col id="instcd"> 3333</Col>
  138. </Row>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_result_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="inhospstatus" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  144. <Column id="instcd" type="STRING" size="256"/>
  145. <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
  146. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  147. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  148. <Column id="roomnm" type="STRING" size="256" sumtext="병실명"/>
  149. <Column id="posinfonm" type="STRING" size="256" sumtext="위치정보"/>
  150. <Column id="roomtel" type="STRING" size="256" sumtext="병실전화번호"/>
  151. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  152. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  153. <Column id="sexnm" type="STRING" size="256"/>
  154. <Column id="age" type="STRING" size="256"/>
  155. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  156. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  157. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  158. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자(퇴원미수금일경우)"/>
  159. <Column id="pid" type="STRING" size="256" sumtext="환자의 고유ID"/>
  160. <Column id="privacyyn" type="STRING" size="256"/>
  161. <Column id="privacyrequest" type="STRING" size="256"/>
  162. <Column id="privacytarget" type="STRING" size="256"/>
  163. <Column id="privacytype" type="STRING" size="256"/>
  164. <Column id="privacyrmk" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. </Dataset>
  167. <Dataset id="ds_main_paper" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="instcd" type="STRING" size="256"/>
  170. <Column id="hngnm" type="STRING" size="256"/>
  171. <Column id="wardnm" type="STRING" size="256"/>
  172. <Column id="roomnm" type="STRING" size="256"/>
  173. <Column id="posinfonm" type="STRING" size="256"/>
  174. <Column id="roomtel" type="STRING" size="256"/>
  175. </ColumnInfo>
  176. <Rows>
  177. <Row/>
  178. </Rows>
  179. </Dataset>
  180. </Objects>
  181. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  182. var arErrorCode = new HashArray();
  183. function SMPMC02100_oninit(obj:Form, e:InitEventInfo)
  184. {
  185. frmf_initForm(obj);
  186. }
  187. function SMPMC02100_onload(obj:Form, e:LoadEventInfo)
  188. {
  189. // Grid 툴팁 세팅
  190. grdf_setToolTipBind(gd_PatientInfo);
  191. // 에디트박스에 포커스
  192. div_search.search_data.setFocus();
  193. }
  194. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. fSearch();
  197. }
  198. function fSearch()
  199. {
  200. //검색조건 콤보가 미선택 된 경우 알림
  201. var vaSrchCondFlag = ds_req_data.getColumn(0, "srchcondflag");
  202. if(vaSrchCondFlag < 1)
  203. {
  204. sysf_messageBox("검색조건을 정확히 ", "C001");
  205. return;
  206. }
  207. //이름을 입력안한 경우 알림
  208. var vaSearchDataLength = div_search.search_data.getLength();
  209. if(vaSearchDataLength < 1)
  210. {
  211. sysf_messageBox("이름을 ", "C001");
  212. div_search.search_data.setFocus();
  213. return;
  214. }
  215. //환자나 피보험자 성명이 1자인 경우 알림
  216. else if(vaSearchDataLength == 1)
  217. {
  218. if(vaSrchCondFlag == 1)
  219. {
  220. sysf_messageBox("환자성명 2자 이상", "C001");
  221. }
  222. else
  223. {
  224. sysf_messageBox("피보험자 성명을 2자 이상", "C001");
  225. }
  226. div_search.search_data.setFocus();
  227. return;
  228. }
  229. else
  230. {
  231. //do Nothing
  232. }
  233. var oParam = {};
  234. oParam.id = "SMPMC02101";
  235. oParam.service = "patinfomngtapp.VisitUsePatRef";
  236. oParam.method = "reqGetVisitUsePatRef";
  237. oParam.inds = "req=ds_req_data";
  238. oParam.outds = "ds_result_data=inhosppatlist";
  239. oParam.async = "false";
  240. oParam.callback = "cf_SMPMC02101";
  241. tranf_submit(oParam);
  242. ds_result_data.rowposition = -1;
  243. if( arErrorCode.pop("SMPMC02101") > -1 )
  244. {
  245. //조회 결과가 없는 경우 알림
  246. var vaRowCount = ds_result_data.getRowCount();
  247. if(vaRowCount <1)
  248. {
  249. sysf_messageBox("조회된 결과가", "I004");
  250. }
  251. }
  252. }
  253. function cf_SMPMC02101(sSvcId, nErrorCode, sErrorMsg)
  254. {
  255. arErrorCode.push(sSvcId, nErrorCode);
  256. }
  257. function div_search_ed_ipt_data_onkeydown(obj:Edit, e:KeyEventInfo)
  258. {
  259. //엔터키 누른 경우 조회 기능
  260. if(e.keycode == 13)
  261. {
  262. obj.updateToDataset();
  263. fSearch();
  264. obj.setSelect();
  265. }
  266. }
  267. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. //초기화로 에디트 박스 및 그리드 내용 삭제
  270. obj.setFocus();
  271. div_search.search_data.value = "";
  272. ds_result_data.clearData();
  273. }
  274. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. //조회 결과가 없는 경우 알림
  277. var vaRowCount = ds_result_data.getRowCount();
  278. if(vaRowCount <1)
  279. {
  280. sysf_messageBox("조회된 결과가", "I004");
  281. }
  282. else
  283. {
  284. fPrint();
  285. }
  286. }
  287. function fPrint()
  288. {
  289. //프린트 기능
  290. var objDOM = rptf_createDOM();
  291. rptf_setNodeListToDOM(objDOM, "/root/main/visitinpatlist", ds_result_data); // 데이터셋 1
  292. var objParam = new Object();
  293. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  294. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  295. rptf_exeReportPreview30(["RPPMC02100"],[objParam], option);
  296. }
  297. function SMPMC02100_방문객용재원환자조회_onkeydown(obj:Form, e:KeyEventInfo)
  298. {
  299. //초기화로 에디트 박스 및 그리드 내용 삭제
  300. if(e.keycode == '120')// f9누를 경우 초기화
  301. {
  302. div_search.search_data.value = "";
  303. ds_result_data.clearData();
  304. }
  305. }
  306. function gd_PatientInfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  307. {
  308. var row = gd_PatientInfo.currentrow;
  309. var sInstcd = ds_result_data.getColumn(row, "instcd");
  310. var sHngnm = ds_result_data.getColumn(row, "hngnm");
  311. var sWardnm = ds_result_data.getColumn(row, "wardnm");
  312. var sRoomnm = ds_result_data.getColumn(row, "roomnm");
  313. var sPosinfonm = ds_result_data.getColumn(row, "posinfonm");
  314. var sRoomtel = ds_result_data.getColumn(row, "roomtel");
  315. var oParam = {};
  316. oParam.id = "TRPMC02100";
  317. oParam.service = "patinfomngtapp.VisitUsePatRef";
  318. oParam.method = "reqGetVisitUsePatRef";
  319. oParam.inds = "req=ds_req_data";
  320. oParam.outds = "ds_result_data=inhosppatlist";
  321. oParam.async = false;
  322. //oParam.callback = "cf_TRPMC02100";
  323. tranf_submit(oParam);
  324. ds_main_paper.setColumn(0, "instcd" , sInstcd);
  325. ds_main_paper.setColumn(0, "hngnm" , sHngnm);
  326. ds_main_paper.setColumn(0, "wardnm" , sWardnm);
  327. ds_main_paper.setColumn(0, "roomnm" , sRoomnm);
  328. ds_main_paper.setColumn(0, "posinfonm" , sPosinfonm);
  329. ds_main_paper.setColumn(0, "roomtel" , sRoomtel);
  330. var objDOM = rptf_createDOM();
  331. rptf_setNodeListToDOM(objDOM, "/root/main/paper", ds_main_paper); // 데이터셋 1
  332. var objParam = new Object();
  333. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  334. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  335. rptf_exeReportPreview30(["RPPMC02200"],[objParam], option);
  336. //exeReportPreview("RPPMC02200", "XMLSTR", "","", "true","","","","","true");
  337. }
  338. function Button00_onclick(obj:Button, e:ClickEventInfo)
  339. {
  340. var row = gd_PatientInfo.currentrow;
  341. var sPid = ds_result_data.getColumn(row, "pid");
  342. if (utlf_isNull(sPid)) {
  343. sysf_messageBox("환자가 선택되지 않았습니다.", "C000");
  344. return;
  345. }
  346. frmf_setParameter("SMPMC02101_PID", sPid);
  347. frmf_setParameter("SMPMC02101_HNGNM", ds_result_data.getColumn(row, "hngnm"));
  348. frmf_setParameter("SMPMC02101_INDD", ds_result_data.getColumn(row, "indd"));
  349. frmf_setParameter("SMPMC02101_CRETNO", ds_result_data.getColumn(row, "cretno"));
  350. frmf_setParameter("SMPMC02101_ROOMCD", ds_result_data.getColumn(row, "roomcd"));
  351. frmf_setParameter("SMPMC02101_TYPE", "I");
  352. // 병문안객기록화면
  353. frmf_modal("SMPMC02101", "SMPMC02101", '', "", '', '', '', "", "", "", "", "", "M");
  354. }
  355. ]]></Script>
  356. </Form>
  357. </FDL>