SMAHA02200.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. var gPatInfoPath = "/root/main/info/patinfo";
  2. var gSendPath = "/root/send";
  3. var gPatInfoPath = "/root/main/info/patinfo";
  4. var gmdlRcptPath = "/root/main/mdlamtspec/bogj";
  5. var gmdlDtlPath = "/root/main/mdlamtdescspec";
  6. var getcOptPath = "/root/main/etc/option";
  7. var gUpdDataPath = "/root/send/updatedata/bogj";
  8. var gMode = "I";
  9. /************************************************************************************************
  10. @author : 채희철
  11. @version : 2007-08-23
  12. 기초정보코드들을 로드한다.
  13. ************************************************************************************************/
  14. function fGetBaseInfo(){
  15. //계산상태, 접수상태, 수가계산상태
  16. zbcfGetCodeList(new Array("P0030","A0107","P0049","P0312","P0311","P0076","P0078","P0073"),
  17. new Array("/root/init/baseinfo","/root/init/baseinfo","/root/init/baseinfo",
  18. "/root/init/baseinfo","/root/init/baseinfo","/root/init/baseinfo",
  19. "/root/init/baseinfo","/root/init/baseinfo"))
  20. //submit("TRAHA00104");
  21. }
  22. /************************************************************************************************
  23. @author : 채희철
  24. @version : 2007-08-23
  25. 화면 초기화
  26. ************************************************************************************************/
  27. function fInitialize(){
  28. //patient info clear
  29. model.resetInstanceNode( gPatInfoPath + "/item");
  30. //그 외에 화면 초기화
  31. model.resetInstanceNode(gSendPath);
  32. model.removeNodeset(gmdlRcptPath);
  33. model.removeNodeset("/root/main/mdlamtdescspec/cardlist");
  34. model.removeNodeset("/root/main/mdlamtdescspec/cashlist");
  35. //디폴트세팅
  36. model.setValue("/root/send/updatedata/bogj/cardyn","Y"); //Y:카드 N:현금
  37. model.setValue( getcOptPath + "/indinstflag","P"); //P:소득공제 C:지출증빙
  38. //금액디폴트세팅
  39. model.resetInstanceNode(gUpdDataPath);
  40. //model.setValue( gUpdDataPath + "/bogj_cashamt","0");
  41. //model.setValue( gUpdDataPath + "/bogj_cardamt","0");
  42. //model.setValue( gUpdDataPath + "/bogj_rcptamt","0");
  43. //접수 내역 remove
  44. model.removeNodeset( "/root/main/list/acpt/acptlist" );
  45. // 날짜 기간 선택
  46. model.setValue( gSendPath + "/srchfromdd", getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
  47. model.setValue( gSendPath + "/srchtodd", getCurrentDate());
  48. model.setValue( gSendPath + "/srchhealexamflag", "");
  49. //개인단체 구분 기본 셋팅
  50. model.setValue("/root/send/prercptflag" , "1");
  51. model.setValue( gSendPath + "/srchinstcd", getUserInfo("dutplceinstcd") );
  52. btn_cardlist.dispatch("onclick");
  53. model.setFocus("ipt_pid");
  54. model.refresh();
  55. }
  56. /************************************************************************************************
  57. @author : 채희철
  58. @version : 2007-08-23
  59. 환자이름을 입력했을때 search하는 popup화면을 올리고 환자를 선택한후 내역을 조회한다.
  60. ************************************************************************************************/
  61. function fSearchPatinfo(){
  62. // 등록번호 일때
  63. if (model.getFocus() == "ipt_pid"){
  64. fSearchPatInfo("SMAHA02100", "pid", ipt_pid.currentText , "Y", gPatInfoPath + "/item",ipt_pid.attribute("ref"),ipt_pnm.attribute("ref") );
  65. }else{
  66. fSearchPatInfo("SMAHA02100", "pnm",ipt_pnm.currentText , "Y",gPatInfoPath + "/item",ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  67. }
  68. if ( model.getValue("root/temp/okflag") == 'ok'){
  69. model.setValue( gSendPath + "/srchrcptid", ipt_pid.currentText );
  70. btn_search.dispatch("DOMActivate");
  71. }
  72. }
  73. /**
  74. * 기관코드 및 사업체코드가져오기======================================================================================================================
  75. @author : 손주연
  76. @version : 2007-04-30
  77. @desc : 기관코드 및 사업체코드가져오기
  78. @param :
  79. *vOpenerID : 현재화면ID
  80. *vFlag : 코드구분 공통코드 A0114참조
  81. ** 01 판정의
  82. ** 02 건강보험공단
  83. ** 03 관할군병원
  84. ** 04 산업안전공단
  85. ** 05 보건소
  86. ** 06 노동청
  87. ** 07 지도원
  88. ** 08 사업체
  89. * vCond : 검색구분(cd/nm)
  90. * vCdnm : 검색조건(코드/명칭)
  91. * vDesXPathCd: code값을 setting할 목적노드
  92. * vDesXPathNm: name값을 setting할 목적노드
  93. * SPAHA00500_PARAM1 : 코드구분 공통코드 A0114참조
  94. * SPAHA00500_PARAM2 : 검색구분(cd/nm)
  95. * SPAHA00500_PARAM3 : 검색조건(코드/명칭)
  96. * SPAHA00500_PARAM4 : 기관코드
  97. * SPAHA00500_PARAM5 : 코드구분 공통코드 A0114참조
  98. * SPAHA00500_PARAM6 : code값을 setting할 목적노드
  99. * SPAHA00500_PARAM7 : name값을 setting할 목적노드
  100. */
  101. function fGetComnCd(vOpenerID, vFlag , vCond, vCdnm , vDesXPathCd , vDesXPathNm ){
  102. clearParameter("SPAHA00500_PARAM1");
  103. clearParameter("SPAHA00500_PARAM2");
  104. clearParameter("SPAHA00500_PARAM3");
  105. clearParameter("SPAHA00500_PARAM4");
  106. clearParameter("SPAHA00500_PARAM5");
  107. clearParameter("SPAHA00500_PARAM6");
  108. clearParameter("SPAHA00500_PARAM7");
  109. setParameter ("SPAHA00500_PARAM1", vFlag);
  110. setParameter ("SPAHA00500_PARAM2", vCond);
  111. setParameter ("SPAHA00500_PARAM3", vCdnm);
  112. setParameter ("SPAHA00500_PARAM4", getUserInfo("dutplceinstcd"));
  113. setParameter ("SPAHA00500_PARAM5", vOpenerID);
  114. setParameter ("SPAHA00500_PARAM6", vDesXPathCd);
  115. setParameter ("SPAHA00500_PARAM7", vDesXPathNm);
  116. modal("SPAHA00500");
  117. }
  118. /************************************************************************************************
  119. @author : 채희철
  120. @version : 2007-08-23
  121. 선택된 환자의 건진내역을 조회한다.
  122. ************************************************************************************************/
  123. function fGetList(){
  124. if(isXPathTextNull( gSendPath + "/srchtodd") || isXPathTextNull( gSendPath + "/srchfromdd")) return;
  125. model.resetInstanceNode(gUpdDataPath);
  126. model.setValue( gSendPath + "/srchinstcd" , getUserInfo("dutplceinstcd") );
  127. model.setValue( gSendPath + "/rcptid" , model.getValue(gPatInfoPath + "/item/pid"));
  128. model.setValue( gSendPath + "/prercptflag" , "1");
  129. model.removeNodeset("/root/main/mdlamtdescspec/cardlist");
  130. model.removeNodeset("/root/main/mdlamtdescspec/cashlist");
  131. model.resetInstanceNode("/root/send/updatedata/bogj");
  132. //건진 접수내역 조회
  133. submit("TRAHA02101")
  134. model.setValue("/root/send/updatedata/bogj/cardyn", "Y"); //Y: 카드 N:현금
  135. model.setValue( getcOptPath + "/indinstflag", "00"); //P:소득공제 C:지출증빙
  136. model.setValue("/root/send/updatedata/bogj/bogj_keyinptflag", "S"); //입금구분
  137. btn_receipt.disabled = false;
  138. btn_cancelrcpt.disabled = true;
  139. group3.disabled = false;
  140. model.setValue("/root/send/updatedata/bogj/bogj_allotmm", "00");
  141. combo1.disabled = true;
  142. ipt_cardamt.disabled = true;
  143. ipt_cashamt.disabled = true;
  144. //선수금 내역을 조회 한다.
  145. if(submit("TRAHA02201")){
  146. /* 개인/단체 구분은 일단 개인으로 SETTING */
  147. var vRcptCnt = getNodesetCount( gmdlRcptPath );
  148. //건수가 있으면 상세내역 조회 한다.
  149. if(vRcptCnt > 0){
  150. //fSelectRcpt(1);
  151. }else{
  152. //detail clear
  153. //model.removeNodeset("/root/main/mdlamtdescspec");
  154. model.removeNodeset("/root/main/mdlamtdescspec/cardlist");
  155. model.removeNodeset("/root/main/mdlamtdescspec/cashlist");
  156. //model.resetInstanceNode(gUpdDataPath);
  157. }
  158. }
  159. model.refresh();
  160. }
  161. function fGetList2(){
  162. if(isXPathTextNull(gSendPath + "/srchtodd") || isXPathTextNull(gSendPath + "/srchfromdd")) return;
  163. model.resetInstanceNode(gUpdDataPath);
  164. model.setValue( gSendPath + "/srchinstcd", getUserInfo("dutplceinstcd"));
  165. if(model.getValue("/root/send/prercptflag") == "1"){
  166. if(model.getValue("/root/main/info/patinfo/item/pid" )!=""){
  167. model.setValue( gSendPath + "/rcptid", model.getValue("/root/main/info/patinfo/item/pid" ));
  168. }else{
  169. model.makeValue( gSendPath + "/srchpid", model.getValue(gSendPath + "/rcptid" ));
  170. }
  171. model.setValue( gSendPath + "/prercptflag", "1");
  172. }
  173. if(model.getValue("/root/send/prercptflag") == "2"){
  174. model.setValue( gSendPath + "/rcptid", model.getValue("/root/main/coninfo/cmpyinfo/item/cmpycd" ));
  175. model.setValue( gSendPath + "/prercptflag","2");
  176. }
  177. model.removeNodeset("/root/main/mdlamtdescspec/cardlist");
  178. model.removeNodeset("/root/main/mdlamtdescspec/cashlist");
  179. model.resetInstanceNode("/root/send/updatedata/bogj");
  180. //건진 접수내역 조회
  181. submit("TRAHA02101", false);
  182. model.setValue("/root/send/updatedata/bogj/cardyn", "Y"); //Y: 카드 N:현금
  183. model.setValue( getcOptPath + "/indinstflag", "00"); //P:소득공제 C:지출증빙
  184. model.setValue("/root/send/updatedata/bogj/bogj_keyinptflag", "S"); //입금구분
  185. btn_receipt.disabled = false;
  186. btn_cancelrcpt.disabled = true;
  187. group3.disabled = false;
  188. model.setValue("/root/send/updatedata/bogj/bogj_allotmm", "00");
  189. combo1.disabled = true;
  190. ipt_cardamt.disabled = true;
  191. ipt_cashamt.disabled = true;
  192. //선수금 내역을 조회 한다.
  193. if(submit("TRAHA02201", false)){
  194. /* 개인/단체 구분은 일단 개인으로 SETTING */
  195. var vRcptCnt = getNodesetCount( gmdlRcptPath );
  196. //건수가 있으면 상세내역 조회 한다.
  197. if(vRcptCnt > 0){
  198. //fSelectRcpt(1);
  199. }else{
  200. //detail clear
  201. //model.removeNodeset("/root/main/mdlamtdescspec");
  202. model.removeNodeset("/root/main/mdlamtdescspec/cardlist");
  203. model.removeNodeset("/root/main/mdlamtdescspec/cashlist");
  204. //model.resetInstanceNode(gUpdDataPath);
  205. //model.refresh();
  206. }
  207. }
  208. model.refresh();
  209. }
  210. /************************************************************************************************
  211. @author : 채희철
  212. @version : 2007-08-23
  213. 중간금 수납내역 선택
  214. ************************************************************************************************/
  215. function fSelectRcpt(selectRow){
  216. if(grd_mdlamtlist.row > 0){
  217. group3.disabled = true;
  218. gMode = "U";
  219. var vcheck_rcptflag = model.getValue(gmdlRcptPath + "["+(grd_mdlamtlist.row)+"]/bogj_rcptflag").getTrim();
  220. if(vcheck_rcptflag == "" || vcheck_rcptflag == null || vcheck_rcptflag == "-" || vcheck_rcptflag == " "){
  221. messageBox("선택된 내역이 없습니다.", "E999","");
  222. return;
  223. }
  224. model.setValue(gSendPath + "/srchrcptdd" , model.getValue(gmdlRcptPath + "["+ selectRow +"]/bogj_rcptdd"));
  225. model.setValue(gSendPath + "/srchrcptno" , model.getValue(gmdlRcptPath + "["+ selectRow +"]/bogj_rcptno"));
  226. model.setValue(gSendPath + "/srchrcptseqno" , model.getValue(gmdlRcptPath + "["+ selectRow +"]/bogj_rcptseqno"));
  227. submit("TRAHA02202");
  228. model.resetInstanceNode( gSendPath + "/updatedata");
  229. /*
  230. //model.copyNode( gUpdDataPath ,gmdlRcptPath + "["+selectRow+"]");
  231. //카드금액 있으면, 카드화면 활성화/통장금액 있으면 통장화면 활성화
  232. var vcheck_cardamt = eval(model.getValue(gmdlRcptPath + "["+ selectRow +"]/bogj_cardamt"));
  233. var vcheck_cashamt = eval(model.getValue(gmdlRcptPath + "["+ selectRow +"]/bogj_cashamt"));
  234. //수납방법 표시
  235. if(vcheck_cardamt > 0){
  236. model.setValue("/root/send/updatedata/bogj/cardyn", "Y");
  237. model.setValue( gUpdDataPath + "/bogj_cardno",model.getValue( gUpdDataPath + "["+ selectRow +"]/bogj_cardno"));
  238. btn_cardlist.dispatch("onclick");
  239. }else if(vcheck_cashamt >= 5000){
  240. if(eval(model.getValue(gmdlRcptPath + "["+(grd_mdlamtlist.row)+"]/bogj_acptcashamt")) > 0){
  241. model.setValue("/root/send/updatedata/bogj/cardyn", "N");
  242. model.setValue( getcOptPath + "/indinstflag",model.getValue( gmdlRcptPath + "["+ selectRow +"]/bogj_indinstflag"));
  243. model.setValue( gUpdDataPath + "/bogj_cardno",model.getValue( gmdlRcptPath + "["+ selectRow +"]/bogj_qualcnfmno"));
  244. }else{
  245. model.setValue("/root/send/updatedata/bogj/cardyn", "C");
  246. }
  247. btn_cashlist.dispatch("onclick");
  248. }
  249. */
  250. model.setValue("/root/send/updatedata/bogj/bogj_rcptamt" , model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptamt"));
  251. model.setValue("/root/send/updatedata/bogj/bogj_cardamt" , model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_cardamt"));
  252. model.setValue("/root/send/updatedata/bogj/bogj_cashamt" , model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_cashamt"));
  253. model.setValue("/root/send/updatedata/bogj/bogj_rcptflag" , model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptflag"));
  254. model.setValue("/root/send/updatedata/bogj/bogj_remfact" , model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_remfact"));
  255. ipt_cardno.disabled = false;
  256. model.setValue("/root/send/updatedata/bogj/cardyn", "C");
  257. btn_cardlist.selected = true;
  258. btn_cashlist.selected = false;
  259. model.toggle("case_cardlist");
  260. if(grd_cardamtlist.rows > 1){
  261. btn_cardlist.selected = true;
  262. btn_cashlist.selected = false;
  263. model.toggle("case_cardlist");
  264. model.setValue("/root/send/updatedata/bogj/cardyn" , "Y");
  265. model.setValue("/root/send/updatedata/bogj/bogj_cardno" , model.getValue("/root/main/mdlamtdescspec/cardlist[" + 1 + "]/cardno"));
  266. model.setValue("/root/send/updatedata/bogj/bogj_qualcnfmflag" , "");
  267. model.setValue("/root/send/updatedata/bogj/bogj_valiterm" , model.getValue("/root/main/mdlamtdescspec/cardlist[" + 1 + "]/valiterm"));
  268. model.setValue("/root/send/updatedata/bogj/bogj_allotmm" , model.getValue("/root/main/mdlamtdescspec/cardlist[" + 1 + "]/allotmm"));
  269. model.setValue("/root/send/updatedata/bogj/bogj_keyinptflag" , model.getValue("/root/main/mdlamtdescspec/cardlist[" + 1 + "]/keyinptflag"));
  270. //model.setValue("/root/send/updatedata/bogj/bogj_remfact" , model.getValue("/root/main/mdlamtdescspec/cardlist[" + 1 + "]/remfact"));
  271. }
  272. if(grd_cashamtlist.rows > 1){
  273. btn_cardlist.selected = false;
  274. btn_cashlist.selected = true;
  275. model.toggle("case_cashlist");
  276. model.setValue("/root/send/updatedata/bogj/cardyn" , "N");
  277. model.setValue("/root/send/updatedata/bogj/bogj_cardno" , model.getValue("/root/main/mdlamtdescspec/cashlist[" + 1 + "]/qualcnfmno"));
  278. model.setValue("/root/send/updatedata/bogj/bogj_qualcnfmflag" , model.getValue("/root/main/mdlamtdescspec/cashlist[" + 1 + "]/qualcnfmflag"));
  279. model.setValue("/root/send/updatedata/bogj/bogj_valiterm" , "");
  280. model.setValue("/root/send/updatedata/bogj/bogj_allotmm" , "");
  281. model.setValue("/root/send/updatedata/bogj/bogj_keyinptflag" , model.getValue("/root/main/mdlamtdescspec/cashlist[" + 1 + "]/keyinptflag"));
  282. model.setValue("/root/main/etc/option/indinstflag" , model.getValue("/root/main/mdlamtdescspec/cashlist[" + 1 + "]/indinstflag"));
  283. //model.setValue("/root/send/updatedata/bogj/bogj_remfact" , model.getValue("/root/main/mdlamtdescspec/cashlist[" + 1 + "]/remfact"));
  284. }
  285. // XX1 = 수납, XX2 = 대체, XX3 = 반환
  286. //if(model.getValue( gUpdDataPath + "/bogj_rcptflag").substr(2,1) == "P"){
  287. if(model.getValue( gUpdDataPath + "/bogj_rcptflag") == "P"){
  288. //수납내역 클릭시에는 [수납]버튼 비활성화
  289. //수납내역 중, rcpstat = C 인 것은 환불된 것이거나, 대체된 것이므로, [수납취소]버튼 비활성화
  290. //수납금액이 잔액보다 적을 경우, [수납취소]버튼 비활성화
  291. btn_receipt.disabled = true;
  292. if(model.getValue(gUpdDataPath + "/bogj_rcptstat") == "C"){
  293. btn_cancelrcpt.disabled = true;
  294. }else{
  295. btn_cancelrcpt.disabled = false;
  296. }
  297. }else{
  298. //대체/반환한 내역 클릭시에는 [수납],[수납취소]버튼 비활성화
  299. btn_receipt.disabled = true;
  300. btn_cancelrcpt.disabled = true;
  301. }
  302. model.refresh();
  303. }
  304. }
  305. /************************************************************************************************
  306. @author : 채희철
  307. @version : 2007-08-23
  308. 카드 new를 클릭한다
  309. ************************************************************************************************/
  310. function fCardNew(){
  311. gMode ="I";
  312. //영수증 내역 초기화
  313. model.resetInstanceNode("/root/temp/receipt");
  314. //입력창 초기화
  315. model.resetInstanceNode( gUpdDataPath );
  316. //디폴트세팅
  317. model.setValue("/root/send/updatedata/bogj/cardyn","Y"); //Y: 카드 N:현금
  318. model.setValue( getcOptPath + "/indinstflag","00"); //P:소득공제 C:지출증빙
  319. btn_receipt.disabled = false;
  320. btn_cancelrcpt.disabled = true;
  321. group3.disabled = false;
  322. model.setValue( gUpdDataPath + "/bogj_allotmm","00");
  323. combo1.disabled = true;
  324. ipt_cardamt.disabled = true;
  325. ipt_cashamt.disabled = true;
  326. model.setFocus("ipt_rcptamt");
  327. model.refresh();
  328. }
  329. /************************************************************************************************
  330. @author : 채희철
  331. @version : 2007-08-23
  332. 해당 컨트롤에서 focus가 out될때 발생하는 내용..
  333. ************************************************************************************************/
  334. function fFocusOut(controlName){
  335. //수납예상금액
  336. if(controlName == "ipt_rcptamt"){
  337. //납부할 금액 입력 후 => 기본세팅이 카드이므로, 카드금액에 표시
  338. if(rdo_cardyn.value == "Y" ){
  339. model.setValue( gUpdDataPath + "/bogj_cardamt" , model.getValue( gUpdDataPath + "/bogj_rcptamt"));
  340. model.setValue( gUpdDataPath + "/bogj_cashamt" , 0);
  341. }else{
  342. model.setValue( gUpdDataPath + "/bogj_cardamt" , 0);
  343. model.setValue( gUpdDataPath + "/bogj_cashamt" , model.getValue( gUpdDataPath + "/bogj_rcptamt"));
  344. }
  345. }else if(controlName == "rdo_cardyn"){
  346. if(rdo_cardyn.value == "Y"){
  347. model.setValue( gUpdDataPath + "/bogj_cardamt" , model.getValue( gUpdDataPath + "/bogj_rcptamt"));
  348. model.setValue( gUpdDataPath + "/bogj_cashamt" , "0");
  349. model.setValue( gUpdDataPath + "/bogj_qualcnfmflag" , "");
  350. model.setValue( gUpdDataPath + "/bogj_indinstflag" , "");
  351. model.setValue("/root/send/updatedata/bogj/bogj_allotmm" , "00");
  352. combo1.disabled = true;
  353. ipt_valiterm.disabled = false;
  354. ipt_allotmm.disabled = false;
  355. }else{
  356. model.setValue("/root/send/updatedata/bogj/bogj_valiterm" , "");
  357. model.setValue("/root/send/updatedata/bogj/bogj_allotmm" , "");
  358. ipt_valiterm.disabled = true;
  359. ipt_allotmm.disabled = true;
  360. model.setValue( gUpdDataPath + "/bogj_cardamt" , "0");
  361. model.setValue( gUpdDataPath + "/bogj_cashamt" , model.getValue( gUpdDataPath + "/bogj_rcptamt"));
  362. if(rdo_cardyn.value == "N"){
  363. model.setValue( gUpdDataPath + "/bogj_qualcnfmflag" , "1");
  364. model.setValue( gUpdDataPath + "/bogj_indinstflag" , "00");
  365. model.setValue( gUpdDataPath + "/bogj_cardno" , model.getValue("/root/main/patinfo/item/rrgstno1")+
  366. model.getValue("/root/main/patinfo/item/rrgstno2") ); //주민번호세팅
  367. combo1.disabled = false;
  368. }else {
  369. model.setValue( gUpdDataPath + "/bogj_qualcnfmflag" , "");
  370. model.setValue( gUpdDataPath + "/bogj_indinstflag" , "");
  371. model.setValue( gUpdDataPath + "/bogj_cardno" , "");
  372. combo1.disabled = true;
  373. }
  374. }
  375. model.setFocus("ipt_cardno");
  376. }else if(controlName == "ipt_cashamt"){
  377. //납부할 금액에서 카드금액+현금금액 뺀 나머지 금액을 통장금액으로 세팅
  378. var vcheck_onlineamt = eval(model.getValue( gUpdDataPath + "/bogj_rcptexptamt"))
  379. - eval(model.getValue( gUpdDataPath + "/bogj_cardamt"))
  380. - eval(model.getValue( gUpdDataPath + "/bogj_cashamt"));
  381. //카드선택되 있으면서, 카드번호 입력없이 카드금액 >0 일 경우, 카드번호에 포커스
  382. if(model.getValue("/root/send/updatedata/bogj/cardyn") == "N" &&
  383. eval(model.getValue( gUpdDataPath + "/bogj_cashamt")) > 0 &&
  384. (model.getValue( gUpdDataPath + "/bogj_cardno")).getTrim() == ""){
  385. model.setFocus("ipt_cardno");
  386. }
  387. model.refresh();
  388. }else if(controlName == "ipt_cardamt"){
  389. //납부할 금액에서 카드금액 뺀 나머지 금액을 현금금액으로 세팅
  390. var vcheck_cashamt = eval(model.getValue( gUpdDataPath + "/bogj_rcptexptamt"))
  391. - eval(model.getValue( gUpdDataPath + "/bogj_cardamt"));
  392. model.setValue( gUpdDataPath + "/bogj_cashamt", (vcheck_cashamt).toString());
  393. //카드선택되 있으면서, 카드번호 입력없이 카드금액 >0 일 경우, 카드번호에 포커스
  394. if(model.getValue("/root/send/updatedata/bogj/cardyn") == "Y" &&
  395. eval(model.getValue( gUpdDataPath + "/bogj_cardamt")) > 0 &&
  396. (model.getValue( gUpdDataPath + "/bogj_cardno")).getTrim() == ""){
  397. model.setFocus("ipt_cardno");
  398. }
  399. model.refresh();
  400. }else if ( controlName == "ipt_paypsnamt"){
  401. //납입금 <= 납부할 금액 = 카드+현금+통장입금
  402. if (ipt_paypsnamt.currentText > ipt_rcptexptamt.currentText){
  403. messageBox("납부자 납입금 금액을 확인하십시오.(납부자 납입금 > 납부할 금액).","E999","");
  404. model.setFocus("ipt_paypsnamt");
  405. return;
  406. }
  407. }else if(controlName = "ipt_rcptamt"){
  408. if(rdo_cardyn.value == "Y"){
  409. model.setValue( gUpdDataPath + "/bogj_cardamt", ipt_rcptamt.value);
  410. model.setValue( gUpdDataPath + "/bogj_cashamt", "0");
  411. }else{
  412. model.setValue( gUpdDataPath + "/bogj_cardamt", "0" );
  413. model.setValue( gUpdDataPath + "/bogj_cashamt", ipt_rcptamt.value);
  414. if(rdo_cardyn.value == "N"){
  415. model.setValue( gUpdDataPath + "/bogj_cardno",model.getValue("/root/main/patinfo/item/rrgstno1") +
  416. model.getValue("/root/main/patinfo/item/rrgstno2") ); //주민번호세팅
  417. }else{
  418. model.setValue( gUpdDataPath + "/bogj_cardno","");
  419. }
  420. }
  421. }else if(controlName = "ipt_cardno"){
  422. if(rdo_cardyn.value == "N"){
  423. model.setValue( gUpdDataPath + "bogj_qualcnfmno", model.getValue(gUpdDataPath + "bogj_cardno" ));
  424. }
  425. }
  426. model.refresh();
  427. }
  428. /************************************************************************************************
  429. @author : 채희철
  430. @version : 2007-08-23
  431. 해당 컨틀롤을 select했을때 발생한다.
  432. ************************************************************************************************/
  433. function fControlSelect(controlName){
  434. }
  435. /************************************************************************************************
  436. @author : 채희철
  437. @version : 2007-08-23
  438. 수납을 실시한다.
  439. ************************************************************************************************/
  440. function fReceipt(){
  441. //필수사항과 입력타입을 체크한다.
  442. if(isRequiredControls("cmb_rcptflag", "cmb_paypsnflag")){
  443. //messageBox("모든 필수값이 입력이", "I002")
  444. }else{
  445. return;
  446. }
  447. //수납금액이 카드+현금+통장 == 0 이면, 체크
  448. if(isNull( model.getValue( gUpdDataPath + "/bogj_cardamt"))){
  449. model.setValue( gUpdDataPath + "/bogj_cardamt", "0");
  450. }
  451. if(isNull( model.getValue( gUpdDataPath + "/bogj_cashamt"))){
  452. model.setValue( gUpdDataPath + "/bogj_cashamt", "0");
  453. }
  454. //납부할금액 = 카드+현금+온라인
  455. if(eval(model.getValue( gUpdDataPath +"/ bogj_rcptamt")) !=
  456. eval(model.getValue( gUpdDataPath +"/bogj_cashamt"))+
  457. eval(model.getValue( gUpdDataPath +"/bogj_cardamt"))){
  458. messageBox("금액오류입니다.(납부할금액 != 카드금액+현금금액)", "E999", "");
  459. return;
  460. }
  461. if(eval(model.getValue( gUpdDataPath +"/bogj_rcptamt") <= 0 )){
  462. messageBox("납부할 금액이 없습니다. 금액을 확인하십시오","E999","");
  463. return;
  464. }
  465. if(eval(model.getValue( gUpdDataPath +"/bogj_cashamt"))+
  466. eval(model.getValue( gUpdDataPath +"/bogj_cardamt")) == 0){
  467. messageBox("금액을 확인하십시오.(카드금액+현금금액 = 0)", "E999", "");
  468. return;
  469. }
  470. if((model.getValue("/root/send/updatedata/bogj/cardyn")== "Y") &&
  471. eval(model.getValue( gUpdDataPath +"/bogj_cardamt")) == 0){
  472. var rtn = messageBox("카드로 선택되었으나, 카드금액 입력이 되지 않았습니다.\n\n현금으로(현금영수증승인안함) 처리하시려면 [예], 진행을 중단하시려면 [아니오]를 선택하십시오.", "Q999");
  473. if(rtn == 7) return;
  474. }
  475. //bogj
  476. model.setValue( gUpdDataPath +"/bogj_instcd" , getUserInfo("dutplceinstcd"));
  477. model.setValue( gUpdDataPath +"/bogj_prercptflag" , model.getValue("/root/send/prercptflag"));
  478. model.setValue( gUpdDataPath +"/bogj_rcptid" , model.getValue("/root/send/rcptid"));
  479. model.setValue( gUpdDataPath +"/bogj_pid" , model.getValue("/root/send/rcptid"));
  480. model.setValue( gUpdDataPath +"/bogj_rcptstat" , "Y"); //수납상태:수납 Y
  481. model.setValue( gUpdDataPath +"/bogj_rcptdd" , getCurrentDate()); //영수일자:현재날짜
  482. model.setValue( gUpdDataPath +"/bogj_rcptexecdd" , getCurrentDate()); //수납일자:현재날짜
  483. model.setValue( gUpdDataPath +"/bogj_rcpttm" , getCurrentTime()); //수납시간:현재시간
  484. //card
  485. if(model.getValue( gUpdDataPath +"/bogj_cardamt") > "0"){
  486. model.setValue("/root/send/updatedata/card/card_instcd" , getUserInfo("dutplceinstcd") );
  487. model.setValue("/root/send/updatedata/card/card_pid" , model.getValue("/root/send/rcptid"));
  488. model.setValue("/root/send/updatedata/card/card_ordtype" , "H");
  489. model.setValue("/root/send/updatedata/card/card_cardno1" , model.getValue( gUpdDataPath +"/bogj_cardno1"));
  490. model.setValue("/root/send/updatedata/card/card_cardamt" , model.getValue( gUpdDataPath +"/bogj_cardamt"));
  491. model.setValue("/root/send/updatedata/card/card_rcptstat" , "Y"); //수납상태:수납 Y
  492. model.setValue("/root/send/updatedata/card/card_rcptdd" , model.getValue( gUpdDataPath +"/bogj_rcptdd")); //영수일자:현재날짜
  493. model.setValue("/root/send/updatedata/card/card_rcptexecdd" , model.getValue( gUpdDataPath +"/bogj_rcptexecdd")); //수납일자:현재날짜
  494. model.setValue("/root/send/updatedata/card/card_rcpttm" , model.getValue( gUpdDataPath +"/bogj_rcpttm")); //수납시간:현재시간
  495. model.setValue("/root/send/updatedata/card/card_preamtyn" , "Y"); //선수금여부 Y
  496. model.setValue("/root/send/updatedata/card/card_innrtretyn" , "N"); //내부처리여부 N
  497. model.setValue("/root/send/updatedata/card/card_cardno" , model.getValue( gUpdDataPath +"/bogj_cardno")); //카드번호
  498. model.setValue("/root/send/updatedata/card/card_allotmm" , model.getValue( gUpdDataPath +"/bogj_allotmm")); //할부개월
  499. model.setValue("/root/send/updatedata/card/card_valiterm" , model.getValue( gUpdDataPath +"/bogj_valiterm")); //유효기간
  500. model.setValue("/root/send/updatedata/card/card_keyinptflag" , model.getValue( gUpdDataPath +"/bogj_keyinptflag")); //K :Keyin S:Swipe
  501. }
  502. //cash
  503. if((eval(model.getValue( gUpdDataPath +"/bogj_cashamt")) >= 5000) && (model.getValue("/root/send/updatedata/bogj/cardyn") == "N" )){
  504. model.setValue("/root/send/updatedata/cash/cash_pid" , model.getValue("/root/send/rcptid"));
  505. model.setValue("/root/send/updatedata/cash/cash_instcd" , getUserInfo("dutplceinstcd") );
  506. model.setValue("/root/send/updatedata/cash/cash_cashamt" , model.getValue( gUpdDataPath + "/bogj_cashamt"));
  507. model.setValue("/root/send/updatedata/cash/cash_ordtype" , "H"); //진료형태:외래 O
  508. model.setValue("/root/send/updatedata/cash/cash_rcptstat" , "Y"); //수납상태:수납 Y
  509. model.setValue("/root/send/updatedata/cash/cash_rcptdd" , model.getValue( gUpdDataPath + "/bogj_rcptdd")); //영수일자:현재날짜
  510. model.setValue("/root/send/updatedata/cash/cash_rcptexecdd" , model.getValue( gUpdDataPath + "/bogj_rcptexecdd")); //수납일자:현재날짜
  511. model.setValue("/root/send/updatedata/cash/cash_rcpttm" , model.getValue( gUpdDataPath + "/bogj_rcpttm")); //수납시간:현재시간
  512. model.setValue("/root/send/updatedata/cash/cash_preamtyn" , "Y"); //선수금여부 Y
  513. model.setValue("/root/send/updatedata/cash/cash_innrtretyn" , "N"); //내부처리여부 N
  514. model.setValue("/root/send/updatedata/cash/cash_indinstflag" , model.getValue( getcOptPath + "/ndinstflag")); //개인법인구분 P:개인, C:법인
  515. model.setValue("/root/send/updatedata/cash/cash_qualcnfmno" , model.getValue( gUpdDataPath + "/bogj_cardno")); //자격확인번호
  516. model.setValue("/root/send/updatedata/cash/cash_qualcnfmflag" , model.getValue( gUpdDataPath +"/bogj_qualcnfmflag")); //자격확인구분(1:주민번호,2:핸드폰번호 3:신용카드번호 4:사업장)
  517. model.setValue("/root/send/updatedata/cash/cash_keyinptflag" , model.getValue( gUpdDataPath +"/bogj_keyinptflag")); //K :Keyin S:Swipe
  518. model.setValue("/root/send/updatedata/cash/cash_indinstflag" , model.getValue("/root/main/etc/option/indinstflag")); //K :Keyin S:Swipe
  519. }
  520. //건진 선수금 처리
  521. if(submit("TXAHA02201")){
  522. fGetList(); //수납처리 성공시, 재조회
  523. }
  524. }
  525. /************************************************************************************************
  526. @author : 채희철
  527. @version : 2007-08-23
  528. 수납취소시
  529. ************************************************************************************************/
  530. function fReceiptCancel(){
  531. //잔액보다 큰 금액을 수납취소시, return
  532. if(eval(model.getValue("/root/main/mdlamtspec/remamt/remamt_remamt")) <
  533. eval(model.getValue("/root/send/updatedata/bogj/bogj_cashamt")) +
  534. eval(model.getValue("/root/send/updatedata/bogj/bogj_cardamt")) +
  535. eval(model.getValue("/root/send/updatedata/bogj/bogj_onlineamt"))){
  536. messageBox("수납취소할 수 없습니다.수납취소할 금액이 잔액보다 큽니다.","I999");
  537. return;
  538. }
  539. //bogj
  540. model.setValue("/root/send/updatedata/bogj/bogj_instcd" ,getUserInfo("dutplceinstcd"));
  541. model.setValue( gUpdDataPath +"/bogj_rcptid" ,model.getValue("/root/send/rcptid"));
  542. model.setValue("/root/send/updatedata/bogj/bogj_pid" ,model.getValue("/root/send/rcptid"));
  543. model.setValue("/root/send/updatedata/bogj/bogj_rcptdd" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptdd"));//영수일자=원 수납영수일자
  544. model.setValue("/root/send/updatedata/bogj/bogj_rcptno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptno"));//영수증번호
  545. model.setValue("/root/send/updatedata/bogj/bogj_rcptseqno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptseqno"));//영수일련번호
  546. model.setValue("/root/send/updatedata/bogj/bogj_rcptstat" ,"D"); //수납상태:d/c D
  547. //model.makeValue("/root/send/updatedata/bogj/bogj_rcptdd" ,""); //영수일자=원 수납영수일자
  548. model.setValue("/root/send/updatedata/bogj/bogj_rcptexecdd" ,getCurrentDate()); //수납일자:현재날짜
  549. model.setValue("/root/send/updatedata/bogj/bogj_rcpttm" ,getCurrentTime()); //수납시간:현재시간
  550. //online
  551. if(eval(model.getValue("/root/send/updatedata/bogj/bogj_onlineamt")) > 0){
  552. model.setValue("/root/send/updatedata/onln/onln_pid" ,model.getValue("/root/send/pid"));
  553. model.setValue("/root/send/updatedata/onln/onln_ordtype" ,"H"); //진료형태:건진 H
  554. model.setValue("/root/send/updatedata/onln/onln_rcptstat" ,"D"); //수납상태:d/c D
  555. model.setValue("/root/send/updatedata/onln/onln_rcptdd" ,model.getValue("/root/send/updatedata/bogj/bogj_rcptdd"));//영수일자=원 수납영수일자
  556. model.setValue("/root/send/updatedata/onln/onln_rcptno" ,model.getValue("/root/send/updatedata/bogj/bogj_rcptno"));//영수증번호
  557. model.setValue("/root/send/updatedata/onln/onln_rcptseqno" ,model.getValue("/root/send/updatedata/bogj/bogj_rcptseqno"));//영수일련번호
  558. model.setValue("/root/send/updatedata/onln/onln_rcptexecdd" ,model.getValue("/root/send/updatedata/bogj/bogj_rcptexecdd")); //수납일자:현재날짜-선수금과같음
  559. model.setValue("/root/send/updatedata/onln/onln_rcpttm" ,model.getValue("/root/send/updatedata/bogj/bogj_rcpttm")); //수납시간:현재시간-선수금과같음
  560. }
  561. //card
  562. if(eval(model.getValue("/root/send/updatedata/bogj/bogj_cardamt")) > 0){
  563. model.setValue("/root/send/updatedata/card/card_instcd" ,getUserInfo("dutplceinstcd") );
  564. model.setValue("/root/send/updatedata/card/card_pid" ,model.getValue("/root/send/rcptid"));
  565. model.setValue("/root/send/updatedata/card/card_ordtype" ,"H"); //진료형태:건진 H
  566. model.setValue("/root/send/updatedata/card/card_rcptstat" ,"D"); //수납상태:d/c D
  567. model.setValue("/root/send/updatedata/card/card_rcptdd" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptdd"));//영수일자=원 수납영수일자
  568. model.setValue("/root/send/updatedata/card/card_rcptno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptno"));//영수증번호
  569. model.setValue("/root/send/updatedata/card/card_rcptseqno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptseqno"));//영수일련번호
  570. model.setValue("/root/send/updatedata/card/card_rcptexecdd" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptexecdd")); //수납일자:현재날짜-선수금과같음
  571. model.setValue("/root/send/updatedata/card/card_rcpttm" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcpttm")); //수납시간:현재시간-선수금과같음
  572. }
  573. //cash
  574. if(eval(model.getValue("/root/send/updatedata/bogj/bogj_cashamt")) > 0){
  575. model.setValue("/root/send/updatedata/cash/cash_instcd" ,getUserInfo("dutplceinstcd") );
  576. model.setValue("/root/send/updatedata/cash/cash_pid" ,model.getValue("/root/send/rcptid"));
  577. model.setValue("/root/send/updatedata/cash/cash_ordtype" ,"H"); //진료형태:건진 H
  578. model.setValue("/root/send/updatedata/cash/cash_rcptstat" ,"D"); //수납상태:d/c D
  579. model.setValue("/root/send/updatedata/cash/cash_rcptdd" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptdd"));//영수일자=원 수납영수일자
  580. model.setValue("/root/send/updatedata/cash/cash_rcptno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptno"));//영수증번호
  581. model.setValue("/root/send/updatedata/cash/cash_rcptseqno" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptseqno"));//영수일련번호
  582. model.setValue("/root/send/updatedata/cash/cash_rcptexecdd" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcptexecdd")); //수납일자:현재날짜-선수금과같음
  583. model.setValue("/root/send/updatedata/cash/cash_rcpttm" ,model.getValue("/root/main/mdlamtspec/bogj[" + grd_mdlamtlist.row + "]/bogj_rcpttm")); //수납시간:현재시간-선수금과같음
  584. }
  585. //외래선수금 수납 취소처리
  586. if(submit("TXAHA02202")){
  587. fGetList2(); //수납처리 성공시, 재조회
  588. }
  589. }
  590. /************************************************************************************************
  591. @author : 채희철
  592. @version : 2007-08-23
  593. 영수증 재발행
  594. ************************************************************************************************/
  595. function fReceiptPrint(vRePrintYN){
  596. //대체일때는 영수증 출력 X
  597. if(model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_rcptflag").substr(2,1) == "2") return;
  598. if(vRePrintYN == "Y"){
  599. //재발행이면, 선택된 수납정보로 출력
  600. var vpid = model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_pid");
  601. if(vpid == "" || vpid == " " || vpid == null){
  602. messageBox("선택된 내역이 없습니다.","E999", "");
  603. return;
  604. }
  605. //ordtype : 외래영수증 / 외래중간금영수증 / 외래합산영수증
  606. model.makeValue("/root/temp/receipt/instcd" , model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_instcd"));
  607. model.makeValue("/root/temp/receipt/pid" , model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_pid"));
  608. model.makeValue("/root/temp/receipt/ordtype" , "외래중간금영수증");
  609. model.makeValue("/root/temp/receipt/rcptdd" , model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_rcptdd"));
  610. model.makeValue("/root/temp/receipt/rcptno" , model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_rcptno"));
  611. model.makeValue("/root/temp/receipt/rcptseqno" , model.getValue("/root/main/mdlamtspec/bogj["+ grd_mdlamtlist.row +"]/bogj_rcptseqno"));
  612. model.makeValue("/root/temp/receipt/fromdd" , "");
  613. model.makeValue("/root/temp/receipt/todd" , "");
  614. model.makeValue("/root/temp/receipt/engYN" , "N");
  615. model.makeValue("/root/temp/receipt/reprintYN" , "Y");
  616. model.makeValue("/root/temp/receipt/ordrcptflag" , "" );
  617. }else{
  618. //재발행아니면, 수납/취소 시 output Parameter
  619. //model.copyNode("/root/temp/receipt","/root/send/updatedata");
  620. model.makeValue("/root/temp/receipt/instcd" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_instcd"));
  621. model.makeValue("/root/temp/receipt/pid" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_rcptid"));
  622. model.makeValue("/root/temp/receipt/ordtype" , "MDL");
  623. model.makeValue("/root/temp/receipt/rcptrid" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_rcptrid"));
  624. model.makeValue("/root/temp/receipt/rcptdd" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_rcptdd"));
  625. model.makeValue("/root/temp/receipt/rcptno" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_rcptno"));
  626. model.makeValue("/root/temp/receipt/rcptseqno" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_rcptseqno"));
  627. model.makeValue("/root/temp/receipt/seqno" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_seqno"));
  628. model.makeValue("/root/temp/receipt/fromdd" , "");
  629. model.makeValue("/root/temp/receipt/todd" , "");
  630. model.makeValue("/root/temp/receipt/engYN" , "N");
  631. model.makeValue("/root/temp/receipt/reprintYN" , "N");
  632. model.makeValue("/root/temp/receipt/ordrcptflag" , "");
  633. model.makeValue("/root/temp/receipt/prercptflag" , model.getValue("root/main/mdlamtspec/bogj"+"["+ grd_mdlamtlist.row +"]/bogj_prercptflag"));
  634. }
  635. //영수증 팝업화면 호출
  636. //modal("../../../pam/pamcomnweb/xrw/SPPAO01900_영수증출력", "1", "100", "100" ,"SPPAO01900_영수증출력", "", "");
  637. //open("SPPAO01900");
  638. modal("../../../ast/healexamrcptweb/xrw/SPAHA02110", "1","100", "100", "SPAHA02110", "", "");
  639. }