SMASI03200_개인예방접종확인.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <condition>
  11. <flag/>
  12. </condition>
  13. <trgtman>
  14. <trgtmanlist>
  15. <emplno/>
  16. <hngnm/>
  17. <rrgeno/>
  18. <deptcd/>
  19. <jobkindcd/>
  20. <jobposcd/>
  21. <prestgradgvnoffcorddd/>
  22. <orddd/>
  23. <hbsag/>
  24. <hbsab/>
  25. <rubellaigg/>
  26. <rblapastinocyn/>
  27. <rblapast/>
  28. <hbtrgtman/>
  29. <rblatrgtman/>
  30. <hbfstinocdd/>
  31. <hbscndinocdd/>
  32. <hbthrdinocdd/>
  33. <ifluinocdd/>
  34. <rblainocdd/>
  35. <instcd/>
  36. <gender/>
  37. <inocddyn/>
  38. <small/>
  39. <seqno/>
  40. <trgtmanyn/>
  41. <completeyn/>
  42. </trgtmanlist>
  43. </trgtman>
  44. <condition1>
  45. <inocflag/>
  46. </condition1>
  47. <newElement/>
  48. <input>
  49. <emplno/>
  50. <jobkind/>
  51. <jobposcd/>
  52. <fromdd/>
  53. <todd/>
  54. <jobkindcd/>
  55. <hngnm/>
  56. <small/>
  57. <seqno/>
  58. <gender/>
  59. </input>
  60. <combo1>
  61. <inocdd/>
  62. </combo1>
  63. </main>
  64. <send>
  65. <reqdata/>
  66. <savedata/>
  67. <cond1/>
  68. <cond2/>
  69. </send>
  70. <opprcpsrch/>
  71. <prcpsrch>
  72. <prcplist/>
  73. </prcpsrch>
  74. <init>
  75. <jobposcd/>
  76. <jobkind/>
  77. </init>
  78. <hidden/>
  79. <req/>
  80. </root>
  81. </instance>
  82. <submission id="TRASI03100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/trgtman"/>
  83. <submission id="TXASI03100" mediatype="application/x-www-form-urlencoded" method="post"/>
  84. <submission id="TXASI03101" mediatype="application/x-www-form-urlencoded" method="post"/>
  85. <submission id="TRASI03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/trgtman"/>
  86. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/dept/deptlist"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../ast/infcmngtweb/js/SMASI03100.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. model.setValue("/root/main/input/small","Y");
  97. model.makeValue("/root/send/reqdata/small",model.getValue("/root/main/input/small"));
  98. combo1.visible = false;
  99. zbcfGetCodeList(new Array("R0062","R0061"),new Array("/root/init/jobposcd","/root/init/jobkind"));
  100. influ();
  101. if ( checkOpener() ) {
  102. model.setValue("/root/main/input/emplno", opener.javascript.getParameter("SMASI03200_emplno"));
  103. model.setValue("/root/main/input/hngnm", opener.javascript.getParameter("SMASI03200_hngnm"));
  104. model.setValue("/root/main/input/jobkindcd", opener.javascript.getParameter("SMASI03200_jobkindcd"));
  105. model.setValue("/root/main/input/fromdd", opener.javascript.getParameter("SMASI03200_fromdd"));
  106. model.setValue("/root/main/input/todd", opener.javascript.getParameter("SMASI03200_todd"));
  107. model.setValue("/root/main/trgtman/trgtmanlist/rrgeno", opener.javascript.getParameter("SMASI03200_rrgeno"));
  108. model.setValue("/root/main/trgtman/trgtmanlist/trgtmanyn", opener.javascript.getParameter("SMASI03200_trgtmanyn"));
  109. model.setValue("/root/main/condition1/inocflag", opener.javascript.getParameter("SMASI03200_inocflag"));
  110. }
  111. model.setValue("/root/main/combo1/inocdd","");
  112. model.refresh();
  113. var rrgeno=model.getValue("/root/main/trgtman/trgtmanlist/rrgeno");
  114. var gender=rrgeno.substr(6,1);
  115. if(gender=="2"){
  116. model.setValue("/root/main/input/gender","여");
  117. output4.refresh();
  118. //output4.text="여";
  119. //model.setValue("/root/main/trgtman/trgtmanlist/gender",sex);
  120. }
  121. else if(gender=="1") {
  122. model.setValue("/root/main/input/gender","남");
  123. output4.refresh();
  124. //output4.text="남";
  125. // model.setValue("/root/main/trgtman/trgtmanlist/gender",sex);
  126. }
  127. btn_srchprcp.dispatch("onclick");
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body overflow="hidden" pagewidth="970" pageheight="510" guideline="1,954;2,500;">
  132. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:9px; top:27px; width:941px; height:73px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <line id="line8" class="line_1" style="x1:11px; y1:154px; x2:953px; y2:155px; "/>
  134. <button id="btn_srchprcp" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:899px; top:41px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. model.setValue("/root/main/input/small","Y");
  139. model.makeValue("/root/send/reqdata/small",model.getValue("/root/main/input/small"));
  140. if(model.getValue("/root/main/input/emplno")==""){
  141. alert("사번을 입력 해 주세요");
  142. }
  143. else{
  144. if(model.getValue("/root/main/condition1/inocflag")==""){
  145. alert("접종구분을 선택해 주세요");
  146. }
  147. else{
  148. var inocflag=model.getValue("/root/main/condition1/inocflag");
  149. model.makeValue("/root/send/reqdata/inocflag",model.getValue("/root/main/condition1/inocflag"));
  150. model.makeValue("/root/send/reqdata/emplno",model.getValue("/root/main/input/emplno"));
  151. model.makeValue("/root/send/reqdata/fromdd",model.getValue("/root/main/input/fromdd"));
  152. model.makeValue("/root/send/reqdata/todd",model.getValue("/root/main/input/todd"));
  153. model.makeValue("/root/send/reqdata/inocdd",model.getValue("/root/main/combo1/inocdd"));
  154. submit("TRASI03101");
  155. /*
  156. if(model.getValue("/root/main/trgtman/trgtmanlist/inocddyn")=="N" || model.getValue("/root/main/trgtman/trgtmanlist/inocddyn")==""){
  157. model.setValue("/root/main/trgtman/trgtmanlist/completeyn","예정");}
  158. else if(model.getValue("/root/main/trgtman/trgtmanlist/inocddyn")=="Y"){
  159. model.setValue("/root/main/trgtman/trgtmanlist/completeyn","완료");}*/
  160. }
  161. var rrgeno=model.getValue("/root/main/trgtman/trgtmanlist/rrgeno");
  162. var gender=rrgeno.substr(6,1);
  163. var gender;
  164. if(gender=="2"){
  165. model.setValue("/root/main/input/gender","여");
  166. gender = model.getValue("/root/main/input/gender");
  167. output4.text =gender;
  168. //output4.text="여";
  169. //model.setValue("/root/main/trgtman/trgtmanlist/gender",sex);
  170. }
  171. else if(gender=="1") {
  172. model.setValue("/root/main/input/gender","남");
  173. gender = model.getValue("/root/main/input/gender");
  174. output4.text =gender;
  175. //output4.text="남";
  176. // model.setValue("/root/main/trgtman/trgtmanlist/gender",sex);
  177. }
  178. var a=getCurrentDate();
  179. var b=a.substr(0,4);
  180. var c = "19"+rrgeno.substr(0,2);
  181. output5.text=b-c+" "+"세";
  182. }
  183. if(inocflag=="P"){
  184. influ();
  185. }
  186. else if(inocflag=="D"){
  187. hb();
  188. }
  189. else if(inocflag=="T"){
  190. rbla();
  191. }
  192. if(model.getValue("/root/main/trgtman/trgtmanlist/inocddyn")==""){
  193. model.removenode("/root/main/trgtman/trgtmanlist");
  194. // grd_vacninoclist.refresh();
  195. }
  196. /* if(model.getValue("/root/main/trgtman/trgtmanlist/trgtmanyn")=="Y"){
  197. model.removenode("/root/main/trgtman/trgtmanlist");
  198. output1.visible = true;
  199. }*/
  200. ]]>
  201. </script>
  202. </button>
  203. <caption id="caption4" class="tit_1" style="left:0px; top:1px; width:140px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">개인 예방접종 조회</caption>
  204. <caption id="caption25" class="tit_2" style="left:5px; top:113px; width:147px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">접종내역 확인</caption>
  205. <caption id="caption6" class="search_name" style="left:19px; top:41px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">사번</caption>
  206. <input id="input1" ref="/root/main/input/emplno" style="left:76px; top:41px; width:90px; height:19px; ">
  207. <script type="javascript" ev:event="onkeypress">
  208. <![CDATA[
  209. inputEnterKey("btn_srchprcp", "DOMActivate");
  210. ]]>
  211. </script>
  212. </input>
  213. <datagrid id="grd_vacninoclist" nodeset="root/main/trgtman/trgtmanlist" caption="상태^부서^직종^직위^발령일^항원검사일^항원검사결과^항체검사일^항체검사결과^Rubella Ig G 검사일^Rubella Ig G 검사결과^접종여부^과거력^B형간염대상자선택^풍진대상자선택^1차접종일^2차접종일^3차접종일^인플루엔자접종일^풍진접종일" colsep="^" colwidth="48, 79, 80, 82, 77, 82, 108, 81, 107, 124, 144, 72, 62, 120, 100, 115, 119, 118, 110, 100" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:9px; top:156px; width:945px; height:320px; text-align:left; ">
  214. <col ref="completeyn" visibility="hidden" style="left:700px; top:23px; width:100px; height:23px; color:#ff0000; text-align:center; "/>
  215. <col ref="deptnm"/>
  216. <col disabled="true" ref="jobkindcd" type="combo">
  217. <choices>
  218. <itemset nodeset="/root/init/jobkind/R0061">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. </col>
  224. <col disabled="true" ref="jobposcd" type="combo">
  225. <choices>
  226. <itemset nodeset="/root/init/jobposcd/R0062">
  227. <label ref="cdnm"/>
  228. <value ref="cdid"/>
  229. </itemset>
  230. </choices>
  231. </col>
  232. <col ref="entcodd" visibility="hidden" format="yyyy/mm/dd" style="left:700px; top:23px; width:100px; height:23px; "/>
  233. <col ref="spcacptdt" visibility="hidden" format="yyyy/mm/dd"/>
  234. <col ref="reptrslt" visibility="hidden"/>
  235. <col ref="spcacptdt" visibility="hidden" format="yyyy/mm/dd"/>
  236. <col ref="repthbsabrslt" visibility="hidden"/>
  237. <col ref="spcacptdt" visibility="hidden" format="yyyy/mm/dd"/>
  238. <col ref="reptrslt" visibility="hidden"/>
  239. <col checkvalue="Y,N" ref="bfrblainocddyn" type="checkbox" visibility="hidden"/>
  240. <col checkvalue="Y,N" ref="bfrblayn" type="checkbox" visibility="hidden"/>
  241. <col ref="hbtrgtman" type="checkbox" visibility="hidden"/>
  242. <col ref="rblatrgtman" type="checkbox" visibility="hidden"/>
  243. <col disabled="true" ref="fstinocdd" type="inputdate" visibility="hidden"/>
  244. <col disabled="true" ref="scndinocdd" type="inputdate" visibility="hidden"/>
  245. <col disabled="true" ref="thrdinocdd" type="inputdate" visibility="hidden"/>
  246. <col disabled="true" ref="fstinocdd" type="inputdate" visibility="hidden"/>
  247. <col disabled="true" ref="fstinocdd" type="inputdate" visibility="hidden"/>
  248. <script type="javascript" ev:event="ondblclick">
  249. <![CDATA[
  250. ]]>
  251. </script>
  252. </datagrid>
  253. <button id="btn_excel" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:910px; top:131px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  254. <caption>엑셀</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. var fileName = window.fileDialog("save", ",", false, "개인예방접종조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  258. if (fileName != ""){
  259. grd_vacninoclist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  260. }
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_print" class="btn6_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:10px; top:481px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  265. <caption>출력</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. exeReportPreview("SMASI03200_개인예방접종확인", "XMLSTR");
  269. ]]>
  270. </script>
  271. </button>
  272. <button id="btn_init" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:885px; top:481px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  273. <caption>초기화</caption>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. model.removeNodeset("/root/main/trgtman/trgtmanlist");
  277. model.removeNodeset("/root/main/input/emplno");
  278. model.removeNodeset("/root/main/condition1/inocflag");
  279. model.refresh();
  280. ]]>
  281. </script>
  282. </button>
  283. <caption id="caption8" style="left:30px; top:131px; width:69px; height:20px; font-weight:bold; ">주민번호 :</caption>
  284. <caption id="caption9" style="left:265px; top:131px; width:45px; height:20px; font-weight:bold; ">성별 :</caption>
  285. <caption id="caption10" style="left:390px; top:131px; width:45px; height:20px; font-weight:bold; ">나이 :</caption>
  286. <output id="output3" ref="/root/main/trgtman/trgtmanlist/rrgeno" style="left:100px; top:131px; width:145px; height:19px; "/>
  287. <output id="output4" ref="/root/main/input/gender" style="left:305px; top:131px; width:60px; height:19px; "/>
  288. <output id="output5" style="left:430px; top:131px; width:65px; height:19px; "/>
  289. <select1 id="radio1" ref="/root/main/condition1/inocflag" class="radio_search" appearance="full" cellspacing="15" cols="3" rows="1" overflow="visible" style="left:654px; top:41px; width:235px; height:20px; font-weight:bold; border-style:none; ">
  290. <choices>
  291. <item>
  292. <label>인플루엔자</label>
  293. <value>P</value>
  294. </item>
  295. <item>
  296. <label>B형간염</label>
  297. <value>D</value>
  298. </item>
  299. <item>
  300. <label>풍진</label>
  301. <value>T</value>
  302. </item>
  303. </choices>
  304. <script type="javascript" ev:event="xforms-value-changed">
  305. <![CDATA[
  306. if(model.getValue("/root/main/condition1/inocflag")=="D"){
  307. combo1.visible = true;
  308. model.setValue("/root/main/combo1/inocdd","");
  309. }
  310. else if(model.getValue("/root/main/condition1/inocflag")=="P"){
  311. combo1.visible = false;
  312. model.setValue("/root/main/combo1/inocdd","fstinocdd");
  313. }
  314. else if(model.getValue("/root/main/condition1/inocflag")=="T"){
  315. combo1.visible = false;
  316. model.setValue("/root/main/combo1/inocdd","fstinocdd");
  317. }
  318. btn_srchprcp.dispatch("onclick");
  319. ]]>
  320. </script>
  321. </select1>
  322. <caption id="caption1" class="search_name" style="left:572px; top:41px; width:81px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">접종유형</caption>
  323. <caption id="caption3" class="search_name" style="left:189px; top:41px; width:90px; height:17px; ">접종일자</caption>
  324. <input id="ipt_todd" ref="/root/main/input/todd" class="input_s_essential" inputtype="date" style="left:386px; top:41px; width:98px; height:19px; "/>
  325. <caption id="caption7" style="left:372px; top:41px; width:15px; height:20px; ">~</caption>
  326. <input id="ipt_fromdd" ref="/root/main/input/fromdd" class="input_s_essential" inputtype="date" style="left:274px; top:41px; width:93px; height:19px; "/>
  327. <select1 id="combo1" ref="/root/main/combo1/inocdd" appearance="minimal" style="left:491px; top:41px; width:50px; height:19px; ">
  328. <choices>
  329. <item>
  330. <label>1차</label>
  331. <value>fstinocdd</value>
  332. </item>
  333. <item>
  334. <label>2차</label>
  335. <value>scndinocdd</value>
  336. </item>
  337. <item>
  338. <label>3차</label>
  339. <value>thrdinocdd</value>
  340. </item>
  341. </choices>
  342. </select1>
  343. <input id="ipt_name" ref="/root/main/input/hngnm" style="left:75px; top:70px; width:104px; height:19px; ">
  344. <script type="javascript" ev:event="onkeyup">
  345. <![CDATA[
  346. inputEnterKey("btn_srchprcp", "DOMActivate");
  347. ]]>
  348. </script>
  349. </input>
  350. <caption id="caption11" class="search_name" style="left:19px; top:70px; width:65px; height:17px; ">이름</caption>
  351. <select1 id="ipt_jobkind" ref="/root/main/input/jobkindcd" appearance="minimal" editmode="inputsearch" itemcount="20" style="left:245px; top:70px; width:104px; height:19px; ">
  352. <choices>
  353. <itemset nodeset="/root/init/jobkind/R0061">
  354. <label ref="cdnm"/>
  355. <value ref="cdid"/>
  356. </itemset>
  357. </choices>
  358. </select1>
  359. <caption id="caption12" class="search_name" style="left:189px; top:70px; width:70px; height:17px; ">직종</caption>
  360. <output id="output1" style="left:655px; top:70px; width:230px; height:19px; font-size:12px; font-weight:bold; color:#ff0000; text-align:left; "/>
  361. <output id="output2" style="left:655px; top:70px; width:230px; height:19px; font-size:12pxpt; font-weight:bold; color:#0000ff; text-align:left; "/>
  362. </xhtml:body>
  363. </xhtml:html>