SPMNP06100_환자조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP06100" position="absolute 0 0 518 343" titletext="수술환자기초정보조회" oninit="SPMNP06100_oninit" onload="SPMNP06100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 518 316" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 518 35" id="group2" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static text="조회구분 :" position="absolute 5 9 86 26" id="caption2" class="search_name"/>
  14. <Button position="absolute 445 7 501 29" id="btn_search" class="btn1" taborder="6" text="조회" onclick="group3_group2_btn_search_onclick"/>
  15. <Shape position="absolute 431 7 437 29" linetype="vertical" id="line13" class="line_4"/>
  16. <Radio position="absolute 85 8 215 28" id="rdo_refflag" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" onitemchanged="group3_group2_rdo_refflag_onitemchanged">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">1</Col>
  25. <Col id="datacolumn">환자명</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">2</Col>
  29. <Col id="datacolumn">등록번호</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Radio>
  34. <Static text="조회조건 :" position="absolute 225 9 301 26" id="caption3" class="search_name"/>
  35. <Edit position="absolute 305 8 420 27" id="ipt_refnm" onkeyup="group3_group2_ipt_refnm_onkeyup" autoselect="true"/>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Static text="인적사항" position="absolute 0 44 95 60" id="caption1" class="tit_2"/>
  40. <Shape position="absolute 0 60 517 66" linetype="horizontal" id="line1" class="line_10"/>
  41. <Grid position="absolute 0 65 517 295" id="grd_patinfolist" taborder="7" binddataset="ds_main_patinfo_patinfolist" oncelldblclick="group3_grd_patinfolist_oncelldblclick">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="87"/>
  46. <Column size="90"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="0"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell text="등록번호"/>
  65. <Cell col="1" text="한글이름"/>
  66. <Cell col="2" colspan="2" text="주민등록번호" taborder="undefined"/>
  67. <Cell col="4" text="주민번호hidden"/>
  68. <Cell col="5" text="집전화번호"/>
  69. <Cell col="6" text="휴대전화"/>
  70. <Cell col="7" text="우편번호"/>
  71. <Cell col="8" text="우편번호"/>
  72. <Cell col="9" text="상세주소"/>
  73. <Cell col="10" text="병동코드"/>
  74. <Cell col="11" text="부서명"/>
  75. <Cell col="12" text="병실코드"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell text="bind:pid"/>
  79. <Cell col="1" text="bind:patnm"/>
  80. <Cell col="2" text="bind:rrgstno1"/>
  81. <Cell col="3" text="bind:rrgstno2visible"/>
  82. <Cell col="4" text="bind:rrgstno2"/>
  83. <Cell col="5" text="bind:homeTel"/>
  84. <Cell col="6" text="bind:mpphontel"/>
  85. <Cell col="7" text="bind:zipcd1"/>
  86. <Cell col="8" text="bind:zipcd2"/>
  87. <Cell col="9" text="bind:detladdr"/>
  88. <Cell col="10" text="bind:wardcd"/>
  89. <Cell col="11" text="bind:deptnm"/>
  90. <Cell col="12" text="bind:roomcd"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. <Div position="absolute 0 316 518 343" id="group1" scrollbars="autoboth">
  99. <Layouts>
  100. <Layout>
  101. <Button position="absolute 402 5 458 27" id="btn_confirm" class="btn4" taborder="8" text="확인" onclick="group1_btn_confirm_onclick"/>
  102. <Button position="absolute 461 5 517 27" id="btn_cancel" class="btn4" taborder="9" text="취소" onclick="group1_btn_cancel_onclick"/>
  103. </Layout>
  104. </Layouts>
  105. </Div>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="pid" type="STRING"/>
  112. <Column id="patnm" type="STRING"/>
  113. <Column id="rrgstno1" type="STRING"/>
  114. <Column id="rrgstno2visible" type="STRING"/>
  115. <Column id="rrgstno2" type="STRING"/>
  116. <Column id="homeTel" type="STRING"/>
  117. <Column id="mpphontel" type="STRING"/>
  118. <Column id="zipcd1" type="STRING"/>
  119. <Column id="zipcd2" type="STRING"/>
  120. <Column id="detladdr" type="STRING"/>
  121. <Column id="wardcd" type="STRING"/>
  122. <Column id="deptnm" type="STRING"/>
  123. <Column id="roomcd" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="refflag" type="STRING" size="256" sumtext="조건구분"/>
  129. <Column id="refnm" type="STRING" size="256" sumtext="조건명"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row/>
  133. </Rows>
  134. </Dataset>
  135. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="refnm" type="STRING" size="256"/>
  138. <Column id="refflag" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row/>
  142. </Rows>
  143. </Dataset>
  144. </Objects>
  145. <Bind>
  146. <BindItem id="item0" compid="group3.group2.rdo_refflag" propid="value" datasetid="ds_main_cond" columnid="refflag"/>
  147. <BindItem id="item1" compid="group3.group2.ipt_refnm" propid="value" datasetid="ds_main_cond" columnid="refnm"/>
  148. </Bind>
  149. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  150. * System Name : 경대 의료정보시스템
  151. * Job Name : emr_opanstxp -> SPMNP06100
  152. * Creator : yjh
  153. * Make Date : 2016-03-31
  154. * Description :
  155. *---------------------------------------------------------------------------------------
  156. * Modify Date Modifier Modify Description
  157. *---------------------------------------------------------------------------------------
  158. * 2016-03-31 yjh TF->XP
  159. *
  160. *---------------------------------------------------------------------------------------
  161. ****************************************************************************************/
  162. //=======================================================================================
  163. // Lib Include
  164. //---------------------------------------------------------------------------------------
  165. include "com_commonxp::comm_main.xjs";
  166. //=======================================================================================
  167. // Global Form Variable
  168. //---------------------------------------------------------------------------------------
  169. //=======================================================================================
  170. // Function
  171. //---------------------------------------------------------------------------------------
  172. function fDblClick(pRow) {
  173. var iParam="";
  174. var iNode = "ds_main_patinfo_patinfolist";
  175. var iParam_pid = ds_main_patinfo_patinfolist.getColumn(pRow, "pid");
  176. var iParam_patnm = ds_main_patinfo_patinfolist.getColumn(pRow, "patnm");
  177. var iParam_rrgstno1 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno1");
  178. var iParam_rrgstno2 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno2");
  179. var iParam_hometel = ds_main_patinfo_patinfolist.getColumn(pRow, "hometel");
  180. var iParam_mpphontel = ds_main_patinfo_patinfolist.getColumn(pRow, "mpphontel");
  181. var iParam_zipcd1 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd1");
  182. var iParam_zipcd2 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd2");
  183. var iParam_detladdr = ds_main_patinfo_patinfolist.getColumn(pRow, "detladdr");
  184. var iParam_wardcd = ds_main_patinfo_patinfolist.getColumn(pRow, "wardcd");
  185. var iParam_roomcd = ds_main_patinfo_patinfolist.getColumn(pRow, "roomcd");
  186. var iParam_patsearflag = "2";//환자번호 조회로 셋팅(조건명에 등록번호가 들어가므로)
  187. iParam = iParam_pid +"|"+ iParam_patnm +"|"
  188. + iParam_rrgstno1 +"|"+ iParam_rrgstno2 +"|"
  189. + iParam_hometel +"|"+ iParam_mpphontel +"|"
  190. + iParam_zipcd1 +"|"+ iParam_zipcd2 +"|"
  191. + iParam_detladdr +"|"+ iParam_wardcd +"|"
  192. + iParam_roomcd +"|"+ iParam_patsearflag;
  193. opener.frmf_setParameter("SendData", iParam);
  194. opener.frmf_setParameter("pid", iParam_pid);
  195. opener.frmf_setParameter("patnm", iParam_patnm);
  196. close();
  197. }
  198. //=======================================================================================
  199. // Event
  200. //---------------------------------------------------------------------------------------
  201. /****************************************************************************************
  202. * Components : Form
  203. * Components ID : SPMNP06100
  204. * Event : oninit
  205. * Argument : 01.obj : Object Event has occurred
  206. * : 02.e : Event Object
  207. * Description : 화면 처음 초기화시
  208. ****************************************************************************************/
  209. function SPMNP06100_oninit(obj:Form, e:InitEventInfo)
  210. {
  211. frmf_initForm(obj); //폼 초기화
  212. }
  213. /****************************************************************************************
  214. * Components : Form
  215. * Components ID : SPMNP06100
  216. * Event : onload
  217. * Argument : 01.obj : Object Event has occurred
  218. * : 02.e : Event Object
  219. * Description : 화면 로딩 완료시
  220. ****************************************************************************************/
  221. function SPMNP06100_onload(obj:Form, e:LoadEventInfo)
  222. {
  223. ds_main_cond.setColumn(0, "refflag", "1");
  224. var refnm = "";
  225. if( !utlf_isNull(opener) ){
  226. refnm = opener.frmf_getParameter("refnm");
  227. }
  228. if( utlf_isNull(refnm) ){
  229. group3.group2.ipt_refnm.setFocus();
  230. group3.group2.ipt_refnm.imemode = "hangul";
  231. }else {//상위 페이지에서 검색어를 치고 들어온경우
  232. ds_main_cond.setColumn(0, "refnm", refnm);
  233. ds_send_reqdata.copyRow(0, ds_main_cond, 0);
  234. var oParam = {};
  235. oParam.id = "TRMNP06101";
  236. oParam.service = "opanstapp.OpAnstDscMngt";
  237. oParam.method = "reqGetPatInfo";
  238. oParam.inds = "req=ds_send_reqdata";
  239. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  240. oParam.async = false;
  241. oParam.callback = "cf_TRMNP06101";
  242. tranf_submit(oParam);
  243. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  244. sysf_messageBox("조회된 결과가", "I004");
  245. group3.group2.ipt_refnm.setFocus();
  246. }
  247. }
  248. }
  249. function cf_TRMNP06101(sSvcId, nErrorCode, sErrorMsg) {
  250. if(nErrorCode < 0) return;
  251. ds_main_patinfo_patinfolist.addColumn("zipcd1", "string");
  252. ds_main_patinfo_patinfolist.addColumn("zipcd2", "string");
  253. ds_main_patinfo_patinfolist.addColumn("detladdr", "string");
  254. ds_main_patinfo_patinfolist.addColumn("wardcd", "string");
  255. ds_main_patinfo_patinfolist.addColumn("roomcd", "string");
  256. }
  257. /****************************************************************************************
  258. * Components : Radio
  259. * Components ID : rdo_refflag
  260. * Event : onitemchanged
  261. * Argument : 01.obj : Object Event has occurred
  262. * : 02.e : Event Object
  263. * Description : 라디오 값 변경시
  264. ****************************************************************************************/
  265. function group3_group2_rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  266. {
  267. group3.group2.ipt_refnm.setFocus();
  268. }
  269. /****************************************************************************************
  270. * Components : Edit
  271. * Components ID : ipt_refnm
  272. * Event : onkeyup
  273. * Argument : 01.obj : Object Event has occurred
  274. * : 02.e : Event Object
  275. * Description : 에디트 키 입력시
  276. ****************************************************************************************/
  277. function group3_group2_ipt_refnm_onkeyup(obj:Edit, e:KeyEventInfo)
  278. {
  279. if( e.keycode == 13 ){
  280. obj.updateToDataset();
  281. group3.group2.btn_search.click();
  282. }
  283. }
  284. /****************************************************************************************
  285. * Components : Button
  286. * Components ID : btn_search
  287. * Event : onclick
  288. * Argument : 01.obj : Object Event has occurred
  289. * : 02.e : Event Object
  290. * Description : 조회버튼 클릭시
  291. ****************************************************************************************/
  292. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. var refnm = ds_main_cond.getColumn(0, "refnm");
  295. var refflag = ds_main_cond.getColumn(0, "refflag");
  296. var length = refnm.length;
  297. if( refflag == "1" ) {
  298. if( length < 2 ) {
  299. sysf_messageBox("검색어는 2자리 이상", "E008");
  300. group3.group2.ipt_refnm.setFocus();
  301. }else {
  302. ds_send_reqdata.copyRow(0, ds_main_cond, 0);
  303. var oParam = {};
  304. oParam.id = "TRMNP06101";
  305. oParam.service = "opanstapp.OpAnstDscMngt";
  306. oParam.method = "reqGetPatInfo";
  307. oParam.inds = "req=ds_send_reqdata";
  308. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  309. oParam.async = false;
  310. oParam.callback = "cf_TRMNP06101";
  311. tranf_submit(oParam);
  312. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  313. sysf_messageBox("조회된 결과가", "I004");
  314. group3.group2.ipt_refnm.setFocus();
  315. }
  316. }
  317. }else if( refflag == "2" ) {
  318. if( length < 4 ) {
  319. sysf_messageBox("검색어는 4자리 이상", "E008");
  320. group3.group2.ipt_refnm.setFocus();
  321. }else {
  322. ds_send_reqdata.copyRow(0, ds_main_cond, 0);
  323. var oParam = {};
  324. oParam.id = "TRMNP06101";
  325. oParam.service = "opanstapp.OpAnstDscMngt";
  326. oParam.method = "reqGetPatInfo";
  327. oParam.inds = "req=ds_send_reqdata";
  328. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  329. oParam.async = false;
  330. oParam.callback = "cf_TRMNP06101";
  331. tranf_submit(oParam);
  332. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  333. sysf_messageBox("조회된 결과가", "I004");
  334. group3.group2.ipt_refnm.setFocus();
  335. }
  336. }
  337. }
  338. }
  339. /****************************************************************************************
  340. * Components : Grid
  341. * Components ID : grd_patinfolist
  342. * Event : oncelldblclick
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description : 그리드 셀 더블클릭시
  346. ****************************************************************************************/
  347. function group3_grd_patinfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  348. {
  349. var iRow = -1;
  350. iRow = group3.grd_patinfolist.currentrow;
  351. if(iRow < 0)
  352. {
  353. sysf_messageBox("리스트에서 선택한 것이", "I004");
  354. return;
  355. }else
  356. {
  357. fDblClick(iRow);
  358. }
  359. }
  360. /****************************************************************************************
  361. * Components : Button
  362. * Components ID : btn_cancel
  363. * Event : onclick
  364. * Argument : 01.obj : Object Event has occurred
  365. * : 02.e : Event Object
  366. * Description : 취소버튼 클릭시
  367. ****************************************************************************************/
  368. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  369. {
  370. close();
  371. }
  372. /****************************************************************************************
  373. * Components : Button
  374. * Components ID : btn_confirm
  375. * Event : onclick
  376. * Argument : 01.obj : Object Event has occurred
  377. * : 02.e : Event Object
  378. * Description : 확인버튼 클릭시
  379. ****************************************************************************************/
  380. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. var iRow = -1;
  383. iRow = group3.grd_patinfolist.currentrow;
  384. if(iRow < 0)
  385. {
  386. sysf_messageBox("리스트에서 선택한 것이", "I004");
  387. return;
  388. }else
  389. {
  390. fDblClick(iRow);
  391. }
  392. }
  393. ]]></Script>
  394. </Form>
  395. </FDL>