SPAHA04013_건진이력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR01000.xrw
  4. * 설 명 : 문진결과
  5. * 설 계 자 : 김호익
  6. * 작 성 자 : 김호익
  7. * 작 성 일 : 2007.07.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>건진이력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <histlst>
  20. <item>
  21. <healexamdetlflag/>
  22. <hopedd/>
  23. <pkgcd/>
  24. <pkgnm/>
  25. <statflag/>
  26. <cmpyflag/>
  27. <rsrvdd/>
  28. <disccd/>
  29. <choiflag/>
  30. <remcnts/>
  31. <rsrvno/>
  32. <healexamflag/>
  33. </item>
  34. </histlst>
  35. <addlst>
  36. <item>
  37. <testflag/>
  38. <testcd/>
  39. <testnm/>
  40. </item>
  41. </addlst>
  42. <detl>
  43. <remcnts/>
  44. </detl>
  45. </main>
  46. <send>
  47. <detl>
  48. <rsrvdd/>
  49. <rsrvno/>
  50. <healexamflag/>
  51. </detl>
  52. <srch>
  53. <srchpid/>
  54. <srchpnm/>
  55. <srchhealexamyn/>
  56. <srchhealexamflag/>
  57. <srchhealexamdetlflag/>
  58. <srchinstcd/>
  59. <srchstatflag/>
  60. </srch>
  61. </send>
  62. <init>
  63. <baseinfo>
  64. <testflag/>
  65. <statlst/>
  66. <choiflaglst/>
  67. <ghedetlflaglst/>
  68. <chedetlflaglst/>
  69. <hedetlflaglst>
  70. <item/>
  71. </hedetlflaglst>
  72. <pamcdlst/>
  73. </baseinfo>
  74. </init>
  75. </root>
  76. </instance>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  82. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  83. <submission id="TRZBC00101"/>
  84. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  85. <submission id="TRAHA04014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/histlst"/>
  86. <submission id="TRAHA04015" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detl" replace="instance" resultref="/root/main/addlst"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. fInitDasplay();
  90. fGetBaseInfo();
  91. model.refresh();
  92. // 상태값 모두선택
  93. for(var i = 0; i < chk_statflag.length; i++ ) {
  94. chk_statflag.select(i);
  95. }
  96. fGetHealExamHistList();
  97. ]]>
  98. </script>
  99. </model>
  100. <script type="javascript">
  101. <![CDATA[
  102. /*
  103. * 화면 정보,컨트롤 초기화
  104. */
  105. function fInitDasplay() {
  106. if( checkOpener() ){
  107. var sPid = opener.javascript.getParameter("SPAHA04013_PARAM1");
  108. var sHealexamFlag = opener.javascript.getParameter("SPAHA04013_PARAM2");
  109. var sHealexamdetlFlag = opener.javascript.getParameter("SPAHA04013_PARAM3");
  110. model.setValue("/root/send/srch/srchpid" , sPid);
  111. model.setValue("/root/send/srch/srchhealexamflag" , sHealexamFlag);
  112. model.setValue("/root/send/srch/srchhealexamdetlflag" , sHealexamdetlFlag);
  113. }
  114. cmb_healexamdetl.visible = false;
  115. }
  116. /*
  117. * 공통코드 정보를 조회한다.
  118. */
  119. function fGetBaseInfo() {
  120. model.setValue("/root/send/srch/srchinstcd", getUserInfo("dutplceinstcd") );
  121. zbcfGetCodeList( new Array("A0069","A0070" ,"A0116" , "A0107" , "A0117"), //P0015=> R0077로 변경
  122. new Array("/root/init/baseinfo/chedetlflaglst"
  123. ,"/root/init/baseinfo/ghedetlflaglst"
  124. , "/root/init/baseinfo/choiflaglst"
  125. , "/root/init/baseinfo/statlst"
  126. ,"/root/init/baseinfo/testflag") );
  127. submit("TRAHA00104",false);
  128. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/chedetlflaglst/A0069", "replace");
  129. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/ghedetlflaglst/A0070", "after");
  130. }
  131. /*
  132. * 건진 이력을 조회한다.
  133. */
  134. function fGetHealExamHistList() {
  135. submit("TRAHA04014");
  136. }
  137. ]]>
  138. </script>
  139. </xhtml:head>
  140. <xhtml:body pagewidth="800" pageheight="610">
  141. <line id="line4" class="line_1" style="x1:5px; y1:87px; x2:796px; y2:87px; "/>
  142. <group id="group1" scroll="auto" style="left:5px; top:579px; width:790px; height:27px; ">
  143. <button id="btn_cls" class="btn4_letter2" style="left:729px; top:5px; width:56px; height:22px; ">
  144. <caption>닫기</caption>
  145. <close ev:event="DOMActivate"/>
  146. </button>
  147. </group>
  148. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:157px; height:14px; ">건진이력</caption>
  149. <caption id="caption62" class="tit_2" style="left:5px; top:357px; width:144px; height:13px; ">추가검사</caption>
  150. <line id="line18" class="line_1" style="x1:5px; y1:375px; x2:390px; y2:376px; "/>
  151. <datagrid id="grd_histlst" nodeset="/root/main/histlst/item" caption="건진구분^건진일자^패키지코드^패키지명^접수구분^단체^예약등록^할인^선택검사^전달사항^예약번호^건진구분" colsep="^" colwidth="100, 90, 80, 200, 60, 40, 90, 100, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:92px; width:791px; height:255px; ">
  152. <col disabled="true" ref="healexamdetlflag" type="combo">
  153. <choices>
  154. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  155. <label ref="cdnm"/>
  156. <value ref="cdid"/>
  157. </itemset>
  158. </choices>
  159. </col>
  160. <col disabled="true" ref="hopedd" type="inputdate"/>
  161. <col ref="pkgcd"/>
  162. <col ref="pkgnm"/>
  163. <col disabled="true" ref="statflag" type="combo">
  164. <choices>
  165. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  166. <label ref="cdnm"/>
  167. <value ref="cdid"/>
  168. </itemset>
  169. </choices>
  170. </col>
  171. <col checkvalue="Y,N" disabled="true" ref="cmpyflag" type="checkbox"/>
  172. <col disabled="true" ref="rsrvdd" type="inputdate"/>
  173. <col disabled="true" ref="disccd" type="combo">
  174. <choices>
  175. <itemset nodeset="/root/init/baseinfo/pamcdlst/disccdlst">
  176. <label ref="nm"/>
  177. <value ref="cd"/>
  178. </itemset>
  179. </choices>
  180. </col>
  181. <col disabled="true" ref="choiflag" type="combo">
  182. <choices>
  183. <itemset nodeset="/root/init/baseinfo/choiflaglst/A0116">
  184. <label ref="cdnm"/>
  185. <value ref="cdid"/>
  186. </itemset>
  187. </choices>
  188. </col>
  189. <col ref="remcnts" visibility="hidden"/>
  190. <col ref="rsrvno" visibility="hidden"/>
  191. <col ref="healexamflag" visibility="hidden"/>
  192. <script type="javascript" ev:event="onclick">
  193. <![CDATA[
  194. if (isDataCell()) {
  195. model.setValue("/root/send/detl/rsrvdd" , grd_histlst.valueMatrix(grd_histlst.row , grd_histlst.colRef("rsrvdd")));
  196. model.setValue("/root/send/detl/rsrvno" , grd_histlst.valueMatrix(grd_histlst.row , grd_histlst.colRef("rsrvno")));
  197. model.setValue("/root/send/detl/healexamflag" , grd_histlst.valueMatrix(grd_histlst.row , grd_histlst.colRef("healexamflag")));
  198. if(submit("TRAHA04015")) {
  199. model.setValue("/root/main/detl/remcnts" , grd_histlst.valueMatrix(grd_histlst.row , grd_histlst.colRef("remcnts")) );
  200. txt_remcnts.refresh();
  201. }
  202. }
  203. ]]>
  204. </script>
  205. </datagrid>
  206. <datagrid id="grd_addlst" nodeset="/root/main/addlst/item" caption="검사구분^검사코드^검사명" colsep="^" colwidth="80, 100, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:379px; width:385px; height:197px; ">
  207. <col disabled="true" ref="testflag" type="combo">
  208. <choices>
  209. <itemset nodeset="/root/init/baseinfo/testflag/A0117">
  210. <label ref="cdnm"/>
  211. <value ref="cdid"/>
  212. </itemset>
  213. </choices>
  214. </col>
  215. <col ref="testcd"/>
  216. <col ref="testnm"/>
  217. </datagrid>
  218. <textarea id="txt_remcnts" ref="/root/main/detl/remcnts" style="left:394px; top:379px; width:401px; height:197px; "/>
  219. <group id="group2" style="left:0px; top:20px; width:795px; height:65px; vertical-align:top; ">
  220. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:794px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  221. <caption id="caption4" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  222. <line id="line13" style="x1:719px; y1:7px; x2:719px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
  223. <input id="ipt_srchpid" ref="/root/send/srch/srchpid" class="input_search" style="left:109px; top:8px; width:91px; height:19px; ">
  224. <script type="javascript" ev:event="onkeyup">
  225. <![CDATA[
  226. inputEnterKey("btn_sea", "DOMActivate");
  227. ]]>
  228. </script>
  229. </input>
  230. <button id="btn_sea" class="btn1_letter2" style="left:730px; top:22px; width:56px; height:22px; ">
  231. <caption>조회</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. fGetHealExamHistList();
  235. ]]>
  236. </script>
  237. </button>
  238. <bool id="bool_healexam" checkvalue="Y,N" ref="/root/send/srch/srchhealexamyn" style="left:395px; top:8px; width:35px; height:20px; ">
  239. <script type="javascript" ev:event="xforms-value-changed">
  240. <![CDATA[
  241. if(model.getValue("/root/send/srch/srchhealexamyn") == "Y") {
  242. cmb_healexamdetl.visible = true;
  243. }else {
  244. cmb_healexamdetl.visible = false;
  245. }
  246. ]]>
  247. </script>
  248. </bool>
  249. <select1 id="cmb_healexamdetl" ref="/root/send/srch/srchhealexamdetlflag" appearance="minimal" style="left:431px; top:8px; width:150px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  252. <label ref="cdnm"/>
  253. <value ref="cdid"/>
  254. </itemset>
  255. </choices>
  256. <script type="javascript" ev:event="xforms-select">
  257. <![CDATA[
  258. var healexamDetlFlag = model.getValue("");
  259. if(healexamDetlFlag != "" ) {
  260. model.setValue("/root/send/srch/srchhealexamflag" , healexamDetlFlag.substr(0,1));
  261. }
  262. ]]>
  263. </script>
  264. </select1>
  265. <caption id="caption3" style="left:350px; top:9px; width:55px; height:20px; ">건진구분</caption>
  266. <input id="ipt_srchpnm" ref="/root/send/srch/srchpnm" class="input_search" disabled="true" style="left:229px; top:8px; width:111px; height:19px; ">
  267. <script type="javascript" ev:event="onkeyup">
  268. <![CDATA[
  269. inputEnterKey("btn_sea", "DOMActivate");
  270. ]]>
  271. </script>
  272. </input>
  273. <button id="btn_search" class="icon_search" style="left:205px; top:10px; width:100px; height:20px; ">
  274. <caption/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send/srch" ,ipt_srchpid.attribute("ref"), ipt_srchpnm.attribute("ref") );
  278. ]]>
  279. </script>
  280. </button>
  281. <caption id="caption5" class="search_name" style="left:15px; top:38px; width:86px; height:17px; ">상태구분 :</caption>
  282. <select id="chk_statflag" ref="/root/send/srch/srchstatflag" overflow="visible" appearance="full" cols="10" direction="acrossdown" sep="^" style="left:110px; top:40px; width:100px; height:20px; border-style:none; ">
  283. <choices>
  284. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  285. <label ref="cdnm"/>
  286. <value ref="cdid"/>
  287. </itemset>
  288. </choices>
  289. </select>
  290. </group>
  291. <caption id="caption2" class="tit_2" style="left:394px; top:357px; width:144px; height:13px; ">전달사항</caption>
  292. <line id="line1" class="line_1" style="x1:394px; y1:375px; x2:795px; y2:376px; "/>
  293. </xhtml:body>
  294. </xhtml:html>