123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684 |
- <?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>중증등록 SAM파일관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <listinfo>
- <serdiaglist>
- <serdiaglist>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <histcd/>
- <anohosprgstflag/>
- <genrflagcd/>
- <pid/>
- <insukind/>
- <cncrdiagcnfmdd/>
- <orddeptcd/>
- <orddrid/>
- <serdiagno/>
- <serdiagfromdd/>
- <serdiagtodd/>
- <genrorddd/>
- <genrcretno/>
- <signyn/>
- <signdt/>
- <prntyn/>
- <prntdt/>
- <prntpsnid/>
- <ediflag/>
- <editretdd/>
- <editrettm/>
- <prstagtyn/>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <rgstdeptcd/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <updtdeptcd/>
- <updtdd/>
- <updttm/>
- <updtrid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <maindiagcd/>
- <healcarediagcd/>
- <acptplcetel/>
- <mpphontel/>
- <acptplceaddr/>
- <remfact/>
- <hngnm/>
- <orddeptnm/>
- <orddrnm/>
- <lastupdttrnm/>
- <rrgstno/>
- <insuno/>
- <insunm/>
- <insdrela/>
- <relaflag/>
- <appmannm/>
- <infromdd/>
- <intodd/>
- <strcnfmmthd/>
- <healcarediagnm/>
- <acptplcebaseaddr/>
- <maindiagnm/>
- <licnsno/>
- <samstr/>
- <chkflag/>
- <sam/>
- <sendrrgstno/>
- <maincd/>
- <healcarecd/>
- <report/>
- <email/>
- </serdiaglist>
- </serdiaglist>
- <serdiagdetllist>
- <serdiagdetllist>
- <genrdd/>
- <genrno/>
- <histno/>
- <diagmthdcd/>
- <instcd/>
- <diagetccnts/>
- </serdiagdetllist>
- </serdiagdetllist>
- <upsamlist>
- <upsamlist>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <insuno/>
- <serdiagno/>
- <serdiagfromdd/>
- <serdiagtodd/>
- <ediremfact/>
- </upsamlist>
- </upsamlist>
- </listinfo>
- <savedata>
- <savedata>
- </savedata>
- </savedata>
- <openlist>
- <loaddata>
- <item>
- <status/>
- <proccorpcd/>
- <rgstdd/>
- <formnm/>
- <appmannm/>
- <insuno/>
- <pathngnm/>
- <rrgstno/>
- <insuranceid/>
- <startdate/>
- <enddate/>
- <genrdd/>
- <remark/>
- </item>
- </loaddata>
- </openlist>
- </main>
- <send>
- <senddata/>
- <savedata/>
- </send>
- <init>
- <srchinfo>
- <fromdd/>
- <todd/>
- <sendyn>0</sendyn>
- <sendrrgstno/>
- <srchkind/>
- </srchinfo>
- <codelist>
- <M0263/>
- </codelist>
- <savedata>
- <savedata>
- <samstr/>
- </savedata>
- </savedata>
- <updatedata>
- <updatedata>
- <pid/>
- <genrdd/>
- <genrno/>
- <histno/>
- <genrflagcd/>
- <insukind/>
- </updatedata>
- </updatedata>
- </init>
- <cond>
- <remanalyflag>send</remanalyflag>
- </cond>
- </root>
- </instance>
- <submission id="TRMRD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchinfo" resultref="/root/main/listinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dd = getCurrentDate();
- //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
- model.setValue("/root/init/srchinfo/fromdd", dd);
- model.setValue("/root/init/srchinfo/todd", dd);
- //model.setValue("/root/init/srchinfo/sendrrgstno","6301052046215");
- model.refresh();
-
- grd_send.fixedcellcheckbox(0, grd_send.colRef("chkflag")) = true;
- grd_recv.fixedcellcheckbox(0, grd_recv.colRef("status")) = true;
-
- zbcfGetCodeList(new Array( "M0263"), new Array( "/root/init/codelist"), true);
- // zbcfGetDeptCodeList("012", "orduseyn", "D", "/root/init/orddept", "depthngnm");
- model.toggle("case1");
-
- //2013/01/09 Start
- model.setValue("/root/init/srchinfo/srchkind", "1");
- model.refresh();
- //2013/01/09 End
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMRD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata"/>
- <submission id="TXMRD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMRD00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchinfo" resultref="/root/main/listinfo"/>
- <submission id="TXMRD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/updatedata/updatedata"/>
- </model>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fDisabled(flag){
- if(flag=="send"){
- var dd = getCurrentDate();
- var sendValue = model.getValue("/root/init/srchinfo/sendyn");
-
- //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
- model.setValue("/root/init/srchinfo/fromdd", dd);
- model.setValue("/root/init/srchinfo/todd", dd);
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- // caption2.visible = true;
- // ipt_rrgstno.visible = true;
- // rdo_sendyn.disabled = false;
- btn_save.disabled = false;
- btn_load.disabled = true;
- btn_update.disabled = true;
- }else if(flag=="recv"){
- caption2.visible = false;
- ipt_rrgstno.visible = false;
- btn_save.disabled = true;;
- btn_load.disabled = false;
- }else if(flag=="edi"){
- var dd = getCurrentDate();
- var sendValue = model.getValue("/root/init/srchinfo/sendyn");
-
- model.setValue("/root/init/srchinfo/fromdd", dd);
- model.setValue("/root/init/srchinfo/todd", dd);
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- caption2.visible = false;
- ipt_rrgstno.visible = false;
- // rdo_sendyn.disabled = false;
- btn_save.disabled = true;
- btn_load.disabled = true;
- btn_update.disabled = true;
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="805" pageheight="670">
- <button id="button2" class="btn_sw" group="tab" style="left:125px; top:70px; width:63px; height:22px; ">
- <caption>EDI내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var dd = getCurrentDate();
- // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
- //
- // model.setValue("/root/init/srchinfo/fromdd", dd);
- // model.setValue("/root/init/srchinfo/todd", dd);
- // ipt_fromdd.refresh();
- // ipt_todd.refresh();
- //
- //// rdo_sendyn.disabled = false;
- // btn_save.disabled = true;
- // btn_load.disabled = true;
- // btn_update.disabled = true;
- // model.toggle("case3");
- //20080731
- model.toggle("case3");
- fDisabled("edi");
- model.makeValue("/root/cond/remanalyflag","edi");
- btn_srch.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:20px; width:800px; height:45px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:14px; x2:800px; y2:15px; "/>
- <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:156px; height:14px; vertical-align:middle; ">중증등록 SAM파일관리</caption>
- <caption id="caption12" class="search_name" style="left:10px; top:33px; width:95px; height:17px; ">조회기간 :</caption>
- <caption id="caption5" class="search_no_b" style="left:290px; top:33px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:245px; top:48px; width:65px; height:17px; ">구분 :</caption>
- <button id="button1" class="btn_sw" group="tab" style="left:63px; top:70px; width:63px; height:22px; ">
- <caption>수신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //// rdo_sendyn.disabled = true;
- // btn_save.disabled = true;;
- // btn_load.disabled = false;
- // model.toggle("case2");
- //20080731
- model.toggle("case2");
- fDisabled("recv");
- model.makeValue("/root/cond/remanalyflag","recv");
- btn_srch.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button64" class="btn_sw" group="tab" selected="true" style="left:1px; top:70px; width:63px; height:22px; ">
- <caption>송신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var dd = getCurrentDate();
- // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
- //
- // //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
- // model.setValue("/root/init/srchinfo/fromdd", dd);
- // model.setValue("/root/init/srchinfo/todd", dd);
- // ipt_fromdd.refresh();
- // ipt_todd.refresh();
- //
- //// rdo_sendyn.disabled = false;
- // btn_save.disabled = false;
- // btn_load.disabled = true;
- // btn_update.disabled = true;
- // model.toggle("case1");
-
- //20080731
- model.toggle("case1");
- fDisabled("send");
- model.makeValue("/root/cond/remanalyflag","send");
- btn_srch.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:90px; width:800px; height:525px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:798px; height:523px; ">
- <datagrid id="grd_send" nodeset="/root/main/listinfo/serdiaglist/serdiaglist" caption="^보험증번호^세대주^성명^ 등록번호^진료과목^상병^주민번호^특정코드^전화번호^우편번호^우편번호^수령주소(기본)^수령주소(상세)^입원/외래^암진단확인일^최종진단방법^의사면허번호^의사성명^신청자^관계^확인일자^신청일자^핸드폰번호" colsep="^" colwidth="34, 100, 60, 60, 69, 75, 57, 90, 100, 90, 40, 40, 130, 130, 40, 80, 200, 60, 60, 60, 60, 80, 80, 80" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
- <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
- <col ref="insuno"/>
- <col ref="insdnm"/>
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col ref="orddeptnm"/>
- <col ref="healcarecd"/>
- <col ref="rrgstno"/>
- <col ref="spclcd" visibility="hidden"/>
- <col ref="acptplcetel"/>
- <col ref="zipcdhead"/>
- <col ref="zipcdfoot"/>
- <col ref="acptplcebaseaddr"/>
- <col ref="acptplceaddr"/>
- <col ref="genrflagcd" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="cncrdiagcnfmdd"/>
- <col ref="sam"/>
- <col ref="licnsno"/>
- <col ref="orddrnm"/>
- <col ref="appmannm"/>
- <col ref="relaflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/codelist/M0263">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rgstdd"/>
- <col ref="prntdt"/>
- <col ref="acptplcempphon"/>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_recv" nodeset="/root/main/openlist/loaddata/item" caption="^요양기관^작성일^서식명^가입자^건강보험증번호^성명(수진자)^주민번호(수진자)^등록번호(공단)^적용시작일^적용종료일^신청일자^신청구분" colsep="^" colwidth="34, 70, 80, 149, 90, 110, 90, 110, 100, 80, 80, 86, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
- <col allowuserresize="false" checkvalue="Y,N" ref="status" type="checkbox"/>
- <col ref="proccorpcd"/>
- <col ref="rgstdd"/>
- <col ref="formnm"/>
- <col ref="appmannm"/>
- <col ref="insuno"/>
- <col ref="pathngnm"/>
- <col ref="rrgstno"/>
- <col ref="insuranceid"/>
- <col ref="startdate"/>
- <col ref="enddate"/>
- <col ref="genrdd"/>
- <col ref="remark"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recv.gridToInstance();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_edilist" nodeset="/root/main/listinfo/upsamlist/upsamlist" caption="등록번호^성명^주민번호^건강보험증번호^중증등록번호^적용시작일^적용종료일^비고" colsep="^" colwidth="82, 76, 118, 110, 106, 84, 80, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="insuno"/>
- <col ref="serdiagno"/>
- <col ref="serdiagfromdd"/>
- <col ref="serdiagtodd"/>
- <col ref="ediremfact"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_edilist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <select1 id="rdo_sendyn" ref="/root/init/srchinfo/sendyn" disabled="false" visibility="hidden" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:310px; top:47px; width:130px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전송전</label>
- <value>0</value>
- </item>
- <item>
- <label>전송후</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // var dd = getCurrentDate();
- // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
- //
- // if (sendValue == "0"){
- // model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
- // model.setValue("/root/init/srchinfo/todd", dd);
- // ipt_fromdd.refresh();
- // ipt_todd.refresh();
- // button1.disabled = false;
- // model.toggle("case1");
- // } else {
- // model.setValue("/root/init/srchinfo/fromdd", dd);
- // model.setValue("/root/init/srchinfo/todd", dd);
- // ipt_fromdd.refresh();
- // ipt_todd.refresh();
- // button2.disabled = false;
- // model.toggle("case3");
- // }
- ]]>
- </script>
- </select1>
- <input id="ipt_todd" ref="/root/init/srchinfo/todd" class="input_search" inputtype="date" style="left:305px; top:33px; width:100px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/init/srchinfo/fromdd" class="input_search" inputtype="date" style="left:185px; top:33px; width:100px; height:19px; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:720px; top:32px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // if (button64.disabled == false){
- // submit("TRMRD00203");
- // } else if (button2.disabled == false){
- // submit("TRMRD00206");
- // }
- var sRemFlag = model.getValue("/root/cond/remanalyflag");
-
- if (sRemFlag == "send"){
- submit("TRMRD00203");
- } else if (sRemFlag == "edi"){
- submit("TRMRD00206");
- }
-
- for (i = 1; i <= grd_send.rows; i++ ) {
- if (i > 1) {
- model.makeValue("/root/main/listinfo/serdiaglist/serdiaglist[" + (i-1) + "]/chkflag", "Y");
- }
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_filedata" nodeset="/root/main/savedata/savedata" visibility="hidden" caption="samstr" colsep="^" colwidth="252" mergecellsfixedrows="bycolrec" rowsep="|" style="left:200px; top:615px; width:265px; height:55px; ">
- <col ref="samstr"/>
- </datagrid>
- <button id="btn_save" class="btn2_letter4" style="left:605px; top:70px; width:64px; height:19px; ">
- <caption>파일저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if (ipt_rrgstno.value == ""){
- // alert("등록자 주민등록번호가 입력되지 않았습니다" );
- // model.setFocus("ipt_rrgstno");
- // return;
- // }
- //model.removenode("/root/main/savedata/savedata");
- model.resetInstanceNode("/root/main/savedata/savedata");
- //model.removenode("/root/main/savedata");
- //등록자 주민번호 강제 세팅 - 의료정보팀 팀장님꺼
- //ipt_rrgstno.value = "6301052046215"
-
- for (i = 1; i < grd_send.rows; i++) {
- // alert(model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/samstr"));
- var tmpChk = model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+ i +"]/chkflag");
- if(tmpChk =="Y"){
- model.setValue("/root/init/updatedata/updatedata/pid", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/pid"));
- model.setValue("/root/init/updatedata/updatedata/genrdd", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrdd"));
- model.setValue("/root/init/updatedata/updatedata/genrno", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrno"));
- model.setValue("/root/init/updatedata/updatedata/histno", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/histno"));
- model.setValue("/root/init/updatedata/updatedata/genrflagcd", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrflagcd"));
- model.setValue("/root/init/updatedata/updatedata/insukind", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/insukind"));
-
- model.setValue("/root/init/savedata/savedata/samstr", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/samstr"));
- copyNodeType("/root/main/savedata", "/root/init/savedata", "after");
-
- submit("TXMRD00205");
- }
- }
- grd_filedata.rebuild();
-
- var fileName = window.fileDialog("save", ",", false, "text", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_filedata.saveText(fileName, "\n", "^", "", false, false);
- alert("저장이 완료되었습니다.");
- }
-
- //model.resetInstanceNode("/root/main/savedata/savedata");
- model.resetInstanceNode("/root/main/savedata");
-
- ]]>
- </script>
- </button>
- <button id="btn_load" class="btn2_letter4" disabled="true" style="left:670px; top:70px; width:64px; height:19px; ">
- <caption>파일열기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/openlist/loaddata/item");
-
- // knuh_20110119 엑셀로 변경
- //var fileName = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
-
- // knuh_20110119 엑셀로 변경
- //grd_filedata.loadText(fileName, '\n', '', '');
- //grd_filedata.loadExcel(fileName, 1);
- grd_recv.loadExcel(fileName, 1);
-
- //model.refresh();
-
- grd_recv.deleterow(1);
-
- for (i = 1; i < grd_recv.rows; i++ ) {
- model.setValue("/root/main/openlist/loaddata/item[" + i + "]/status", "Y");
- }
- }
-
- button1.selected= true;
- model.toggle("case2");
-
- /*
- var linestr = "", retstr = "";
- var itemlen = new Array(0, 11, 20, 13, 10, 8, 8, 2, 1, 98);
- var start, strlen;
- var rows = grd_filedata.rows - grd_filedata.fixedRows;
-
- for (i = 1; i <= rows; i++ ) {
-
- linestr = model.getValue("/root/main/savedata/savedata["+ i +"]/samstr");
- start = 0;
-
- model.makeValue("/root/main/openlist/loaddata/item[" + i + "]/status", "Y");
-
- for (j = 0; j <= itemlen.length; j++) {
- retstr = "";
- strlen = parseInt(itemlen[j]);
-
- for (k = 0; k < strlen; k++){
- retstr = retstr + linestr.charAt(start+k);
- if ( linestr.charCodeAt(start+k) > 128 ) {
- strlen = strlen - 1;
- }
- }
- grd_recv.valueMatrix(i, j+1) = retstr;
- start = start + strlen;
- }
- if(i != rows) { //마지막에 빈줄 생김 방지
- grd_recv.addrow(false, true);
- }
- }
- */
-
- model.refresh();
- btn_update.disabled = false;
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn2_letter4" disabled="true" style="left:735px; top:70px; width:64px; height:19px; ">
- <caption>내용저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_recv.rows - grd_recv.fixedRows;
- // knuh_20110420_수정
- //var savedata = "status▦insuno▦pathngnm▦rrgstno▦insuranceid▦startdate▦enddate▦remno▦bun▦remark▩";
- var savedata = "status▦insuno▦pathngnm▦rrgstno▦insuranceid▦startdate▦enddate▩";
-
- for ( var i= 1; i <= rows; i++)
- {
- var chk = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/status");
-
- if (chk == "Y") {
- // model.makeValue("/root/send/savedata/status", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/status"));
- // model.makeValue("/root/send/savedata/insuno", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/insuno"));
- // model.makeValue("/root/send/savedata/pathngnm", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/pathngnm"));
- // model.makeValue("/root/send/savedata/rrgstno", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/rrgstno"));
- // model.makeValue("/root/send/savedata/insuranceid", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/insuranceid"));
- // model.makeValue("/root/send/savedata/startdate", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/startdate"));
- // model.makeValue("/root/send/savedata/enddate", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/enddate"));
- // model.makeValue("/root/send/savedata/remark", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/remark"));
- // KNUH_20110419_추가
- var startdate = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/startdate");
- startdate = startdate.setReplaceWord("/", "");
- var enddate = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/enddate");
- enddate = enddate.setReplaceWord("/", "");
- savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/status") + "▦";
- savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/insuno") + "▦";
- savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/pathngnm") + "▦";
- savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/rrgstno") + "▦";
- savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/insuranceid") + "▦";
- //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/startdate") + "▦";
- //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/enddate") + "▦";
- //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/remno") + "▦";
- //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/bun") + "▦";
- //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/remark") + "▩";
- savedata += startdate + "▦";
- savedata += enddate + "▩";
-
- }
- }
- model.setValue("/root/send/savedata", savedata);
-
- //submit("TXMRD00204");
- //alert("저장이 완료되었습니다.");
-
- if (submit("TXMRD00204")==true)
- {
- messageBox("저장이","I002");
- }
- else
- {
- messageBox("저장에", "E009");
- }
- model.resetInstanceNode("/root/main/openlist/loaddata/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:390px; top:33px; width:151px; height:17px; ">등록자 주민등록번호:</caption>
- <input id="ipt_rrgstno" ref="/root/init/srchinfo/sendrrgstno" visibility="hidden" maxlength="13" style="left:545px; top:33px; width:135px; height:19px; "/>
- <select1 id="combo1" ref="/root/init/srchinfo/srchkind" appearance="minimal" style="left:95px; top:33px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>등록일</label>
- <value>1</value>
- </item>
- <item>
- <label>서명일</label>
- <value>2</value>
- </item>
- <item>
- <label>수정일</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|