SPPMC02500_환자조회.xfdl 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC02500" position="absolute 0 0 618 343" titletext="환자기초정보조회" onload="SPPMC02500_onload" oninit="SPPMC02500_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_patinfo2" class="datagrid2" taborder="0" binddataset="ds_patinfolist" useinputpanel="false" position="absolute 0 62 618 315" oncelldblclick="grd_patinfo2_oncelldblclick" onkeydown="grd_patinfo2_onkeydown" cellsizingtype="col">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="60"/>
  12. <Column size="18"/>
  13. <Column size="0"/>
  14. <Column size="65"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="50"/>
  18. <Column size="0"/>
  19. <Column size="50"/>
  20. <Column size="100"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  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="250"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  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. </Columns>
  73. <Rows>
  74. <Row size="30" band="head"/>
  75. <Row size="24"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell text="등록번호"/>
  79. <Cell col="1" text="합&#13;&#10;번"/>
  80. <Cell col="2" text="기관코드"/>
  81. <Cell col="3" text="환자성명"/>
  82. <Cell col="4" text="영문이름"/>
  83. <Cell col="5" text="한문이름"/>
  84. <Cell col="6" colspan="3" text="주민등록번호"/>
  85. <Cell col="9" text="최근보험유형"/>
  86. <Cell col="10" text="집전화번호"/>
  87. <Cell col="11" text="휴대전화번호"/>
  88. <Cell col="12" text="최근내원일"/>
  89. <Cell col="13" text="최근내원과"/>
  90. <Cell col="14" text="외래미수금"/>
  91. <Cell col="15" text="퇴원미수금"/>
  92. <Cell col="16" text="생년월일"/>
  93. <Cell col="17" text="성별"/>
  94. <Cell col="18" text="나이"/>
  95. <Cell col="19" text="합본등록번호"/>
  96. <Cell col="20" text="기타전화번호1"/>
  97. <Cell col="21" text="기타전화번호2"/>
  98. <Cell col="22" text="sms전송승인 여부"/>
  99. <Cell col="23" text="이메일 계정"/>
  100. <Cell col="24" text="우편번호"/>
  101. <Cell col="25" text="우편번호"/>
  102. <Cell col="26" text="우편번호순서"/>
  103. <Cell col="27" text="주소"/>
  104. <Cell col="28" text="상세주소"/>
  105. <Cell col="29" text="혈액형"/>
  106. <Cell col="30" text="RH혈액형"/>
  107. <Cell col="31" text="외국인여부"/>
  108. <Cell col="32" text="국적"/>
  109. <Cell col="33" text="여권번호"/>
  110. <Cell col="34" text="추천여부"/>
  111. <Cell col="35" text="추천인ID"/>
  112. <Cell col="36" text="추천인명"/>
  113. <Cell col="37" text="추천인관계"/>
  114. <Cell col="38" text="VIP여부"/>
  115. <Cell col="39" text="VIP비고"/>
  116. <Cell col="40" text="종교코드"/>
  117. <Cell col="41" text="세례명"/>
  118. <Cell col="42" text="성당명"/>
  119. <Cell col="43" text="사망여부"/>
  120. <Cell col="44" text="사망시각"/>
  121. <Cell col="45" text="사망일자"/>
  122. <Cell col="46" text="사망시간"/>
  123. <Cell col="47" text="내원사유"/>
  124. <Cell col="48" text="동물여부"/>
  125. <Cell col="49" text="원외예외사유코드"/>
  126. <Cell col="50" text="재원여부"/>
  127. <Cell col="51" text="장애인여부"/>
  128. <Cell col="52" text="특이/문제환자"/>
  129. <Cell col="53" text="당일퇴원여부"/>
  130. <Cell col="54" text="참고사항"/>
  131. <Cell col="55" text="최초등록자ID"/>
  132. <Cell col="56" text="최초등록일시"/>
  133. <Cell col="57" text="최종수정자ID"/>
  134. <Cell col="58" text="최종수정일시"/>
  135. <Cell col="59" text="pidflag"/>
  136. <Cell col="60"/>
  137. </Band>
  138. <Band id="body">
  139. <Cell displaytype="text" text="bind:pid"/>
  140. <Cell col="1" text="bind:bindyn"/>
  141. <Cell col="2" text="bind:instcd"/>
  142. <Cell col="3" text="bind:hngnm"/>
  143. <Cell col="4" text="bind:engnm"/>
  144. <Cell col="5" text="bind:chinm"/>
  145. <Cell col="6" text="bind:rrgstno1"/>
  146. <Cell col="7" text="bind:rrgstno2"/>
  147. <Cell col="8" text="bind:rrgstno3"/>
  148. <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:lastinsukind"/>
  149. <Cell col="10" text="bind:hometel"/>
  150. <Cell col="11" text="bind:mpphontel"/>
  151. <Cell col="12" displaytype="expr:getColumn(currow,'lastorddd')==&quot;&quot; || getColumn(currow,'lastorddd')==null?&quot;&quot;:&quot;date&quot;" text="bind:lastorddd"/>
  152. <Cell col="13" displaytype="combo" edittype="none" style="align:left middle;padding:0 3 0 3;" text="bind:lastorddeptcd" combodataset="ds_init_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
  153. <Cell col="14" text="bind:outuncoamt"/>
  154. <Cell col="15" text="bind:dschuncoamt"/>
  155. <Cell col="16" text="bind:brthdd" mask="yyyy-mm-dd"/>
  156. <Cell col="17" text="bind:sex"/>
  157. <Cell col="18" text="bind:age"/>
  158. <Cell col="19" text="bind:bindpid"/>
  159. <Cell col="20" text="bind:etctel1"/>
  160. <Cell col="21" text="bind:etctel2"/>
  161. <Cell col="22" text="bind:smsaprvyn"/>
  162. <Cell col="23" text="bind:email"/>
  163. <Cell col="24" text="bind:zipcd1"/>
  164. <Cell col="25" text="bind:zipcd2"/>
  165. <Cell col="26" text="bind:zipcdseq"/>
  166. <Cell col="27" style="align:left middle;padding:0 3 0 3;" text="bind:addr"/>
  167. <Cell col="28" text="bind:detladdr"/>
  168. <Cell col="29" text="bind:btype"/>
  169. <Cell col="30" text="bind:rh"/>
  170. <Cell col="31" text="bind:forgeryn"/>
  171. <Cell col="32" text="bind:nati"/>
  172. <Cell col="33" text="bind:psptno"/>
  173. <Cell col="34" text="bind:recmyn"/>
  174. <Cell col="35" text="bind:recmerid"/>
  175. <Cell col="36" text="bind:recmernm"/>
  176. <Cell col="37" text="bind:recmerrela"/>
  177. <Cell col="38" text="bind:vipyn"/>
  178. <Cell col="39" text="bind:viprem"/>
  179. <Cell col="40" text="bind:religncd"/>
  180. <Cell col="41" text="bind:baptnm"/>
  181. <Cell col="42" text="bind:chchnm"/>
  182. <Cell col="43" text="bind:dethyn"/>
  183. <Cell col="44" text="bind:dethdt"/>
  184. <Cell col="45" text="bind:dethdd"/>
  185. <Cell col="46" text="bind:dethtm"/>
  186. <Cell col="47" text="bind:chosresn"/>
  187. <Cell col="48" text="bind:animyn"/>
  188. <Cell col="49" text="bind:exptresncd"/>
  189. <Cell col="50" text="bind:inhospyn"/>
  190. <Cell col="51" text="bind:handicapryn"/>
  191. <Cell col="52" text="bind:patspcfyn"/>
  192. <Cell col="53" text="bind:tdaydsch"/>
  193. <Cell col="54" text="bind:remfact"/>
  194. <Cell col="55" text="bind:acptdd"/>
  195. <Cell col="56" text="bind:acptno"/>
  196. <Cell col="57" text="bind:lastupdtrid"/>
  197. <Cell col="58" text="bind:lastupdtdt"/>
  198. <Cell col="59" text="bind:pidflag"/>
  199. <Cell col="60" text="bind:hngnm2"/>
  200. </Band>
  201. </Format>
  202. </Formats>
  203. </Grid>
  204. <Static id="caption1" text="인적사항" class="tit_2" position="absolute 5 44 100 61"/>
  205. <Grid id="grd_patinfo" class="datagrid2" taborder="1" binddataset="ds_patinfolist" useinputpanel="false" position="absolute 0 62 618 315" oncelldblclick="grd_patinfo_oncelldblclick" onkeydown="grd_patinfo_onkeydown" cellsizingtype="col">
  206. <Formats>
  207. <Format id="default">
  208. <Columns>
  209. <Column size="60"/>
  210. <Column size="18"/>
  211. <Column size="0"/>
  212. <Column size="65"/>
  213. <Column size="0"/>
  214. <Column size="0"/>
  215. <Column size="50"/>
  216. <Column size="0"/>
  217. <Column size="50"/>
  218. <Column size="100"/>
  219. <Column size="85"/>
  220. <Column size="100"/>
  221. <Column size="100"/>
  222. <Column size="100"/>
  223. <Column size="0"/>
  224. <Column size="0"/>
  225. <Column size="0"/>
  226. <Column size="0"/>
  227. <Column size="0"/>
  228. <Column size="0"/>
  229. <Column size="0"/>
  230. <Column size="0"/>
  231. <Column size="0"/>
  232. <Column size="0"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="250"/>
  237. <Column size="250"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. <Column size="0"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="0"/>
  245. <Column size="0"/>
  246. <Column size="0"/>
  247. <Column size="0"/>
  248. <Column size="0"/>
  249. <Column size="0"/>
  250. <Column size="0"/>
  251. <Column size="0"/>
  252. <Column size="0"/>
  253. <Column size="0"/>
  254. <Column size="0"/>
  255. <Column size="0"/>
  256. <Column size="0"/>
  257. <Column size="0"/>
  258. <Column size="0"/>
  259. <Column size="0"/>
  260. <Column size="0"/>
  261. <Column size="0"/>
  262. <Column size="0"/>
  263. <Column size="0"/>
  264. <Column size="0"/>
  265. <Column size="0"/>
  266. <Column size="0"/>
  267. <Column size="0"/>
  268. <Column size="0"/>
  269. <Column size="0"/>
  270. </Columns>
  271. <Rows>
  272. <Row size="30" band="head"/>
  273. <Row size="24"/>
  274. </Rows>
  275. <Band id="head">
  276. <Cell text="등록번호"/>
  277. <Cell col="1" text="합&#13;&#10;번"/>
  278. <Cell col="2" text="기관코드"/>
  279. <Cell col="3" text="환자성명"/>
  280. <Cell col="4" text="영문이름"/>
  281. <Cell col="5" text="한문이름"/>
  282. <Cell col="6" colspan="3" text="주민등록번호"/>
  283. <Cell col="9" text="최근보험유형"/>
  284. <Cell col="10" text="집전화번호"/>
  285. <Cell col="11" text="휴대전화번호"/>
  286. <Cell col="12" text="최근내원일"/>
  287. <Cell col="13" text="최근내원과"/>
  288. <Cell col="14" text="외래미수금"/>
  289. <Cell col="15" text="퇴원미수금"/>
  290. <Cell col="16" text="생년월일"/>
  291. <Cell col="17" text="성별"/>
  292. <Cell col="18" text="나이"/>
  293. <Cell col="19" text="합본등록번호"/>
  294. <Cell col="20" text="기타전화번호1"/>
  295. <Cell col="21" text="기타전화번호2"/>
  296. <Cell col="22" text="sms전송승인 여부"/>
  297. <Cell col="23" text="이메일 계정"/>
  298. <Cell col="24" text="우편번호"/>
  299. <Cell col="25" text="우편번호"/>
  300. <Cell col="26" text="우편번호순서"/>
  301. <Cell col="27" text="주소"/>
  302. <Cell col="28" text="상세주소"/>
  303. <Cell col="29" text="혈액형"/>
  304. <Cell col="30" text="RH혈액형"/>
  305. <Cell col="31" text="외국인여부"/>
  306. <Cell col="32" text="국적"/>
  307. <Cell col="33" text="여권번호"/>
  308. <Cell col="34" text="추천여부"/>
  309. <Cell col="35" text="추천인ID"/>
  310. <Cell col="36" text="추천인명"/>
  311. <Cell col="37" text="추천인관계"/>
  312. <Cell col="38" text="VIP여부"/>
  313. <Cell col="39" text="VIP비고"/>
  314. <Cell col="40" text="종교코드"/>
  315. <Cell col="41" text="세례명"/>
  316. <Cell col="42" text="성당명"/>
  317. <Cell col="43" text="사망여부"/>
  318. <Cell col="44" text="사망시각"/>
  319. <Cell col="45" text="사망일자"/>
  320. <Cell col="46" text="사망시간"/>
  321. <Cell col="47" text="내원사유"/>
  322. <Cell col="48" text="동물여부"/>
  323. <Cell col="49" text="원외예외사유코드"/>
  324. <Cell col="50" text="재원여부"/>
  325. <Cell col="51" text="장애인여부"/>
  326. <Cell col="52" text="특이/문제환자"/>
  327. <Cell col="53" text="당일퇴원여부"/>
  328. <Cell col="54" text="참고사항"/>
  329. <Cell col="55" text="최초등록자ID"/>
  330. <Cell col="56" text="최초등록일시"/>
  331. <Cell col="57" text="최종수정자ID"/>
  332. <Cell col="58" text="최종수정일시"/>
  333. <Cell col="59" text="pidflag"/>
  334. <Cell col="60"/>
  335. </Band>
  336. <Band id="body">
  337. <Cell displaytype="text" text="bind:pid"/>
  338. <Cell col="1" text="bind:bindyn"/>
  339. <Cell col="2" text="bind:instcd"/>
  340. <Cell col="3" text="bind:hngnm"/>
  341. <Cell col="4" text="bind:engnm"/>
  342. <Cell col="5" text="bind:chinm"/>
  343. <Cell col="6" text="bind:rrgstno1"/>
  344. <Cell col="7" text="bind:rrgstno2"/>
  345. <Cell col="8" text="bind:rrgstno3"/>
  346. <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:lastinsukind"/>
  347. <Cell col="10" style="align:left middle;padding:0 3 0 3;" text="bind:hometel"/>
  348. <Cell col="11" style="align:left middle;padding:0 3 0 3;" text="bind:mpphontel"/>
  349. <Cell col="12" displaytype="expr:getColumn(currow,'lastorddd')==&quot;&quot; || getColumn(currow,'lastorddd')==null?&quot;&quot;:&quot;date&quot;" text="bind:lastorddd"/>
  350. <Cell col="13" displaytype="combo" style="align:left middle;padding:0 3 0 3;" text="bind:lastorddeptcd" combodataset="ds_init_orddeptcdlist" combocodecol="cd" combodatacol="nm"/>
  351. <Cell col="14" text="bind:outuncoamt"/>
  352. <Cell col="15" text="bind:dschuncoamt"/>
  353. <Cell col="16" text="bind:brthdd" mask="yyyy-mm-dd"/>
  354. <Cell col="17" text="bind:sex"/>
  355. <Cell col="18" text="bind:age"/>
  356. <Cell col="19" text="bind:bindpid"/>
  357. <Cell col="20" text="bind:etctel1"/>
  358. <Cell col="21" text="bind:etctel2"/>
  359. <Cell col="22" text="bind:smsaprvyn"/>
  360. <Cell col="23" text="bind:email"/>
  361. <Cell col="24" text="bind:zipcd1"/>
  362. <Cell col="25" text="bind:zipcd2"/>
  363. <Cell col="26" text="bind:zipcdseq"/>
  364. <Cell col="27" style="align:left middle;padding:0 3 0 3;" text="bind:addr"/>
  365. <Cell col="28" style="align:left middle;padding:0 3 0 3;" text="bind:detladdr"/>
  366. <Cell col="29" text="bind:btype"/>
  367. <Cell col="30" text="bind:rh"/>
  368. <Cell col="31" text="bind:forgeryn"/>
  369. <Cell col="32" text="bind:nati"/>
  370. <Cell col="33" text="bind:psptno"/>
  371. <Cell col="34" text="bind:recmyn"/>
  372. <Cell col="35" text="bind:recmerid"/>
  373. <Cell col="36" text="bind:recmernm"/>
  374. <Cell col="37" text="bind:recmerrela"/>
  375. <Cell col="38" text="bind:vipyn"/>
  376. <Cell col="39" text="bind:viprem"/>
  377. <Cell col="40" text="bind:religncd"/>
  378. <Cell col="41" text="bind:baptnm"/>
  379. <Cell col="42" text="bind:chchnm"/>
  380. <Cell col="43" text="bind:dethyn"/>
  381. <Cell col="44" text="bind:dethdt"/>
  382. <Cell col="45" text="bind:dethdd"/>
  383. <Cell col="46" text="bind:dethtm"/>
  384. <Cell col="47" text="bind:chosresn"/>
  385. <Cell col="48" text="bind:animyn"/>
  386. <Cell col="49" text="bind:exptresncd"/>
  387. <Cell col="50" text="bind:inhospyn"/>
  388. <Cell col="51" text="bind:handicapryn"/>
  389. <Cell col="52" text="bind:patspcfyn"/>
  390. <Cell col="53" text="bind:tdaydsch"/>
  391. <Cell col="54" text="bind:remfact"/>
  392. <Cell col="55" text="bind:acptdd"/>
  393. <Cell col="56" text="bind:acptno"/>
  394. <Cell col="57" text="bind:lastupdtrid"/>
  395. <Cell col="58" text="bind:lastupdtdt"/>
  396. <Cell col="59" text="bind:pidflag"/>
  397. <Cell col="60" text="bind:hngnm2"/>
  398. </Band>
  399. </Format>
  400. </Formats>
  401. </Grid>
  402. <CheckBox id="bl_inhospyn" taborder="2" position="absolute 527 42 611 62" text="재원여부" truevalue="Y" falsevalue="N"/>
  403. <Div id="group2" taborder="3" class="div_SA2" position="absolute 0 0 618 35">
  404. <Layouts>
  405. <Layout>
  406. <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
  407. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 545 7 601 29" onclick="group2_btn_search_onclick" anchor="default"/>
  408. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 529 7 535 29" anchor="default"/>
  409. <Edit id="ipt_hngnm" taborder="2" class="input_search" visible="false" position="absolute 224 8 354 27" onkeydown="group2_ipt_hngnm_onkeydown" imemode="hangul" autoselect="true" anchor="default"/>
  410. <Combo id="cmb_cond" taborder="0" innerdataset="@ds_P0350" codecolumn="cdid" datacolumn="cdnm" position="absolute 90 8 215 27" onitemchanged="group2_cmb_cond_onitemchanged" anchor="default"/>
  411. <Edit id="ipt_rrgstno1" taborder="3" inputtype="number" maxlength="6" position="absolute 247 8 332 27" visible="false" autoselect="true" style="align:left middle;" inputfilter="dot,comma,sign,space" anchor="default" autoskip="true"/>
  412. <MaskEdit id="ipt_rrgstno2" taborder="4" mask="9999999" class="input_search" visible="false" position="absolute 285 8 370 27" onkeydown="group2_ipt_rrgstno2_onkeydown" autoselect="true" limitbymask="integer" anchor="default" style="align:left;"/>
  413. <Edit id="ipt_pid" taborder="5" class="input_search" visible="false" position="absolute 325 8 455 27" onkeydown="group2_ipt_pid_onkeydown" inputtype="number" autoselect="true" maxlength="8" anchor="default"/>
  414. <Calendar id="ipt_acptdd" taborder="6" class="input_search" visible="false" position="absolute 390 8 520 27" onchanged="group2_ipt_acptdd_onchanged" autoselect="true" anchor="default"/>
  415. </Layout>
  416. </Layouts>
  417. </Div>
  418. <Div id="group1" taborder="4" position="absolute 0 316 618 343">
  419. <Layouts>
  420. <Layout>
  421. <Button id="btn_confirm" taborder="10" text="확인" class="btn4" position="absolute 503 5 559 27" onclick="group1_btn_confirm_onclick"/>
  422. <Button id="btn_cancel" taborder="11" text="취소" class="btn4" position="absolute 562 5 618 27" onclick="group1_btn_cancel_onclick"/>
  423. </Layout>
  424. </Layouts>
  425. </Div>
  426. <MaskEdit id="ipt_rrgstno1" taborder="6" displaynulltext=" " type="string" mask="999999" maskchar=" " autoselect="true" autoskip="true" limitbymask="integer" onkeydown="group2_ipt_rrgstno1_onkeydown" class="input_search" visible="false" position="absolute 247 40 332 59"/>
  427. </Layout>
  428. </Layouts>
  429. <Objects>
  430. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  431. <ColumnInfo>
  432. <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
  433. <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
  434. <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
  435. <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
  436. <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
  437. <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
  438. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
  439. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
  440. <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
  441. <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
  442. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  443. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  444. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  445. <Column id="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
  446. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  447. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  448. <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
  449. <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
  450. <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
  451. <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
  452. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
  453. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
  454. <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
  455. <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
  456. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  457. <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
  458. <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
  459. <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
  460. <Column id="nati" type="STRING" size="256" sumtext="국적"/>
  461. <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
  462. <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
  463. <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
  464. <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
  465. <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
  466. <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
  467. <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
  468. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  469. <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
  470. <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
  471. <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
  472. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  473. <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
  474. <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
  475. <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
  476. <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
  477. <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
  478. <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
  479. <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
  480. <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
  481. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  482. <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
  483. <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
  484. <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
  485. <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
  486. <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
  487. <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
  488. <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
  489. <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
  490. <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
  491. <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
  492. <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
  493. <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
  494. <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
  495. <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
  496. <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
  497. <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
  498. </ColumnInfo>
  499. </Dataset>
  500. <Dataset id="ds_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  501. <ColumnInfo>
  502. <Column id="cdid" type="STRING" size="256"/>
  503. <Column id="cdnm" type="STRING" size="256"/>
  504. </ColumnInfo>
  505. </Dataset>
  506. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  507. <ColumnInfo>
  508. <Column id="srchcond" type="STRING" size="256"/>
  509. <Column id="pid" type="STRING" size="256"/>
  510. <Column id="hngnm" type="STRING" size="256"/>
  511. <Column id="rrgstno1" type="STRING" size="256"/>
  512. <Column id="rrgstno2" type="STRING" size="256"/>
  513. <Column id="acptdd" type="STRING" size="256"/>
  514. <Column id="inhospyn" type="STRING" size="256"/>
  515. </ColumnInfo>
  516. <Rows>
  517. <Row>
  518. <Col id="srchcond"/>
  519. <Col id="pid"/>
  520. <Col id="hngnm"/>
  521. <Col id="rrgstno1"/>
  522. <Col id="rrgstno2"/>
  523. <Col id="acptdd"/>
  524. <Col id="inhospyn"/>
  525. </Row>
  526. </Rows>
  527. </Dataset>
  528. </Objects>
  529. <Bind>
  530. <BindItem id="item0" compid="group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
  531. <BindItem id="item1" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  532. <BindItem id="item3" compid="group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
  533. <BindItem id="item4" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  534. <BindItem id="item5" compid="group2.ipt_acptdd" propid="value" datasetid="ds_send" columnid="acptdd"/>
  535. <BindItem id="item6" compid="bl_inhospyn" propid="value" datasetid="ds_send" columnid="inhospyn"/>
  536. <BindItem id="item2" compid="ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
  537. <BindItem id="item7" compid="group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
  538. </Bind>
  539. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  540. include "pam_pamcomnxp::PAM.xjs"
  541. var arErrorCode = new HashArray();
  542. var PAM_FLAG = false;
  543. function SPPMC02500_oninit(obj:Form, e:InitEventInfo) {
  544. frmf_initForm(obj); // 폼 초기화
  545. }
  546. function SPPMC02500_onload(obj:Form, e:LoadEventInfo) {
  547. grdf_initGrid(grd_patinfo);
  548. grdf_initGrid(grd_patinfo2);
  549. var arrParam = [{dsNm:"ds_P0350", cdGrpId:"P0350"}];
  550. appf_getCodeList(arrParam);
  551. // 진료과코드 진료의사ID 조회
  552. pamGetDeptCDDrIDList();
  553. if (frmf_checkOpener()) {
  554. if (utlf_isNull(opener.objects["ds_main"])) {
  555. var objDs = new Dataset("ds_main");
  556. opener.addChild("ds_main", objDs);
  557. objDs.name = "ds_main";
  558. }
  559. if (utlf_isNull(opener.ds_main.getColumnInfo("popupendflag"))) {
  560. opener.ds_main.addColumn("popupendflag", "string");
  561. }
  562. if (opener.ds_main.rowcount < 1) {
  563. opener.ds_main.addRow();
  564. }
  565. opener.ds_main.setColumn("popupendflag", "cancel");
  566. var sId = opener.frmf_getScreenID();
  567. if (sId.substr(0, 3) == "SMP" || sId.substr(0, 3) == "SPP") {
  568. PAM_FLAG = true;
  569. }
  570. opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
  571. try {
  572. ds_send.copyData(arg_ds_send);
  573. } catch(e) { }
  574. }
  575. if (PAM_FLAG) {
  576. grd_patinfo.visible = true;
  577. grd_patinfo2.visible = false;
  578. } else {
  579. grd_patinfo.visible = false;
  580. grd_patinfo2.visible = true;
  581. }
  582. if (!utlf_isNull(ds_send.getColumnInfo("srchcond"))) {
  583. if ( ds_send.getColumnInfo("checkfnexam") == null
  584. || (!utlf_isNull(ds_send.getColumnInfo("checkfnexam")) && ds_send.getColumn(0, "checkfnexam") != "1") ) {
  585. // 조회조건에서 '예약일시'를 제거한다.
  586. ds_P0350.deleteRow(ds_P0350.findRow("cdid", "5"));
  587. }
  588. if (utlf_isNull(ds_send.getColumn(0, "srchcond")) || ds_send.getColumn(0, "srchcond") == "-") {
  589. ds_send.setColumn(0,"srchcond", "4");
  590. }
  591. fChangeSearchCondition(ds_send.getColumn(0, "srchcond"));
  592. // 값이 부모창에서 입력되었을 경우 조회한다.
  593. if (ds_send.getColumn(0, "srchcond") != "5" && fInputValueCheckXformsReady()) {
  594. var oParam = {};
  595. oParam.id = "TRPMC02500";
  596. oParam.service = "patinfomngtapp.PatBaseInfo";
  597. oParam.method = "reqGetPatInfo";
  598. oParam.inds = "req=ds_send";
  599. oParam.outds = "ds_patinfolist=patinfolist";
  600. oParam.async = false;
  601. oParam.callback = "cf_TRPMC02500";
  602. tranf_submit(oParam);
  603. if (arErrorCode.pop("TRPMC02500") > -1) {
  604. if (PAM_FLAG) {
  605. if (ds_patinfolist.rowcount == 1) {
  606. // 조회 내역이 1건일 경우 자동 화면 닫기
  607. if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0, "autoflag")).toUpperCase() == "Y" ) {
  608. grd_patinfo.setFocus();
  609. group1.btn_confirm.click();
  610. this.close();
  611. }
  612. }
  613. if (ds_patinfolist.rowcount >= 1) {
  614. grd_patinfo.setFocus();
  615. } else {
  616. // 조회 내역이 없을 경우 자동 화면 닫기
  617. if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "NON" ) {
  618. group1.btn_cancel.click();
  619. }
  620. fChangeSearchCondition(ds_send.getColumn(0, "srchcond"));
  621. }
  622. } else {
  623. if (ds_patinfolist.rowcount == 1) {
  624. // 조회 내역이 1건일 경우 자동 화면 닫기
  625. if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "Y" ) {
  626. grd_patinfo2.setFocus();
  627. group1.btn_confirm.click();
  628. this.close();
  629. }
  630. }
  631. if( ds_patinfolist.rowcount > 1 ) {
  632. grd_patinfo2.setFocus();
  633. } else {
  634. if (!utlf_isNull(ds_send.getColumnInfo("autoflag")) && String(ds_send.getColumn(0,"autoflag")).toUpperCase() == "NON" ) {
  635. group1.btn_cancel.click();
  636. }
  637. fChangeSearchCondition(ds_send.getColumn(0,"srchcond"));
  638. }
  639. }
  640. }
  641. }
  642. } else {
  643. //조회조건에서 '예약일시'를 제거한다.
  644. ds_P0350.deleteRow(ds_P0350.findRow("cdid", "5"));
  645. ds_send.addColumn("srchcond", "string");
  646. ds_send.addColumn("pid", "string");
  647. ds_send.addColumn("hngnm", "string");
  648. ds_send.addColumn("rrgstno1", "string");
  649. ds_send.addColumn("rrgstno2", "string");
  650. ds_send.addColumn("acptdd", "string");
  651. }
  652. //진료일 오늘 날짜 디폴트 세팅
  653. if (utlf_isNull(ds_send.getColumnInfo("acptdd"))) {
  654. ds_send.addColumn("acptdd", "string");
  655. }
  656. ds_send.setColumn(0, "acptdd", utlf_getCurrentDate());
  657. // 재원여부 디폴트 세팅
  658. if (utlf_isNull(ds_send.getColumnInfo("inhospyn"))) {
  659. ds_send.addColumn("inhospyn", "string");
  660. }
  661. ds_send.setColumn(0, "inhospyn", "N");
  662. }
  663. // 검색조건변경
  664. function group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  665. fChangeSearchCondition(e.postvalue);
  666. }
  667. // 조회버튼 클릭
  668. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  669. if (fInputValueCheck()) {
  670. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  671. ds_send.addColumn("functionyn", "string");
  672. ds_send.setColumn(0, "functionyn", "N");
  673. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  674. var oParam = {};
  675. oParam.id = "TRPMC02500";
  676. oParam.service = "patinfomngtapp.PatBaseInfo";
  677. oParam.method = "reqGetPatInfo";
  678. oParam.inds = "req=ds_send";
  679. oParam.outds = "ds_patinfolist=patinfolist";
  680. oParam.async = false;
  681. oParam.callback = "cf_TRPMC02500";
  682. tranf_submit(oParam);
  683. dsf_setTypeFormat(ds_patinfolist, "pid:string");
  684. if (arErrorCode.pop("TRPMC02500") >= 0) {
  685. if (PAM_FLAG) {
  686. if (ds_patinfolist.rowcount > 0) {
  687. ds_patinfolist.rowposition = 0;
  688. grd_patinfo.setFocus();
  689. } else {
  690. fChangeSearchCondition(group2.cmb_cond.value);
  691. }
  692. } else {
  693. if (ds_patinfolist.rowcount > 0) {
  694. ds_patinfolist.rowposition = 0;
  695. grd_patinfo2.setFocus();
  696. } else {
  697. fChangeSearchCondition(group2.cmb_cond.value);
  698. }
  699. }
  700. }
  701. }
  702. }
  703. // 원무용 인적사항 내역 더블클릭
  704. function grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  705. if (frmf_checkOpener()) {
  706. if (ds_patinfolist.rowposition >= 0) {
  707. group1.btn_confirm.click();
  708. }
  709. } else {
  710. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  711. }
  712. }
  713. // 원무용 인적사항 내역 엔터키입력
  714. function grd_patinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
  715. if (e.keycode == 13 && ds_patinfolist.rowposition >= 0) {
  716. group1.btn_confirm.click();
  717. }
  718. }
  719. // 원무 외 인적사항 내역 더블클릭
  720. function grd_patinfo2_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  721. if (frmf_checkOpener()) {
  722. if (ds_patinfolist.rowposition >= 0) {
  723. group1.btn_confirm.click();
  724. }
  725. } else {
  726. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  727. }
  728. }
  729. // 원무 외 인적사항 내역 엔터키입력
  730. function grd_patinfo2_onkeydown(obj:Grid, e:KeyEventInfo) {
  731. if(e.keycode == 13 && ds_patinfolist.rowposition >= 0) {
  732. group1.btn_confirm.click();
  733. }
  734. }
  735. // 확인버튼 클릭
  736. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  737. if (frmf_checkOpener()) {
  738. opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
  739. var row = ds_patinfolist.rowposition;
  740. if (row >= 0) {
  741. if (ds_patinfolist.rowcount > 0) {
  742. // 합번된 등록번호 메세지 처리
  743. var sPid = ds_patinfolist.getColumn(row,"pid");
  744. var sHngnm = ds_patinfolist.getColumn(row,"hngnm");
  745. var sBindPid = ds_patinfolist.getColumn(row,"bindpid");
  746. if (!utlf_isNull(sBindPid) && sBindPid != "-" && sBindPid != " ") {
  747. var retValue = sysf_messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
  748. if (retValue == "6") {
  749. try {
  750. ds_send.clearData();
  751. ds_send.addRow();
  752. ds_send.setColumn(0, "srchcond", "1");
  753. fChangeSearchCondition("1");
  754. ds_send.setColumn(0, "pid", sBindPid);
  755. group2.btn_search.click();
  756. } catch(e) {
  757. return false;
  758. }
  759. }
  760. return false;
  761. }
  762. opener.dsf_createDs("ds_patinfolist");
  763. opener.ds_patinfolist.copyData(ds_patinfolist);
  764. opener.ds_patinfolist.clearData();
  765. opener.ds_patinfolist.addRow();
  766. opener.ds_patinfolist.copyRow(0, ds_patinfolist, row);
  767. opener.frmf_setParameter("SPPMC02500_popupendflag", "ok");
  768. }
  769. } else {
  770. sysf_messageBox("행이 정확히 선택되지", "E007");
  771. }
  772. } else {
  773. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  774. }
  775. this.close();
  776. }
  777. // 취소버튼 클릭
  778. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  779. {
  780. opener.frmf_setParameter("SPPMC02500_popupendflag", "cancel");
  781. this.close();
  782. }
  783. // 환자명 입력후 엔터 입력
  784. function group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  785. {
  786. if(e.keycode == 13) {
  787. group2.btn_search.setFocus();
  788. var ev = new ClickEventInfo;
  789. frmf_inputEnterKey("group2.btn_search", "onclick", ev);
  790. }
  791. }
  792. // 주민번호 입력후 엔터 입력
  793. function group2_ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  794. {
  795. if(e.keycode == 13) {
  796. group2.btn_search.setFocus();
  797. var ev = new ClickEventInfo;
  798. frmf_inputEnterKey("group2.btn_search", "onclick", ev);
  799. }
  800. }
  801. // 주민번호 뒷자리 입력후 엔터 입력
  802. function group2_ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  803. {
  804. if(e.keycode == 13) {
  805. group2.btn_search.setFocus();
  806. var ev = new ClickEventInfo;
  807. frmf_inputEnterKey("group2.btn_search", "onclick", ev);
  808. }
  809. }
  810. // 환자번호 입력후 엔터 입력
  811. function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
  812. if (e.keycode == 13) {
  813. group2.btn_search.setFocus();
  814. var ev = new ClickEventInfo;
  815. frmf_inputEnterKey("group2.btn_search", "onclick", ev);
  816. }
  817. }
  818. // 날짜 변경
  819. function group2_ipt_acptdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  820. {
  821. var ev = new ClickEventInfo;
  822. frmf_inputEnterKey("group2.btn_search", "onclick", ev);
  823. }
  824. function cf_TRPAM00101(sSvcId, nErrorCode, sErrorMsg) {
  825. if(nErrorCode < 0) return;
  826. else ds_tmp_orddridlist.updateColID("nmspecyn","nmsp");
  827. }
  828. // 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  829. function fChangeSearchCondition(cond) {
  830. switch(cond) {
  831. case '1':
  832. if(utlf_isNull(ds_send.getColumnInfo("pid"))) {
  833. ds_send.addColumn("pid", "string");
  834. }
  835. group2.ipt_pid.visible = true;
  836. group2.ipt_pid.position.left = 219;
  837. group2.ipt_pid.position.top = 8;
  838. group2.ipt_pid.position.width = 130;
  839. group2.ipt_hngnm.visible = false;
  840. group2.ipt_rrgstno1.visible = false;
  841. group2.ipt_rrgstno2.visible = false;
  842. group2.ipt_acptdd.visible = false;
  843. group2.ipt_pid.setFocus();
  844. break;
  845. case '2':
  846. if(utlf_isNull(ds_send.getColumnInfo("hngnm"))) {
  847. ds_send.addColumn("hngnm", "string");
  848. }
  849. ds_send.setColumn(0,"pid", "");
  850. group2.ipt_hngnm.visible = true;
  851. group2.ipt_hngnm.position.left = 219;
  852. group2.ipt_hngnm.position.top = 8;
  853. group2.ipt_hngnm.position.width = 130;
  854. group2.ipt_pid.visible = false;
  855. group2.ipt_rrgstno1.visible = false;
  856. group2.ipt_rrgstno2.visible = false;
  857. group2.ipt_acptdd.visible = false;
  858. group2.ipt_hngnm.setFocus();
  859. break;
  860. case '3':
  861. if(utlf_isNull(ds_send.getColumnInfo("rrgstno1"))) {
  862. ds_send.addColumn("rrgstno1", "string");
  863. }
  864. if(utlf_isNull(ds_send.getColumnInfo("rrgstno2"))) {
  865. ds_send.addColumn("rrgstno2", "string");
  866. }
  867. ds_send.setColumn(0,"pid", "");
  868. group2.ipt_rrgstno1.visible = true;
  869. group2.ipt_rrgstno1.position.left = 219;
  870. group2.ipt_rrgstno1.position.top = 8;
  871. group2.ipt_rrgstno1.position.width = 85;
  872. group2.ipt_rrgstno2.visible = true;
  873. group2.ipt_rrgstno2.position.left = 307;
  874. group2.ipt_rrgstno2.position.top = 8;
  875. group2.ipt_rrgstno2.position.width = 85;
  876. group2.ipt_pid.visible = false;
  877. group2.ipt_hngnm.visible = false;
  878. group2.ipt_acptdd.visible = false;
  879. group2.ipt_rrgstno1.setFocus();
  880. break;
  881. case '4':
  882. if(utlf_isNull(ds_send.getColumnInfo("hngnm"))) {
  883. ds_send.addColumn("hngnm", "string");
  884. }
  885. if(utlf_isNull(ds_send.getColumnInfo("rrgstno1"))) {
  886. ds_send.addColumn("rrgstno1", "string");
  887. }
  888. if(utlf_isNull(ds_send.getColumnInfo("rrgstno2"))) {
  889. ds_send.addColumn("rrgstno2", "string");
  890. }
  891. ds_send.setColumn(0,"pid", "");
  892. group2.ipt_hngnm.visible = true;
  893. group2.ipt_hngnm.position.left = 219;
  894. group2.ipt_hngnm.position.top = 8;
  895. group2.ipt_hngnm.position.width = 130;
  896. group2.ipt_rrgstno1.visible = true;
  897. group2.ipt_rrgstno1.position.left = 352;
  898. group2.ipt_rrgstno1.position.top = 8;
  899. group2.ipt_rrgstno1.position.width = 85;
  900. group2.ipt_rrgstno2.visible = true;
  901. group2.ipt_rrgstno2.position.left = 440;
  902. group2.ipt_rrgstno2.position.top = 8;
  903. group2.ipt_rrgstno2.position.width = 85;
  904. group2.ipt_pid.visible = false;
  905. group2.ipt_acptdd.visible = false;
  906. group2.ipt_hngnm.setFocus();
  907. break;
  908. case '5':
  909. if(utlf_isNull(ds_send.getColumnInfo("acptdd"))) {
  910. ds_send.addColumn("acptdd", "string");
  911. }
  912. group2.ipt_acptdd.visible = true;
  913. group2.ipt_acptdd.position.left = 219;
  914. group2.ipt_acptdd.position.top = 8;
  915. group2.ipt_acptdd.position.width = 130;
  916. group2.ipt_hngnm.visible = false;
  917. group2.ipt_rrgstno1.visible = false;
  918. group2.ipt_rrgstno2.visible = false;
  919. group2.ipt_pid.visible = false;
  920. ds_send.setColumn(0, "acptdd", utlf_getCurrentDate());
  921. group2.ipt_acptdd.setFocus();
  922. break;
  923. default :
  924. break;
  925. }
  926. }
  927. // 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  928. function fInputValueCheckXformsReady() {
  929. var cond = ds_send.getColumn(0, "srchcond");
  930. switch(cond) {
  931. case '1': //환자등록번호 체크
  932. if (utlf_isNull(ds_send.getColumn(0, "pid"))) {
  933. //sysf_messageBox("환자등록번호를 정확히", "C001");
  934. //group2.ipt_pid.setFocus();
  935. return false;
  936. } else {
  937. return true;
  938. }
  939. break;
  940. case '2': // 환자이름 체크
  941. if (utlf_isNull(ds_send.getColumn(0, "hngnm"))) {
  942. return false;
  943. } else if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length >= 2) {
  944. return true;
  945. } else {
  946. sysf_messageBox("환자이름을 2자리 이상", "C001");
  947. group2.ipt_hngnm.setFocus();
  948. return false;
  949. }
  950. break;
  951. case '3': // 환자 주민번호 체크
  952. if (utlf_isNull(ds_send.getColumn(0, "rrgstno1")) && utlf_isNull(ds_send.getColumn(0, "rrgstno2"))) {
  953. return false;
  954. } else {
  955. if(utlf_transNull(ds_send.getColumn(0,"rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0,"rrgstno2"), "").length >=1) {
  956. return true;
  957. } else {
  958. if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
  959. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  960. group2.ipt_rrgstno1.setFocus();
  961. return false;
  962. }
  963. if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1) {
  964. sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
  965. group2.ipt_rrgstno2.setFocus();
  966. return false;
  967. }
  968. sysf_messageBox("환자 주민번호를", "C001");
  969. group2.ipt_rrgstno1.setFocus();
  970. return false;
  971. }
  972. }
  973. break;
  974. case '4': // 환자명+주민번호 체크
  975. if (utlf_isNull(ds_send.getColumn(0, "hngnm")) && utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
  976. return false;
  977. } else if(!utlf_isNull(ds_send.getColumn(0, "hngnm")) && !utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
  978. //환자이름 체크
  979. if (utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2){
  980. sysf_messageBox("환자이름을 2자리 이상", "C001");
  981. group2.ipt_hngnm.setFocus();
  982. return false;
  983. }
  984. //환자 주민번호 체크
  985. if (utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
  986. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  987. group2.ipt_rrgstno1.setFocus();
  988. return false;
  989. }
  990. return true;
  991. } else {
  992. if (!utlf_isNull(ds_send.getColumn(0, "hngnm")) && utlf_isNull(ds_send.getColumn(0, "rrgstno1"))) {
  993. //환자명 조회로 변경
  994. ds_send.setColumn(0, "srchcond", "2");
  995. fChangeSearchCondition("2");
  996. if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2){
  997. sysf_messageBox("환자이름을 2자리 이상", "C001");
  998. group2.ipt_hngnm.setFocus();
  999. return false;
  1000. }
  1001. return true;
  1002. } else if (utlf_isNull(ds_send.getColumn(0, "hngnm"))) {
  1003. // 주민번호 조회로 변경
  1004. ds_send.setColumn(0, "srchcond", "3");
  1005. fChangeSearchCondition("3");
  1006. if (utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length >= 1) {
  1007. return true;
  1008. } else {
  1009. if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4){
  1010. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  1011. group2.ipt_rrgstno1.setFocus();
  1012. return false;
  1013. }
  1014. if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1){
  1015. sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
  1016. group2.ipt_rrgstno2.setFocus();
  1017. return false;
  1018. }
  1019. sysf_messageBox("환자 주민번호를", "C001");
  1020. group2.ipt_rrgstno1.setFocus();
  1021. return false;
  1022. }
  1023. }
  1024. }
  1025. break;
  1026. case '5': // 예약일자 유효성 체크
  1027. if (utlf_isValidDateTime(ds_send.getColumn(0, "acptdd"), "YYYYMMDD")) {
  1028. return true;
  1029. } else {
  1030. return false;
  1031. }
  1032. break;
  1033. default :
  1034. group2.cmb_cond.setFocus();
  1035. return false;
  1036. break;
  1037. }
  1038. }
  1039. function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
  1040. arErrorCode.push(sSvcId, nErrorCode);
  1041. }
  1042. // 입력값의 유효범위 체크
  1043. function fInputValueCheck() {
  1044. var cond = ds_send.getColumn(0, "srchcond");
  1045. switch(cond) {
  1046. case '1': // 환자등록번호 체크
  1047. if (utlf_isNull(ds_send.getColumn(0, "pid"))) {
  1048. sysf_messageBox("환자등록번호를 정확히", "C001");
  1049. group2.ipt_pid.setFocus();
  1050. return false;
  1051. } else {
  1052. return true;
  1053. }
  1054. break;
  1055. case '2':
  1056. //환자이름 체크
  1057. if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length >= 2) {
  1058. return true;
  1059. } else {
  1060. sysf_messageBox("환자이름을 2자리 이상", "C001");
  1061. group2.ipt_hngnm.setFocus();
  1062. return false;
  1063. }
  1064. break;
  1065. case '3':
  1066. //환자 주민번호 체크
  1067. if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length >=1) {
  1068. return true;
  1069. } else {
  1070. if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
  1071. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  1072. group2.ipt_rrgstno1.setFocus();
  1073. return false;
  1074. }
  1075. if(utlf_transNull(ds_send.getColumn(0, "rrgstno2"), "").length < 1) {
  1076. sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
  1077. group2.ipt_rrgstno2.setFocus();
  1078. return false;
  1079. }
  1080. sysf_messageBox("환자 주민번호를", "C001");
  1081. group2.ipt_rrgstno1.setFocus();
  1082. return false;
  1083. }
  1084. break;
  1085. case '4': // 환자이름 유효성 체크. 환자 주민번호 체크
  1086. // 환자이름 체크
  1087. if(utlf_transNull(ds_send.getColumn(0, "hngnm"), "").length < 2) {
  1088. sysf_messageBox("환자이름을 2자리 이상", "C001");
  1089. group2.ipt_hngnm.setFocus();
  1090. return false;
  1091. }
  1092. // 환자 주민번호 체크
  1093. if(utlf_transNull(ds_send.getColumn(0, "rrgstno1"), "").length < 4) {
  1094. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  1095. group2.ipt_rrgstno1.setFocus();
  1096. return false;
  1097. }
  1098. return true;
  1099. break;
  1100. case '5': // 예약일자 유효성 체크
  1101. if (utlf_isValidDateTime(ds_send.getColumn(0, "acptdd"), "YYYYMMDD")) {
  1102. return true;
  1103. } else {
  1104. sysf_messageBox("예약일자를 정확히", "C001");
  1105. return false;
  1106. }
  1107. break;
  1108. default :
  1109. sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  1110. group2.cmb_cond.setFocus();
  1111. return false;
  1112. break;
  1113. }
  1114. }]]></Script>
  1115. </Form>
  1116. </FDL>