123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>공단대상자 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <corglst>
- <item>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <hopedd/>
- <email/>
- <telno/>
- <mpphon/>
- <zipcd11/>
- <zipcd12/>
- <detladdr1/>
- <pkgcd/>
- <testcd/>
- <healexamplacecd/>
- <pkgnm/>
- <testnm/>
- <sex/>
- <brthdd/>
- <age/>
- <forgneryn/>
- <emailid/>
- <emailtype/>
- <statflag/>
- <healexamflag/>
- <healexamdetlflag/>
- </item>
- </corglst>
- </main>
- <send>
- <srchcmpycd/>
- <srchcmpynm/>
- <srchpnm/>
- <srchrrgstno1/>
- <srchrrgstno2/>
- <srchclntempid/>
- </send>
- <save>
- <corgInfo/>
- </save>
- <init>
- <baseinfo>
- <jobkindflag/>
- <cancerapplst/>
- </baseinfo>
- </init>
- <temp>
- <cnt/>
- </temp>
- </root>
- </instance>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TXAHA04096" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/corglst"/>
- <submission id="TXAHA04095" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/corgInfo" resultref="/root/temp"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBaseInfo();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /**
- *기본정보 가져오기
- */
- function fGetBaseInfo(){
- zbcfGetCodeList(new Array("A0112"), new Array("/root/init/baseinfo/jobkindflag")); //근무구분
- healGetCodeList(new Array("G104"), new Array("/root/init/baseinfo/cancerapplst")); //암적용구분
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 예약접수현황리스트 조회
- =========================================================================================================================================*/
- function fGetCorgLst(){
- model.removeNodeset("/root/main/corglst/item");
- submit("TXAHA04096");
- }
-
- /********************************************************************************************************************************************************
- * 파일 업로드
- ********************************************************************************************************************************************************/
- function fFileUpload(){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|Dat Files(*.dat)|*.dat|All Files (*.*)|*.*");
- var regExp = /.dat$/gi;
- var vGrd = null;
- if(fileName == "" || fileName == null) return;
-
- //엑셀, dat파일 구분
- if(regExp.test(fileName)){
- /*
- var fso,ts,tsr;
- fso = new ActiveXObject("Scripting.FileSystemObject");
- ts = fso.OpenTextFile(fileName);
- model.setValue("/root/send/linkdata",ts.ReadAll());
- ts.Close();
- if(submit("TRAHA00304",false)) {
- if(model.getValue("/root/main/linklst/cmpy/cmpyrgstyn") == 0) {
- submit("TXAHA00303");
- }
- model.toggle("case_linkup");
- }
- */
- }else{
- grd_cupload.loadExcel(fileName);
- var cnt = grd_cupload.rows;
- var i = 0;
- for(i=1; i<cnt+1; i++){
- grd_cupload.addStatus(i, "insert");
- }
- grd_cupload.deleteRow(1);
- grd_cupload.rebuildStyle();
- grd_cupload.refresh();
- }
- }
- /********************************************************************************************************************************************************
- * 공단검진 대상자 등록
- ********************************************************************************************************************************************************/
- function fSaveCorg(){
- var saveCorg = getGridUpdateData(grd_cupload);
- if(saveCorg != ""){
- model.setValue("/root/save/corgInfo", saveCorg);
-
- if(submit("TXAHA04095")){
- messageBox("정상적으로" , "I001");
- return;
- }
- }else{
- messageBox("저장할 내역이", "E014");
- return;
- }
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1192;">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:15px; ">공단대상자 관리</caption>
- </group>
- <group id="group5" style="left:0px; top:20px; width:1193px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption12" class="search_name" style="left:5px; top:8px; width:90px; height:17px; ">사업체 :</caption>
- <line id="line7" style="x1:1110px; y1:8px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:82px; top:8px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_selcmpy" class="icon_search" style="left:163px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA01500", "09" , "cd", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
- ]]>
- </script>
- </button>
- <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:185px; top:8px; width:130px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCorgLst();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:325px; top:8px; width:61px; height:17px; ">성명 :</caption>
- <caption id="caption93" class="search_n_b" style="left:621px; top:8px; width:12px; height:17px; font-weight:bolder; ">-</caption>
- <input id="ipt_srchpnm" ref="/root/send/srchpnm" class="input_search" imemode="hangul" style="left:390px; top:8px; width:67px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ) {
- model.setValue(ipt_srchpnm.attribute("ref"), ipt_srchpnm.currentText);
- fGetCorgLst();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_srchrgstno1" ref="/root/send/srchrrgstno1" class="input_search" format="999999" style="left:556px; top:8px; width:57px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ) {
- model.setValue(ipt_srchrgstno1.attribute("ref"), ipt_srchrgstno1.currentText);
- fGetCorgLst();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_srchrgstno2" ref="/root/send/srchrrgstno2" class="input_search" format="9999999" style="left:635px; top:8px; width:57px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ) {
- model.setValue(ipt_srchrgstno2.attribute("ref"), ipt_srchrgstno2.currentText);
- fGetCorgLst();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_srchpid" ref="/root/send/srchclntempid" class="input_search" style="left:790px; top:8px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ) {
- model.setValue(ipt_srchpid.attribute("ref"), ipt_srchpid.currentText);
- fGetCorgLst();
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:467px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
- <caption id="caption7" class="search_name" style="left:700px; top:8px; width:86px; height:17px; ">사번/군번 :</caption>
- </group>
- <button id="btn_upload" class="btn2_letter5" style="left:1117px; top:65px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("파일 업로드");
- fFileUpload();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:1005px; top:65px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cupload.addRow();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:1061px; top:65px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_cupload, true);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_3" style="x1:0px; y1:92px; x2:1192px; y2:92px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:87px; x2:1192px; y2:87px; "/>
- <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; ">
- <col disabled="true" ref="clntempid" type="input"/>
- <col disabled="true" ref="cmpycd" type="input"/>
- <col ref="subscrhngnm" type="input"/>
- <col ref="subscrrrgstno1" type="input"/>
- <col ref="subscrrrgstno2" type="input"/>
- <col ref="insuid" type="input"/>
- <col ref="jobkindflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/jobkindflag/A0112">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="entcodd" type="inputdate"/>
- <col ref="clntdeptnm" type="input"/>
- <col ref="oraltestyn" type="combo">
- <choices>
- <item>
- <label>생애전환기</label>
- <value>Y</value>
- </item>
- <item>
- <label>일반건진</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="stmccncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mamcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="largeintescncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="livcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cervcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fsthptstrgtyn" type="combo">
- <choices>
- <item>
- <label>대상</label>
- <value>Y</value>
- </item>
- <item>
- <label>비대상</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="scndhptstrgtyn" type="combo">
- <choices>
- <item>
- <label>대상</label>
- <value>Y</value>
- </item>
- <item>
- <label>비대상</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="bizoffccd"/>
- <col ref="jobkindcd"/>
- <col ref="insucorpbrchcd"/>
- <col ref="healcntrcd"/>
- <col ref="schlgrde"/>
- <col ref="clsid"/>
- <col ref="studid"/>
- <col ref="armyhos"/>
- <col ref="junibdd" type="inputdate"/>
- <col ref="visano" type="input"/>
- </datagrid>
- <group id="grp_btn" style="left:0px; top:751px; width:1195px; height:28px; ">
- <button id="button33" class="btn4_letter3" style="left:1065px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/corglst/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("공단대상자 정보를", "Q002") == 6){
- fSaveCorg();
- fGetCorgLst();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|