SMPMC00200_라이온스환자관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>라이온스 시력 센터관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <engnm/>
  15. <chinm/>
  16. <rrgstno1/>
  17. <rrgstno2/>
  18. <brthdd/>
  19. <sex/>
  20. <age/>
  21. <bindpid/>
  22. <hometel/>
  23. <mpphontel/>
  24. <etctel1/>
  25. <etctel2/>
  26. <smsaprvyn/>
  27. <email/>
  28. <zipcd1/>
  29. <zipcd2/>
  30. <zipcdseq/>
  31. <addr/>
  32. <detladdr/>
  33. <btype/>
  34. <rh/>
  35. <forgeryn/>
  36. <nati/>
  37. <psptno/>
  38. <recmyn/>
  39. <recmerid/>
  40. <recmerrela/>
  41. <vipyn/>
  42. <viprem/>
  43. <religncd/>
  44. <baptnm/>
  45. <chchnm/>
  46. <dethyn/>
  47. <dethdt/>
  48. <chosresn/>
  49. <animyn/>
  50. <exptresncd/>
  51. <inhospyn/>
  52. <remfact/>
  53. <outuncoamt/>
  54. <dschuncoamt/>
  55. <fstrgstrid/>
  56. <fstrgstdt/>
  57. <lastupdtrid/>
  58. <lastupdtdt/>
  59. </patinfolist>
  60. </patinfo>
  61. <popupendflag/>
  62. <result>
  63. <patinfo/>
  64. <qualfact/>
  65. </result>
  66. <exequalfact>
  67. <pid/>
  68. <yyno_year/>
  69. <yyno_month/>
  70. <yyno_seq/>
  71. <instcd/>
  72. <kindflag>L1</kindflag>
  73. <outinstnm/>
  74. <fromdd/>
  75. <todd/>
  76. <orddeptcd1/>
  77. <orddeptcd2/>
  78. <orddeptcd3/>
  79. <orddeptcd4/>
  80. <orddeptcd5/>
  81. <snwcd/>
  82. <snwnm/>
  83. <fstrgstrid/>
  84. <fstrgstdt/>
  85. <lastupdtrid/>
  86. <lastupdtdt/>
  87. <checkflag/>
  88. <yyno/>
  89. </exequalfact>
  90. <h_rcptamt>
  91. <rcptamt>
  92. <rcptamt_flag/>
  93. <rcptamt_rcptandindd/>
  94. <rcptamt_dschdd/>
  95. <rcptamt_orddeptcd/>
  96. <rcptamt_patflag/>
  97. <rcptamt_totalamt/>
  98. <rcptamt_payamt/>
  99. <rcptamt_nopyamt/>
  100. <rcptamt_specamt/>
  101. <rcptamt_payownbamt/>
  102. </rcptamt>
  103. </h_rcptamt>
  104. <h_qualfact>
  105. <qualfact>
  106. <yyno/>
  107. <kindflag/>
  108. <outinstnm/>
  109. <fromtodd/>
  110. <orddeptcd1/>
  111. <snwnm/>
  112. </qualfact>
  113. </h_qualfact>
  114. </main>
  115. <send>
  116. <srchcond/>
  117. <checkfnexam/>
  118. <pid/>
  119. <hngnm/>
  120. <rrgstno1/>
  121. <rrgstno2/>
  122. <acptdd/>
  123. <srchdiag>
  124. <basedd/>
  125. <diagcd/>
  126. <diagnm/>
  127. <selectedrdodiagkind/>
  128. </srchdiag>
  129. </send>
  130. <init>
  131. <P0016list>
  132. <P0016>
  133. <cdnm/>
  134. <cdid/>
  135. </P0016>
  136. </P0016list>
  137. <orddeptcd>
  138. <orddeptcdlist>
  139. <cd/>
  140. <nm/>
  141. </orddeptcdlist>
  142. </orddeptcd>
  143. </init>
  144. <source>
  145. <srchcond/>
  146. <checkfnexam/>
  147. <pid/>
  148. <hngnm/>
  149. <rrgstno1/>
  150. <rrgstno2/>
  151. <acptdd/>
  152. <srchvalue/>
  153. <srchvalue2/>
  154. </source>
  155. <hidden>
  156. <sppiz00400>
  157. <rslt>
  158. <diagcd/>
  159. <diaghngnm/>
  160. <diagengnm/>
  161. </rslt>
  162. </sppiz00400>
  163. <flag/>
  164. </hidden>
  165. </root>
  166. </instance>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  171. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  172. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  173. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
  174. <submission id="TRPMC01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/datalist1"/>
  175. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  176. <script type="javascript" ev:event="xforms-ready">
  177. <![CDATA[
  178. zbcfGetCodeList(new Array("P0016"), new Array("/root/init/P0016list"));
  179. pamGetDeptCDDrIDList();
  180. fInitialize();
  181. model.refresh();
  182. ]]>
  183. </script>
  184. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  185. <submission id="TRPMC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/h_qualfact"/>
  186. <submission id="TXPMC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/exequalfact"/>
  187. <submission id="TXPMC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/exequalfact"/>
  188. <submission id="TRPMC00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_rcptamt"/>
  189. </model>
  190. <script type="javascript">
  191. <![CDATA[
  192. function fSearchPatInfo(){
  193. model.setValue("/root/source/srchcond", "1");
  194. model.setValue("/root/source/pid", ipt_pid.currentText);
  195. //환자등록번호 체크
  196. if(ipt_pid.currentText.length >= 1 ){
  197. model.resetInstanceNode("/root/main/result");
  198. model.makeNode("/root/main/result/patinfo");
  199. if(submit("TRPMC02500")){
  200. if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
  201. model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
  202. model.refresh();
  203. fSearch();
  204. model.setValue("/root/hidden/flag", "true");
  205. }else{
  206. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  207. messageBox("없는 환자 번호 입니다.", "E999", "");
  208. model.setValue("/root/hidden/flag", "false");
  209. model.refresh();
  210. }
  211. }
  212. }else{
  213. messageBox("환자등록번호를 정확히", "C001");
  214. }
  215. }
  216. function fSearch(){
  217. var pid = model.getValue("/root/source/pid");
  218. model.copyNode("/root/source", "/root/send");
  219. model.setValue("/root/send/pid", pid);
  220. submit("TRPMC01901");
  221. model.refresh();
  222. }
  223. function fInitialize() {
  224. //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  225. model.resetInstanceNode("/root/send");
  226. model.resetInstanceNode("/root/main/exequalfact");
  227. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  228. model.resetInstanceNode("/root/main/exequalfact/checkflag");
  229. model.resetInstanceNode("/root/main/h_rcptamt/rcptamt");
  230. model.resetInstanceNode("/root/main/h_qualfact");
  231. model.removeNodeset("/root/main/result/patinfo");
  232. model.removeNodeset("/root/main/result/qualfact");
  233. model.removeNodeset("/root/main/datalist1");
  234. fInitQualFact();
  235. model.refresh();
  236. }
  237. function fSetDiagCdNm(){
  238. if (model.getValue("/root/hidden/sppiz00400/rslt/diagcd") != "") {
  239. model.setValue("/root/main/exequalfact/snwcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  240. model.setValue("/root/main/exequalfact/snwnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  241. }
  242. model.refresh();
  243. }
  244. function fSearchQualFact(){
  245. var strdd = getCurrentDate();
  246. model.setValue("/root/send/pid", ipt_pid.currentText);
  247. if (model.getValue("/root/send/pid") != ""){
  248. submit("TRPMC00201");
  249. if (model.getValue("/root/main/h_qualfact/qualfact/yyno") != ""){
  250. model.setValue("/root/main/exequalfact/checkflag","true"); //조회가 된경우 자격사항에 업데이트 해야할 플래그
  251. }
  252. else {
  253. model.setValue("/root/main/exequalfact/checkflag","false"); //조회가 되지 않은 경우 insert
  254. model.setValue("/root/main/exequalfact/kindflag","L1");
  255. model.setValue("/root/main/exequalfact/fromdd",strdd);
  256. model.setValue("/root/main/exequalfact/todd",strdd);
  257. }
  258. model.setValue("/root/main/exequalfact/pid", model.getValue("/root/send/pid"));
  259. model.refresh();
  260. }
  261. else {
  262. return false;
  263. }
  264. }
  265. function fSearchRcptAmt(){
  266. if (model.getValue("/root/hidden/flag") == "true"){
  267. submit("TRPMC00204");
  268. }
  269. else {
  270. return false;
  271. }
  272. }
  273. function fInitQualFact(){
  274. var strdd = getCurrentDate();
  275. model.resetInstanceNode("/root/main/exequalfact");
  276. model.setValue("/root/main/exequalfact/kindflag","L1");
  277. model.setValue("/root/main/exequalfact/fromdd",strdd);
  278. model.setValue("/root/main/exequalfact/todd",strdd);
  279. model.setValue("/root/main/exequalfact/yyno_year", strdd.substring(0,4));
  280. model.setValue("/root/main/exequalfact/yyno_month", strdd.substring(4,6));
  281. ipt_yyyy.disabled = true;
  282. ipt_mm.disabled = true;
  283. model.refresh();
  284. }
  285. function fCheckQualFactYynn(){
  286. var yyno = model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/yyno");
  287. var yyno_seq = yyno.substring(6,9);
  288. var i = 0;
  289. var strYynoCheck = ipt_yyyy.currentText + ipt_mm.currentText + ipt_seq.currentText;
  290. var intSeq = ipt_seq.currentText;
  291. if ( ipt_seq.currentText !=yyno_seq) {
  292. fInitQualFact();
  293. model.setValue("/root/main/exequalfact/yyno_seq", intSeq);
  294. model.setValue("/root/main/exequalfact/checkflag","false");
  295. for( i = 0; i< datagrid1.rows;i++){
  296. if (strYynoCheck == model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/yyno")){
  297. model.setValue("/root/main/exequalfact/yyno",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/yyno"));
  298. model.setValue("/root/main/exequalfact/kindflag",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/kindflag"));
  299. model.setValue("/root/main/exequalfact/outinstnm",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/outinstnm"));
  300. model.setValue("/root/main/exequalfact/fromdd",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/fromto"));
  301. model.setValue("/root/main/exequalfact/todd",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/todd"));
  302. model.setValue("/root/main/exequalfact/orddeptcd1",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/orddeptcd1"));
  303. model.setValue("/root/main/exequalfact/orddeptcd2 ",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/orddeptcd2"));
  304. model.setValue("/root/main/exequalfact/orddeptcd3",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/orddeptcd3"));
  305. model.setValue("/root/main/exequalfact/orddeptcd4",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/orddeptcd4"));
  306. model.setValue("/root/main/exequalfact/orddeptcd5 ",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/orddeptcd5"));
  307. model.setValue("/root/main/exequalfact/snwcd",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/snwcd"));
  308. model.setValue("/root/main/exequalfact/snwnm",model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/snwnm"));
  309. }
  310. }
  311. model.refresh();
  312. }
  313. }
  314. ]]>
  315. </script>
  316. </xhtml:head>
  317. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  318. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  319. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:600px; height:13px; ">라이온스 시력 센터관리</caption>
  320. </group>
  321. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  322. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">인적사항</caption>
  323. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  324. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  325. <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:80px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  326. <line id="line9" class="line_2" style="x1:0px; y1:52px; x2:1086px; y2:52px; "/>
  327. <caption id="caption19" class="tit_2" style="left:5px; top:86px; width:170px; height:13px; ">진료내역</caption>
  328. <line id="line5" class="line_1" style="x1:0px; y1:101px; x2:1194px; y2:101px; "/>
  329. <datagrid id="datagrid1" nodeset="/root/main/h_qualfact/qualfact" caption="연번호^보험유형^외래기관^승인기간^진료과^상병명" colsep="^" colwidth="150, 110, 250, 160, 171, 372" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:106px; width:1194px; height:230px; font-family:돋움; ">
  330. <col ref="yyno" style="text-align:left; "/>
  331. <col ref="kindflag" style="text-align:center; "/>
  332. <col ref="outinstnm" style="text-align:left; "/>
  333. <col ref="fromtodd" style="text-align:center; "/>
  334. <col ref="orddeptcd1"/>
  335. <col ref="snwnm" style="text-align:left; "/>
  336. <script type="javascript" ev:event="onclick">
  337. <![CDATA[
  338. if ( isDataCell() ) {
  339. var yyno = model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/yyno");
  340. var yyno_year = yyno.substring(0,4);
  341. var yyno_month = yyno.substring(4,6);
  342. var yyno_seq = yyno.substring(6,9);
  343. model.setValue("/root/main/exequalfact/yyno_year", yyno_year);
  344. model.setValue("/root/main/exequalfact/yyno_month", yyno_month);
  345. model.setValue("/root/main/exequalfact/yyno_seq",yyno_seq);
  346. model.setValue("/root/main/exequalfact/kindflag", model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/kindflag"));
  347. model.setValue("/root/main/exequalfact/outinstnm",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/outinstnm"));
  348. model.setValue("/root/main/exequalfact/fromdd",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/fromto"));
  349. model.setValue("/root/main/exequalfact/todd",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/todd"));
  350. model.setValue("/root/main/exequalfact/orddeptcd1",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/orddeptcd1"));
  351. model.setValue("/root/main/exequalfact/orddeptcd2",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/orddeptcd2"));
  352. model.setValue("/root/main/exequalfact/orddeptcd3",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/orddeptcd3"));
  353. model.setValue("/root/main/exequalfact/orddeptcd4",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/orddeptcd4"));
  354. model.setValue("/root/main/exequalfact/orddeptcd5",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/orddeptcd5"));
  355. model.setValue("/root/main/exequalfact/snwcd", model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/snwcd"));
  356. model.setValue("/root/main/exequalfact/snwnm",model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/snwnm"));
  357. model.setValue("/root/main/exequalfact/fstrgstrid", model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/fstrgstrid"));
  358. model.setValue("/root/main/exequalfact/checkflag","true");
  359. model.refresh();
  360. }
  361. else {
  362. fInitQualFact();
  363. }
  364. ]]>
  365. </script>
  366. </datagrid>
  367. <caption id="caption20" class="cell_1" style="left:1011px; top:30px; width:80px; height:23px; vertical-align:middle; ">연락처</caption>
  368. <caption id="caption33" class="cell_1" style="left:0px; top:54px; width:80px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  369. <caption id="caption3" class="cell_1" style="left:1011px; top:54px; width:80px; height:23px; vertical-align:middle; ">휴대폰</caption>
  370. <caption id="caption13" class="cell_1" style="left:553px; top:54px; width:90px; height:23px; vertical-align:middle; ">하위주소</caption>
  371. <caption id="caption4" class="cell_1" style="left:206px; top:54px; width:90px; height:23px; vertical-align:middle; ">E-Mail 주소</caption>
  372. <caption id="caption5" class="cell_1" style="left:206px; top:30px; width:90px; height:23px; vertical-align:middle; ">주민번호/성별</caption>
  373. <caption id="caption8" class="cell_1" style="left:553px; top:30px; width:90px; height:23px; vertical-align:middle; ">주소</caption>
  374. <line id="line6" class="line_3" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  375. <input id="opt_sex" ref="/root/main/patinfo/patinfolist/sex" class="output_fix" style="left:465px; top:31px; width:41px; height:19px; "/>
  376. <input id="opt_age" ref="/root/main/patinfo/patinfolist/age" class="output_fix" style="left:509px; top:31px; width:41px; height:19px; "/>
  377. <input id="opt_zipcd1" ref="/root/main/patinfo/patinfolist/zipcd1" class="output_fix" style="left:646px; top:31px; width:30px; height:19px; "/>
  378. <input id="ipt_zipcd2" ref="/root/main/patinfo/patinfolist/zipcd2" class="output_fix" style="left:679px; top:31px; width:30px; height:19px; "/>
  379. <input id="opt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" style="left:712px; top:31px; width:296px; height:19px; "/>
  380. <input id="opt_hometel" ref="/root/main/patinfo/patinfolist/hometel" class="output_fix" style="left:1094px; top:31px; width:101px; height:19px; "/>
  381. <input id="opt_mpphontel" ref="/root/main/patinfo/patinfolist/mpphontel" class="output_fix" style="left:1094px; top:55px; width:101px; height:19px; "/>
  382. <input id="opt_detladdr" ref="/root/main/patinfo/patinfolist/detladdr" class="output_fix" style="left:646px; top:55px; width:362px; height:19px; "/>
  383. <input id="opt_email" ref="/root/main/patinfo/patinfolist/email" class="output_fix" style="left:299px; top:55px; width:251px; height:19px; "/>
  384. <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_essential" navindex="1" autonext="false" maxlength="10" style="left:83px; top:31px; width:120px; height:19px; ">
  385. <script type="javascript" ev:event="onkeypress">
  386. <![CDATA[
  387. if(event.keyCode == "13") {
  388. fSearchPatInfo();
  389. fSearchQualFact();
  390. fSearchRcptAmt();
  391. fInitQualFact();
  392. }
  393. ]]>
  394. </script>
  395. </input>
  396. <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_essential" navindex="2" imemode="hangul" style="left:83px; top:55px; width:120px; height:19px; ">
  397. <script type="javascript" ev:event="onkeypress">
  398. <![CDATA[
  399. model.setValue("/root/source/srchcond", "2");
  400. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  401. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  402. model.setValue("/root/hidden/flag", "true");
  403. fSearch();
  404. fSearchQualFact();
  405. fSearchRcptAmt();
  406. fInitQualFact();
  407. model.refresh();
  408. model.resetInstanceNode("/root/source");
  409. ]]>
  410. </script>
  411. </input>
  412. <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_essential" navindex="3" style="left:299px; top:31px; width:80px; height:19px; ">
  413. <script type="javascript" ev:event="onkeypress">
  414. <![CDATA[
  415. if(event.keyCode == "13") {
  416. model.setValue("/root/source/srchcond", "3");
  417. model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
  418. model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
  419. model.setValue("/root/hidden/flag", "true");
  420. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  421. fSearch();
  422. fSearchQualFact();
  423. fSearchRcptAmt();
  424. fInitQualFact();
  425. model.refresh();
  426. model.resetInstanceNode("/root/source");
  427. }
  428. ]]>
  429. </script>
  430. </input>
  431. <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_essential" navindex="4" style="left:382px; top:31px; width:80px; height:19px; ">
  432. <script type="javascript" ev:event="onkeypress">
  433. <![CDATA[
  434. if(event.keyCode == "13") {
  435. model.setValue("/root/source/srchcond", "3");
  436. model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
  437. model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
  438. model.setValue("/root/hidden/flag", "true");
  439. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  440. fSearch();
  441. fSearchQualFact();
  442. fSearchRcptAmt();
  443. fInitQualFact();
  444. model.refresh();
  445. model.resetInstanceNode("/root/source");
  446. }
  447. ]]>
  448. </script>
  449. </input>
  450. <datagrid id="datagrid2" nodeset="/root/main/h_rcptamt/rcptamt" caption="외래/입원^수납/입원일^퇴원일^진료과^환자구분^총진료비^급여액^비급여액^특진비^본인부담액" colsep="^" colwidth="90, 110, 110, 220, 110, 110, 110, 110, 110, 113" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:514px; width:1194px; height:230px; font-family:돋움; ">
  451. <col ref="rcptamt_flag" style="text-align:center; "/>
  452. <col ref="rcptamt_rcptandindd" format="yyyy-mm-dd" style="text-align:center; "/>
  453. <col ref="rcptamt_dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  454. <col ref="rcptamt_orddeptcd"/>
  455. <col ref="rcptamt_patflag" style="text-align:center; "/>
  456. <col ref="rcptamt_totalamt" format="#,###" style="text-align:right; "/>
  457. <col ref="rcptamt_payamt" format="#,###" style="text-align:right; "/>
  458. <col ref="rcptamt_nopyamt" format="#,###" style="text-align:right; "/>
  459. <col ref="rcptamt_specamt" format="#,###" style="text-align:right; "/>
  460. <col ref="rcptamt_payownbamt" format="#,###" style="text-align:right; "/>
  461. </datagrid>
  462. <line id="line8" class="line_1" style="x1:0px; y1:509px; x2:1194px; y2:509px; "/>
  463. <caption id="caption27" class="tit_2" style="left:5px; top:494px; width:170px; height:13px; ">수납금액</caption>
  464. <caption id="cap_pid" class="cell_1" style="left:0px; top:30px; width:80px; height:23px; vertical-align:middle; ">환자번호</caption>
  465. </group>
  466. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  467. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  468. <caption>초기화</caption>
  469. <script type="javascript" ev:event="DOMActivate">
  470. <![CDATA[
  471. fInitialize();
  472. ]]>
  473. </script>
  474. </button>
  475. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  476. <button id="button3" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  477. <caption>저장</caption>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. var yyno = ipt_yyyy.currentText + ipt_mm.currentText + ipt_seq.currentText;
  481. var strCheck = "true"; //같은 연번호 없음
  482. var i = 0;
  483. if (!isRequiredControls("ipt_pid","ipt_seq")) {//입력 컨트롤들의 필수값 체크
  484. return false;
  485. }
  486. model.setValue("/root/main/exequalfact/yyno",yyno );
  487. model.setValue("/root/main/exequalfact/pid", ipt_pid.currentText);
  488. if (model.getValue("/root/main/exequalfact/kindflag") == "L1"){
  489. model.setValue("/root/main/exequalfact/kindflag", "1");
  490. }else {
  491. model.setValue("/root/main/exequalfact/kindflag", "2");
  492. }
  493. if (model.getValue("/root/main/exequalfact/checkflag") == "true"){
  494. if (yyno == model.getValue("/root/main/h_qualfact/qualfact["+datagrid1.row+"]/yyno")) {
  495. //update
  496. submit("TXPMC00202");
  497. }else {
  498. //insert
  499. submit("TXPMC00203");
  500. }
  501. }else {
  502. for( i = 0; i< datagrid1.rows;i++){
  503. if (yyno == model.getValue("/root/main/h_qualfact/qualfact["+ i +"]/yyno")){
  504. strCheck = "false"; // 같은 연번호가 존재
  505. }
  506. }
  507. if (strCheck == "false"){
  508. //update
  509. submit("TXPMC00202");
  510. }else {
  511. //insert
  512. submit("TXPMC00203");
  513. }
  514. }
  515. fSearchQualFact();
  516. fInitQualFact();
  517. model.refresh();
  518. ]]>
  519. </script>
  520. </button>
  521. <line id="line58" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  522. </group>
  523. <button id="button1" class="icon_search" style="left:206px; top:476px; width:16px; height:16px; ">
  524. <caption/>
  525. <script type="javascript" ev:event="DOMActivate">
  526. <![CDATA[
  527. model.setValue("/root/send/srchdiag/basedd", getCurrentDate());
  528. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/srchdiag", "/root/init");
  529. ]]>
  530. </script>
  531. </button>
  532. <input id="ipt_snwnm" ref="/root/main/exequalfact/snwnm" class="input_default" navindex="15" style="left:225px; top:473px; width:420px; height:19px; "/>
  533. <line id="line10" class="line_2" style="x1:0px; y1:398px; x2:500px; y2:398px; "/>
  534. <input id="ipt_snwcd" ref="/root/main/exequalfact/snwcd" class="input_default" navindex="14" autonext="false" style="left:83px; top:473px; width:120px; height:19px; ">
  535. <script type="javascript" ev:event="onkeypress">
  536. <![CDATA[
  537. if (event.keyCode == '13') { // Enter 입력 시에
  538. model.setValue("/root/send/srchdiag/basedd", getCurrentDate());
  539. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/srchdiag", "/root/init");
  540. }
  541. ]]>
  542. </script>
  543. </input>
  544. <line id="line11" class="line_2" style="x1:0px; y1:422px; x2:645px; y2:422px; "/>
  545. <input id="ipt_outinstnm" ref="/root/main/exequalfact/outinstnm" class="input_default" navindex="6" style="left:83px; top:401px; width:562px; height:19px; "/>
  546. <line id="line12" class="line_2" style="x1:0px; y1:446px; x2:345px; y2:446px; "/>
  547. <caption id="caption43" class="search_no_b" style="left:208px; top:426px; width:12px; height:17px; ">~</caption>
  548. <caption id="caption21" class="tit_2" style="left:5px; top:356px; width:70px; height:13px; ">자격사항</caption>
  549. <line id="line13" class="line_2" style="x1:0px; y1:470px; x2:645px; y2:470px; "/>
  550. <line id="line14" class="line_3" style="x1:0px; y1:494px; x2:1194px; y2:494px; "/>
  551. <caption id="caption23" class="cell_1" style="left:0px; top:400px; width:80px; height:23px; vertical-align:middle; ">외래기관</caption>
  552. <caption id="caption24" class="cell_1" style="left:0px; top:424px; width:80px; height:23px; vertical-align:middle; ">승인기간</caption>
  553. <input id="ipt_todd" ref="/root/main/exequalfact/todd" class="input_default" navindex="8" inputtype="date" style="left:225px; top:425px; width:120px; height:19px; "/>
  554. <caption id="caption25" class="cell_1" style="left:0px; top:448px; width:80px; height:23px; vertical-align:middle; ">진료과</caption>
  555. <select1 id="rdo_kindflag" ref="/root/main/exequalfact/kindflag" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:333px; top:378px; width:282px; height:20px; background-color:transparent; border-style:none; ">
  556. <choices>
  557. <item>
  558. <label>의료급여1종</label>
  559. <value>L1</value>
  560. </item>
  561. <item>
  562. <label>의료급여2종+의료보험대상자</label>
  563. <value>L2</value>
  564. </item>
  565. </choices>
  566. </select1>
  567. <caption id="caption26" class="cell_1" style="left:0px; top:472px; width:80px; height:23px; vertical-align:middle; ">상병명</caption>
  568. <select1 id="cmb_orddeptcd1" ref="/root/main/exequalfact/orddeptcd1" class="combo_default" navindex="9" appearance="minimal" style="left:83px; top:449px; width:110px; height:19px; ">
  569. <choices>
  570. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  571. <label ref="nm"/>
  572. <value ref="cd"/>
  573. </itemset>
  574. </choices>
  575. </select1>
  576. <select1 id="cmb_orddeptcd2" ref="/root/main/exequalfact/orddeptcd2" class="combo_default" navindex="10" appearance="minimal" style="left:196px; top:449px; width:110px; height:19px; ">
  577. <choices>
  578. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  579. <label ref="nm"/>
  580. <value ref="cd"/>
  581. </itemset>
  582. </choices>
  583. </select1>
  584. <select1 id="cmb_orddeptcd3" ref="/root/main/exequalfact/orddeptcd3" class="combo_default" navindex="11" appearance="minimal" style="left:309px; top:449px; width:110px; height:19px; ">
  585. <choices>
  586. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  587. <label ref="nm"/>
  588. <value ref="cd"/>
  589. </itemset>
  590. </choices>
  591. </select1>
  592. <select1 id="cmb_orddeptcd4" ref="/root/main/exequalfact/orddeptcd4" class="combo_default" navindex="12" appearance="minimal" style="left:422px; top:449px; width:110px; height:19px; ">
  593. <choices>
  594. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  595. <label ref="nm"/>
  596. <value ref="cd"/>
  597. </itemset>
  598. </choices>
  599. </select1>
  600. <input id="ipt_fromdd" ref="/root/main/exequalfact/fromdd" class="input_default" navindex="7" inputtype="date" style="left:83px; top:425px; width:120px; height:19px; "/>
  601. <select1 id="cmb_orddeptcd5" ref="/root/main/exequalfact/orddeptcd5" class="combo_default" navindex="13" appearance="minimal" style="left:535px; top:449px; width:110px; height:19px; ">
  602. <choices>
  603. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  604. <label ref="nm"/>
  605. <value ref="cd"/>
  606. </itemset>
  607. </choices>
  608. </select1>
  609. <line id="line7" class="line_1" style="x1:0px; y1:371px; x2:1194px; y2:371px; "/>
  610. <caption id="caption2" class="search_no_b" style="left:175px; top:379px; width:12px; height:17px; ">-</caption>
  611. <caption id="caption9" class="search_no_b" style="left:244px; top:379px; width:12px; height:17px; ">-</caption>
  612. <input id="ipt_yyyy" ref="/root/main/exequalfact/yyno_year" class="input_default" style="left:83px; top:377px; width:87px; height:19px; text-align:right; ">
  613. <script type="javascript" ev:event="xforms-value-changed">
  614. <![CDATA[
  615. /* if ( ipt_yyno.currentText != model.getValue("/root/main/result/qualfact/yyno")) {
  616. var yyno = ipt_yyno.currentText
  617. var strdd = getCurrentDate();
  618. model.resetInstanceNode("/root/main/exequalfact");
  619. model.setValue("/root/main/exequalfact/yyno",yyno);
  620. model.setValue("/root/main/exequalfact/kindflag","L1");
  621. model.setValue("/root/main/exequalfact/fromdd",strdd);
  622. model.setValue("/root/main/exequalfact/todd",strdd);
  623. model.refresh();
  624. } */
  625. ]]>
  626. </script>
  627. </input>
  628. <input id="ipt_mm" ref="/root/main/exequalfact/yyno_month" class="input_default" style="left:193px; top:377px; width:45px; height:19px; text-align:right; ">
  629. <script type="javascript" ev:event="xforms-value-changed">
  630. <![CDATA[
  631. /* if ( ipt_yyno.currentText != model.getValue("/root/main/result/qualfact/yyno")) {
  632. var yyno = ipt_yyno.currentText
  633. var strdd = getCurrentDate();
  634. model.resetInstanceNode("/root/main/exequalfact");
  635. model.setValue("/root/main/exequalfact/yyno",yyno);
  636. model.setValue("/root/main/exequalfact/kindflag","L1");
  637. model.setValue("/root/main/exequalfact/fromdd",strdd);
  638. model.setValue("/root/main/exequalfact/todd",strdd);
  639. model.refresh();
  640. } */
  641. ]]>
  642. </script>
  643. </input>
  644. <input id="ipt_seq" ref="/root/main/exequalfact/yyno_seq" class="input_default" navindex="5" style="left:261px; top:377px; width:45px; height:19px; text-align:right; ">
  645. <script type="javascript" ev:event="xforms-value-changed">
  646. <![CDATA[
  647. fCheckQualFactYynn();
  648. ]]>
  649. </script>
  650. <script type="javascript" ev:event="DOMFocusOut">
  651. <![CDATA[
  652. fCheckQualFactYynn();
  653. ]]>
  654. </script>
  655. </input>
  656. <caption id="cap_seq" class="cell_1" style="left:0px; top:376px; width:80px; height:23px; vertical-align:middle; ">연번호</caption>
  657. </xhtml:body>
  658. </xhtml:html>