123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- <?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>
- <Insucd>
- <insucdlist/>
- </Insucd>
- <desc>
- <insucd/>
- <fromdd/>
- <tel/>
- <insucdnm/>
- <todd/>
- <faxno/>
- <insuflag/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <insucmno/>
- </desc>
- <result/>
- </main>
- <send>
- <insuflag/>
- <ref>1</ref>
- <refsub/>
- <fromdd/>
- <todd/>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0007list>
- <P0007>
- <cdnm/>
- <cdid/>
- </P0007>
- </P0007list>
- <PK032list>
- <PK032>
- <cdnm/>
- <cdid/>
- </PK032>
- </PK032list>
- </init>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMB00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/Insucd"/>
- <submission id="TXPMB00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/Insucd"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0007"), new Array("/root/init/P0007list"));
- pamfGetCodeList(new Array("PK032"), new Array("/root/init/PK032list"));
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- * 초기화 및 날자 입력 항목에 오늘 날자 세팅
- */
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/desc");
- //model.resetInstanceNode("/root/main/Insucd/insucdlist");
- model.removenode("/root/main/Insucd/insucdlist");
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- // model.setValue("/root/send/fromdd" , curDate);
- // model.setValue("/root/send/todd" , curDate);
- model.setValue("/root/send/fromdd" , '19991231');
- model.setValue("/root/send/todd" , '99991231');
- // 보험자 형태와 조회조건 제일 앞에것(보험형태기본은 공단...조회조건 전체 너무 데이터 많아 막음...)
- // model.setValue("/root/send/insuflag" , '1');
- // model.setValue("/root/send/ref" , '0');
- model.setValue("/root/send/ref" , '1');
-
- model.refresh();
- }
-
- /*
- * 중증도내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
- */
- function fAddRow(){
- datagrid1.addRow();
- }
-
- /*
- * 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
- */
- function fChangeSearchCondition( cond){
- switch(cond){
- case '0': // 전체 모두 조회
- input27.visible =false;
- break;
- case '1':
- input27.visible =true;
- break;
- case '2':
- input27.visible =true;
- break;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1200;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">보험자기호관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <line id="line2" class="line_2" style="x1:0px; y1:126px; x2:1194px; y2:126px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:99px; x2:1194px; y2:99px; "/>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:99px; height:17px; ">보험자형태 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/desc");
- // model.removeNodeset("/root/main/Insucd/Insucdlist");
- submit("TRPMB00100");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1118px; y1:7px; x2:1118px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input27" ref="/root/send/refsub" class="input_search" style="left:399px; top:8px; width:195px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- var refsub_number = input27.currentText;
- model.setValue("/root/send/refsub", refsub_number);
-
- //조회 조건 2자이상 입력
- if(refsub_number.length < 2){
- messageBox("2자리 이상 데이터 입력하세요!","E999","");
- model.setFocus("input27");
- return;
- }
- button1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // var refsub_number = model.getValue("/root/send/refsub");
- // //조회 조건 2자이상 입력
- // if (refsub_number.length < 2) {
- // messageBox("2자리 이상 데이터 입력!","E999","");
- // model.setFocus("input27");
- // return;
- // }
- ]]>
- </script>
- <caption id="caption21" class="search_name" style="left:603px; top:8px; width:86px; height:17px; ">적용일자 :</caption>
- <input id="input18" ref="/root/send/todd" class="input_search" inputtype="date" style="left:803px; top:8px; width:90px; height:19px; "/>
- <input id="input19" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:692px; top:8px; width:90px; height:19px; "/>
- <select1 id="combo2" ref="/root/send/insuflag" class="combo_s_essential" appearance="minimal" style="left:108px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0007list/P0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("input27");
- ]]>
- </script>
- </select1>
- <caption id="caption16" style="left:785px; top:8px; width:15px; height:19px; font-weight:bold; text-align:center; ">~</caption>
- <caption id="caption17" class="search_name" style="left:207px; top:8px; width:86px; height:17px; ">조회조건 :</caption>
- <select1 id="combo3" ref="/root/send/ref" class="combo_s_essential" appearance="minimal" style="left:296px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>보험자명칭</label>
- <value>1</value>
- </item>
- <item>
- <label>보험자기호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cond = model.getValue("/root/send/ref");
- model.refresh();
- fChangeSearchCondition( cond );
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:6px; top:55px; width:108px; height:14px; ">보험자기호내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:75px; width:80px; height:23px; vertical-align:middle; ">보험자기호</caption>
- <caption id="caption8" class="cell_1" style="left:175px; top:75px; width:80px; height:23px; vertical-align:middle; ">보험자기호명</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:101px; width:80px; height:23px; vertical-align:middle; ">시작일자</caption>
- <caption id="caption5" class="cell_1" style="left:175px; top:101px; width:80px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="input1" ref="/root/main/desc/fromdd" class="input_default" navindex="5" inputtype="date" style="left:83px; top:104px; width:90px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:350px; top:101px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption10" class="cell_1" style="left:525px; top:101px; width:80px; height:23px; vertical-align:middle; ">팩스번호</caption>
- <caption id="caption12" class="cell_1" style="left:700px; top:101px; width:80px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption14" class="cell_1" style="left:700px; top:75px; width:80px; height:23px; vertical-align:middle; ">보험회사</caption>
- <caption id="caption15" class="cell_1" style="left:700px; top:129px; width:80px; height:23px; vertical-align:middle; ">하위주소</caption>
- <input id="input13" ref="/root/main/desc/detladdr" class="input_default" navindex="12" appearance="input" style="left:783px; top:131px; width:407px; height:19px; "/>
- <caption id="caption20" class="tit_2" style="left:6px; top:166px; width:152px; height:13px; ">보험자기호내역 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:180px; x2:1194px; y2:180px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/Insucd/insucdlist" caption="보험자기호^보험자명^형태^보험회사^시작일자^종료일자^전화번호^팩스번호^우편번호^우편번호^우편번호^기본주소^하위주소^최종수정일자^최종수정자^seqno" colsep="^" colwidth="70, 200, 65, 200, 80, 80, 90, 90, 35, 35, 16, 200, 200, 84, 90, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:185px; width:1195px; height:550px; ">
- <col ref="insucd" type="input" maxlength="20"/>
- <col disabled="true" ref="insucdnm" type="input"/>
- <col disabled="true" ref="insuflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0007list/P0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insucmno" type="combo">
- <choices>
- <itemset nodeset="/root/init/PK032list/PK032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fromdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="todd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="tel" type="input"/>
- <col disabled="true" ref="faxno" type="input"/>
- <col disabled="true" ref="zipcd1" type="input" format="999"/>
- <col disabled="true" ref="zipcd2" type="input" format="999"/>
- <col disabled="true" ref="zipcdseq" type="input" format="9"/>
- <col ref="addr" style="text-align:left; "/>
- <col disabled="true" ref="detladdr" type="input"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrid" style="left:1138px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = datagrid1.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/desc","/root/main/Insucd/insucdlist["+cur_row+"]");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_3" style="x1:0px; y1:154px; x2:1194px; y2:154px; "/>
- <input id="input20" ref="/root/main/desc/insucd" class="input_s_essential" navindex="2" maxlength="20" appearance="input" style="left:83px; top:77px; width:90px; height:19px; "/>
- <input id="input21" ref="/root/main/desc/insucdnm" class="input_essential" navindex="4" appearance="input" style="left:258px; top:77px; width:265px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/desc/insucmno" class="combo_essential" navindex="4" appearance="minimal" style="left:783px; top:77px; width:407px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK032list/PK032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/desc/tel" class="input_default" navindex="7" imemode="disabled" style="left:433px; top:104px; width:90px; height:19px; ">
- <!--전화번호 잘못 입력시 메세지 보여줌
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pattern = /^0\d{1,2}\-\d{3,4}\-\d{4}$/ig;
- var inputValue = model.getValue("/root/main/desc/tel");
- if( pattern.exec(inputValue) == null ) {
- messageBox("전화번호 형식이", "E004");
- var ctrlID = event.target;
- var crtlObj = document.controls.item(ctrlID);
- crtlObj.value = "";
- model.setFocus(ctrlID);
- }
- ]]>
- </script> -->
- </input>
- <input id="input4" ref="/root/main/desc/todd" class="input_default" navindex="6" inputtype="date" appearance="input" style="left:258px; top:104px; width:90px; height:19px; "/>
- <input id="input3" ref="/root/main/desc/faxno" class="input_default" navindex="8" appearance="input" style="left:608px; top:104px; width:90px; height:19px; "/>
- <button id="button37" class="icon_search" style="left:875px; top:105px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination", "", "/root/main/desc/zipcd1", "/root/main/desc/zipcd2", "/root/main/desc/zipcdseq", "/root/main/desc/addr")
- ]]>
- </script>
- </button>
- <input id="input31" ref="/root/main/desc/zipcd1" class="input_default" navindex="9" maxlength="3" format="999" style="left:783px; top:104px; width:30px; height:19px; "/>
- <input id="input29" ref="/root/main/desc/zipcd2" class="input_default" navindex="10" maxlength="3" format="999" style="left:816px; top:104px; width:30px; height:19px; "/>
- <input id="input5" ref="/root/main/desc/addr" class="output_fix" style="left:905px; top:104px; width:285px; height:19px; "/>
- <button id="button52" class="btn2_letter2" style="left:1051px; top:50px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- var cur_row = datagrid1.row;
- model.copyNode("/root/main/Insucd/insucdlist["+cur_row+"]","/root/main/desc");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button53" accesskey="f1" class="btn5_letter5" style="left:1119px; top:160px; width:75px; height:19px; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("선택된 행의 보험자 기호코드를", "Q001") != 6) return;
-
- var cur_row = datagrid1.row;
- if( cur_row > 0 ){
- //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
- if (datagrid1.rowStatus(cur_row) == "1" || datagrid1.rowStatus(cur_row) == "3"){
- datagrid1.deleteRow(cur_row);
- return;
- }
- datagrid1.addStatus(cur_row, "delete");
- model.setValue("root/send/updatedata/datalist", datagrid1.getUpdateData("delete"));
-
- if(submit("TXPMB00100")){
- // datagrid1.deleteRow( cur_row);
- btn_search.dispatch("DOMActivate");
- }else{
- datagrid1.removeStatus(cur_row, "delete");
- }
- }else{
- messageBox("삭제할 행을 다시", "C002");
- datagrid1.removeStatus(cur_row, "delete");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:1096px; top:50px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid1.row;
- model.copyNode("/root/main/Insucd/insucdlist["+cur_row+"]","/root/main/desc");
- datagrid1.addStatus(cur_row,"update");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>지우기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/desc");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input6" ref="/root/main/desc/zipcdseq" navindex="11" maxlength="1" format="9" style="left:850px; top:104px; width:15px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:525px; top:75px; width:80px; height:23px; vertical-align:middle; ">보험자형태</caption>
- <choices>
- <itemset nodeset="/root/init/P0007list/P0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <select1 id="combo4" ref="/root/main/desc/insuflag" class="combo_essential" navindex="3" appearance="minimal" style="left:608px; top:77px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0007list/P0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button5" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata/datalist",datagrid1.getupdatedata());
- if(submit("TXPMB00100")){
- // datagrid1.clearStatus();
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|