SMAHA04520_서식출력.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHA04520.xrw
  4. * 설 명 : 서직지출력
  5. * 설 계 자 : 손범성
  6. * 작 성 자 : 손범성
  7. * 작 성 일 : 2008.12.24
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>결과지출력</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <prntoptinfo>
  19. <prntflag>paper</prntflag>
  20. <prntsize>01</prntsize>
  21. </prntoptinfo>
  22. <prntpatlst>
  23. <item>
  24. <sel/>
  25. <brthareacnts/>
  26. <hopedd/>
  27. <pid/>
  28. <visano/>
  29. <hngnm/>
  30. <engnm/>
  31. <sex/>
  32. <age/>
  33. <pkgnm/>
  34. <pkgcd/>
  35. <remcnts/>
  36. <healexamflag/>
  37. <healexamdetlflag/>
  38. <rsrvdd/>
  39. <rsrvno/>
  40. <cretno/>
  41. <orddd/>
  42. <statflag/>
  43. <rrgstno1/>
  44. <rrgstno2/>
  45. <prntyn/>
  46. <prnttims/>
  47. <prntrid/>
  48. <prnttm/>
  49. <psptno/>
  50. <brthdd/>
  51. <judgdrid/>
  52. <meddrid/>
  53. </item>
  54. <item2>
  55. <sel/>
  56. <pid/>
  57. <engnm/>
  58. <rrgstno1/>
  59. <rrgstno2/>
  60. <psptno/>
  61. <prntyn/>
  62. <brthareacnts/>
  63. <hopedd/>
  64. <visano/>
  65. <hngnm/>
  66. <sex/>
  67. <age/>
  68. <pkgnm/>
  69. <pkgcd/>
  70. <remcnts/>
  71. <healexamflag/>
  72. <healexamdetlflag/>
  73. <rsrvdd/>
  74. <rsrvno/>
  75. <cretno/>
  76. <orddd/>
  77. <statflag/>
  78. <prnttims/>
  79. <prntrid/>
  80. <prnttm/>
  81. <brthdd/>
  82. <judgdrid/>
  83. <meddrid/>
  84. </item2>
  85. </prntpatlst>
  86. <info>
  87. <patinfo>
  88. <item>
  89. <pid/>
  90. <rgstno1/>
  91. <rgstno2/>
  92. <hngnm/>
  93. <engnm/>
  94. <sex/>
  95. <age/>
  96. <brthdd/>
  97. <zipcd1/>
  98. <zipcd2/>
  99. <addr/>
  100. <detladdr1/>
  101. <mpphon/>
  102. <telno/>
  103. <emailid/>
  104. <emailtype/>
  105. <healexampid/>
  106. <emailkind/>
  107. <zipcd21/>
  108. <zipcd22/>
  109. <addr2/>
  110. <detladdr2/>
  111. <psptno/>
  112. <brthareacnts/>
  113. <pidcretfg/>
  114. <zipcdseq1/>
  115. <zipcdseq2/>
  116. <clntgrde/>
  117. <patremcnts/>
  118. <notice/>
  119. </item>
  120. </patinfo>
  121. </info>
  122. <prntinfo>
  123. <prnt>
  124. <pat/>
  125. <etc/>
  126. <phil/>
  127. <amer/>
  128. </prnt>
  129. </prntinfo>
  130. </main>
  131. <send>
  132. <srch>
  133. <srchfromdd/>
  134. <srchtodd/>
  135. <srchhealexamflag/>
  136. <srchhealexamdetlflag/>
  137. <srchbrtharea/>
  138. <srchpid/>
  139. <srchpnm/>
  140. <srchflag/>
  141. </srch>
  142. <prnt/>
  143. <updata>
  144. <req/>
  145. </updata>
  146. </send>
  147. <init>
  148. <baseinfo>
  149. <contypelst/>
  150. <statlst/>
  151. <healexamflag>
  152. <item/>
  153. </healexamflag>
  154. <hedetlflaglst/>
  155. <brtharealst/>
  156. <chealexamflag/>
  157. <ghealexamflag/>
  158. <initaddrinfo/>
  159. <amerprntlst/>
  160. </baseinfo>
  161. <prnt>
  162. <prntflag/>
  163. </prnt>
  164. </init>
  165. <hidden>
  166. <count/>
  167. <signinfo>
  168. <img/>
  169. </signinfo>
  170. </hidden>
  171. <temp>
  172. <coninfolst/>
  173. <prntinfo/>
  174. <cdlst>
  175. </cdlst>
  176. <preview>Y</preview>
  177. <language>H</language>
  178. <send>
  179. <pid/>
  180. <hngnm/>
  181. <excelparam/>
  182. <srchtext/>
  183. </send>
  184. <prntpatlst/>
  185. </temp>
  186. <report>
  187. <cmpyrslt>
  188. <item/>
  189. </cmpyrslt>
  190. <iteminfo/>
  191. <itemjudg/>
  192. <patinfo/>
  193. </report>
  194. </root>
  195. </instance>
  196. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  200. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  201. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  202. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  203. <script type="javascript" ev:event="xforms-ready">
  204. <![CDATA[
  205. fInitInfo();
  206. fGetBaseInfo();
  207. btn_prnt.dispatch("onclick");
  208. rdo_amerprntflag.select(0);
  209. if(cmb_brtharea.value == "") {
  210. cmb_brtharea.select(0);
  211. }else {
  212. fGetPrntPatList();
  213. }
  214. model.refresh();
  215. ]]>
  216. </script>
  217. <submission id="TRZBC00101"/>
  218. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/temp/patinfo"/>
  219. <submission id="TRAHA04521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/temp/prntpatlst"/>
  220. <submission id="TRAHA04418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prnt" replace="instance" resultref="root/main/prntinfo/prnt"/>
  221. <submission id="TXAHA04521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updata/req" replace="instance" resultref="/root/hidden/count"/>
  222. <submission id="TRAHA03174" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/hidden/signinfo"/>
  223. <submission id="TRAHA00001"/>
  224. </model>
  225. <script type="javascript">
  226. <![CDATA[
  227. var m_vHealexamflag = "";
  228. var m_vHealexamdetlflag = "";
  229. /*=======================================================================================
  230. *공통코드 가져오기
  231. =======================================================================================*/
  232. function fGetBaseInfo(){
  233. var sFlag = "";
  234. if( checkOpener() ){
  235. sFlag = opener.javascript.getParameter("SMAHA04520_PARAM1") ;
  236. if(sFlag == "") {
  237. m_vHealexamflag = "G"
  238. m_vHealexamdetlflag = "G02"
  239. }else {
  240. m_vHealexamflag = sFlag.substr(0,1);
  241. m_vHealexamdetlflag = sFlag;
  242. }
  243. var sHopedd = opener.javascript.getParameter("SMAHA04520_PARAM2") ;
  244. var sPid = opener.javascript.getParameter("SMAHA04520_PARAM3") ;
  245. var sBrthArea = opener.javascript.getParameter("SMAHA04520_PARAM4") ;
  246. model.setValue("/root/temp/send/pid" , sPid);
  247. model.setValue("/root/send/srch/srchfromdd" , sHopedd);
  248. model.setValue("/root/send/srch/srchbrtharea" ,sBrthArea);
  249. model.setValue("/root/send/srch/pid" , sPid );
  250. model.setValue("/root/send/srch/hngnm" , "" );
  251. }
  252. else {
  253. if( m_vHealexamflag == "" ) {
  254. var sFlag = getScreenMenuParameter();
  255. if(sFlag == "") {
  256. m_vHealexamflag = "G"
  257. m_vHealexamdetlflag = "G02"
  258. }else {
  259. m_vHealexamflag = sFlag.substr(0,1);
  260. m_vHealexamdetlflag = sFlag;
  261. }
  262. }
  263. }
  264. //건진분류(종건/일건) , 건진상태구분, 계약종류
  265. zbcfGetCodeList( new Array( "A0069","A0070" ,"A0107","A0113","A0465" ),
  266. new Array ("/root/init/baseinfo/chealexamflag"
  267. ,"/root/init/baseinfo/ghealexamflag"
  268. ,"/root/init/baseinfo/statlst"
  269. ,"/root/init/baseinfo/contypelst"
  270. ,"/root/init/baseinfo/brtharealst" ) );
  271. submit("TRZBC00101");
  272. healGetCodeList( new Array("S040", "S050", "R001","V008"),
  273. new Array("/root/init/baseinfo/initsendaddressflag"
  274. , "/root/init/baseinfo/initsendaddressflag2"
  275. , "/root/init/baseinfo/initaddrinfo"
  276. , "/root/init/baseinfo/amerprntlst")
  277. );
  278. model.removeNodeset("/root/init/baseinfo/amerprntlst/V008[1]");
  279. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  280. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  281. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  282. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  283. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  284. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  285. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  286. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  287. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  288. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  289. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  290. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  291. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  292. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  293. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  294. if(m_vHealexamflag == "C") {
  295. copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/chealexamflag/A0069", "replace");
  296. }else {
  297. copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/ghealexamflag/A0070", "replace");
  298. }
  299. model.setValue("/root/send/srch/srchhealexamflag" , m_vHealexamflag);
  300. cmb_srchhealexamdetlflag.refresh();
  301. cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag ;
  302. }
  303. /*=======================================================================================
  304. *초기화
  305. =======================================================================================*/
  306. function fInitInfo(){
  307. var cur_date = getCurrentDate() ;
  308. model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
  309. model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
  310. grd_prntlst.fixedcellcheckbox(0,1) = true;
  311. grd_amerlst.fixedcellcheckbox(0,1) = true;
  312. }
  313. /**=======================================================================================
  314. * 건진 결과 출력 대상자 리스트 조회
  315. =======================================================================================*/
  316. function fGetPrntPatList(){
  317. model.removeNode("/root/main/detlinfo/prntpatlst");//클리어 노드
  318. if(submit("TRAHA04521")) {
  319. var sFlag = model.getValue("/root/send/srch/srchflag");
  320. var patNodeList = instance1.selectNodes("/root/temp/prntpatlst/item");
  321. if(sFlag == "1") {
  322. model.removeNodeset("/root/main/prntpatlst/item");
  323. grd_prntlst.refresh();
  324. if(patNodeList.length > 0) {
  325. model.makeNode("/root/main/prntpatlst/item");
  326. copyNodesetType("/root/main/prntpatlst/item","/root/temp/prntpatlst/item","replace");
  327. grd_prntlst.refresh();
  328. }
  329. }else if(sFlag == "2") {
  330. model.removeNodeset("/root/main/prntpatlst/item2");
  331. if(patNodeList.length > 0) {
  332. model.makeNode("/root/main/prntpatlst/item2");
  333. copyNodesetType("/root/main/prntpatlst/item2","/root/temp/prntpatlst/item","replace");
  334. grd_amerlst.refresh();
  335. }
  336. }
  337. }
  338. }
  339. /**=======================================================================================
  340. @desc : 결과지 출력
  341. =======================================================================================*/
  342. function fPrintRslt(){
  343. setParameter("reportprintyn", ""); //출력여부 확인하기
  344. var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
  345. var ret = false;
  346. for( var i = 0 ; i < nodeList.length ; i++){
  347. model.makeValue("/root/send/prnt/healexamflag", nodeList.item(i).healexamflag.text ); //건진구분
  348. model.makeValue("/root/send/prnt/healexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
  349. model.makeValue("/root/send/prnt/rsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
  350. model.makeValue("/root/send/prnt/rsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
  351. model.makeValue("/root/send/prnt/pid", nodeList.item(i).pid.text ); //등록번호
  352. model.makeValue("/root/send/prnt/orddd", nodeList.item(i).orddd.text ); //건진일자
  353. model.makeValue("/root/send/prnt/cretno", nodeList.item(i).cretno.text ); //건진일자
  354. //그리드에 뿌려주기
  355. if( submit("TRAHA04418") ) {
  356. var brthArea = model.getValue("/root/main/prntinfo/prnt/pat/brthareacnts");
  357. var bDirectPrnt = "true";
  358. if( chk_preview.value == "Y" ){
  359. bDirectPrnt = "false";
  360. }
  361. if (bDirectPrnt == "false") { //미리보기
  362. if(brthArea == "PP") {
  363. exeReportPreview("RPAHR04412", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  364. }else if(brthArea == "ETC") {
  365. exeReportPreview("RPAHR04411", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  366. }
  367. } else {
  368. if(brthArea == "PP") {
  369. exeReportPreview("RPAHR04412", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  370. }else if(brthArea == "ETC") {
  371. exeReportPreview("RPAHR04411", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  372. }
  373. }
  374. }
  375. }
  376. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  377. grd_prntlst.clearStatus();
  378. for( var i = 0 ; i <= grd_prntlst.rows ; i++){
  379. if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
  380. var statFg = grd_prntlst.valueMatrix( i , grd_prntlst.colRef("statflag"));
  381. if(statFg == "H" || statFg == "I") {
  382. grd_prntlst.rowStatus(i) = 2;
  383. }
  384. }
  385. }
  386. model.setValue("/root/send/updata/req" , grd_prntlst.getUpdateData());
  387. submit("TXAHA04521");
  388. }
  389. }
  390. /**=======================================================================================
  391. @desc : 미국 결과지 출력
  392. =======================================================================================*/
  393. function fPrintAmerRslt() {
  394. setParameter("reportprintyn", ""); //출력여부 확인하기
  395. var nodeList = instance1.selectNodes(grd_amerlst.nodeset + "[sel='Y']");
  396. var amerPrntFlag = model.getValue("/root/init/prnt/prntflag");
  397. if(nodeList.length < 1) {
  398. messageBox("선택된 대상자가","I004");
  399. return;
  400. }
  401. for( var i = 0 ; i < nodeList.length ; i++){
  402. var mark = ""
  403. var allYN = "N";
  404. switch(amerPrntFlag) {
  405. case "01" : allYN = "Y";
  406. case "02" : mark = "me_"; fSetAmerData(nodeList.item(i) , mark , "02"); if(allYN == "N"){ break; }
  407. case "03" : mark = "lf_"; fSetAmerData(nodeList.item(i) , mark , "03"); if(allYN == "N"){ break; }
  408. case "04" : mark = "mh_"; fSetAmerData(nodeList.item(i) , mark , "04"); if(allYN == "N"){ break; }
  409. case "05" : mark = "cx_"; fSetAmerData(nodeList.item(i) , mark , "05"); if(allYN == "N"){ break; }
  410. case "06" : mark = "vd_"; fSetAmerData(nodeList.item(i) , mark , "06"); if(allYN == "N"){ break; }
  411. default : break;
  412. }
  413. //alert("engnm : " + engNM + "\r\n" + "brthdd : " + brthDD + "\r\n" + "examdd : " + examDD + "\r\n" + "passNum : " + passNum + "\r\n" + "expDD : " + expDD + "\r\n" + "age : " + age + "\r\n");
  414. }
  415. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  416. grd_amerlst.clearStatus();
  417. for( var i = 0 ; i <= grd_amerlst.rows ; i++){
  418. if(grd_amerlst.valueMatrix(i,grd_amerlst.colRef("sel")) == "Y") {
  419. var statFg = grd_amerlst.valueMatrix( i , grd_amerlst.colRef("statflag"));
  420. if(statFg == "H" || statFg == "I") {
  421. grd_amerlst.rowStatus(i) = 2;
  422. }
  423. }
  424. }
  425. model.setValue("/root/send/updata/req" , grd_amerlst.getUpdateData());
  426. submit("TXAHA04521");
  427. }
  428. }
  429. function fSetAmerData(vNode , vMark , vFlag) {
  430. if(vNode == null) return;
  431. model.resetInstanceNode("/root/main/prntinfo/prnt/amer");
  432. var engNM = vNode.engnm.text;
  433. var brthDD = vNode.brthdd.text.toDate().getDateFormat("MM-DD-YYYY");
  434. var examDD = vNode.hopedd.text.toDate().getDateFormat("MM-DD-YYYY");
  435. var passNum = vNode.psptno.text;
  436. var pid = vNode.pid.text;
  437. var expDD = vNode.hopedd.text.toDate().getAddDate(1,"Y").getDateFormat("MM-DD-YYYY");
  438. var country = "KOREA";
  439. var age = vNode.age.text;
  440. var meddrid = vNode.meddrid.text;
  441. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "engnm" , engNM);
  442. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "brthdd" , brthDD);
  443. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "country" , country);
  444. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "psptno" , passNum);
  445. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "examdd" , examDD);
  446. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "expiredd" , expDD);
  447. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "pid" , pid);
  448. model.makeValue("/root/main/prntinfo/prnt/amer/" + vMark + "age" , age);
  449. if(vFlag == "05") {
  450. // 사인 이미지 조회
  451. model.makeValue("/root/send/srch/srchsignedid" , meddrid);
  452. if(submit("TRAHA03174")) {
  453. model.makeNode("/root/main/prntinfo/prnt/amer/signdata");
  454. setImageRefInstance("/root/hidden/signinfo/img/singdata");
  455. setImageRefInstance("/root/main/prntinfo/prnt/amer/signdata");
  456. copyNodesetType("/root/main/prntinfo/prnt/amer/signdata" , "/root/hidden/signinfo/img/signdata" , "replace" );
  457. setImageRefInstance("/root/main/prntinfo/prnt/amer/signdata");
  458. }
  459. exeReportPreview("RPAHR04413", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  460. //exeReportPreview("RPAHR04413", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  461. }else if(vFlag == "06") {
  462. exeReportPreview("RPAHR04414", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  463. //exeReportPreview("RPAHR04414", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  464. }else {
  465. exeReportPreview("RPAHR04413", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  466. //exeReportPreview("RPAHR04413", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  467. }
  468. }
  469. ]]>
  470. </script>
  471. </xhtml:head>
  472. <xhtml:body pagewidth="1220" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  473. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  474. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">서식출력</caption>
  475. </group>
  476. <group id="group4" scroll="auto" style="left:0px; top:754px; width:1195px; height:28px; ">
  477. <button id="button1" class="btn6_letter4" style="left:0px; top:4px; width:80px; height:22px; ">
  478. <caption>결과출력</caption>
  479. <script type="javascript" ev:event="onclick">
  480. <![CDATA[
  481. var srcFlag = model.getValue("/root/send/srch/srchflag");
  482. if(srcFlag == "1") {
  483. fPrintRslt();
  484. }else {
  485. fPrintAmerRslt();
  486. }
  487. ]]>
  488. </script>
  489. </button>
  490. <select id="chk_preview" ref="/root/temp/preview" overflow="visible" appearance="full" cols="4" rows="1" style="left:90px; top:7px; width:75px; height:15px; border-style:none; ">
  491. <choices>
  492. <item>
  493. <label>미리보기</label>
  494. <value>Y</value>
  495. </item>
  496. </choices>
  497. <script type="javascript" ev:event="xforms-select">
  498. <![CDATA[
  499. model.setValue("/root/temp/preview","Y");
  500. ]]>
  501. </script>
  502. <script type="javascript" ev:event="xforms-deselect">
  503. <![CDATA[
  504. model.setValue("/root/temp/preview","");
  505. ]]>
  506. </script>
  507. </select>
  508. </group>
  509. <group id="group2" style="left:0px; top:18px; width:1190px; height:45px; vertical-align:top; ">
  510. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:45px; "/>
  511. <caption id="caption10" class="search_name" style="left:445px; top:12px; width:91px; height:17px; ">건진기간 :</caption>
  512. <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:532px; top:11px; width:100px; height:19px; "/>
  513. <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:660px; top:11px; width:100px; height:19px; "/>
  514. <line id="line5" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:39px; "/>
  515. <caption id="caption13" class="search_name" style="left:780px; top:11px; width:86px; height:17px; ">환자검색 :</caption>
  516. <caption id="caption14" class="search_n_b" style="left:641px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  517. <input id="ipt_pid" ref="/root/send/srch/srchpid" class="input_search" style="left:867px; top:11px; width:100px; height:19px; ">
  518. <script type="javascript" ev:event="onkeyup">
  519. <![CDATA[
  520. if( event.keyCode != 13) return ;
  521. model.setValue("/root/send/srch/srchpid" , ipt_pid.currentText)
  522. fGetPrntPatList();
  523. ]]>
  524. </script>
  525. </input>
  526. <button id="btn_selpat" class="icon_search" style="left:972px; top:12px; width:16px; height:16px; ">
  527. <caption/>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. fSearchPatInfo("SMAHR00900", "pnm",model.getValue("/root/temp/send/srchtext") , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  531. if( model.getValue( ipt_pid.attribute("ref")) != "" ){
  532. fGetPrntPatList();
  533. }
  534. ]]>
  535. </script>
  536. </button>
  537. <input id="ipt_pnm" ref="/root/send/srch/srchpnm" class="input_search" style="left:995px; top:11px; width:100px; height:19px; ">
  538. <script type="javascript" ev:event="onkeyup">
  539. <![CDATA[
  540. if( event.keyCode != 13) return ;
  541. model.makeValue("/root/temp/send/srchtext" , ipt_pnm.currentText);
  542. inputEnterKey("btn_selpat","DOMActivate");
  543. ]]>
  544. </script>
  545. </input>
  546. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:12px; width:56px; height:22px; ">
  547. <caption>조회</caption>
  548. <script type="javascript" ev:event="DOMActivate">
  549. <![CDATA[
  550. //조회 버튼 클릭 이벤트
  551. fGetPrntPatList();
  552. ]]>
  553. </script>
  554. </button>
  555. <caption id="caption2" class="search_name" style="left:5px; top:11px; width:91px; height:17px; ">건진구분 :</caption>
  556. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srch/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:9px; width:123px; height:19px; ">
  557. <choices>
  558. <itemset nodeset="/root/init/baseinfo/healexamflag/item">
  559. <label ref="cdnm"/>
  560. <value ref="cdid"/>
  561. </itemset>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-select">
  564. <![CDATA[
  565. fGetPrntPatList();
  566. ]]>
  567. </script>
  568. </select1>
  569. <select1 id="cmb_brtharea" ref="/root/send/srch/srchbrtharea" class="combo_search" appearance="minimal" style="left:307px; top:9px; width:118px; height:19px; ">
  570. <choices>
  571. <itemset nodeset="/root/init/baseinfo/brtharealst/A0465">
  572. <label ref="cdnm"/>
  573. <value ref="cdid"/>
  574. </itemset>
  575. </choices>
  576. <script type="javascript" ev:event="xforms-select">
  577. <![CDATA[
  578. fGetPrntPatList();
  579. ]]>
  580. </script>
  581. </select1>
  582. <caption id="caption1" class="search_name" style="left:240px; top:11px; width:66px; height:17px; ">국가 :</caption>
  583. </group>
  584. <switch id="switch1" style="left:0px; top:89px; width:1195px; height:666px; ">
  585. <case id="case_prnt" selected="true">
  586. <caption id="caption11" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">상세내역</caption>
  587. <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1187px; y2:20px; "/>
  588. <datagrid id="grd_prntlst" nodeset="/root/main/prntpatlst/item" caption="선택^국가^신검일자^등록번호^비자연번^한글이름^영문이름^성별^나이^패키지명^패키지코드^비고^healexamflag^healexamdetlflag^rsrvdd^rsrvno^cretno^orddd^statflag^rrgstno1^rrgstno2^출력여부^출력횟수^출력자ID^출력시간^여권번호^brthdd^judgdrid^meddrid^출력일시^orddd^판정의^caption1" colsep="^" colwidth="50, 100, 80, 80, 90, 90, 90, 40, 40, 150, 80, 270, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="1" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:25px; width:1182px; height:634px; ">
  589. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  590. <col disabled="true" ref="brthareacnts" type="combo" format="yyyy-mm-dd">
  591. <choices>
  592. <itemset nodeset="/root/init/baseinfo/brtharealst/A0465">
  593. <label ref="cdnm"/>
  594. <value ref="cdid"/>
  595. </itemset>
  596. </choices>
  597. </col>
  598. <col ref="hopedd"/>
  599. <col ref="pid"/>
  600. <col ref="visano"/>
  601. <col ref="hngnm"/>
  602. <col ref="engnm"/>
  603. <col ref="sex"/>
  604. <col ref="age"/>
  605. <col ref="pkgnm"/>
  606. <col ref="pkgcd" visibility="hidden"/>
  607. <col ref="remcnts"/>
  608. <col ref="healexamflag" visibility="hidden"/>
  609. <col ref="healexamdetlflag" visibility="hidden"/>
  610. <col ref="rsrvdd" visibility="hidden"/>
  611. <col ref="rsrvno" visibility="hidden"/>
  612. <col ref="cretno" visibility="hidden"/>
  613. <col ref="orddd" visibility="hidden"/>
  614. <col ref="statflag" type="combo" visibility="hidden">
  615. <choices>
  616. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  617. <label ref="cdnm"/>
  618. <value ref="cdid"/>
  619. </itemset>
  620. </choices>
  621. </col>
  622. <col ref="rrgstno1" visibility="hidden"/>
  623. <col ref="rrgstno2" visibility="hidden"/>
  624. <col ref="prntyn" visibility="hidden"/>
  625. <col ref="prnttims" visibility="hidden"/>
  626. <col ref="prntrid" visibility="hidden"/>
  627. <col ref="prnttm" visibility="hidden"/>
  628. <col ref="psptno" visibility="hidden"/>
  629. <col ref="brthdd" visibility="hidden"/>
  630. <col ref="judgdrid" visibility="hidden"/>
  631. <col ref="meddrid" visibility="hidden"/>
  632. <script type="javascript" ev:event="onaftersort">
  633. <![CDATA[
  634. grd_prntlst.gridToInstance();
  635. ]]>
  636. </script>
  637. </datagrid>
  638. </case>
  639. <case id="case_amer">
  640. <caption id="caption3" class="tit_2" style="left:5px; top:38px; width:144px; height:13px; ">상세내역</caption>
  641. <line id="line1" class="line_1" style="x1:5px; y1:53px; x2:1187px; y2:53px; "/>
  642. <datagrid id="grd_amerlst" nodeset="/root/main/prntpatlst/item2" caption="선택^등록번호^성명^주민번호^주민번호^여권번호^출력^국가^건진일자^비자연번^한글명^성별^나이^패키지명^퍄카지코드^비고^건진구분^건진상세구분^rsrvdd^rsrvno^cretno^orddd^statflag^출력횟수^출력자^출력시간^brthdd^judgdrid^meddrid^출력일시^orddd^판정의^caption1" colsep="^" colwidth="80, 200, 200, 150, 150, 200, 150, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" defaultrows="1" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:58px; width:1182px; height:601px; ">
  643. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  644. <col ref="pid">
  645. <choices>
  646. <itemset nodeset="/root/init/baseinfo/brtharealst/A0465">
  647. <label ref="cdnm"/>
  648. <value ref="cdid"/>
  649. </itemset>
  650. </choices>
  651. </col>
  652. <col ref="engnm"/>
  653. <col ref="rrgstno1"/>
  654. <col ref="rrgstno2"/>
  655. <col ref="psptno"/>
  656. <col checkvalue="Y,N" disabled="true" ref="prntyn" type="checkbox"/>
  657. <col disabled="true" ref="brthareacnts" type="combo" visibility="hidden">
  658. <choices>
  659. <itemset nodeset="/root/init/baseinfo/brtharealst/A0465">
  660. <label ref="cdnm"/>
  661. <value ref="cdid"/>
  662. </itemset>
  663. </choices>
  664. </col>
  665. <col ref="hopedd" visibility="hidden"/>
  666. <col ref="visano" visibility="hidden"/>
  667. <col ref="hngnm" visibility="hidden"/>
  668. <col ref="sex" visibility="hidden"/>
  669. <col ref="age" visibility="hidden"/>
  670. <col ref="pkgnm" visibility="hidden"/>
  671. <col ref="pkgcd" visibility="hidden"/>
  672. <col ref="remcnts" visibility="hidden"/>
  673. <col ref="healexamflag" visibility="hidden"/>
  674. <col ref="healexamdetlflag" visibility="hidden"/>
  675. <col ref="rsrvdd" visibility="hidden">
  676. <choices>
  677. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  678. <label ref="cdnm"/>
  679. <value ref="cdid"/>
  680. </itemset>
  681. </choices>
  682. </col>
  683. <col ref="rsrvno" visibility="hidden"/>
  684. <col ref="cretno" visibility="hidden"/>
  685. <col ref="orddd" visibility="hidden"/>
  686. <col disabled="true" ref="statflag" type="combo" visibility="hidden">
  687. <choices>
  688. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  689. <label ref="cdnm"/>
  690. <value ref="cdid"/>
  691. </itemset>
  692. </choices>
  693. </col>
  694. <col ref="prnttims" visibility="hidden"/>
  695. <col ref="prntrid" visibility="hidden"/>
  696. <col ref="prnttm" visibility="hidden"/>
  697. <col ref="brthdd" visibility="hidden"/>
  698. <col ref="judgdrid" visibility="hidden"/>
  699. <col ref="meddrid" visibility="hidden"/>
  700. <script type="javascript" ev:event="onaftersort">
  701. <![CDATA[
  702. grd_prntlst.gridToInstance();
  703. ]]>
  704. </script>
  705. </datagrid>
  706. <select1 id="rdo_amerprntflag" ref="/root/init/prnt/prntflag" appearance="full" cellspacing="20" cols="6" overflow="visible" style="left:95px; top:11px; width:100px; height:20px; border-style:none; ">
  707. <choices>
  708. <itemset nodeset="/root/init/baseinfo/amerprntlst/V008">
  709. <label ref="cdnm"/>
  710. <value ref="cdid"/>
  711. </itemset>
  712. </choices>
  713. </select1>
  714. <line id="line3" class="line_2" style="x1:5px; y1:5px; x2:1187px; y2:5px; "/>
  715. <line id="line4" class="line_2" style="x1:5px; y1:33px; x2:1187px; y2:33px; "/>
  716. <caption id="caption62" class="cell_1" style="left:5px; top:7px; width:84px; height:25px; vertical-align:middle; ">출력양식선택</caption>
  717. </case>
  718. </switch>
  719. <button id="btn_amer" class="btn_sw" group="tab" style="left:90px; top:67px; width:114px; height:22px; ">
  720. <caption>미국비자 양식출력</caption>
  721. <script type="javascript" ev:event="onclick">
  722. <![CDATA[
  723. model.setValue("/root/send/srch/srchbrtharea" , "US");
  724. cmb_brtharea.refresh();
  725. cmb_brtharea.disabled = true;
  726. model.setValue("/root/send/srch/srchflag" , "2");
  727. model.toggle("case_amer");
  728. ]]>
  729. </script>
  730. </button>
  731. <button id="btn_prnt" class="btn_sw" group="tab" style="left:0px; top:67px; width:89px; height:22px; ">
  732. <caption>서식지 재출력</caption>
  733. <script type="javascript" ev:event="onclick">
  734. <![CDATA[
  735. cmb_brtharea.disabled = false;
  736. model.setValue("/root/send/srch/srchflag" , "1");
  737. model.toggle("case_prnt");
  738. ]]>
  739. </script>
  740. </button>
  741. </xhtml:body>
  742. </xhtml:html>