SMAHA04000_직원감면등록.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>종합 건강검진 지인소개</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <uncolist>
  11. <item>
  12. <seq/>
  13. <sabun/>
  14. <name/>
  15. <buseo/>
  16. <phone/>
  17. <suname/>
  18. <sujumin/>
  19. <suhp/>
  20. <suphone/>
  21. <chooseday/>
  22. <expireday/>
  23. <expireyn/>
  24. <bigo/>
  25. <instcd/>
  26. </item>
  27. </uncolist>
  28. <uncoinfo>
  29. <item>
  30. <seq/>
  31. <sabun/>
  32. <name/>
  33. <buseo/>
  34. <phone/>
  35. <suname/>
  36. <sujumin/>
  37. <suhp/>
  38. <suphone/>
  39. <chooseday/>
  40. <expireday/>
  41. <expireyn/>
  42. <bigo/>
  43. <reginstcd/>
  44. </item>
  45. </uncoinfo>
  46. <userinfo>
  47. <item>
  48. <sabun/>
  49. <name/>
  50. <buseo/>
  51. </item>
  52. </userinfo>
  53. </main>
  54. <send>
  55. <pagetype>SMAHA04000</pagetype>
  56. <srchsabun/>
  57. <srchtype/>
  58. <srchcode/>
  59. <srchexpireyn/>
  60. </send>
  61. <uncoinfoSend>
  62. <seq/>
  63. </uncoinfoSend>
  64. <uncoinfoDel>
  65. <seq/>
  66. </uncoinfoDel>
  67. <init>
  68. <baseinfo>
  69. <S940list/>
  70. </baseinfo>
  71. </init>
  72. </root>
  73. </instance>
  74. <submission id="TRAHA00001"/>
  75. <submission id="TRZBC00101"/>
  76. <submission id="TRAHA04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolist"/>
  77. <submission id="TRAHA04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/uncoinfo"/>
  78. <submission id="TRAHA04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/uncoinfoSend" resultref="/root/main/uncoinfo"/>
  79. <submission id="TRAHA04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/uncoinfo"/>
  80. <submission id="TRAHA04004" mediatype="application/x-www-form-urlencoded" method="post" ref="root/uncoinfoDel"/>
  81. <submission id="TRAHA04006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  90. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  91. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. // 직원소개 감면신청 리스트 볼수 있는 사용자 관리
  95. // 2016/03/03 (이정택 수정)
  96. healGetCodeList( new Array("S940"), new Array("/root/init/baseinfo/S940list"));
  97. fRoadUserInfo();
  98. fRoadDatagrid();
  99. ]]>
  100. </script>
  101. <script type="javascript">
  102. <![CDATA[
  103. function fRoadUserInfo() {
  104. var usernm = getUserInfo("usernm");
  105. var buseo = getUserInfo("dutplcenm");
  106. //2015/02/04 이정택 주석처리
  107. //var buseo = getUserInfo("dutunitnm");
  108. //2015/02/04 이정택 주석처리
  109. var sabun = getUserInfo("userid");
  110. var cnt = getNodesetCount("/root/init/baseinfo/S940list/S940[cdid='" + sabun + "']");
  111. if(parseInt(cnt) >0){
  112. //btn_srchemp.visible = true;
  113. btn_prt.visible = true;
  114. btn_search.visible = true;
  115. var emplID = getParameter("SPPMC03800_emplid");
  116. if(emplID != ""){
  117. sabun = emplID;
  118. model.setValue("/root/send/srchsabun", sabun);
  119. submit("TRAHA04006");
  120. sabun = model.getValue("/root/main/userinfo/item/sabun");
  121. usernm = model.getValue("/root/main/userinfo/item/name");
  122. buseo = model.getValue("/root/main/userinfo/item/buseo");
  123. model.resetInstanceNode("/root/main/uncoinfo/item");
  124. }
  125. }
  126. model.setValue("/root/send/srchsabun", sabun);
  127. model.setValue("/root/main/uncoinfo/item/sabun", sabun);
  128. model.setValue("/root/main/uncoinfo/item/name", usernm);
  129. model.setValue("/root/main/uncoinfo/item/buseo", buseo);
  130. }
  131. function fRoadDatagrid(type){
  132. if(type == 'all'){
  133. model.setValue("/root/send/srchtype", "null");
  134. model.setValue("/root/send/srchexpireyn", "N");
  135. }else{
  136. model.setValue("/root/send/srchtype", "sabun");
  137. }
  138. submit("TRAHA04000");
  139. model.refresh();
  140. }
  141. function fCheckValue(){
  142. if(model.getValue("/root/main/uncoinfo/item/name") == ""){
  143. messageBox("직원명은 필수 입력항목 입니다.", "E999", "");
  144. return false;
  145. }
  146. if(model.getValue("/root/main/uncoinfo/item/buseo") == ""){
  147. messageBox("근무부서는 필수 입력항목 입니다.", "E999", "");
  148. return false;
  149. }
  150. if(model.getValue("/root/main/uncoinfo/item/chooseday") == ""){
  151. messageBox("예약일은 필수 입력항목 입니다.", "E999", "");
  152. return false;
  153. }
  154. if(model.getValue("/root/main/uncoinfo/item/suname") == ""){
  155. messageBox("검진자 명은 필수 입력항목 입니다.", "E999", "");
  156. model.setFocus("suname");
  157. return false;
  158. }
  159. if(model.getValue("/root/main/uncoinfo/item/reginstcd") == ""){
  160. messageBox("검진 희망병원은 필수입니다.", "E999", "");
  161. model.setFocus("cmb_instcd");
  162. return false;
  163. }
  164. /*
  165. if(model.getValue("/root/main/uncoinfo/item/phone") == ""){
  166. messageBox("연락처는 필수 입력항목 입니다.", "E999", "");
  167. model.setFocus("phone");
  168. return false;
  169. }
  170. if(model.getValue("/root/main/uncoinfo/item/sujumin") == ""){
  171. messageBox("검진자 생년월일은 필수 입력항목 입니다.", "E999", "");
  172. model.setFocus("sujumin");
  173. return false;
  174. }
  175. if(model.getValue("/root/main/uncoinfo/item/suhp") == ""){
  176. messageBox("검진자 HP는 필수 입력항목 입니다.", "E999", "");
  177. model.setFocus("suhp");
  178. return false;
  179. }
  180. if(model.getValue("/root/main/uncoinfo/item/suphone") == ""){
  181. messageBox("검진자 PHONE는 필수 입력항목 입니다.", "E999", "");
  182. model.setFocus("suphone");
  183. return false;
  184. }
  185. if(model.getValue("/root/main/uncoinfo/item/chooseday") == ""){
  186. messageBox("예약일는 필수 입력항목 입니다.", "E999", "");
  187. model.setFocus("chooseday");
  188. return false;
  189. }
  190. */
  191. return true;
  192. }
  193. ]]>
  194. </script>
  195. </xhtml:head>
  196. <xhtml:body pagewidth="1211" pageheight="784">
  197. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  198. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:165px; height:13px; font-family:돋움; vertical-align:middle; ">종합 건강검진 지인소개</caption>
  199. </group>
  200. <group id="group2" style="left:4px; top:23px; width:1203px; height:100px; ">
  201. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
  202. <input id="input1" ref="/root/main/uncoinfo/item/sabun" visibility="hidden" style="text-align:center; "/>
  203. <input id="inpu2" ref="/root/main/uncoinfo/item/seq" visibility="hidden" style="text-align:center; "/>
  204. <caption id="caption3" class="search_name" style="left:15px; top:10px; width:85px; height:17px; ">소개직원:</caption>
  205. <input id="name" ref="/root/main/uncoinfo/item/name" disabled="true" visibility="visible" style="left:100px; top:11px; width:75px; height:19px; text-align:center; "/>
  206. <button id="btn_srchemp" class="icon_search" visibility="hidden" style="left:180px; top:10px; width:16px; height:16px; ">
  207. <script type="javascript" ev:event="onclick">
  208. <![CDATA[
  209. modal("SPPMC03800", "1","150", "150", "SPPMC03800", "", "");
  210. fRoadUserInfo();
  211. fRoadDatagrid();
  212. ]]>
  213. </script>
  214. <caption/>
  215. </button>
  216. <caption id="caption4" class="search_name" style="left:205px; top:10px; width:85px; height:17px; ">근무부서:</caption>
  217. <input id="buseo" ref="/root/main/uncoinfo/item/buseo" disabled="true" style="left:290px; top:11px; width:105px; height:19px; text-align:center; "/>
  218. <caption id="caption5" class="search_name" style="left:410px; top:10px; width:118px; height:17px; ">직원연락처:</caption>
  219. <input id="phone" ref="/root/main/uncoinfo/item/phone" maxlength="20" style="left:520px; top:11px; width:105px; height:19px; "/>
  220. <caption id="caption1" style="left:629px; top:12px; width:180px; height:17px; font-weight:bold; color:#ff0000; ">※ 예약/접수 화면이 아닙니다.</caption>
  221. <caption id="caption6" class="search_name" style="left:15px; top:37px; width:90px; height:17px; ">검진자명:</caption>
  222. <input id="suname" ref="/root/main/uncoinfo/item/suname" style="left:100px; top:38px; width:75px; height:19px; text-align:center; "/>
  223. <caption id="caption7" class="search_name" visibility="hidden" style="left:800px; top:5px; width:140px; height:17px; ">검진자 생년월일 :</caption>
  224. <input id="sujumin" ref="/root/main/uncoinfo/item/sujumin" visibility="hidden" maxlength="6" format="#####" style="left:825px; top:5px; width:105px; height:19px; "/>
  225. <caption id="caption8" class="search_name" visibility="hidden" style="left:805px; top:0px; width:140px; height:17px; ">검진자 집전화 :</caption>
  226. <input id="suhp" ref="/root/main/uncoinfo/item/suhp" visibility="hidden" maxlength="20" style="left:815px; top:0px; width:105px; height:19px; "/>
  227. <caption id="caption9" class="search_name" visibility="hidden" style="left:820px; top:0px; width:140px; height:17px; ">검진자 휴대전화:</caption>
  228. <input id="suphone" ref="/root/main/uncoinfo/item/suphone" visibility="hidden" maxlength="20" style="left:850px; top:0px; width:105px; height:19px; "/>
  229. <caption id="caption10" class="search_name" visibility="visible" style="left:205px; top:37px; width:80px; height:17px; ">예약일:</caption>
  230. <input id="chooseday" ref="/root/main/uncoinfo/item/chooseday" visibility="visible" inputtype="date" style="left:290px; top:38px; width:105px; height:19px; text-align:center; "/>
  231. <caption id="caption11" class="search_name" style="left:15px; top:64px; width:83px; height:17px; ">참고사항:</caption>
  232. <input id="bigo" ref="/root/main/uncoinfo/item/bigo" style="left:100px; top:65px; width:855px; height:19px; "/>
  233. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1120px; top:9px; width:56px; height:22px; ">
  234. <caption>조회</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. fRoadDatagrid('all');
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:1055px; top:9px; width:56px; height:22px; ">
  242. <caption>출력</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. exeReportPreview("RPAHA04000", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
  246. ]]>
  247. </script>
  248. </button>
  249. <caption id="caption2" class="search_name" style="left:410px; top:37px; width:110px; height:17px; ">검진희망병원:</caption>
  250. <select1 id="cmb_instcd" ref="/root/main/uncoinfo/item/reginstcd" appearance="minimal" style="left:520px; top:38px; width:165px; height:19px; text-align:center; ">
  251. <choices>
  252. <item>
  253. <label>경북대학교병원</label>
  254. <value>031</value>
  255. </item>
  256. <item>
  257. <label>칠곡 경북대학교병원</label>
  258. <value>032</value>
  259. </item>
  260. </choices>
  261. </select1>
  262. </group>
  263. <group id="grp_btn" style="left:11px; top:745px; width:1195px; height:28px; ">
  264. <button id="btn_save" class="btn4_letter2" style="left:1007px; top:4px; width:56px; height:22px; ">
  265. <caption>저장</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. if(fCheckValue()){
  269. if(model.getValue("/root/main/uncoinfo/item/seq") == ""){
  270. submit("TRAHA04001");
  271. model.resetInstanceNode("/root/main/uncoinfo/item");
  272. fRoadUserInfo();
  273. fRoadDatagrid();
  274. }else{
  275. if(model.getValue("/root/uncoinfoDel/expireyn")=="Y"){
  276. messageBox("감면완료된 정보는 수정 또는 삭제 불가능합니다.", "E");
  277. return;
  278. }
  279. submit("TRAHA04003");
  280. model.resetInstanceNode("/root/main/uncoinfo/item");
  281. fRoadUserInfo();
  282. fRoadDatagrid();
  283. }
  284. cmb_instcd.disabled=false;
  285. }
  286. ]]>
  287. </script>
  288. </button>
  289. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:4px; width:56px; height:22px; ">
  290. <caption>삭제</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. if(model.getValue("/root/uncoinfoDel/seq") != ""){
  294. if(model.getValue("/root/uncoinfoDel/expireyn")=="Y"){
  295. messageBox("감면완료된 정보는 수정 또는 삭제 불가능합니다.", "E");
  296. return;
  297. }
  298. model.makeValue("/root/uncoinfoDel/pagetype", model.getValue("/root/send/pagetype"));
  299. submit("TRAHA04004");
  300. model.resetInstanceNode("/root/main/uncoinfo/item");
  301. fRoadDatagrid();
  302. cmb_instcd.disabled=false;
  303. }else{
  304. messageBox("선택된 정보가 없습니다.", "E999", "");
  305. }
  306. ]]>
  307. </script>
  308. </button>
  309. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:4px; width:68px; height:22px; ">
  310. <caption>초기화</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. cmb_instcd.disabled=false;
  314. model.resetInstanceNode("/root/main/uncoinfo/item");
  315. fRoadUserInfo();
  316. fRoadDatagrid();
  317. ]]>
  318. </script>
  319. </button>
  320. </group>
  321. <datagrid id="grd_uncolist" nodeset="/root/main/uncolist/item" caption="순번^직원사번^직원명^근무부서^직원연락처^검진기관^검진자명^검진자 집전화^검진자 휴대전화^검진자 생년월일^예약일^검진완료일^할인완료여부^비고" colsep="^" colwidth="0, 80, 80, 0, 120, 156, 90, 0, 0, 0, 70, 70, 80, 415" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" style="left:5px; top:125px; width:1200px; height:615px; text-align:center; ">
  322. <col ref="seq" type="output" visibility="hidden" style="text-align:center; "/>
  323. <col ref="sabun" type="output" style="text-align:center; "/>
  324. <col ref="name" type="output"/>
  325. <col ref="buseo" type="output" visibility="hidden"/>
  326. <col ref="phone" type="output"/>
  327. <col disabled="true" ref="instcd" type="combo">
  328. <choices>
  329. <item>
  330. <label>경북대학교병원</label>
  331. <value>031</value>
  332. </item>
  333. <item>
  334. <label>칠곡 경북대학교병원</label>
  335. <value>032</value>
  336. </item>
  337. </choices>
  338. </col>
  339. <col ref="suname" type="output"/>
  340. <col ref="suhp" type="output" visibility="hidden"/>
  341. <col ref="suphone" type="output" visibility="hidden"/>
  342. <col ref="sujumin" type="output" visibility="hidden"/>
  343. <col ref="chooseday" type="output"/>
  344. <col ref="expireday" type="output" visibility="visible"/>
  345. <col ref="expireyn" type="output" visibility="visible"/>
  346. <col ref="bigo" type="output" style="text-align:left; padding-left:10; "/>
  347. <script type="javascript" ev:event="onaftersort">
  348. <![CDATA[
  349. grd_uncolist.gridToInstance();
  350. ]]>
  351. </script>
  352. <script type="javascript" ev:event="onclick">
  353. <![CDATA[
  354. if (isDataCell()) {
  355. cmb_instcd.disabled='true';
  356. model.makeValue("/root/main/uncoinfo/item/seq", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("seq")));
  357. model.makeValue("/root/main/uncoinfo/item/name", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("name")));
  358. model.makeValue("/root/main/uncoinfo/item/buseo", getUserInfo("dutplcenm"));
  359. model.makeValue("/root/main/uncoinfo/item/phone", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("phone")));
  360. model.makeValue("/root/main/uncoinfo/item/suname", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suname")));
  361. model.makeValue("/root/main/uncoinfo/item/sujumin", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("sujumin")));
  362. model.makeValue("/root/main/uncoinfo/item/suhp", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suhp")));
  363. model.makeValue("/root/main/uncoinfo/item/suphone", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("suphone")));
  364. model.makeValue("/root/main/uncoinfo/item/chooseday", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("chooseday")));
  365. model.makeValue("/root/main/uncoinfo/item/reginstcd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("instcd")));
  366. model.makeValue("/root/main/uncoinfo/item/bigo", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("bigo")));
  367. model.makeValue("/root/uncoinfoDel/seq", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("seq")));
  368. model.makeValue("/root/uncoinfoDel/reginstcd", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("instcd")));
  369. model.makeValue("/root/uncoinfoDel/expireday", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("expireday")));
  370. model.makeValue("/root/uncoinfoDel/expireyn", grd_uncolist.valueMatrix(grd_uncolist.row, grd_uncolist.colRef("expireyn")));
  371. model.refresh();
  372. /*
  373. model.setValue("/root/uncoinfoSend/seq", model.getValue("/root/main/uncolist/item["+ grd_uncolist.row+"]/seq"));
  374. submit("TRAHA04002");
  375. */
  376. }
  377. ]]>
  378. </script>
  379. </datagrid>
  380. </xhtml:body>
  381. </xhtml:html>