SPPAO00600_현금환불승인.xrw 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPAO00600_현금환불승인.xrw
  4. * 설 명 : 본화면은 공통에 포함되며 현금환불시 데이터를 기록할때 사용된다.
  5. 팝업으로 사용되며 팝업 호출시 환자번호 ~ 진료의까지의 기본 데이터를 받게되고
  6. 받은 데이터는 인적사항에 자동으로 셋팅된다.
  7. 사용자는 환불금액,일자,시간, 환불자,관계,전화번호를 입력받고 마지막으로 서명을 받게된다.
  8. 저장버튼을 누르게되면 자동으로 저장되고 이력이 자동으로 조회된다.
  9. * 설 계 자 : 박승만
  10. * 작 성 자 : 이성인
  11. * 작 성 일 : 2009.01.08
  12. * 수정이력 :
  13. * 기 타 :
  14. -->
  15. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  16. <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">
  17. <xhtml:head>
  18. <xhtml:title>환불승인</xhtml:title>
  19. <model id="model1">
  20. <![CDATA[/>]]>
  21. <instance id="instance1">
  22. <root xmlns="">
  23. <send>
  24. <srchpid/>
  25. <srchfromdd/>
  26. <srchtodd/>
  27. <srchflag/>
  28. <instcd/>
  29. <histyn/>
  30. <dataflag/>
  31. <patinfosrchflag/>
  32. </send>
  33. <main>
  34. <rtnlist>
  35. <rtndd/>
  36. <rtntm/>
  37. <rtnamt/>
  38. <orddd/>
  39. <orddeptcd/>
  40. <fstrgstrid/>
  41. <rtnstst/>
  42. <ordtype/>
  43. <insukind/>
  44. <rtnkind/>
  45. <orddrnm/>
  46. <orddrid/>
  47. <pid/>
  48. <hngnm/>
  49. <rrgstno1/>
  50. <rrgstno2/>
  51. <hometel/>
  52. <mpphontel/>
  53. <rtnrid/>
  54. <rtnrrela/>
  55. <rtnrtel/>
  56. <elctsigncnts/>
  57. <rtnresn/>
  58. <remfact/>
  59. <instcd/>
  60. <cretno/>
  61. <seqno/>
  62. <lastupdtrid/>
  63. <lastupdtdt/>
  64. <elctsignkey/>
  65. </rtnlist>
  66. <rtninfo>
  67. <pid/>
  68. <hngnm/>
  69. <rrgstno1/>
  70. <rrgstno2/>
  71. <hometel/>
  72. <mpphontel/>
  73. <orddd/>
  74. <orddeptcd/>
  75. <orddrid/>
  76. <rtnamt/>
  77. <rtndd/>
  78. <rtntm/>
  79. <rtnrid/>
  80. <rtnrrela/>
  81. <rtnrtel/>
  82. <remfact/>
  83. <instcd/>
  84. <cretno/>
  85. <elctsignkey>-</elctsignkey>
  86. <elctsigncnts>-</elctsigncnts>
  87. <seqno/>
  88. <dataflag/>
  89. <insukind/>
  90. <ordtype/>
  91. <rtnkind/>
  92. </rtninfo>
  93. <usgeflag/>
  94. </main>
  95. <init>
  96. <P0016list/>
  97. <P0008list/>
  98. <P0001list/>
  99. <P0032list/>
  100. <P6591list/>
  101. </init>
  102. <hidden>
  103. <session/>
  104. </hidden>
  105. <tmp>
  106. <patinfo/>
  107. <editmodeyn/>
  108. </tmp>
  109. <comport/>
  110. </root>
  111. </instance>
  112. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  113. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  114. <submission id="TRPAO00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rtnlist"/>
  115. <submission id="TXPAO00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rtninfo" resultref="/root/main/rtnlist"/>
  116. <submission id="TRPAO00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/patinfo"/>
  117. <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post"/>
  118. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  119. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  120. </model>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  128. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  129. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  130. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  131. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  132. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  133. <script type="javascript" ev:event="xforms-ready">
  134. <![CDATA[
  135. //사인패드의 기기가 다르므로
  136. //pamfGetCodeList(new Array("P0032"), new Array("/root/init/P0032list"));//사인패드의 공통코드
  137. //setParameter("signpad_kind", model.getValue("/root/init/P0032list/P0032[cdid = '50']/cdnm"));
  138. fsignpad_init();
  139. /*
  140. if(getParameter("signpad_kind") == "ep-661" ) {
  141. //이지패드에서 빼서 앞에다 둬야지 인식이 잘된다.
  142. KiccDSCX1.Port = 11;
  143. KiccDSCX1.Speed = 57600;
  144. KiccDSCX1.LineType = 0;
  145. kocces_grup.attribute("visibility") = "hidden";
  146. kicc_grup.attribute("visibility") = "visible";
  147. SignPad_img.attribute("visibility") = "hidden";
  148. }
  149. if(getParameter("signpad_kind") == "sign-1000" ) {
  150. SignPad.GetSetSize("240", "120");
  151. kocces_grup.attribute("visibility") = "visible";
  152. kicc_grup.attribute("visibility") = "hidden";
  153. SignPad_img.attribute("visibility") = "hidden";
  154. }
  155. if(getParameter("signpad_kind") == "kis-sp30" ) {
  156. kis_sp30.SetPortNo(6);
  157. kis_sp30.SetBaudRate(57600);
  158. kocces_grup.attribute("visibility") = "hidden";
  159. kicc_grup.attribute("visibility") = "hidden";
  160. kis_grup.attribute("visibility") = "visible";
  161. SignPad_img.attribute("visibility") = "hidden";
  162. }
  163. */
  164. var sUserInfosS = getUserInfos();
  165. var UserInfosS_Array = sUserInfosS.split("|");
  166. model.makeValue("/root/tmp/instcd", UserInfosS_Array[6]);
  167. fCodeSet(); //공통코드
  168. fDefaultSet(); //화면의 기본데이터 셋팅
  169. fPopupSet(); //팝업일때 데이터 셋팅
  170. model.refresh();
  171. ]]>
  172. </script>
  173. <script type="javascript" ev:event="xforms-close">
  174. <![CDATA[
  175. fsignpad_close();
  176. ]]>
  177. </script>
  178. <script type="javascript">
  179. <![CDATA[
  180. function fPopupSet(){
  181. //만약 상태가 팝업이라면
  182. if( checkOpener() ){
  183. setParameter("SPPAO00600_RTN","");
  184. var SPPAO00600_PARM = opener.javascript.getParameter("SPPAO00600_PARM");
  185. var array_parm = SPPAO00600_PARM.split("▦");
  186. gUsgeflag = array_parm[0]; //1.외래등록, 외래수납,입원수납 에서 환불내역 조회용 2.환불수납후 영수증을 위해 호출
  187. gInstcd = array_parm[1];//근무지 기관코드
  188. if(gInstcd == null){
  189. gInstcd = model.getValue("/root/tmp/instcd");
  190. }
  191. //근무지 기관코드
  192. gPid = array_parm[2];
  193. gHngnm = array_parm[3];
  194. gRrgstno1 = array_parm[4];
  195. gRrgstno2 = array_parm[5];
  196. gHometel = array_parm[6];
  197. gMpphontel = array_parm[7];
  198. gOrddd = array_parm[8];
  199. gCretno = array_parm[9];
  200. gOrddeptcd = array_parm[10];
  201. gOrddrid = array_parm[11];
  202. gRtnamt = array_parm[12];
  203. gInsukind = array_parm[13];
  204. gOrdtype = array_parm[14];
  205. setParameter("SPPAO00600_PARM","");
  206. model.setValue("/root/main/usgeflag" , gUsgeflag);
  207. model.setValue("/root/main/rtninfo/instcd" , gInstcd);
  208. model.setValue("/root/main/rtninfo/pid" , gPid );
  209. model.setValue("/root/main/rtninfo/hngnm" , gHngnm );
  210. model.setValue("/root/main/rtninfo/rrgstno1" , gRrgstno1 );
  211. model.setValue("/root/main/rtninfo/rrgstno2" , gRrgstno2 );
  212. model.setValue("/root/main/rtninfo/hometel" , gHometel );
  213. model.setValue("/root/main/rtninfo/mpphontel" , gMpphontel ); //.setReplaceWord("-","")
  214. model.setValue("/root/main/rtninfo/orddd" , gOrddd );
  215. model.setValue("/root/main/rtninfo/cretno" , gCretno ); //진료의 공통키 이므로 받는다.
  216. model.setValue("/root/main/rtninfo/orddeptcd" , gOrddeptcd );
  217. model.setValue("/root/main/rtninfo/orddrid" , gOrddrid );
  218. model.setValue("/root/main/rtninfo/rtnrid" , gHngnm ); //환불자를 기본으로 환자로 셋팅
  219. model.setValue("/root/main/rtninfo/rtnrtel" , gMpphontel ); //환불자전화번호를 기본으로 환불자로 셋팅
  220. model.setValue("/root/main/rtninfo/rtnamt" , gRtnamt );
  221. model.setValue("/root/main/rtninfo/insukind" , gInsukind );
  222. model.setValue("/root/main/rtninfo/ordtype" , gOrdtype );
  223. model.setValue("/root/send/instcd" , gInstcd );
  224. ipt_srchpid.value = gPid;
  225. //다없으면 첫번째if문을 탄다
  226. if(gOrddd =="" || gOrddeptcd==""){
  227. fPatInfoSrch("otpt");
  228. }
  229. if(gUsgeflag == "1"){
  230. var srchpid = ipt_srchpid.currentText;
  231. if(srchpid.length > 0){
  232. btn_srch.dispatch("DOMActivate");
  233. }
  234. //2.일때는 환불을 하기 위해서이므로 인적사항에 셋팅
  235. }else if(gUsgeflag == "2"){
  236. //fEasyPadCall(); //이지패드콜
  237. fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
  238. }
  239. cmb_orddeptcd.dispatch("xforms-value-changed");
  240. model.setFocus("btn_save");
  241. }
  242. }
  243. function fCodeSet(){
  244. zbcfGetCodeList(
  245. new Array("P0016","P0008","P0001"),
  246. new Array("/root/init/P0016list","/root/init/P0008list" ,"/root/init/P0001list")
  247. );
  248. // 환불종류를 기초코드로 변경(2016/11/10)
  249. pamfGetCodeList(new Array("P6591"), new Array("/root/init/P6591list"));
  250. // 환불종류를 기초코드로 변경(2016/11/10)
  251. //addComboItem로 서브밋이 되면 5자리 값으로 들어가게된다.
  252. addComboItem( "cmb_insukind" , "-", "above");
  253. model.setValue("/root/init/P0008list/P0008/cdid","-");
  254. model.setValue("/root/init/P0008list/P0008/cdnm","-");
  255. //진료과코드 진료의사ID 조회
  256. zsdfGetInOutOrdDeptList( model.getValue("/root/tmp/instcd"), "/root/init/orddeptcd/orddeptcdlist", 'dispseq', 'asc', getCurrentDate() );
  257. model.setValue("/root/init/orddeptcd/orddeptcdlist/dept/deptcd","-");
  258. model.setValue("/root/init/orddeptcd/orddeptcdlist/dept/depthngnm","-");
  259. }//fCodeSet end
  260. function fSave(flag)
  261. {
  262. if(fChkValue()== false){return};
  263. /*
  264. if(getParameter("signpad_kind") == "ep-661" ) {
  265. KiccDSCX1.ReqInit();
  266. KiccDSCX1.Open = false;
  267. }
  268. */
  269. model.makeValue("/root/main/rtninfo/dataflag", flag);
  270. var srchpid = model.getValue("/root/main/rtninfo/pid");
  271. if(submit("TXPAO00601",false)==false){
  272. messageBox("데이터 입력 실패.", "E999");
  273. return false;
  274. }else{
  275. messageBox("정상적으로 처리 되었습니다.", "E999");
  276. fsignpad_close();
  277. if(flag == "I") window.close();
  278. }
  279. /*
  280. if(getParameter("signpad_kind") == "sign-1000" ) {
  281. SignPad.SPclose();
  282. window.close();
  283. }
  284. if(getParameter("signpad_kind") == "ep-661" ) {
  285. model.setValue("/root/send/srchfromdd",model.getValue("/root/main/rtninfo/rtndd"));
  286. model.setValue("/root/send/srchtodd",model.getValue("/root/main/rtninfo/rtndd"));
  287. model.setValue("/root/send/srchpid", srchpid);
  288. fRtnSrch(srchpid);
  289. //1번째 줄 자동 클릭
  290. grd_rtnlist.row =1;
  291. grd_rtnlist.dispatch("onentercell");
  292. grd_rtnlist.dispatch("ondblclick");
  293. model.setFocus("button3");
  294. }
  295. */
  296. }//fSave end
  297. function fEasyPadCall(){
  298. if(getParameter("signpad_kind") == "ep-661" ) {
  299. model.setValue("/root/tmp/editmodeyn","Y");//이중 수정 모드를 막기 위함.
  300. KiccDSCX1.Open = false;
  301. KiccDSCX1.Open = true;
  302. //초기화
  303. KiccDSCX1.ReqInit();
  304. var rtnamt = model.getValue("/root/main/rtninfo/rtnamt");
  305. if(rtnamt == null || rtnamt.getTrim() == ""){rtnamt = 0;}
  306. KiccDSCX1.Amount = rtnamt;//금액
  307. KiccDSCX1.ReqData = " 700081 ";
  308. KiccDSCX1.SignKind = 2;
  309. KiccDSCX1.ReqSign();
  310. }
  311. if(getParameter("signpad_kind") == "sign-1000" ) {
  312. model.setValue("/root/tmp/editmodeyn","Y");//이중 수정 모드를 막기 위함.
  313. // SignPad_img.attribute("visibility") = "hidden";
  314. // kocces_grup.attribute("visibility") = "visible";
  315. var rtn;
  316. var rtnamt = model.getValue("/root/main/rtninfo/rtnamt");
  317. if(rtnamt == null || rtnamt.getTrim() == ""){rtnamt = 0;}
  318. // 서명 요청하기
  319. rtn = SignPad.SignRequest(9, 38400, rtnamt);
  320. }
  321. }
  322. function fInit(){
  323. model.resetInstanceNode("/root/send");
  324. model.resetInstanceNode("/root/main/rtnlist");
  325. model.resetInstanceNode("/root/main/rtninfo");
  326. fsignpad_init();
  327. /*
  328. if(getParameter("signpad_kind") == "ep-661" ) {
  329. KiccDSCX1.ReqInit();//사인내역 제거
  330. }
  331. if(getParameter("signpad_kind") == "sign-1000" ) {
  332. SignPad.SignRequest(9, 38400, "");
  333. kocces_grup.attribute("visibility") = "visible";
  334. SignPad_img.attribute("visibility") = "hidden";
  335. SignPad.SPclose();
  336. }
  337. if(getParameter("signpad_kind") == "kis-sp30" ) {
  338. kis_sp30.SetPortNo(6);
  339. kis_sp30.SetBaudRate(57600);
  340. kicc_grup.attribute("visibility") = "visible";
  341. }
  342. */
  343. }
  344. function fDefaultSet(flag){
  345. model.setValue("/root/comport" , "3");
  346. //기본 컬럼 셋팅
  347. model.setValue("/root/main/rtninfo/rtndd",getCurrentDate().substr(0,8));//일자
  348. model.setValue("/root/main/rtninfo/rtntm",(getCurrentTime()).substring(0,4));//시간
  349. model.setValue("/root/send/srchfromdd",getCurrentDate().substr(0,8));//일자
  350. model.setValue("/root/send/srchtodd",getCurrentDate().substr(0,8));//일자
  351. model.setValue("/root/main/rtninfo/rtnrrela","1");//본인
  352. model.setValue("/root/send/srchflag","rtndd")//환불이력 조회조건
  353. model.setValue("/root/send/histyn","N")//이력포함.
  354. model.setValue("/root/main/rtninfo/ordtype","O");//진료구분
  355. model.setValue("/root/main/rtninfo/rtnkind","R");
  356. model.setValue("/root/send/instcd" , model.getValue("/root/tmp/instcd"));
  357. model.setValue("/root/main/rtninfo/instcd", model.getValue("/root/tmp/instcd"));
  358. }
  359. function fChkValue(){
  360. if((model.getValue("/root/main/rtninfo/pid")).getTrim() == ""){messageBox("환자등록번호를 입력하십시오", "E999"); return false;}
  361. if((model.getValue("/root/main/rtninfo/orddeptcd")).getTrim() == ""){model.setValue("/root/main/rtninfo/orddeptcd","-");}
  362. if((model.getValue("/root/main/rtninfo/orddrid")).getTrim() == ""){model.setValue("/root/main/rtninfo/orddrid","-");}
  363. if((model.getValue("/root/main/rtninfo/orddd")).getTrim() == ""){model.setValue("/root/main/rtninfo/orddd","-");}
  364. if((model.getValue("/root/main/rtninfo/ordtype")).getTrim() == ""){messageBox("진료구분을 입력하십시오", "E999"); return false;}
  365. if((model.getValue("/root/main/rtninfo/insukind")).getTrim() == ""){model.setValue("/root/main/rtninfo/insukind","-");}//없을수있음.
  366. if((model.getValue("/root/main/rtninfo/rtndd")).getTrim() == ""){messageBox("환불일을 입력하십시오", "E999"); return false;}
  367. if((model.getValue("/root/main/rtninfo/rtntm")).getTrim() == ""){messageBox("환불시간을 입력하십시오", "E999"); return false;}
  368. if((model.getValue("/root/main/rtninfo/rtnrid")).getTrim() == ""){messageBox("환불자를 입력하십시오", "E999"); return false;}
  369. if((model.getValue("/root/main/rtninfo/rtnrtel")).getTrim() == "" || (model.getValue("/root/main/rtninfo/rtnrtel")).getTrim() == "-" ){messageBox("환불자 전화번호를 입력하십시오", "E999"); return false;}
  370. if((model.getValue("/root/main/rtninfo/rtnrrela")).getTrim() == ""){model.setValue("/root/main/rtninfo/rtnrrela","1");}//본인
  371. if((model.getValue("/root/main/rtninfo/rtnamt")).getTrim() == ""){messageBox("환불금액을 입력하십시오", "E999"); return false;}
  372. if((model.getValue("/root/main/rtninfo/rtnamt")).getTrim() == "0"){
  373. var rtn = messageBox("금액이 0원 입니다. 내역을 저장 하시겠습니까? ", "Q999");
  374. if(rtn == "7"){ //아니오
  375. return false;
  376. }
  377. }
  378. if((model.getValue("/root/main/rtninfo/rtnkind")).getTrim() == ""){messageBox("환불종류를 입력하십시오", "E999"); return false;}
  379. var flag = model.getValue("/root/main/rtninfo/elctsigncnts");
  380. if(flag == "" || flag == "-"){
  381. fsignpad_save();
  382. model.setValue("/root/main/rtninfo/elctsignkey" , model.getValue("/root/send/elctsignkey"), true);
  383. model.setValue("/root/main/rtninfo/elctsigncnts" , model.getValue("/root/send/elctsigncnts") , true);
  384. }
  385. /*
  386. if(getParameter("signpad_kind") == "ep-661" ) {
  387. model.setValue("/root/main/rtninfo/elctsigncnts", KiccDSCX1.SignStr);
  388. model.setValue("/root/main/rtninfo/elctsignkey", KiccDSCX1.Seed);
  389. }
  390. if(getParameter("signpad_kind") == "sign-1000" ) {
  391. var sign;
  392. var pid = model.getValue("/root/main/rtninfo/pid");
  393. url = 'C:\\Program Files\\himed\\components\\KICC\\EasyPad\\' + pid +'.bmp'
  394. sign = SignPad.GetOnlyData(url);
  395. if (sign == -1){
  396. messageBox("사인 얻기 실패","E999","");
  397. return;
  398. }else{
  399. model.setValue("/root/main/rtninfo/elctsigncnts", sign);
  400. model.setValue("/root/main/rtninfo/elctsignkey", '-');
  401. }
  402. }
  403. */
  404. if((model.getValue("/root/main/rtninfo/elctsigncnts")).getTrim() == ""){
  405. //messageBox("서명하십시오", "E999"); return false;}
  406. var rtn = messageBox("서명을 하지 않았습니다. 서명없이 저장 하시겠습니까?", "Q999");
  407. if( rtn != '6' ){
  408. return false;
  409. // null 방지용
  410. } else {
  411. model.setValue("/root/main/rtninfo/elctsignkey", " ");
  412. model.setValue("/root/main/rtninfo/elctsigncnts", " ");
  413. }
  414. }
  415. }
  416. function fRtnSrch(pid)
  417. {
  418. if(pid == null || pid.getTrim() == "" ){
  419. messageBox("환자번호를 입력 하십시오. ", "E999");
  420. return;
  421. }
  422. if(model.getValue("/root/send/srchfromdd") > model.getValue("/root/send/srchtodd")){
  423. messageBox("조회 시작일이 종료일보다 큽니다. ", "E999");
  424. return;
  425. }
  426. model.setValue("/root/send/srchpid",pid);
  427. submit("TRPAO00602",false);
  428. }
  429. function fPatInfoSrch(flag){
  430. var srchpid = ipt_pid.currentText;
  431. model.setValue("/root/send/srchpid",srchpid);
  432. ipt_srchpid.refresh();
  433. if(srchpid == null || srchpid.getTrim() == "" ){
  434. messageBox("환자번호를 입력 하십시오. ", "E999");
  435. return;
  436. }
  437. model.setValue("/root/send/patinfosrchflag",flag); //ptbs환자 정보만 //otpt진료이력 포함
  438. if(!submit("TRPAO00603", false)){
  439. messageBox("환자의 인적사항이 존재하지 않습니다.","E999");
  440. return;
  441. }else{
  442. model.setValue("/root/main/rtninfo/pid",model.getValue("/root/tmp/patinfo/pid"));
  443. model.setValue("/root/main/rtninfo/hngnm",model.getValue("/root/tmp/patinfo/hngnm"));
  444. model.setValue("/root/main/rtninfo/rrgstno1",model.getValue("/root/tmp/patinfo/rrgstno1"));
  445. model.setValue("/root/main/rtninfo/rrgstno2",model.getValue("/root/tmp/patinfo/rrgstno2"));
  446. model.setValue("/root/main/rtninfo/hometel",model.getValue("/root/tmp/patinfo/hometel"));
  447. model.setValue("/root/main/rtninfo/mpphontel",model.getValue("/root/tmp/patinfo/mpphontel"));
  448. model.setValue("/root/main/rtninfo/orddd",model.getValue("/root/tmp/patinfo/orddd"));
  449. model.setValue("/root/main/rtninfo/orddeptcd",model.getValue("/root/tmp/patinfo/orddeptcd"));
  450. model.setValue("/root/main/rtninfo/orddrid",model.getValue("/root/tmp/patinfo/orddrid"));
  451. model.setValue("/root/main/rtninfo/ordtype",model.getValue("/root/tmp/patinfo/ordtype"));
  452. model.setValue("/root/main/rtninfo/insukind",model.getValue("/root/tmp/patinfo/insukind"));
  453. ipt_pid.refresh();opt_rrgstno1.refresh(); opt_rrgstno2.refresh();opt_hngnm.refresh();opt_hometel.refresh();opt_mpphontel.refresh();
  454. ipt_orddd.refresh();cmb_orddeptcd.refresh(); cmb_orddrid.refresh();cmb_ordtype.refresh();cmb_insukind.refresh();
  455. }
  456. }
  457. ]]>
  458. </script>
  459. </xhtml:head>
  460. <xhtml:body pagewidth="790" pageheight="418" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  461. <group id="group3" scroll="auto" style="left:0px; top:0px; width:770px; height:387; ">
  462. <line id="line7" class="line_2" style="x1:1px; y1:148px; x2:363px; y2:148px; "/>
  463. <line id="line6" class="line_2" style="x1:0px; y1:48px; x2:363px; y2:48px; "/>
  464. <line id="line5" class="line_2" style="x1:0px; y1:123px; x2:363px; y2:123px; "/>
  465. <line id="line4" class="line_2" style="x1:0px; y1:98px; x2:363px; y2:98px; "/>
  466. <line id="line3" class="line_2" style="x1:0px; y1:73px; x2:363px; y2:73px; "/>
  467. <line id="line8" class="line_2" style="x1:0px; y1:173px; x2:363px; y2:173px; "/>
  468. <caption id="caption5" class="tit_2" style="left:0px; top:5px; width:111px; height:14px; ">인적사항 -v.2</caption>
  469. <caption id="caption4" class="cell_1" style="left:0px; top:75px; width:85px; height:23px; vertical-align:middle; ">진료일/과/의</caption>
  470. <input id="ipt_orddd" ref="/root/main/rtninfo/orddd" inputtype="date" style="left:88px; top:77px; width:89px; height:19px; "/>
  471. <caption id="caption1" class="cell_1" style="left:0px; top:50px; width:85px; height:23px; vertical-align:middle; ">환자명/전화</caption>
  472. <output id="opt_rrgstno1" ref="/root/main/rtninfo/rrgstno1" class="output_fix" style="left:240px; top:27px; width:49px; height:19px; "/>
  473. <caption id="caption6" class="cell_1" style="left:0px; top:125px; width:85px; height:23px; vertical-align:middle; ">환불일/시/자</caption>
  474. <input id="ipt_rtnamt" ref="/root/main/rtninfo/rtnamt" navindex="4" format="#,###" style="left:88px; top:177px; width:89px; height:19px; text-align:right; ">
  475. <script type="javascript" ev:event="onkeypress">
  476. <![CDATA[
  477. if (event.keyCode=="13") {
  478. model.setFocus("cmb_rtnkind");
  479. }
  480. ]]>
  481. </script>
  482. </input>
  483. <input id="ipt_rtndd" ref="/root/main/rtninfo/rtndd" inputtype="date" style="left:88px; top:127px; width:89px; height:19px; text-align:right; "/>
  484. <caption id="caption2" class="cell_1" style="left:0px; top:175px; width:85px; height:23px; vertical-align:middle; ">환불금액</caption>
  485. <input id="ipt_rtnrid" ref="/root/main/rtninfo/rtnrid" navindex="1" style="left:270px; top:127px; width:93px; height:19px; text-align:center; ">
  486. <script type="javascript" ev:event="onkeypress">
  487. <![CDATA[
  488. if (event.keyCode=="13") {
  489. model.setFocus("ipt_rtnrphontel");
  490. }
  491. ]]>
  492. </script>
  493. </input>
  494. <select1 id="cmb_rtnrrela" ref="/root/main/rtninfo/rtnrrela" class="combo_default" navindex="3" appearance="minimal" style="left:240px; top:152px; width:123px; height:19px; ">
  495. <choices>
  496. <itemset nodeset="/root/init/P0016list/P0016">
  497. <label ref="cdnm"/>
  498. <value ref="cdid"/>
  499. </itemset>
  500. </choices>
  501. <script type="javascript" ev:event="onkeypress">
  502. <![CDATA[
  503. if (event.keyCode=="13") {
  504. model.setFocus("ipt_rtnamt");
  505. }
  506. ]]>
  507. </script>
  508. </select1>
  509. <caption id="caption7" class="cell_1" style="left:180px; top:150px; width:58px; height:23px; vertical-align:middle; ">관 계</caption>
  510. <input id="ipt_rtnrphontel" ref="/root/main/rtninfo/rtnrtel" navindex="2" style="left:88px; top:152px; width:89px; height:19px; ">
  511. <script type="javascript" ev:event="onkeypress">
  512. <![CDATA[
  513. if (event.keyCode=="13") {
  514. model.setFocus("cmb_rtnrrela");
  515. }
  516. ]]>
  517. </script>
  518. </input>
  519. <caption id="caption8" class="cell_1" style="left:0px; top:150px; width:85px; height:23px; vertical-align:middle; ">전화번호</caption>
  520. <caption id="caption9" class="cell_1" style="left:0px; top:262px; width:85px; height:123; vertical-align:middle; ">서 명</caption>
  521. <caption id="caption13" class="cell_1" style="left:0px; top:25px; width:85px; height:23px; vertical-align:middle; ">환자번호</caption>
  522. <input id="ipt_pid" ref="/root/main/rtninfo/pid" style="left:88px; top:27px; width:89px; height:19px; ">
  523. <script type="javascript" ev:event="onkeypress">
  524. <![CDATA[
  525. if (event.keyCode == "13"){
  526. fPatInfoSrch("otpt");
  527. }
  528. ]]>
  529. </script>
  530. </input>
  531. <output id="opt_rrgstno2" ref="/root/main/rtninfo/rrgstno2" class="output_fix" style="left:292px; top:27px; width:71px; height:19px; "/>
  532. <output id="opt_hometel" ref="/root/main/rtninfo/hometel" class="output_fix" style="left:180px; top:52px; width:87px; height:19px; "/>
  533. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:363px; y2:20px; "/>
  534. <output id="opt_hngnm" ref="/root/main/rtninfo/hngnm" class="output_fix" style="left:88px; top:52px; width:89px; height:19px; "/>
  535. <output id="opt_mpphontel" ref="/root/main/rtninfo/mpphontel" class="output_fix" style="left:270px; top:52px; width:93px; height:19px; "/>
  536. <select1 id="cmb_orddeptcd" ref="/root/main/rtninfo/orddeptcd" class="combo_default" appearance="minimal" style="left:180px; top:77px; width:87px; height:19px; ">
  537. <choices>
  538. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist/dept">
  539. <label ref="depthngnm"/>
  540. <value ref="deptcd"/>
  541. </itemset>
  542. </choices>
  543. <script type="javascript" ev:event="xforms-value-changed">
  544. <![CDATA[
  545. if(model.getValue("/root/main/rtninfo/orddeptcd") == '-'){
  546. model.makeValue("/root/init/orddrid/orddridlist/user/userid","-");
  547. model.makeValue("/root/init/orddrid/orddridlist/user/usernm","-");
  548. model.setValue("/root/main/rtninfo/orddrid" ,"-");
  549. }else{
  550. zsufGetInOutOrdDeptDoctorList(model.getValue("/root/tmp/instcd") , model.getValue("/root/main/rtninfo/orddeptcd"), "/root/init/orddrid/orddridlist","dispseq", "asc", getCurrentDate());
  551. }
  552. cmb_orddrid.refresh();
  553. ]]>
  554. </script>
  555. </select1>
  556. <select1 id="cmb_orddrid" ref="/root/main/rtninfo/orddrid" class="combo_default" appearance="minimal" style="left:270px; top:77px; width:93px; height:19px; ">
  557. <choices>
  558. <itemset nodeset="/root/init/orddrid/orddridlist/user">
  559. <label ref="usernm"/>
  560. <value ref="userid"/>
  561. </itemset>
  562. </choices>
  563. </select1>
  564. <caption id="caption14" class="cell_1" style="left:180px; top:25px; width:57px; height:23px; vertical-align:middle; ">주민번호</caption>
  565. <input id="ipt_rtntm" ref="/root/main/rtninfo/rtntm" format="hh:nn" style="left:180px; top:127px; width:87px; height:19px; text-align:center; "/>
  566. <caption id="caption18" class="tit_2" style="left:370px; top:5px; width:111px; height:13px; ">
  567. <![CDATA[환불이력]]>
  568. </caption>
  569. <line id="line14" class="line_1" style="x1:368px; y1:20px; x2:758px; y2:20px; "/>
  570. <group id="group5" style="left:367px; top:25px; width:393px; height:70px; ">
  571. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:391px; height:63px; "/>
  572. <button id="btn_srch" class="btn1_letter2" style="left:320px; top:20px; width:56px; height:22px; ">
  573. <caption>조회</caption>
  574. <script type="javascript" ev:event="DOMActivate">
  575. <![CDATA[
  576. var pid = ipt_srchpid.currentText;
  577. fRtnSrch(pid);
  578. model.refresh();
  579. ]]>
  580. </script>
  581. </button>
  582. <line id="line15" style="x1:310px; y1:6px; x2:310px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  583. <input id="ipt_srchpid" ref="/root/send/srchpid" maxlength="10" style="left:103px; top:8px; width:87px; height:19px; ">
  584. <script type="javascript" ev:event="onkeypress">
  585. <![CDATA[
  586. if (event.keyCode == "13"){
  587. btn_srch.dispatch("DOMActivate");
  588. }
  589. ]]>
  590. </script>
  591. </input>
  592. <caption id="caption19" class="search_name" style="left:10px; top:9px; width:90px; height:17px; ">환자번호 :</caption>
  593. <caption id="caption20" class="search_name" style="left:10px; top:35px; width:15px; height:17px; "/>
  594. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" inputtype="date" maxlength="10" style="left:103px; top:35px; width:87px; height:19px; ">
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. btn_srch.dispatch("DOMActivate");
  598. ]]>
  599. </script>
  600. </input>
  601. <caption id="caption10" style="left:194px; top:35px; width:15px; height:20px; ">~</caption>
  602. <input id="ipt_srchtodd" ref="/root/send/srchtodd" inputtype="date" maxlength="10" style="left:210px; top:35px; width:87px; height:19px; ">
  603. <script type="javascript" ev:event="xforms-value-changed">
  604. <![CDATA[
  605. btn_srch.dispatch("DOMActivate");
  606. ]]>
  607. </script>
  608. </input>
  609. <select1 id="combo1" ref="/root/send/srchflag" appearance="minimal" style="left:32px; top:35px; width:63px; height:19px; ">
  610. <choices>
  611. <item>
  612. <label>진료일</label>
  613. <value>orddd</value>
  614. </item>
  615. <item>
  616. <label>환불일</label>
  617. <value>rtndd</value>
  618. </item>
  619. </choices>
  620. </select1>
  621. <select id="checkbox1" ref="/root/send/histyn" overflow="visible" appearance="full" style="left:208px; top:10px; width:85px; height:20px; border-style:none; ">
  622. <choices>
  623. <item>
  624. <label>이력포함</label>
  625. <value>Y</value>
  626. </item>
  627. </choices>
  628. <script type="javascript" ev:event="onclick">
  629. <![CDATA[
  630. btn_srch.dispatch("DOMActivate");
  631. ]]>
  632. </script>
  633. </select>
  634. </group>
  635. <line id="line16" class="line_1" style="x1:368px; y1:90px; x2:758px; y2:90px; "/>
  636. <datagrid id="grd_rtnlist" nodeset="/root/main/rtnlist" caption="환불일자^시간^환불금액^진료일^진료과^등록자^상태^진료구분^보험유형^환불종류^진료의^진료의ID^환자번호^환자명^주민번호^주민번호^집전화^휴대폰^환불자^관계^전화번호^서명^환불사유^비고^instcd^cretno^일당일련번호^최종수정자^최종수정일시^elctsignkey" colsep="^" colwidth="68, 36, 57, 68, 85, 59, 46, 54, 100, 100, 100, 65, 84, 100, 44, 50, 100, 100, 100, 73, 100, 100, 100, 202, 55, 46, 100, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:368px; top:95px; width:390px; height:290; text-align:center; ">
  637. <col disabled="true" ref="rtndd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  638. <col disabled="true" ref="rtntm" type="output" format="hh:nn" style="text-align:center; "/>
  639. <col disabled="true" ref="rtnamt" type="output" format="#,###" style="text-align:right; "/>
  640. <col disabled="true" ref="orddd" type="output" format="yyyy-mm-dd"/>
  641. <col disabled="true" ref="orddeptcd" type="combo">
  642. <choices>
  643. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist/dept">
  644. <label ref="depthngnm"/>
  645. <value ref="deptcd"/>
  646. </itemset>
  647. </choices>
  648. </col>
  649. <col disabled="true" ref="fstrgstrid" type="output"/>
  650. <col disabled="true" ref="rtnstat" type="combo">
  651. <choices>
  652. <item>
  653. <label>환불</label>
  654. <value>Y</value>
  655. </item>
  656. <item>
  657. <label>취소</label>
  658. <value>C</value>
  659. </item>
  660. <item>
  661. <label>삭제</label>
  662. <value>D</value>
  663. </item>
  664. </choices>
  665. </col>
  666. <col disabled="true" ref="ordtype" type="combo">
  667. <choices>
  668. <itemset nodeset="/root/init/P0001list/P0001">
  669. <label ref="cdnm"/>
  670. <value ref="cdid"/>
  671. </itemset>
  672. </choices>
  673. </col>
  674. <col disabled="true" ref="insukind" type="combo">
  675. <choices>
  676. <itemset nodeset="/root/init/P0008list/P0008">
  677. <label ref="cdnm"/>
  678. <value ref="cdid"/>
  679. </itemset>
  680. </choices>
  681. </col>
  682. <col disabled="true" ref="rtnkind" type="combo">
  683. <choices>
  684. <itemset nodeset="/root/init/P6591list/P6591">
  685. <label ref="cdnm"/>
  686. <value ref="cdid"/>
  687. </itemset>
  688. </choices>
  689. </col>
  690. <col disabled="true" ref="orddrnm"/>
  691. <col disabled="true" ref="orddrid"/>
  692. <col disabled="true" ref="pid" type="output"/>
  693. <col disabled="true" ref="hngnm" type="output"/>
  694. <col disabled="true" ref="rrgstno1" type="output"/>
  695. <col disabled="true" ref="rrgstno2" type="output"/>
  696. <col disabled="true" ref="hometel" type="output"/>
  697. <col disabled="true" ref="mpphontel" type="output"/>
  698. <col disabled="true" ref="rtnrid" type="output"/>
  699. <col disabled="true" ref="rtnrrela" type="combo">
  700. <choices>
  701. <itemset nodeset="/root/init/P0016list/P0016">
  702. <label ref="cdnm"/>
  703. <value ref="cdid"/>
  704. </itemset>
  705. </choices>
  706. </col>
  707. <col disabled="true" ref="rtnrtel" type="output"/>
  708. <col disabled="true" ref="elctsigncnts" type="output"/>
  709. <col disabled="true" ref="rtnresn" type="output"/>
  710. <col disabled="true" ref="remfact" type="output" style="text-align:left; "/>
  711. <col disabled="true" ref="instcd" type="output" visibility="hidden"/>
  712. <col disabled="true" ref="cretno" type="output" visibility="hidden"/>
  713. <col disabled="true" ref="seqno" type="output"/>
  714. <col disabled="true" ref="lastupdtrid" type="output" visibility="hidden"/>
  715. <col disabled="true" ref="lastupdtdt" type="output"/>
  716. <col disabled="true" ref="elctsignkey" type="output"/>
  717. <script type="javascript" ev:event="ondblclick">
  718. <![CDATA[
  719. // 이중 수정모드를 막기위함.
  720. /*
  721. if(model.getValue("/root/tmp/editmodeyn") == "Y"){
  722. if(getParameter("signpad_kind") == "ep-661" ) {
  723. KiccDSCX1.ReqInit();
  724. KiccDSCX1.Open = false;
  725. }
  726. if(getParameter("signpad_kind") == "sign-1000" ) {
  727. SignPad.SignRequest(9, 38400, "");
  728. }
  729. }
  730. */
  731. copyNodesetType("/root/main/rtninfo" ,"/root/main/rtnlist[" + grd_rtnlist.row + "]","replace");
  732. model.setValue("/root/main/rtninfo/seqno", model.getValue("/root/main/rtnlist["+ grd_rtnlist.row +"]/seqno"));
  733. //서명을 보여주는 부분
  734. fsignpad_view(model.getValue("/root/main/rtninfo/elctsignkey"),model.getValue("/root/main/rtninfo/elctsigncnts"));
  735. /*
  736. if(getParameter("signpad_kind") == "ep-661" ) {
  737. KiccDSCX1.Seed = model.getValue("/root/main/rtninfo/elctsignkey");
  738. KiccDSCX1.SignStr = model.getValue("/root/main/rtninfo/elctsigncnts");
  739. model.makeValue("/root/main/sign/signseed" , KiccDSCX1.Seed);
  740. model.makeValue("/root/main/sign/signstr" , KiccDSCX1.SignStr);
  741. }
  742. if(getParameter("signpad_kind") == "sign-1000" ) {
  743. var sign = model.getValue("/root/main/rtninfo/elctsigncnts");
  744. var pid = model.getValue("/root/main/rtninfo/pid");
  745. url = 'C:\\Program Files\\himed\\components\\KICC\\EasyPad\\' + pid +'.bmp'
  746. SignPad.GetBMPReal(sign,url);
  747. model.setValue("/root/main/rtninfo/elctsigncnts", sign);
  748. SignPad_img.attribute("src") = url ;
  749. SignPad_img.refresh();
  750. kocces_grup.attribute("visibility") = "hidden";
  751. SignPad_img.attribute("visibility") = "visible";
  752. }
  753. */
  754. cmb_orddeptcd.dispatch("xforms-value-changed");
  755. model.refresh();
  756. ]]>
  757. </script>
  758. <script type="javascript" ev:event="onaftersort">
  759. <![CDATA[
  760. //sorting 시 인스턴스 구조를 재구성
  761. grd_rtnlist.gridToInstance();
  762. ]]>
  763. </script>
  764. </datagrid>
  765. <line id="line1" class="line_3" style="x1:0px; y1:385px; x2:363px; y2:385px; "/>
  766. <line id="line11" class="line_2" style="x1:0px; y1:260px; x2:363; y2:260px; "/>
  767. <output id="opt_signseed" ref="/root/main/sign/signseed" visibility="hidden" style="left:5px; top:280px; width:30px; height:19px; "/>
  768. <output id="opt_signstr" ref="/root/main/sign/signstr" visibility="hidden" style="left:40px; top:280px; width:25px; height:19px; "/>
  769. <caption id="caption11" class="cell_1" style="left:180px; top:175px; width:58px; height:23px; vertical-align:middle; ">환불종류</caption>
  770. <select1 id="cmb_rtnkind" ref="/root/main/rtninfo/rtnkind" class="combo_default" navindex="5" appearance="minimal" style="left:240px; top:177px; width:123px; height:19px; ">
  771. <choices>
  772. <itemset nodeset="/root/init/P6591list/P6591">
  773. <label ref="cdnm"/>
  774. <value ref="cdid"/>
  775. </itemset>
  776. </choices>
  777. <script type="javascript" ev:event="onkeypress">
  778. <![CDATA[
  779. if (event.keyCode=="13") {
  780. model.setFocus("textarea1");
  781. }
  782. ]]>
  783. </script>
  784. </select1>
  785. <line id="line9" class="line_2" style="x1:0px; y1:198px; x2:363; y2:198px; "/>
  786. <select1 id="cmb_insukind" ref="/root/main/rtninfo/insukind" class="combo_default" appearance="minimal" style="left:240px; top:102px; width:123px; height:19px; ">
  787. <choices>
  788. <itemset nodeset="/root/init/P0008list/P0008">
  789. <label ref="cdnm"/>
  790. <value ref="cdid"/>
  791. </itemset>
  792. </choices>
  793. </select1>
  794. <select1 id="cmb_ordtype" ref="/root/main/rtninfo/ordtype" class="combo_default" appearance="minimal" style="left:88px; top:102px; width:89px; height:19px; ">
  795. <choices>
  796. <itemset nodeset="/root/init/P0001list/P0001">
  797. <label ref="cdnm"/>
  798. <value ref="cdid"/>
  799. </itemset>
  800. </choices>
  801. </select1>
  802. <caption id="caption15" class="cell_1" style="left:180px; top:100px; width:58px; height:23px; vertical-align:middle; ">보험유형</caption>
  803. <caption id="caption16" class="cell_1" style="left:0px; top:100px; width:85px; height:23px; vertical-align:middle; ">진료구분</caption>
  804. <textarea id="textarea1" ref="/root/main/rtninfo/remfact" imemode="hangul" style="left:87px; top:201px; width:276px; height:57; "/>
  805. <caption id="caption17" class="cell_1" style="left:0px; top:200px; width:85px; height:60; vertical-align:middle; ">비 고</caption>
  806. <select1 id="cmb_comport" ref="/root/comport" visibility="visible" appearance="minimal" style="left:320px; top:0px; width:41px; height:19px; ">
  807. <choices>
  808. <item>
  809. <label>1</label>
  810. <value>1</value>
  811. </item>
  812. <item>
  813. <label>2</label>
  814. <value>2</value>
  815. </item>
  816. <item>
  817. <label>3</label>
  818. <value>3</value>
  819. </item>
  820. </choices>
  821. </select1>
  822. <group id="grp_report" visibility="hidden" style="left:261px; top:3px; width:55px; height:15px; "/>
  823. <import id="import1" src="./../../pam/pamcomnweb/xrw/SPPAO02102_전자서명입력_OCX.xrw" style="left:87px; top:263px; width:250px; height:120; "/>
  824. </group>
  825. <group id="grp_btn" scroll="auto" style="left:0px; top:386px; width:760px; height:28; ">
  826. <button id="btn_cancel" class="btn4_letter7" style="left:189px; top:3px; width:116px; height:22px; ">
  827. <caption>환불확인증출력</caption>
  828. <script type="javascript" ev:event="DOMActivate">
  829. <![CDATA[
  830. cmb_comport.attribute("visibility") = "visible";
  831. //콤보박스의 실제값과 보이는 값이 틀리기 때문에 인스턴스를 재 구성
  832. model.makeNode("/root/main/rexpert/rtninfo");
  833. copyNodesetType("/root/main/rexpert/rtninfo" ,"/root/main/rtninfo","replace");
  834. model.makeValue("/root/main/rexpert/rtninfo/pid",ipt_srchpid.currentText);
  835. model.makeValue("/root/main/rexpert/rtninfo/orddeptcd", model.getValue("/root/init/orddeptcd/orddeptcdlist/dept[deptcd = '" + model.getValue("/root/main/rexpert/rtninfo/orddeptcd") + "']/depthngnm"));
  836. model.makeValue("/root/main/rexpert/rtninfo/orddrid", model.getValue("/root/init/orddrid/orddridlist[cd = '" + model.getValue("/root/main/rexpert/rtninfo/orddrid") + "']/nm"));
  837. model.makeValue("/root/main/rexpert/rtninfo/rtnrrela", model.getValue("/root/init/P0016list/P0016[cdid = '" + model.getValue("/root/main/rexpert/rtninfo/rtnrrela") + "']/cdnm"));
  838. /*
  839. var sPid = ipt_pid.currentText;
  840. var sSignName =sPid ;
  841. var sSignFolder = "C:\\Program Files\\himed\\components\\KICC\\EasyPad\\" +sSignName + ".bmp";
  842. if(getParameter("signpad_kind") == "ep-661" ) {
  843. KiccDSCX1.BmpSaveToFile ("C:\\Program Files\\himed\\components\\KICC\\EasyPad\\" +sSignName + ".bmp"); // pid_ 날짜
  844. }
  845. model.makeValue("/root/main/rexpert/rtninfo/signimg", sSignFolder);
  846. */
  847. var pCond = "PRINT";
  848. var sComprot = model.getValue("/root/comport");
  849. var sPrintYN = "true";
  850. var sAutoCloseYN = "true";
  851. var sViewYN = "grp_report";
  852. exeReportPreview("RPPAO00600", "XMLSTR" , "" , "" , sPrintYN , "", "", "", "", sAutoCloseYN, "", "", sComprot);
  853. //exeReportPreview("RPPAO00600", "XMLSTR", "", "", "", "", "", "", "", "true", "", "", "", "", "", "", "", "", "", "", "");
  854. //exeReportPreview("RPPAO00600", "XMLSTR", "", "", "true", "", "", "", "", "true", "", "", "3", "", "", "", "", "", "", "", "");
  855. ]]>
  856. </script>
  857. </button>
  858. <button id="btn_save" class="btn4_letter8" disabled="false" style="left:307px; top:3px; width:56px; height:22px; ">
  859. <caption>신규 및 이력 저장</caption>
  860. <script type="javascript" ev:event="DOMActivate">
  861. <![CDATA[
  862. var rtn = messageBox("내역을 저장 하시겠습니까? ", "Q999");
  863. if(rtn == "7"){ //아니오
  864. return;
  865. }else if(rtn == "6"){
  866. fSave("I");
  867. model.refresh();
  868. }
  869. ]]>
  870. </script>
  871. </button>
  872. <button id="button2" class="btn4_letter3" visibility="visible" style="left:2px; top:3px; width:68px; height:22px; ">
  873. <caption>재서명</caption>
  874. <script type="javascript" ev:event="DOMActivate">
  875. <![CDATA[
  876. //fEasyPadCall();
  877. //ready 함수에 동일 초기화 함수 호출로 주석처리함(2017/11/22 이정택)
  878. //fsignpad_init();
  879. //ready 함수에 동일 초기화 함수 호출로 주석처리함(2017/11/22 이정택)
  880. model.setValue("/root/main/rtninfo/elctsignkey" , "");
  881. model.setValue("/root/main/rtninfo/elctsigncnts" , "");
  882. fsignpad_request(model.getValue("/root/main/rtninfo/rtnamt"));
  883. model.setFocus("btn_save");
  884. model.refresh();
  885. ]]>
  886. </script>
  887. </button>
  888. <button id="button3" class="btn4_letter2" style="left:703px; top:4px; width:56px; height:22px; ">
  889. <caption>닫기</caption>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. fsignpad_close();
  893. window.close();
  894. /*
  895. if(getParameter("signpad_kind") == "kis-sp30" ) {
  896. window.close();
  897. } else {
  898. KiccDSCX1.ReqInit();
  899. KiccDSCX1.Open = false;
  900. window.close();
  901. }
  902. */
  903. ]]>
  904. </script>
  905. </button>
  906. <button id="button4" class="btn4_letter3" style="left:633px; top:4px; width:68px; height:22px; ">
  907. <caption>초기화</caption>
  908. <script type="javascript" ev:event="DOMActivate">
  909. <![CDATA[
  910. fInit();
  911. fDefaultSet();
  912. model.refresh();
  913. // opener.javascript.setParameter("SPPAO00400_RTN","Y");
  914. // opener.javascript.setParameter("SPPAO00400_TotCardAmt",totcardamt);
  915. ]]>
  916. </script>
  917. </button>
  918. <button id="btn_update" class="btn4_letter2" disabled="false" style="left:131px; top:3px; width:56px; height:22px; ">
  919. <caption>수정</caption>
  920. <script type="javascript" ev:event="DOMActivate">
  921. <![CDATA[
  922. fSave("U");
  923. model.refresh();
  924. ]]>
  925. </script>
  926. </button>
  927. <button id="btn_del" class="btn4_letter2" style="left:72px; top:3px; width:56px; height:22px; ">
  928. <caption>삭제</caption>
  929. <script type="javascript" ev:event="DOMActivate">
  930. <![CDATA[
  931. var rtn = messageBox("내역을 삭제 하시겠습니까? ", "Q999");
  932. if(rtn == "7"){ //아니오
  933. return;
  934. }else if(rtn == "6"){
  935. fSave("D");
  936. model.refresh();
  937. }
  938. ]]>
  939. </script>
  940. </button>
  941. </group>
  942. </xhtml:body>
  943. </xhtml:html>