SMAHA04091_공단대상자연계.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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. <corglst>
  11. <item>
  12. <hngnm/>
  13. <rrgstno1/>
  14. <rrgstno2/>
  15. <hopedd/>
  16. <email/>
  17. <telno/>
  18. <mpphon/>
  19. <zipcd11/>
  20. <zipcd12/>
  21. <detladdr1/>
  22. <pkgcd/>
  23. <testcd/>
  24. <healexamplacecd/>
  25. <pkgnm/>
  26. <testnm/>
  27. <sex/>
  28. <brthdd/>
  29. <age/>
  30. <forgneryn/>
  31. <emailid/>
  32. <emailtype/>
  33. <statflag/>
  34. <healexamflag/>
  35. <healexamdetlflag/>
  36. </item>
  37. </corglst>
  38. </main>
  39. <send>
  40. <srchcmpycd/>
  41. <srchcmpynm/>
  42. <srchpnm/>
  43. <srchrrgstno1/>
  44. <srchrrgstno2/>
  45. <srchclntempid/>
  46. </send>
  47. <save>
  48. <corgInfo/>
  49. </save>
  50. <init>
  51. <baseinfo>
  52. <jobkindflag/>
  53. <cancerapplst/>
  54. </baseinfo>
  55. </init>
  56. <temp>
  57. <cnt/>
  58. </temp>
  59. </root>
  60. </instance>
  61. <submission id="TRAHA00001"/>
  62. <submission id="TRAHA00002"/>
  63. <submission id="TXAHA04096" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/corglst"/>
  64. <submission id="TXAHA04095" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/corgInfo" resultref="/root/temp"/>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  72. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  73. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  74. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  75. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fGetBaseInfo();
  79. model.refresh();
  80. ]]>
  81. </script>
  82. <script type="javascript">
  83. <![CDATA[
  84. /**
  85. *기본정보 가져오기
  86. */
  87. function fGetBaseInfo(){
  88. zbcfGetCodeList(new Array("A0112"), new Array("/root/init/baseinfo/jobkindflag")); //근무구분
  89. healGetCodeList(new Array("G104"), new Array("/root/init/baseinfo/cancerapplst")); //암적용구분
  90. model.refresh();
  91. }
  92. /**========================================================================================================================================
  93. * 예약접수현황리스트 조회
  94. =========================================================================================================================================*/
  95. function fGetCorgLst(){
  96. model.removeNodeset("/root/main/corglst/item");
  97. submit("TXAHA04096");
  98. }
  99. /********************************************************************************************************************************************************
  100. * 파일 업로드
  101. ********************************************************************************************************************************************************/
  102. function fFileUpload(){
  103. var fileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|Dat Files(*.dat)|*.dat|All Files (*.*)|*.*");
  104. var regExp = /.dat$/gi;
  105. var vGrd = null;
  106. if(fileName == "" || fileName == null) return;
  107. //엑셀, dat파일 구분
  108. if(regExp.test(fileName)){
  109. /*
  110. var fso,ts,tsr;
  111. fso = new ActiveXObject("Scripting.FileSystemObject");
  112. ts = fso.OpenTextFile(fileName);
  113. model.setValue("/root/send/linkdata",ts.ReadAll());
  114. ts.Close();
  115. if(submit("TRAHA00304",false)) {
  116. if(model.getValue("/root/main/linklst/cmpy/cmpyrgstyn") == 0) {
  117. submit("TXAHA00303");
  118. }
  119. model.toggle("case_linkup");
  120. }
  121. */
  122. }else{
  123. grd_cupload.loadExcel(fileName);
  124. var cnt = grd_cupload.rows;
  125. var i = 0;
  126. for(i=1; i<cnt+1; i++){
  127. grd_cupload.addStatus(i, "insert");
  128. }
  129. grd_cupload.deleteRow(1);
  130. grd_cupload.rebuildStyle();
  131. grd_cupload.refresh();
  132. }
  133. }
  134. /********************************************************************************************************************************************************
  135. * 공단검진 대상자 등록
  136. ********************************************************************************************************************************************************/
  137. function fSaveCorg(){
  138. var saveCorg = getGridUpdateData(grd_cupload);
  139. if(saveCorg != ""){
  140. model.setValue("/root/save/corgInfo", saveCorg);
  141. if(submit("TXAHA04095")){
  142. messageBox("정상적으로" , "I001");
  143. return;
  144. }
  145. }else{
  146. messageBox("저장할 내역이", "E014");
  147. return;
  148. }
  149. }
  150. ]]>
  151. </script>
  152. </model>
  153. </xhtml:head>
  154. <xhtml:body guideline="1,1192;">
  155. <group id="group1" style="left:0px; top:0px; width:1194px; height:15px; ">
  156. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:15px; ">공단대상자 관리</caption>
  157. </group>
  158. <group id="group5" style="left:0px; top:20px; width:1193px; height:40px; vertical-align:top; ">
  159. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  160. <caption id="caption12" class="search_name" style="left:5px; top:8px; width:90px; height:17px; ">사업체 :</caption>
  161. <line id="line7" style="x1:1110px; y1:8px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  162. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:82px; top:8px; width:75px; height:19px; ">
  163. <script type="javascript" ev:event="onkeyup">
  164. <![CDATA[
  165. inputEnterKey("btn_selcmpy", "DOMActivate");
  166. ]]>
  167. </script>
  168. </input>
  169. <button id="btn_selcmpy" class="icon_search" style="left:163px; top:8px; width:16px; height:16px; ">
  170. <caption/>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. fGetComnCd("SMAHA01500", "09" , "cd", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
  174. ]]>
  175. </script>
  176. </button>
  177. <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:185px; top:8px; width:130px; height:19px; "/>
  178. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fGetCorgLst();
  183. ]]>
  184. </script>
  185. </button>
  186. <caption id="caption1" class="search_name" style="left:325px; top:8px; width:61px; height:17px; ">성명 :</caption>
  187. <caption id="caption93" class="search_n_b" style="left:621px; top:8px; width:12px; height:17px; font-weight:bolder; ">-</caption>
  188. <input id="ipt_srchpnm" ref="/root/send/srchpnm" class="input_search" imemode="hangul" style="left:390px; top:8px; width:67px; height:19px; ">
  189. <script type="javascript" ev:event="onkeyup">
  190. <![CDATA[
  191. if( event.keyCode == 13 ) {
  192. model.setValue(ipt_srchpnm.attribute("ref"), ipt_srchpnm.currentText);
  193. fGetCorgLst();
  194. }
  195. ]]>
  196. </script>
  197. </input>
  198. <input id="ipt_srchrgstno1" ref="/root/send/srchrrgstno1" class="input_search" format="999999" style="left:556px; top:8px; width:57px; height:19px; ">
  199. <script type="javascript" ev:event="onkeyup">
  200. <![CDATA[
  201. if( event.keyCode == 13 ) {
  202. model.setValue(ipt_srchrgstno1.attribute("ref"), ipt_srchrgstno1.currentText);
  203. fGetCorgLst();
  204. }
  205. ]]>
  206. </script>
  207. </input>
  208. <input id="ipt_srchrgstno2" ref="/root/send/srchrrgstno2" class="input_search" format="9999999" style="left:635px; top:8px; width:57px; height:19px; ">
  209. <script type="javascript" ev:event="onkeyup">
  210. <![CDATA[
  211. if( event.keyCode == 13 ) {
  212. model.setValue(ipt_srchrgstno2.attribute("ref"), ipt_srchrgstno2.currentText);
  213. fGetCorgLst();
  214. }
  215. ]]>
  216. </script>
  217. </input>
  218. <input id="ipt_srchpid" ref="/root/send/srchclntempid" class="input_search" style="left:790px; top:8px; width:77px; height:19px; ">
  219. <script type="javascript" ev:event="onkeyup">
  220. <![CDATA[
  221. if( event.keyCode == 13 ) {
  222. model.setValue(ipt_srchpid.attribute("ref"), ipt_srchpid.currentText);
  223. fGetCorgLst();
  224. }
  225. ]]>
  226. </script>
  227. </input>
  228. <caption id="caption5" class="search_name" style="left:467px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
  229. <caption id="caption7" class="search_name" style="left:700px; top:8px; width:86px; height:17px; ">사번/군번 :</caption>
  230. </group>
  231. <button id="btn_upload" class="btn2_letter5" style="left:1117px; top:65px; width:75px; height:19px; ">
  232. <caption>파일업로드</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. openLoadingBar("파일 업로드");
  236. fFileUpload();
  237. closeLoadingBar();
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="button7" class="btn2_letter3" style="left:1005px; top:65px; width:53px; height:19px; ">
  242. <caption>행추가</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. grd_cupload.addRow();
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="button9" class="btn2_letter3" style="left:1061px; top:65px; width:53px; height:19px; ">
  250. <caption>행삭제</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. deleteSelectedRows(grd_cupload, true);
  254. ]]>
  255. </script>
  256. </button>
  257. <line id="line1" class="line_3" style="x1:0px; y1:92px; x2:1192px; y2:92px; "/>
  258. <line id="line2" class="line_1" style="x1:0px; y1:87px; x2:1192px; y2:87px; "/>
  259. <datagrid id="grd_cupload" nodeset="/root/main/corglst/item" allowselection="true" autoresize="true" caption="사번/군번^사업장코드^성명^주민번호^주민번호^보험증번호^근무구분^자격취득일^근무부서^생애여부^위암^유방암^대장암^간암^자궁경부^간염검사^2차감염^영업소^직종코드^소속지사^보건소^년^반^번호^군병원^전입일자^챠트번호" colsep="^" colwidth="70, 90, 70, 50, 50, 80, 70, 90, 130, 80, 80, 80, 80, 80, 80, 80, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="listbox" subtotalposition="below" style="left:0px; top:95px; width:1192px; height:650px; ">
  260. <col disabled="true" ref="clntempid" type="input"/>
  261. <col disabled="true" ref="cmpycd" type="input"/>
  262. <col ref="subscrhngnm" type="input"/>
  263. <col ref="subscrrrgstno1" type="input"/>
  264. <col ref="subscrrrgstno2" type="input"/>
  265. <col ref="insuid" type="input"/>
  266. <col ref="jobkindflag" type="combo">
  267. <choices>
  268. <itemset nodeset="/root/init/baseinfo/jobkindflag/A0112">
  269. <label ref="cdnm"/>
  270. <value ref="cdid"/>
  271. </itemset>
  272. </choices>
  273. </col>
  274. <col ref="entcodd" type="inputdate"/>
  275. <col ref="clntdeptnm" type="input"/>
  276. <col ref="oraltestyn" type="combo">
  277. <choices>
  278. <item>
  279. <label>생애전환기</label>
  280. <value>Y</value>
  281. </item>
  282. <item>
  283. <label>일반건진</label>
  284. <value>N</value>
  285. </item>
  286. </choices>
  287. </col>
  288. <col ref="stmccncrflag" type="combo">
  289. <choices>
  290. <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
  291. <label ref="cdnm"/>
  292. <value ref="cdid"/>
  293. </itemset>
  294. </choices>
  295. </col>
  296. <col ref="mamcncrflag" type="combo">
  297. <choices>
  298. <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
  299. <label ref="cdnm"/>
  300. <value ref="cdid"/>
  301. </itemset>
  302. </choices>
  303. </col>
  304. <col ref="largeintescncrflag" type="combo">
  305. <choices>
  306. <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
  307. <label ref="cdnm"/>
  308. <value ref="cdid"/>
  309. </itemset>
  310. </choices>
  311. </col>
  312. <col ref="livcncrflag" type="combo">
  313. <choices>
  314. <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
  315. <label ref="cdnm"/>
  316. <value ref="cdid"/>
  317. </itemset>
  318. </choices>
  319. </col>
  320. <col ref="cervcncrflag" type="combo">
  321. <choices>
  322. <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
  323. <label ref="cdnm"/>
  324. <value ref="cdid"/>
  325. </itemset>
  326. </choices>
  327. </col>
  328. <col ref="fsthptstrgtyn" type="combo">
  329. <choices>
  330. <item>
  331. <label>대상</label>
  332. <value>Y</value>
  333. </item>
  334. <item>
  335. <label>비대상</label>
  336. <value>N</value>
  337. </item>
  338. </choices>
  339. </col>
  340. <col ref="scndhptstrgtyn" type="combo">
  341. <choices>
  342. <item>
  343. <label>대상</label>
  344. <value>Y</value>
  345. </item>
  346. <item>
  347. <label>비대상</label>
  348. <value>N</value>
  349. </item>
  350. </choices>
  351. </col>
  352. <col ref="bizoffccd"/>
  353. <col ref="jobkindcd"/>
  354. <col ref="insucorpbrchcd"/>
  355. <col ref="healcntrcd"/>
  356. <col ref="schlgrde"/>
  357. <col ref="clsid"/>
  358. <col ref="studid"/>
  359. <col ref="armyhos"/>
  360. <col ref="junibdd" type="inputdate"/>
  361. <col ref="visano" type="input"/>
  362. </datagrid>
  363. <group id="grp_btn" style="left:0px; top:751px; width:1195px; height:28px; ">
  364. <button id="button33" class="btn4_letter3" style="left:1065px; top:3px; width:68px; height:22px; ">
  365. <caption>초기화</caption>
  366. <script type="javascript" ev:event="onclick">
  367. <![CDATA[
  368. model.removeNodeset("/root/main/corglst/item");
  369. model.refresh();
  370. ]]>
  371. </script>
  372. </button>
  373. <button id="button8" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
  374. <caption>저장</caption>
  375. <script type="javascript" ev:event="DOMActivate">
  376. <![CDATA[
  377. if( messageBox("공단대상자 정보를", "Q002") == 6){
  378. fSaveCorg();
  379. fGetCorgLst();
  380. }
  381. ]]>
  382. </script>
  383. </button>
  384. </group>
  385. </xhtml:body>
  386. </xhtml:html>