SPPMC05800_지인환자조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC05800" position="absolute 0 0 816 400" titletext="환자기초정보조회" onload="SPPMC05800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="7" position="absolute 0 0 798 35" class="div_SA"/>
  8. <Button id="btn_search" class="btn1_letter2" taborder="5" position="absolute 731 7 787 29" style="" text="조회" onclick="btn_search_onclick"/>
  9. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 717 7 720 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
  10. <Edit id="ipt_hngnm" class="input_search" taborder="1" position="absolute 90 8 190 27" style="" anchor="default" onkeypress="ipt_hngnm_onkeypress"/>
  11. <Static id="caption4" class="search_name" position="absolute 11 9 84 26" style="" text="환자명 :"/>
  12. <Static id="caption1" class="tit_2" position="absolute 5 44 100 61" style="" text="인적사항"/>
  13. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 61 800 65" style="" anchor="default"/>
  14. <Grid id="grd_patinfo" binddataset="ds_main_patinfo_patinfolist" position="absolute 0 65 800 350" style="" oncelldblclick="grd_patinfo_oncelldblclick" onkeypress="grd_patinfo_onkeypress">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="60"/>
  19. <Column size="30"/>
  20. <Column size="0"/>
  21. <Column size="65"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="50"/>
  25. <Column size="50"/>
  26. <Column size="100"/>
  27. <Column size="85"/>
  28. <Column size="100"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="250"/>
  45. <Column size="250"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  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. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. </Columns>
  79. <Rows>
  80. <Row size="23" band="head"/>
  81. <Row size="23"/>
  82. </Rows>
  83. <Band id="head">
  84. <Cell text="등록번호"/>
  85. <Cell col="1" text="합번"/>
  86. <Cell col="2" text="기관코드"/>
  87. <Cell col="3" text="환자성명"/>
  88. <Cell col="4" text="영문이름"/>
  89. <Cell col="5" text="한문이름"/>
  90. <Cell col="6" colspan="2" text="주민등록번호" taborder="undefined"/>
  91. <Cell col="8" text="최근보험유형"/>
  92. <Cell col="9" text="집전화번호"/>
  93. <Cell col="10" text="휴대전화번호"/>
  94. <Cell col="11" text="최근내원일"/>
  95. <Cell col="12" text="최근내원과"/>
  96. <Cell col="13" text="외래미수금"/>
  97. <Cell col="14" text="퇴원미수금"/>
  98. <Cell col="15" text="생년월일"/>
  99. <Cell col="16" text="성별"/>
  100. <Cell col="17" text="나이"/>
  101. <Cell col="18" text="합본등록번호"/>
  102. <Cell col="19" text="기타전화번호1"/>
  103. <Cell col="20" text="기타전화번호2"/>
  104. <Cell col="21" text="sms전송승인 여부"/>
  105. <Cell col="22" text="이메일 계정"/>
  106. <Cell col="23" colspan="2" text="우편번호" taborder="undefined"/>
  107. <Cell col="25" text="우편번호순서"/>
  108. <Cell col="26" text="주소"/>
  109. <Cell col="27" text="상세주소"/>
  110. <Cell col="28" text="혈액형"/>
  111. <Cell col="29" text="RH혈액형"/>
  112. <Cell col="30" text="외국인여부"/>
  113. <Cell col="31" text="국적"/>
  114. <Cell col="32" text="여권번호"/>
  115. <Cell col="33" text="추천여부"/>
  116. <Cell col="34" text="추천인ID"/>
  117. <Cell col="35" text="추천인명"/>
  118. <Cell col="36" text="추천인관계"/>
  119. <Cell col="37" text="VIP여부"/>
  120. <Cell col="38" text="VIP비고"/>
  121. <Cell col="39" text="종교코드"/>
  122. <Cell col="40" text="세례명"/>
  123. <Cell col="41" text="성당명"/>
  124. <Cell col="42" text="사망여부"/>
  125. <Cell col="43" text="사망시각"/>
  126. <Cell col="44" text="사망일자"/>
  127. <Cell col="45" text="사망시간"/>
  128. <Cell col="46" text="내원사유"/>
  129. <Cell col="47" text="동물여부"/>
  130. <Cell col="48" text="원외예외사유코드"/>
  131. <Cell col="49" text="재원여부"/>
  132. <Cell col="50" text="장애인여부"/>
  133. <Cell col="51" text="특이_문제환자"/>
  134. <Cell col="52" text="당일퇴원여부"/>
  135. <Cell col="53" text="참고사항"/>
  136. <Cell col="54" text="최초등록자ID"/>
  137. <Cell col="55" text="최초등록일시"/>
  138. <Cell col="56" text="최종수정자ID"/>
  139. <Cell col="57" text="최종수정일시"/>
  140. <Cell col="58" text="pidflag"/>
  141. <Cell col="59" text="병원직원여부"/>
  142. </Band>
  143. <Band id="body">
  144. <Cell text="bind:pid"/>
  145. <Cell col="1" text="bind:bindyn"/>
  146. <Cell col="2" text="bind:instcd"/>
  147. <Cell col="3" text="bind:hngnm"/>
  148. <Cell col="4" text="bind:engnm"/>
  149. <Cell col="5" text="bind:chinm"/>
  150. <Cell col="6" text="bind:rrgstno1"/>
  151. <Cell col="7" text="bind:rrgstno2"/>
  152. <Cell col="8" text="bind:lastinsukind"/>
  153. <Cell col="9" text="bind:hometel"/>
  154. <Cell col="10" text="bind:mpphontel"/>
  155. <Cell col="11" displaytype="date" text="bind:lastorddd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  156. <Cell col="12" text="bind:lastorddeptnm"/>
  157. <Cell col="13" text="bind:outuncoamt"/>
  158. <Cell col="14" text="bind:dschuncoamt"/>
  159. <Cell col="15" displaytype="date" text="bind:brthdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  160. <Cell col="16" text="bind:sex"/>
  161. <Cell col="17" text="bind:age"/>
  162. <Cell col="18" text="bind:bindpid"/>
  163. <Cell col="19" text="bind:etctel1"/>
  164. <Cell col="20" text="bind:etctel2"/>
  165. <Cell col="21" text="bind:smsaprvyn"/>
  166. <Cell col="22" text="bind:email"/>
  167. <Cell col="23" text="bind:zipcd1"/>
  168. <Cell col="24" text="bind:zipcd2"/>
  169. <Cell col="25" text="bind:zipcdseq"/>
  170. <Cell col="26" text="bind:addr"/>
  171. <Cell col="27" text="bind:detladdr"/>
  172. <Cell col="28" text="bind:btype"/>
  173. <Cell col="29" text="bind:rh"/>
  174. <Cell col="30" text="bind:forgeryn"/>
  175. <Cell col="31" text="bind:nati"/>
  176. <Cell col="32" text="bind:psptno"/>
  177. <Cell col="33" text="bind:recmyn"/>
  178. <Cell col="34" text="bind:recmerid"/>
  179. <Cell col="35" text="bind:recmernm"/>
  180. <Cell col="36" text="bind:recmerrela"/>
  181. <Cell col="37" text="bind:vipyn"/>
  182. <Cell col="38" text="bind:viprem"/>
  183. <Cell col="39" text="bind:religncd"/>
  184. <Cell col="40" text="bind:baptnm"/>
  185. <Cell col="41" text="bind:chchnm"/>
  186. <Cell col="42" text="bind:dethyn"/>
  187. <Cell col="43" text="bind:dethdt"/>
  188. <Cell col="44" text="bind:dethdd"/>
  189. <Cell col="45" text="bind:dethtm"/>
  190. <Cell col="46" text="bind:chosresn"/>
  191. <Cell col="47" text="bind:animyn"/>
  192. <Cell col="48" text="bind:exptresncd"/>
  193. <Cell col="49" text="bind:inhospyn"/>
  194. <Cell col="50" text="bind:handicapryn"/>
  195. <Cell col="51" text="bind:patspcfyn"/>
  196. <Cell col="52" text="bind:tdaydsch"/>
  197. <Cell col="53" text="bind:remfact"/>
  198. <Cell col="54" text="bind:acptdd"/>
  199. <Cell col="55" text="bind:acptno"/>
  200. <Cell col="56" text="bind:lastupdtrid"/>
  201. <Cell col="57" text="bind:lastupdtdt"/>
  202. <Cell col="58" text="bind:pidflag"/>
  203. <Cell col="59" text="bind:emplyn"/>
  204. </Band>
  205. </Format>
  206. </Formats>
  207. </Grid>
  208. <Button id="btn_cancel" class="btn4_letter2" position="absolute 744 360 800 382" style="" text="취소" onclick="btn_cancel_onclick"/>
  209. <Button id="btn_confirm" class="btn4_letter2" taborder="6" position="absolute 685 360 741 382" style="" text="확인" onclick="btn_confirm_onclick"/>
  210. <MaskEdit id="ipt_rrgstno1" class="input_search" taborder="2" mask="#" position="absolute 340 8 400 27" style="" anchor="default" onkeypress="ipt_rrgstno1_onkeypress"/>
  211. <Static id="caption2" class="search_name" position="absolute 221 9 338 26" style="" text="주민등록번호 :"/>
  212. <MaskEdit id="ipt_rrgstno2" class="input_search" taborder="3" mask="#" position="absolute 410 8 470 27" style="" anchor="default" onkeypress="ipt_rrgstno2_onkeypress"/>
  213. <Static id="caption3" class="search_name" position="absolute 506 9 600 26" style="" text="등록번호 :"/>
  214. <MaskEdit id="ipt_pid" class="input_search" taborder="4" mask="#" position="absolute 600 8 660 27" style="" anchor="default" onkeypress="ipt_pid_onkeypress"/>
  215. <Static id="caption5" position="absolute 400 9 410 28" style="align:center ;" text="-"/>
  216. </Layout>
  217. </Layouts>
  218. <Objects>
  219. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  220. <ColumnInfo>
  221. <Column id="hngnm" type="STRING" size="256"/>
  222. <Column id="rrgstno1" type="STRING" size="256"/>
  223. <Column id="rrgstno2" type="STRING" size="256"/>
  224. <Column id="pid" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row>
  228. <Col id="hngnm"/>
  229. <Col id="rrgstno1"/>
  230. <Col id="rrgstno2"/>
  231. <Col id="pid"/>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  236. <ColumnInfo/>
  237. </Dataset>
  238. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  239. <ColumnInfo>
  240. <Column id="tmp" type="STRING" size="256"/>
  241. </ColumnInfo>
  242. </Dataset>
  243. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  244. <ColumnInfo/>
  245. </Dataset>
  246. <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  247. <ColumnInfo>
  248. <Column id="myself" type="STRING" size="256"/>
  249. <Column id="opener" type="STRING" size="256"/>
  250. </ColumnInfo>
  251. </Dataset>
  252. </Objects>
  253. <Bind>
  254. <BindItem id="item0" compid="ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  255. <BindItem id="item1" compid="ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
  256. <BindItem id="item2" compid="ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
  257. <BindItem id="item3" compid="ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  258. </Bind>
  259. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  260. include "com_basiccodexp::ZBC001.xjs";
  261. var arErrorCode = new HashArray();
  262. function SPPMC05800_onload(obj:Form, e:LoadEventInfo) {
  263. frmf_initForm(obj);
  264. grdf_initGrid(this.grd_patinfo);
  265. //grdf_setGridSort(grd_XXX);
  266. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  267. //플래그 초기화!
  268. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  269. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  270. }
  271. function fInputValueCheck() {
  272. if (ipt_hngnm.text.length < 1 &&
  273. ipt_rrgstno1.text.length < 1 &&
  274. ipt_rrgstno2.text.length < 1 &&
  275. ipt_pid.text.length < 1) {
  276. sysf_messageBox("검색 조건을 1가지 이상 입력해 주십시오", "C999");
  277. return false;
  278. }
  279. if (ipt_hngnm.text.length > 0 && ipt_hngnm.text.length < 2) {
  280. sysf_messageBox("환자이름을 2자리 이상", "C001");
  281. return false;
  282. } else {
  283. ds_send.setColumn( 0, "hngnm", ipt_hngnm.text);
  284. return true;
  285. }
  286. }
  287. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  288. if (fInputValueCheck()) {
  289. //if (submit("TRPMC05702")) {
  290. var oParam = {};
  291. oParam.id = "TRPMC05702";
  292. oParam.service = "acquaintanceapp.AcquaintanceMngt";
  293. oParam.method = "reqGetPatInfo";
  294. oParam.inds = "req=ds_send";
  295. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  296. oParam.async = false;
  297. oParam.callback = "cf_TRPMC05702";
  298. tranf_submit(oParam);
  299. if(arErrorCode.pop("TRPMC05702") > -1) {
  300. grd_patinfo.row = 1;
  301. grd_patinfo.setFocus();
  302. }
  303. }
  304. }
  305. function cf_TRPMC05702(sSvcId, nErrorCode, sErrorMsg) {
  306. arErrorCode.push(sSvcId, nErrorCode);
  307. }
  308. function ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo) {
  309. frmf_inputEnterKey("btn_search", "onclick", new ClickEventInfo);
  310. }
  311. function grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  312. if (frmf_checkOpener()) {
  313. if (e.col >= 0 && e.row >= 0) {
  314. btn_confirm.click();
  315. }
  316. } else {
  317. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  318. }
  319. }
  320. function grd_patinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
  321. if (e.keycode == 13) {
  322. btn_confirm.click();
  323. }
  324. }
  325. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  326. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  327. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  328. this.close();
  329. }
  330. function btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  331. if (frmf_checkOpener()) {
  332. row = ds_main_patinfo_patinfolist.rowposition;
  333. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  334. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  335. if (row > 0) {
  336. if (ds_main_patinfo_patinfolist.rowcount> 0) {
  337. //합번된 등록번호 메세지 처리
  338. var sPid = ds_main_patinfo_patinfolist.getColumn(row, "pid"));
  339. var sHngnm = ds_main_patinfo_patinfolist.getColumn(row, "hngnm"));
  340. var sBindPid = ds_main_patinfo_patinfolist.getColumn(row, "bindpid"));
  341. if (sBindPid != '' && sBindPid != '-' && sBindPid != ' ') {
  342. var retValue = sysf_messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
  343. if (retValue == '6') {
  344. try {
  345. ds_send.clearData(); ds_send.addRow();
  346. ds_send.setColumn( 0, "pid", sBindPid);
  347. //model.refresh();
  348. btn_search.click();
  349. } catch (e) {
  350. return false;
  351. }
  352. }
  353. return false;
  354. }
  355. dsf_copyColInfo(opener.ds_main_patinfo_patinfolist, ds_main_patinfo_patinfolist);
  356. opener.ds_main_patinfo_patinfolist.copyRow(0, ds_main_patinfo_patinfolist, row);
  357. dsf_makeValue( opener.ds_main_recminfo_recminfolist, "instcd", "string", ds_send.getColumn(0, "instcd"));
  358. dsf_makeValue( opener.ds_main, "popupendflag", "string", "" );
  359. opener.ds_main.setColumn( 0, "popupendflag", "ok");
  360. }
  361. } else {
  362. sysf_messageBox("행이 정확히 선택되지", "E007");
  363. }
  364. } else {
  365. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  366. }
  367. //opener.model.refresh();
  368. this.close();
  369. }
  370. function ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  371. frmf_inputEnterKey("btn_search", "onclick", new ClickEventInfo);
  372. }
  373. function ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  374. frmf_inputEnterKey("btn_search", "onclick", new ClickEventInfo);
  375. }
  376. function ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  377. frmf_inputEnterKey("btn_search", "onclick", new ClickEventInfo);
  378. }
  379. ]]></Script>
  380. </Form>
  381. </FDL>