SMAHA04540_공단결과출력.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. <hopedd/>
  26. <rrgstno/>
  27. <pid/>
  28. <hngnm/>
  29. <sex/>
  30. <age/>
  31. <statflag/>
  32. <pkgcd/>
  33. <pkgnm/>
  34. <remcnts/>
  35. <healexamflag/>
  36. <healexamdetlflag/>
  37. <rsrvdd/>
  38. <rsrvno/>
  39. <cretno/>
  40. <orddd/>
  41. </item>
  42. </prntpatlst>
  43. <info>
  44. <patinfo>
  45. <item>
  46. <pid/>
  47. <rgstno1/>
  48. <rgstno2/>
  49. <hngnm/>
  50. <engnm/>
  51. <sex/>
  52. <age/>
  53. <brthdd/>
  54. <zipcd1/>
  55. <zipcd2/>
  56. <addr/>
  57. <detladdr1/>
  58. <mpphon/>
  59. <telno/>
  60. <emailid/>
  61. <emailtype/>
  62. <healexampid/>
  63. <emailkind/>
  64. <zipcd21/>
  65. <zipcd22/>
  66. <addr2/>
  67. <detladdr2/>
  68. <psptno/>
  69. <brthareacnts/>
  70. <pidcretfg/>
  71. <zipcdseq1/>
  72. <zipcdseq2/>
  73. <clntgrde/>
  74. <patremcnts/>
  75. <notice/>
  76. </item>
  77. </patinfo>
  78. </info>
  79. <prntinfo>
  80. <prnt>
  81. </prnt>
  82. </prntinfo>
  83. </main>
  84. <send>
  85. <srchhealexamflag/>
  86. <srchhealexamdetlflag/>
  87. <srchfromdd/>
  88. <srchtodd/>
  89. <srchpid/>
  90. <srchpnm/>
  91. <srchpkgcd/>
  92. <srchpkgnm/>
  93. <prnt/>
  94. </send>
  95. <init>
  96. <baseinfo>
  97. <contypelst/>
  98. <statlst/>
  99. <healexamflag>
  100. <item/>
  101. </healexamflag>
  102. <hedetlflaglst/>
  103. <brtharealst/>
  104. <chealexamflag/>
  105. <ghealexamflag/>
  106. <initaddrinfo/>
  107. </baseinfo>
  108. </init>
  109. <hidden>
  110. <count/>
  111. <pkginfo/>
  112. </hidden>
  113. <temp>
  114. <coninfolst/>
  115. <prntinfo/>
  116. <cdlst>
  117. </cdlst>
  118. <preview>Y</preview>
  119. <language>H</language>
  120. </temp>
  121. <report>
  122. <cmpyrslt>
  123. <item/>
  124. </cmpyrslt>
  125. <iteminfo/>
  126. <itemjudg/>
  127. <patinfo/>
  128. </report>
  129. </root>
  130. </instance>
  131. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  135. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  136. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  137. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  138. <script type="javascript" ev:event="xforms-ready">
  139. <![CDATA[
  140. var sFlag = getScreenMenuParameter();
  141. if(sFlag != "") {
  142. m_vHealexamflag = sFlag.substr(0,1);
  143. m_vHealexamdetlflag = sFlag;
  144. }
  145. fGetBaseInfo();
  146. fInitInfo();
  147. model.refresh();
  148. ]]>
  149. </script>
  150. <submission id="TRZBC00101"/>
  151. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  152. <submission id="TRAHA04541" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prntpatlst"/>
  153. <submission id="TRAHA04542" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prnt" replace="instance" resultref="root/main/prntinfo/prnt"/>
  154. <submission id="TXAHA04521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updata/req" replace="instance" resultref="/root/hidden/count"/>
  155. <submission id="TRAHA00001"/>
  156. </model>
  157. <script type="javascript">
  158. <![CDATA[
  159. var m_vHealexamflag = "";
  160. var m_vHealexamdetlflag = "";
  161. /*=======================================================================================
  162. *공통코드 가져오기
  163. =======================================================================================*/
  164. function fGetBaseInfo(){
  165. //건진분류(종건/일건) , 건진상태구분, 계약종류
  166. zbcfGetCodeList( new Array( "A0069","A0070" ,"A0107","A0113","A0465" ),
  167. new Array ("/root/init/baseinfo/chealexamflag"
  168. ,"/root/init/baseinfo/ghealexamflag"
  169. ,"/root/init/baseinfo/statlst"
  170. ,"/root/init/baseinfo/contypelst"
  171. ,"/root/init/baseinfo/brtharealst" ) );
  172. healGetCodeList( new Array("S040", "S050", "R001"),
  173. new Array("/root/init/baseinfo/initsendaddressflag", "/root/init/baseinfo/initsendaddressflag2", "/root/init/baseinfo/initaddrinfo") );
  174. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  175. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  176. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  177. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  178. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  179. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  180. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  181. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  182. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  183. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  184. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  185. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  186. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  187. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  188. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  189. copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/chealexamflag/A0069", "replace");
  190. copyNodesetType("/root/init/baseinfo/healexamflag/item","/root/init/baseinfo/ghealexamflag/A0070", "after");
  191. cmb_srchhealexamdetlflag.refresh();
  192. }
  193. /*=======================================================================================
  194. *초기화
  195. =======================================================================================*/
  196. function fInitInfo(){
  197. var cur_date = getCurrentDate() ;
  198. model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
  199. model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
  200. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  201. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  202. grd_prntlst.fixedcellcheckbox(0,1) = true;
  203. }
  204. /**=======================================================================================
  205. * 건진 결과 출력 대상자 리스트 조회
  206. =======================================================================================*/
  207. function fGetPrntPatList(){
  208. submit("TRAHA04541");
  209. }
  210. /**=======================================================================================
  211. @desc : 결과지 출력
  212. =======================================================================================*/
  213. function fPrintRslt(){
  214. setParameter("reportprintyn", ""); //출력여부 확인하기
  215. var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
  216. var ret = false;
  217. for( var i = 0 ; i < nodeList.length ; i++){
  218. model.makeValue("/root/send/prnt/healexamflag", nodeList.item(i).healexamflag.text ); //건진구분
  219. model.makeValue("/root/send/prnt/healexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
  220. model.makeValue("/root/send/prnt/rsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
  221. model.makeValue("/root/send/prnt/rsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
  222. model.makeValue("/root/send/prnt/pid", nodeList.item(i).pid.text ); //등록번호
  223. model.makeValue("/root/send/prnt/orddd", nodeList.item(i).orddd.text ); //건진일자
  224. model.makeValue("/root/send/prnt/cretno", nodeList.item(i).cretno.text ); //건진일자
  225. //그리드에 뿌려주기
  226. if( submit("TRAHA04542") ) {
  227. var bDirectPrnt = "true";
  228. if( chk_preview.value == "Y" ){
  229. bDirectPrnt = "false";
  230. }
  231. copyNodeType("/root/main/prntinfo/prnt/patinfo","/root/init/addrinfo", "after");
  232. if (bDirectPrnt == "false") { //미리보기
  233. exeReportPreview("RPAHR04540", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  234. } else {
  235. exeReportPreview("RPAHR04540", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
  236. }
  237. }
  238. }
  239. /*
  240. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  241. grd_prntlst.clearStatus();
  242. for( var i = 0 ; i <= grd_prntlst.rows ; i++){
  243. if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
  244. grd_prntlst.rowStatus(i) = 2;
  245. }
  246. }
  247. model.setValue("/root/send/updata/req" , grd_prntlst.getUpdateData());
  248. submit("TXAHA04521");
  249. }*/
  250. }
  251. ]]>
  252. </script>
  253. </xhtml:head>
  254. <xhtml:body pagewidth="1220" pageheight="820" guideline="2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  255. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  256. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">공단결과출력</caption>
  257. </group>
  258. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:739px; ">
  259. <group id="group2" style="left:0px; top:5px; width:1195px; height:45px; vertical-align:top; ">
  260. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:45px; "/>
  261. <caption id="caption10" class="search_name" style="left:215px; top:12px; width:91px; height:17px; ">건진기간 :</caption>
  262. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:302px; top:11px; width:95px; height:19px; "/>
  263. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:420px; top:11px; width:95px; height:19px; "/>
  264. <line id="line5" class="line_4" style="x1:1127px; y1:6px; x2:1127px; y2:39px; "/>
  265. <caption id="caption13" class="search_name" style="left:825px; top:11px; width:86px; height:17px; ">환자검색 :</caption>
  266. <caption id="caption14" class="search_n_b" style="left:403px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  267. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" style="left:912px; top:11px; width:80px; height:19px; ">
  268. <script type="javascript" ev:event="onkeyup">
  269. <![CDATA[
  270. inputEnterKey("btn_srchpat" , "DOMActivate");
  271. ]]>
  272. </script>
  273. </input>
  274. <button id="btn_srchpat" class="icon_search" style="left:997px; top:12px; width:16px; height:16px; ">
  275. <caption/>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. fSearchPatInfo("SMAHR00900", "pid", model.getValue("/root/send/srchpid") , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:12px; width:56px; height:22px; ">
  283. <caption>조회</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. //조회 버튼 클릭 이벤트
  287. fGetPrntPatList();
  288. ]]>
  289. </script>
  290. </button>
  291. <caption id="caption2" class="search_name" style="left:5px; top:11px; width:91px; height:17px; ">건진구분 :</caption>
  292. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:92px; top:9px; width:113px; height:19px; ">
  293. <choices>
  294. <itemset nodeset="/root/init/baseinfo/healexamflag/item">
  295. <label ref="cdnm"/>
  296. <value ref="cdid"/>
  297. </itemset>
  298. </choices>
  299. <script type="javascript" ev:event="xforms-select">
  300. <![CDATA[
  301. fGetPrntPatList();
  302. ]]>
  303. </script>
  304. </select1>
  305. <caption id="caption1" class="search_name" style="left:525px; top:12px; width:91px; height:17px; ">패키지 :</caption>
  306. <input id="ipt_pkgcd" ref="/root/send/srchpkgcd" style="left:601px; top:11px; width:80px; height:19px; ">
  307. <script type="javascript" ev:event="onkeyup">
  308. <![CDATA[
  309. inputEnterKey("btn_srchpkg" , "DOMActivate");
  310. ]]>
  311. </script>
  312. </input>
  313. <button id="btn_srchpkg" class="icon_search" style="left:686px; top:12px; width:16px; height:16px; ">
  314. <caption/>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. model.resetInstanceNode("/root/hidden/pkginfo");
  318. fGetPkgCd("SMAHA00300", "P", "N","cd" , model.getValue("/root/send/srchpkgcd") ,model.getValue("/root/send/srchhealexamdetlflag") , "" , "/root/hidden/pkginfo","Y","" , "" );
  319. if( fCheckNodeExist("/root/hidden/pkginfo/pkgcd" , false) ) {
  320. model.setValue("/root/send/srchpkgcd" , model.getValue("/root/hidden/pkginfo/pkgcd") == "" ? model.getValue("/root/send/srchpkgcd") : model.getValue("/root/hidden/pkginfo/pkgcd"));
  321. ipt_pkgcd.refresh();
  322. }
  323. if( fCheckNodeExist("/root/hidden/pkginfo/pkgnm" , false) ) {
  324. model.setValue("/root/send/srchpkgnm" , model.getValue("/root/hidden/pkginfo/pkgnm") == "" ? model.getValue("/root/send/srchpkgnm") : model.getValue("/root/hidden/pkginfo/pkgnm"));
  325. ipt_pkgnm.refresh();
  326. }
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="ipt_pkgnm" ref="/root/send/srchpkgnm" disabled="true" style="left:707px; top:11px; width:110px; height:19px; "/>
  331. <input id="ipt_pnm" ref="/root/send/srchpnm" disabled="true" style="left:1018px; top:11px; width:100px; height:19px; "/>
  332. </group>
  333. <datagrid id="grd_prntlst" nodeset="/root/main/prntpatlst/item" autoresize="true" caption="선택^건진일자^주민번호^등록번호^한글이름^성별^나이^건진상태^패키지코드^패키지명^비고^healexamflag^healexamdetlflag^rsrvdd^rsrvno^cretno^orddd^출력일시^orddd^판정의^caption1" colsep="^" colwidth="50, 80, 120, 100, 100, 40, 40, 80, 150, 230, 160, 100, 100, 100, 100, 100, 100" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:83px; width:1185px; height:651px; ">
  334. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  335. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  336. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  337. <col ref="pid" style="text-align:left; "/>
  338. <col ref="hngnm" style="text-align:left; "/>
  339. <col ref="sex" type="combo" style="text-align:center; ">
  340. <choices>
  341. <item>
  342. <label>남</label>
  343. <value>M</value>
  344. </item>
  345. <item>
  346. <label>여</label>
  347. <value>F</value>
  348. </item>
  349. </choices>
  350. </col>
  351. <col ref="age" style="text-align:left; "/>
  352. <col disabled="true" ref="statflag" type="combo">
  353. <choices>
  354. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  355. <label ref="cdnm"/>
  356. <value ref="cdid"/>
  357. </itemset>
  358. </choices>
  359. </col>
  360. <col ref="pkgcd" style="text-align:left; "/>
  361. <col ref="pkgnm" style="text-align:left; "/>
  362. <col ref="remcnts" style="text-align:left; "/>
  363. <col ref="healexamflag" visibility="hidden"/>
  364. <col ref="healexamdetlflag" visibility="hidden"/>
  365. <col ref="rsrvdd" visibility="hidden"/>
  366. <col ref="rsrvno" visibility="hidden"/>
  367. <col ref="cretno" visibility="hidden"/>
  368. <col ref="orddd" visibility="hidden"/>
  369. <script type="javascript" ev:event="onaftersort">
  370. <![CDATA[
  371. grd_prntlst.gridToInstance();
  372. ]]>
  373. </script>
  374. </datagrid>
  375. <caption id="caption5" class="tit_2" style="left:5px; top:63px; width:144px; height:13px; ">상세내역</caption>
  376. <line id="line3" class="line_1" style="x1:5px; y1:78px; x2:1190px; y2:78px; "/>
  377. </group>
  378. <group id="group4" scroll="auto" style="left:0px; top:751px; width:1195px; height:28px; ">
  379. <button id="button1" class="btn6_letter4" style="left:0px; top:4px; width:80px; height:22px; ">
  380. <caption>결과출력</caption>
  381. <script type="javascript" ev:event="onclick">
  382. <![CDATA[
  383. fPrintRslt();
  384. ]]>
  385. </script>
  386. </button>
  387. <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; ">
  388. <choices>
  389. <item>
  390. <label>미리보기</label>
  391. <value>Y</value>
  392. </item>
  393. </choices>
  394. <script type="javascript" ev:event="xforms-select">
  395. <![CDATA[
  396. model.setValue("/root/temp/preview","Y");
  397. ]]>
  398. </script>
  399. <script type="javascript" ev:event="xforms-deselect">
  400. <![CDATA[
  401. model.setValue("/root/temp/preview","");
  402. ]]>
  403. </script>
  404. </select>
  405. </group>
  406. </xhtml:body>
  407. </xhtml:html>