SMMNB00700_환자조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNB00700" position="absolute 0 0 520 335" titletext="환자기초정보조회" oninit="SMMNB00700_oninit" onload="SMMNB00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 518 298" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 518 35" id="group2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 517 35" id="roundrect1" type="roundrectangle" anchor="default"/>
  14. <Static text="조회구분 :" position="absolute 5 9 76 26" id="caption2" class="search_name" anchor="default"/>
  15. <Button position="absolute 445 7 501 29" id="btn_search" class="btn1" taborder="6" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
  16. <Shape position="absolute 431 7 437 29" linetype="vertical" id="line13" class="line_4" style="border:0 none #ffe4bbff ;" anchor="default"/>
  17. <Radio position="absolute 80 7 212 27" id="rdo_refflag" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_refflag_onitemchanged" anchor="default">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  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 text="조회조건 :" position="absolute 238 9 309 26" id="caption3" class="search_name" anchor="default"/>
  36. <Edit position="absolute 315 8 430 27" id="ipt_refnm" anchor="default" autoselect="true" onkeyup="group3_group2_ipt_refnm_onkeyup"/>
  37. </Layout>
  38. </Layouts>
  39. </Div>
  40. <Static text="인적사항" position="absolute 0 45 95 61" id="caption1" class="tit_2" anchor="default"/>
  41. <Shape position="absolute 0 61 517 67" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  42. <Grid position="absolute 0 65 517 295" id="grd_patinfolist" taborder="7" binddataset="ds_main_patinfo_patinfolist" oncelldblclick="group3_grd_patinfolist_oncelldblclick" anchor="default">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="95"/>
  47. <Column size="100"/>
  48. <Column size="60"/>
  49. <Column size="60"/>
  50. <Column size="0"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="등록번호"/>
  66. <Cell col="1" text="한글이름"/>
  67. <Cell col="2" colspan="2" text="주민등록번호"/>
  68. <Cell col="4" text="주민번호hidden"/>
  69. <Cell col="5" text="집전화번호"/>
  70. <Cell col="6" text="휴대전화"/>
  71. <Cell col="7" text="우편번호"/>
  72. <Cell col="8" text="우편번호"/>
  73. <Cell col="9" text="상세주소"/>
  74. <Cell col="10" text="병동코드"/>
  75. <Cell col="11" text="부서명"/>
  76. <Cell col="12" text="병실코드"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell style="align:center middle;" text="bind:pid"/>
  80. <Cell col="1" style="align:center middle;" text="bind:patnm"/>
  81. <Cell col="2" style="align:center middle;" text="bind:rrgstno1"/>
  82. <Cell col="3" style="align:center middle;" text="bind:rrgstno2visible"/>
  83. <Cell col="4" text="bind:rrgstno2"/>
  84. <Cell col="5" style="align:center middle;" text="bind:homeTel"/>
  85. <Cell col="6" style="align:center middle;" text="bind:mpphontel"/>
  86. <Cell col="7" text="bind:zipcd1"/>
  87. <Cell col="8" text="bind:zipcd2"/>
  88. <Cell col="9" text="bind:detladdr"/>
  89. <Cell col="10" text="bind:wardcd"/>
  90. <Cell col="11" text="bind:deptnm"/>
  91. <Cell col="12" text="bind:roomcd"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. </Layout>
  97. </Layouts>
  98. </Div>
  99. <Div position="absolute 0 306 518 328" id="group1" scrollbars="autoboth">
  100. <Layouts>
  101. <Layout>
  102. <Button position="absolute 402 0 458 22" id="btn_confirm" class="btn4" taborder="8" text="확인" onclick="group1_btn_confirm_onclick" anchor="default"/>
  103. <Button position="absolute 461 0 517 22" id="btn_cancel" class="btn4" taborder="9" text="취소" onclick="group1_btn_cancel_onclick" anchor="default"/>
  104. </Layout>
  105. </Layouts>
  106. </Div>
  107. </Layout>
  108. </Layouts>
  109. <Objects>
  110. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="pid" type="STRING" size="256"/>
  113. <Column id="patnm" type="STRING" size="256"/>
  114. <Column id="rrgstno1" type="STRING" size="256"/>
  115. <Column id="rrgstno2visible" type="STRING" size="256"/>
  116. <Column id="rrgstno2" type="STRING" size="256"/>
  117. <Column id="homeTel" type="STRING" size="256"/>
  118. <Column id="mpphontel" type="STRING" size="256"/>
  119. <Column id="zipcd1" type="STRING" size="256"/>
  120. <Column id="zipcd2" type="STRING" size="256"/>
  121. <Column id="detladdr" type="STRING" size="256"/>
  122. <Column id="wardcd" type="STRING" size="256"/>
  123. <Column id="deptnm" type="STRING" size="256"/>
  124. <Column id="roomcd" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. <Rows>
  127. <Row>
  128. <Col id="pid"/>
  129. <Col id="patnm"/>
  130. <Col id="rrgstno1"/>
  131. <Col id="rrgstno2visible"/>
  132. <Col id="rrgstno2"/>
  133. <Col id="homeTel"/>
  134. <Col id="mpphontel"/>
  135. <Col id="zipcd1"/>
  136. <Col id="zipcd2"/>
  137. <Col id="detladdr"/>
  138. <Col id="wardcd"/>
  139. <Col id="deptnm"/>
  140. <Col id="roomcd"/>
  141. </Row>
  142. </Rows>
  143. </Dataset>
  144. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="refflag" type="STRING" size="256"/>
  147. <Column id="refnm" type="STRING" size="256"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row/>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  154. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  156. </Objects>
  157. <Bind>
  158. <BindItem id="item0" compid="group3.group2.rdo_refflag" propid="value" datasetid="ds_main_cond" columnid="refflag"/>
  159. <BindItem id="item1" compid="group3.group2.ipt_refnm" propid="value" datasetid="ds_main_cond" columnid="refnm"/>
  160. </Bind>
  161. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  162. * System Name :
  163. * Job Name :
  164. * Creator :
  165. * Make Date : 2015-11-13
  166. * Description :
  167. *---------------------------------------------------------------------------------------
  168. * Modify Date Modifier Modify Description
  169. *---------------------------------------------------------------------------------------
  170. * 2015-11-13 Live Converter TF->XP
  171. *
  172. *---------------------------------------------------------------------------------------
  173. ****************************************************************************************/
  174. include "com_commonxp::comm_main.xjs";
  175. /* -------------------------------------------------------*/
  176. /* model.getValue(); 를 함수로 만들었습니다. */
  177. /* param1 : node는 grid의 xPath입니다. */
  178. /* param2 : row는 grid에서 선택한 row값입니다. */
  179. /* param3 : element는 getvalue할 해당 element 명입니다. */
  180. /* */
  181. /* 해당 getvalue값을 return 해줍니다. */
  182. /* return 하지 않으면 해당값을 가져올 수 없습니다. */
  183. /* -------------------------------------------------------*/
  184. /*fDblClick*/
  185. function fDblClick(pRow) {
  186. var iParam="";
  187. var iParam_pid = ds_main_patinfo_patinfolist.getColumn(pRow, "pid");
  188. var iParam_patnm = ds_main_patinfo_patinfolist.getColumn(pRow, "patnm");
  189. var iParam_rrgstno1 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno1");
  190. var iParam_rrgstno2 = ds_main_patinfo_patinfolist.getColumn(pRow, "rrgstno2");
  191. var iParam_hometel = ds_main_patinfo_patinfolist.getColumn(pRow, "hometel");
  192. var iParam_mpphontel = ds_main_patinfo_patinfolist.getColumn(pRow, "mpphontel");
  193. var iParam_zipcd1 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd1");
  194. var iParam_zipcd2 = ds_main_patinfo_patinfolist.getColumn(pRow, "zipcd2");
  195. var iParam_detladdr = ds_main_patinfo_patinfolist.getColumn(pRow, "detladdr");
  196. var iParam_wardcd = ds_main_patinfo_patinfolist.getColumn(pRow, "wardcd");
  197. var iParam_roomcd = ds_main_patinfo_patinfolist.getColumn(pRow, "roomcd");
  198. var iParam_patsearflag = "2";//환자번호 조회로 셋팅(조건명에 등록번호가 들어가므로)
  199. iParam = iParam_pid +"|"+ iParam_patnm +"|"
  200. + iParam_rrgstno1 +"|"+ iParam_rrgstno2 +"|"
  201. + iParam_hometel +"|"+ iParam_mpphontel +"|"
  202. + iParam_zipcd1 +"|"+ iParam_zipcd2 +"|"
  203. + iParam_detladdr +"|"+ iParam_wardcd +"|"
  204. + iParam_roomcd +"|"+ iParam_patsearflag;
  205. opener.frmf_setParameter("NoSendData", "N");
  206. opener.frmf_setParameter("SendData" , iParam);
  207. this.close();
  208. }
  209. /*fCancle*/
  210. function fCancle(){
  211. opener.frmf_setParameter("NoSendData", "Y");
  212. this.close();
  213. }
  214. /*SMMNB00700_oninit*/
  215. function SMMNB00700_oninit(obj:Form, e:InitEventInfo)
  216. {
  217. frmf_initForm(obj);
  218. }
  219. /*SMMNB00700_onload*/
  220. function SMMNB00700_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. try{
  223. ds_main_cond.copyData(arg_ds_main_cond);
  224. }catch(e){
  225. sysf_catchTrace(e);
  226. }
  227. var refnm = opener.frmf_getParameter("refnm");
  228. var srchflag = opener.frmf_getParameter("srchflag");
  229. if( utlf_isNull(refnm) ) {
  230. group3.group2.ipt_refnm.setFocus();
  231. group3.group2.ipt_refnm.imemode = "hangul";
  232. }else {//상위 페이지에서 검색어를 치고 들어온경우
  233. ds_main_patinfo_patinfolist.clearData();
  234. dsf_makeValue(ds_main_cond, "refnm", "string", refnm);
  235. ds_send_reqdata.copyData(ds_main_cond);
  236. var oParam = {};
  237. oParam.id = "TRMNB00701";
  238. oParam.service = "wardcareapp.TranMngt";
  239. oParam.method = "reqGetPatInfo";
  240. oParam.inds = "reqdata=ds_send_reqdata";
  241. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  242. oParam.async = false;
  243. tranf_submit(oParam);
  244. var listcnt = ds_main_patinfo_patinfolist.rowcount;
  245. if(srchflag == "Y"){ // 등록번호로 조회하여 사용자의 별도의 클릭없이 조회된 환자로 설정하여 리턴_20100504
  246. if(listcnt > 0){
  247. fDblClick(0); // 리스트더블클릭
  248. }else{
  249. fCancle(); // 취소
  250. return;
  251. }
  252. }
  253. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  254. sysf_messageBox("조회된 결과가", "I004");
  255. group3.group2.ipt_refnm.setFocus();
  256. }
  257. }
  258. }
  259. /*group3_group2_btn_search_onclick*/
  260. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. dsf_makeValue(ds_main_cond, "refnm", "string", group3.group2.ipt_refnm.value);
  263. //ds_main_cond.setColumn(0, "refnm", group3.group2.ipt_refnm.value);
  264. var refnm = group3.group2.ipt_refnm.value;
  265. var refflag = ds_main_cond.getColumn(0, "refflag");
  266. var length = refnm.length;
  267. if( refflag == "1" ) {
  268. if( length < 2 ) {
  269. sysf_messageBox("검색어는 2자리 이상", "E008");
  270. group3.group2.ipt_refnm.setFocus();
  271. }else {
  272. ds_send_reqdata.copyData(ds_main_cond);
  273. var oParam = {};
  274. oParam.id = "TRMNB00701";
  275. oParam.service = "wardcareapp.TranMngt";
  276. oParam.method = "reqGetPatInfo";
  277. oParam.inds = "reqdata=ds_send_reqdata";
  278. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  279. oParam.async = false;
  280. tranf_submit(oParam);
  281. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  282. sysf_messageBox("조회된 결과가", "I004");
  283. group3.group2.ipt_refnm.setFocus();
  284. }
  285. }
  286. }else if( refflag == "2" ) {
  287. if( length < 4 ) {
  288. sysf_messageBox("검색어는 4자리 이상", "E008");
  289. group3.group2.ipt_refnm.setFocus();
  290. }else {
  291. ds_send_reqdata.copyData(ds_main_cond);
  292. var oParam = {};
  293. oParam.id = "TRMNB00701";
  294. oParam.service = "wardcareapp.TranMngt";
  295. oParam.method = "reqGetPatInfo";
  296. oParam.inds = "reqdata=ds_send_reqdata";
  297. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  298. oParam.async = false;
  299. tranf_submit(oParam);
  300. if( ds_main_patinfo_patinfolist.rowcount == 0 ){
  301. sysf_messageBox("조회된 결과가", "I004");
  302. group3.group2.ipt_refnm.setFocus();
  303. }
  304. }
  305. }
  306. }
  307. /*group3_group2_rdo_refflag_onitemchanged*/
  308. function group3_group2_rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  309. {
  310. group3.group2.ipt_refnm.setFocus();
  311. }
  312. /*group3_grd_patinfolist_oncelldblclick*/
  313. function group3_grd_patinfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  314. {
  315. var iRow = -1;
  316. iRow = ds_main_patinfo_patinfolist.rowposition;
  317. if(iRow < 0)
  318. {
  319. sysf_messageBox("리스트에서 선택한 것이", "I004");
  320. return;
  321. }else
  322. {
  323. fDblClick(iRow);
  324. }
  325. }
  326. /*group1_btn_confirm_onclick*/
  327. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. var iRow = -1;
  330. iRow = ds_main_patinfo_patinfolist.rowposition;
  331. if(iRow < 0)
  332. {
  333. sysf_messageBox("리스트에서 선택한 것이", "I004");
  334. return;
  335. }else
  336. {
  337. fDblClick(iRow);
  338. }
  339. }
  340. /*group1_btn_cancel_onclick*/
  341. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  342. {
  343. fCancle();
  344. }
  345. /*group3_group2_ipt_refnm_onkeyup*/
  346. function group3_group2_ipt_refnm_onkeyup(obj:Edit, e:KeyEventInfo)
  347. {
  348. if(e.keycode == "13") {
  349. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  350. }
  351. }
  352. ]]></Script>
  353. </Form>
  354. </FDL>