SMAHA04110_재미검자관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB01400.xrw
  4. * 설 명 : 기관및판정의관리
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2007.08.01
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <send>
  19. <srchpid/>
  20. <srchfromdd/>
  21. <srchtodd/>
  22. <healexamdetlflag/>
  23. <srchpnm2/>
  24. <srchflag>L</srchflag>
  25. <save>
  26. <reexamlst/>
  27. </save>
  28. <srchreexflag>C</srchreexflag>
  29. </send>
  30. <main>
  31. <reexam>
  32. <item>
  33. <sel/>
  34. <pid/>
  35. <hngnm/>
  36. <hopedd/>
  37. <pkgnm/>
  38. <hometel/>
  39. <mpphontel/>
  40. <addr/>
  41. <notiyn/>
  42. <nexthopedd/>
  43. <reexamcdlst/>
  44. <cnts/>
  45. <healexamdetlflag/>
  46. <orgrsrvdd/>
  47. <orgrsrvno/>
  48. <nextrsrvdd/>
  49. <nextrsrvno/>
  50. </item>
  51. </reexam>
  52. </main>
  53. <init>
  54. <baseinfo>
  55. <assocd/>
  56. <healexamflaglst/>
  57. <ghealexamdetlflaglst/>
  58. <chealexamdetlflaglst/>
  59. <healexamdetlflaglst>
  60. <item/>
  61. </healexamdetlflaglst>
  62. <comcode/>
  63. </baseinfo>
  64. </init>
  65. <hidden/>
  66. <case_mode/>
  67. <temp>
  68. <addr>
  69. <zipcd1/>
  70. <zipcd2/>
  71. <addr/>
  72. <zipcdseq/>
  73. </addr>
  74. </temp>
  75. </root>
  76. </instance>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  81. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  82. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  83. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <!-- <submission id="TRAHB00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inqrlst"/>
  86. <submission id="TRZBC00101"/> -->
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. fGetBaseInfo();
  90. model.removeNodeset("/root/main/reexam");
  91. var cur_date = new Date();
  92. var from_date = (cur_date.getAddDate(-1, 'M')).getDateFormat();
  93. model.setValue( ipt_fromdd.attribute("ref") , from_date);
  94. model.setValue( ipt_todd.attribute("ref") , getCurrentDate());
  95. model.refresh();
  96. ]]>
  97. </script>
  98. <submission id="TRAHA04111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/assolist"/>
  99. <submission id="TRAHA31502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drlist"/>
  100. <submission id="TXAHA04111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  101. <submission id="TXAHA31502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  102. <submission id="TRZBC00101"/>
  103. </model>
  104. <script type="javascript">
  105. <![CDATA[
  106. function fGetBaseInfo(){
  107. // 건진기관구분
  108. zbcfGetCodeList( new Array("A0068","A0069","A0070","P0008","P0010","P0032"),
  109. new Array("/root/init/baseinfo/healexamflaglst"
  110. ,"/root/init/baseinfo/chealexamdetlflaglst"
  111. ,"/root/init/baseinfo/ghealexamdetlflaglst"
  112. ,"/root/init/baseinfo/comcode"
  113. ,"/root/init/baseinfo/comcode"
  114. ,"/root/init/baseinfo/comcode") );
  115. submit("TRZBC00101");
  116. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/chealexamdetlflaglst/A0069", "after");
  117. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/ghealexamdetlflaglst/A0070", "after");
  118. }
  119. function fGetreexam(){
  120. grd_reexamlst.clearStatus();
  121. model.removeNodeset("/root/main/reexam");
  122. submit("TRAHA04111");
  123. }
  124. function fSaveVal() {
  125. if( messageBox("재미검자정보를 ","Q002") == 6){
  126. model.setValue("/root/send/save/reexamlst" , grd_reexamlst.getUpdateData());
  127. if (submit("TXAHA04111")){
  128. fGetreexam();
  129. }
  130. }
  131. }
  132. ]]>
  133. </script>
  134. </xhtml:head>
  135. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  136. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  137. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:134px; height:14px; ">재미검자관리</caption>
  138. </group>
  139. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  140. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  141. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  143. <caption>조회</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. fGetreexam();
  147. ]]>
  148. </script>
  149. </button>
  150. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  151. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/healexamdetlflag" class="combo_search" visibility="hidden" appearance="minimal" style="left:90px; top:8px; width:110px; height:19px; ">
  152. <choices>
  153. <itemset nodeset="/root/init/baseinfo/healexamdetlflaglst/item">
  154. <label ref="cdnm"/>
  155. <value ref="cdid"/>
  156. </itemset>
  157. </choices>
  158. </select1>
  159. <input id="ipt_srchpid" ref="/root/send/srchpid" class="input_search" imemode="hangul" style="left:842px; top:7px; width:105px; height:19px; ">
  160. <script type="javascript" ev:event="onkeyup">
  161. <![CDATA[
  162. inputEnterKey("btn_srchpat", "DOMActivate");
  163. ]]>
  164. </script>
  165. </input>
  166. <button id="btn_srchpat" class="icon_search" style="left:957px; top:7px; width:16px; height:16px; ">
  167. <caption/>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
  171. ]]>
  172. </script>
  173. </button>
  174. <caption id="caption1" style="left:607px; top:10px; width:25px; height:20px; text-align:center; ">~</caption>
  175. <output id="opt_srchpnm" ref="/root/send/srchpnm2" class="output_fix" style="left:977px; top:7px; width:120px; height:19px; "/>
  176. <caption id="caption2" class="search_name" visibility="hidden" style="left:5px; top:8px; width:86px; height:17px; ">건진구분 :</caption>
  177. <caption id="caption47" class="search_name" style="left:413px; top:8px; width:99px; height:17px; ">조회일자 :</caption>
  178. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:635px; top:8px; width:100px; height:19px; ">
  179. <script type="javascript" ev:event="onkeyup">
  180. <![CDATA[
  181. fMoveFocus("ipt_todd");
  182. ]]>
  183. </script>
  184. </input>
  185. <caption id="caption49" class="search_name" style="left:753px; top:7px; width:89px; height:17px; ">환자검색 :</caption>
  186. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:504px; top:8px; width:100px; height:19px; ">
  187. <script type="javascript" ev:event="onkeyup">
  188. <![CDATA[
  189. fMoveFocus("ipt_todd");
  190. ]]>
  191. </script>
  192. </input>
  193. <select1 id="combo1" ref="/root/send/srchflag" class="combo_search" appearance="minimal" style="left:296px; top:8px; width:110px; height:19px; ">
  194. <choices>
  195. <item>
  196. <label>최종건진일</label>
  197. <value>L</value>
  198. </item>
  199. <item>
  200. <label>다음예약일</label>
  201. <value>N</value>
  202. </item>
  203. </choices>
  204. </select1>
  205. <caption id="caption3" class="search_name" style="left:211px; top:8px; width:86px; height:17px; ">조회구분 :</caption>
  206. <select1 id="combo2" ref="/root/send/srchreexflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:100px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>미검자</label>
  210. <value>B</value>
  211. </item>
  212. <item>
  213. <label>재검자</label>
  214. <value>C</value>
  215. </item>
  216. </choices>
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. fGetreexam();
  220. ]]>
  221. </script>
  222. </select1>
  223. <caption id="caption4" class="search_name" style="left:5px; top:8px; width:99px; height:17px; ">재미검구분 :</caption>
  224. </group>
  225. <datagrid id="grd_reexamlst" nodeset="/root/main/reexam/item" autoresize="true" caption="선택^등록번호^성명^신체검사일^패키지명^연락처1^연락처2^주소^통보여부^다음예약일^재검대상검사목록^비고^건진구분^원예약등록일^원예약등록번호^다음예약등록일^다음예약등록번호" colsep="^" colwidth="58, 80, 71, 80, 120, 90, 90, 160, 70, 100, 120, 128, 100, 100, 100, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:80px; width:1194px; height:650px; ">
  226. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  227. <col ref="pid" type="inputbutton"/>
  228. <col ref="hngnm"/>
  229. <col ref="hopedd"/>
  230. <col ref="pkgnm"/>
  231. <col ref="hometel"/>
  232. <col ref="mpphontel"/>
  233. <col ref="addr"/>
  234. <col ref="notiyn" type="combo">
  235. <choices>
  236. <item>
  237. <label>통보</label>
  238. <value>Y</value>
  239. </item>
  240. <item>
  241. <label>미통보</label>
  242. <value>N</value>
  243. </item>
  244. </choices>
  245. </col>
  246. <col ref="nexthopedd" type="inputdate"/>
  247. <col ref="reexamcdlst" type="inputbutton"/>
  248. <col ref="cnts" type="input"/>
  249. <col ref="healexamdetlflag" visibility="hidden"/>
  250. <col ref="orgrsrvdd" visibility="hidden"/>
  251. <col ref="orgrsrvno" visibility="hidden"/>
  252. <col ref="nextrsrvdd" visibility="hidden"/>
  253. <col ref="nextrsrvno" visibility="hidden"/>
  254. <col ref="reexseq" visibility="hidden"/>
  255. <script type="javascript" ev:event="onbuttonclick">
  256. <![CDATA[
  257. if( grd_reexamlst.col == grd_reexamlst.colRef("pid") && grd_reexamlst.rowStatus(grd_reexamlst.row) == 1) {
  258. setParameter("SPAHB00600_PARAM5", "/root/main/reexam/item[" + grd_reexamlst.row + "]");
  259. modal("SPAHA04111", "", "", "", "SPAHA04111", "/root/source","/root/target");
  260. }
  261. if( grd_reexamlst.col == grd_reexamlst.colRef("reexamcdlst")) {
  262. //setParameter("SPAHB00600_PARAM5", "/root/main/reexam/item[" + grd_reexamlst.row + "]");
  263. //modal("SPAHR05010", "", "", "", "SPAHR05010", "/root/source","/root/target");
  264. fGetPkgCd("SMAHA00100", "A", "Y","nm" , "" , 'G02', 'M', "/root/temp/templst","","", 28);
  265. if(model.getXPathValue("count(/root/temp/templst/list)") > 0)
  266. {
  267. model.setValue("/root/main/reexam/item[" + grd_reexamlst.row + "]/reexamcdlst", "");
  268. var strCdlst = "";
  269. for(var i = 1 ; i <= model.getXPathValue("count(/root/temp/templst/list)") ; i++)
  270. {
  271. strCdlst += model.getValue("/root/temp/templst/list[" + i + "]/testcd") + ",";
  272. }
  273. model.setValue("/root/main/reexam/item[" + grd_reexamlst.row + "]/reexamcdlst", strCdlst);
  274. }
  275. model.refresh();
  276. }
  277. ]]>
  278. </script>
  279. </datagrid>
  280. <line id="line3" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  281. <button id="btn_rsltdel" class="btn2_letter3" style="left:1135px; top:50px; width:53px; height:19px; ">
  282. <caption>행삭제</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. deleteSelectedRows(grd_reexamlst , true);
  286. ]]>
  287. </script>
  288. </button>
  289. <button id="btn_rsltadd" class="btn2_letter3" visibility="visible" style="left:1079px; top:50px; width:53px; height:19px; ">
  290. <caption>행추가</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. grd_reexamlst.addRow();
  294. ]]>
  295. </script>
  296. </button>
  297. </group>
  298. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  299. <button id="btn_print" class="btn6_letter4" style="left:0px; top:5px; width:72px; height:22px; ">
  300. <caption>엑셀저장</caption>
  301. </button>
  302. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  303. <caption>저장</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. fSaveVal();
  307. messageBox("저장 ", "I002");
  308. ]]>
  309. </script>
  310. </button>
  311. </group>
  312. </xhtml:body>
  313. </xhtml:html>