SPAHA00800_직원감면환자선택.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHA00800.xrw
  4. * 설 명 : 직원감면환자선택
  5. * 설 계 자 : 서원식
  6. * 작 성 자 : 서원식
  7. * 작 성 일 : 2011.02.22
  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. <uncolist>
  20. <item>
  21. <seq/>
  22. <sabun/>
  23. <name/>
  24. <buseo/>
  25. <phone/>
  26. <suname/>
  27. <sujumin/>
  28. <suhp/>
  29. <suphone/>
  30. <chooseday/>
  31. <exprieday/>
  32. <expireyn/>
  33. <bigo/>
  34. <instcd/>
  35. </item>
  36. </uncolist>
  37. <uncoinfo>
  38. <item>
  39. <seq/>
  40. <sabun/>
  41. <name/>
  42. <buseo/>
  43. <phone/>
  44. <suname/>
  45. <sujumin/>
  46. <suhp/>
  47. <suphone/>
  48. <chooseday/>
  49. <exprieday/>
  50. <expireyn/>
  51. <bigo/>
  52. </item>
  53. </uncoinfo>
  54. </main>
  55. <send>
  56. <pagetype>SPAHA00800</pagetype>
  57. <srchsabun/>
  58. <srchtype/>
  59. <srchcode/>
  60. <srchexpireyn>N</srchexpireyn>
  61. </send>
  62. <uncoinfoDel>
  63. <seq/>
  64. </uncoinfoDel>
  65. </root>
  66. </instance>
  67. <submission id="TRAHA04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolist"/>
  68. <submission id="TRAHA00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/uncoinfo"/>
  69. <submission id="TRAHA04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/uncoinfoDel"/>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. if(checkOpener()){
  79. // btn_update.disabled = true;
  80. // btn_del.disabled = true;
  81. // var sabun = getUserInfo("userid");
  82. // if(sabun == "AST" || sabun == "99207" || sabun == "97107" || sabun == "99267" ){
  83. // btn_update.disabled = false;
  84. // btn_del.disabled = false;
  85. // }
  86. opener.model.makeNode("/root/temp/okflag");
  87. /* 사번으로 조회되던 부분 주석처리
  88. var openerId = opener.model.getValue("/root/main/info/rsrvacptinfo/item/recmempid");
  89. model.setValue("/root/send/srchcode", openerId);
  90. if(openerId.length < 1){
  91. model.setValue("/root/send/srchtype", "name");
  92. }else{
  93. model.setValue("/root/send/srchtype", "sabun");
  94. fGetUncoList();
  95. }
  96. */
  97. //건진자명으로 조회되도록 수정
  98. var srchcode = opener.model.getValue("/root/main/info/patinfo/item/hngnm");
  99. if(srchcode.length < 1){
  100. model.setValue("/root/send/srchtype" , "name");
  101. }else{
  102. model.setValue("/root/send/srchtype" , "suname");
  103. model.setValue("/root/send/srchcode" , srchcode);
  104. fGetUncoList();
  105. }
  106. model.refresh();
  107. }
  108. ]]>
  109. </script>
  110. <script type="javascript">
  111. <![CDATA[
  112. /*
  113. * 직원감면 조회
  114. */
  115. function fGetUncoList(){
  116. submit("TRAHA04000");
  117. model.refresh();
  118. }
  119. /*
  120. * 직원감면 type : ture-확인, false-취소
  121. */
  122. function fSetUncoInfo(type){
  123. var idx = grd_uncolist.row;
  124. if( idx < 1) {
  125. return;
  126. }
  127. if(checkOpener()){
  128. var expireyn = model.getValue("/root/main/uncolist/item[" + idx + "]/expireyn");
  129. model.copyNode("/root/main/uncoinfo/item", "/root/main/uncolist/item[" + idx + "]");
  130. if(type){
  131. if("Y" == expireyn){
  132. return;
  133. }
  134. opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmempid" , model.getValue( "/root/main/uncolist/item[" + idx + "]/sabun") );
  135. opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmempnm" , model.getValue( "/root/main/uncolist/item[" + idx + "]/name"));
  136. opener.model.setValue("/root/main/info/rsrvacptinfo/item/recmemseq" , model.getValue( "/root/main/uncolist/item[" + idx + "]/seq"));
  137. opener.model.setValue("/root/temp/okflag", "ok");
  138. opener.model.refresh();
  139. model.setValue("/root/main/uncoinfo/item/expireyn","Y");
  140. submit("TRAHA00802");
  141. window.close();
  142. }else{
  143. if("N" == expireyn){
  144. return;
  145. }
  146. model.setValue("/root/main/uncoinfo/item/expireyn","N");
  147. if(submit("TRAHA00802")){
  148. messageBox("직원감면 취소", "I001", "");
  149. fGetUncoList();
  150. }
  151. }
  152. }
  153. }
  154. /*
  155. * 직원감면 삭제
  156. */
  157. function fDelUncoInfo(){
  158. var idx = grd_uncolist.row;
  159. if( idx < 1) {
  160. return;
  161. }
  162. if(checkOpener()){
  163. if(model.getValue("/root/main/uncolist/item[" + idx + "]/expireyn")=="Y"){
  164. messageBox("감면완료된 정보는 삭제 불가능합니다.", "E");
  165. return;
  166. }
  167. model.makeValue("root/uncoinfoDel/pagetype", model.getValue("/root/send/pagetype"));
  168. model.makeValue("root/uncoinfoDel/seq", model.getValue( "/root/main/uncolist/item[" + idx + "]/seq"));
  169. if(submit("TRAHA04004")){
  170. messageBox("직원감면 삭제", "I001", "");
  171. fGetUncoList();
  172. }
  173. }
  174. }
  175. ]]>
  176. </script>
  177. </xhtml:head>
  178. <xhtml:body pagewidth="900" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  179. <group id="group3" scroll="auto" style="left:0px; top:0px; width:880px; height:310px; ">
  180. <group id="group2" style="left:0px; top:0px; width:880px; height:35px; vertical-align:top; ">
  181. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:870px; height:35px; "/>
  182. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  183. <select1 id="srchtype" ref="/root/send/srchtype" class="combo_search" appearance="minimal" style="left:106px; top:8px; width:100px; height:19px; ">
  184. <choices>
  185. <item>
  186. <label>사번</label>
  187. <value>sabun</value>
  188. </item>
  189. <item>
  190. <label>직원명</label>
  191. <value>name</value>
  192. </item>
  193. <item>
  194. <label>건진자명</label>
  195. <value>suname</value>
  196. </item>
  197. </choices>
  198. <script type="javascript" ev:event="xforms-select">
  199. <![CDATA[
  200. model.setFocus("srchcode");
  201. ]]>
  202. </script>
  203. </select1>
  204. <input id="srchcode" ref="/root/send/srchcode" class="input_search" navindex="1" style="left:214px; top:8px; width:100px; height:19px; ">
  205. <script type="javascript" ev:event="onkeyup">
  206. <![CDATA[
  207. inputEnterKey("btn_search", "DOMActivate");
  208. ]]>
  209. </script>
  210. </input>
  211. <bool id="srchexpireyn" checkvalue="Y,N" ref="/root/send/srchexpireyn" style="left:320px; top:8px; width:25px; height:20px; "/>
  212. <caption id="caption75" style="left:345px; top:8px; width:80px; height:20px; ">감면완료포함</caption>
  213. <line id="line13" class="line_4" style="x1:794px; y1:7px; x2:794px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  214. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:805px; top:7px; width:56px; height:22px; ">
  215. <caption>조회</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. fGetUncoList();
  219. ]]>
  220. </script>
  221. </button>
  222. </group>
  223. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:140px; height:13px; ">직원감면리스트</caption>
  224. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:870px; y2:60px; "/>
  225. <datagrid id="grd_uncolist" nodeset="/root/main/uncolist/item" caption="순번^사번^직원명^근무부서^연락처^검진자명^검진자 HP^ 검진자 PHONE^검진자 생년월일^예약일^감면완료일^감면완료여부^비고" colsep="^" colwidth="0, 60, 70, 100, 100, 70, 100, 100, 100, 100, 100, 100, 200" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" style="left:0px; top:65px; width:870px; height:245px; ">
  226. <col disabled="true" ref="seq" type="input" visibility="hidden" style="text-align:center; "/>
  227. <col disabled="true" ref="sabun" type="input" style="text-align:center; "/>
  228. <col disabled="true" ref="name" type="input" style="text-align:center; "/>
  229. <col disabled="true" ref="buseo" type="input" style="text-align:center; "/>
  230. <col disabled="true" ref="phone" type="input" style="text-align:center; "/>
  231. <col disabled="true" ref="suname" type="input" style="text-align:center; "/>
  232. <col disabled="true" ref="suhp" type="input" style="text-align:center; "/>
  233. <col disabled="true" ref="suphone" type="input" style="text-align:center; "/>
  234. <col disabled="true" ref="sujumin" type="input" style="text-align:center; "/>
  235. <col disabled="true" ref="chooseday" type="input" style="text-align:center; "/>
  236. <col disabled="true" ref="expireday" type="input" style="text-align:center; "/>
  237. <col disabled="true" ref="expireyn" type="input" style="text-align:center; "/>
  238. <col disabled="true" ref="bigo" type="input" style="text-align:center; "/>
  239. <script type="javascript" ev:event="ondblclick">
  240. <![CDATA[
  241. fSetUncoInfo(true);
  242. ]]>
  243. </script>
  244. <script type="javascript" ev:event="onaftersort">
  245. <![CDATA[
  246. grd_uncolist.gridToInstance();
  247. ]]>
  248. </script>
  249. </datagrid>
  250. </group>
  251. <group id="group1" scroll="auto" style="left:0px; top:316px; width:875px; height:27px; ">
  252. <button id="btn_confirm" class="btn4_letter2" style="left:758px; top:4px; width:56px; height:22px; ">
  253. <caption>확인</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. fSetUncoInfo(true);
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="btn_update" class="btn4_letter2" style="left:642px; top:4px; width:56px; height:22px; ">
  261. <caption>취소</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fSetUncoInfo(false);
  265. ]]>
  266. </script>
  267. </button>
  268. <button id="btn_del" class="btn4_letter2" style="left:701px; top:4px; width:56px; height:22px; ">
  269. <caption>삭제</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fDelUncoInfo();
  273. ]]>
  274. </script>
  275. </button>
  276. <button id="btn_cancel" class="btn4_letter2" style="left:816px; top:4px; width:56px; height:22px; ">
  277. <caption>닫기</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. if( checkOpener() ){
  281. opener.model.setValue("/root/temp/okflag", "");
  282. }
  283. window.close();
  284. ]]>
  285. </script>
  286. </button>
  287. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:870px; y2:0px; "/>
  288. </group>
  289. </xhtml:body>
  290. </xhtml:html>