123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <patcnt>
- <patcnt1>
- <patcntlist/>
- </patcnt1>
- <patcnt2>
- <patcntlist/>
- </patcnt2>
- <patcnt3>
- <patcntlist/>
- </patcnt3>
- </patcnt>
- <ipat>
- <patlist/>
- </ipat>
- <opat>
- <patlist/>
- </opat>
- </main>
- <send>
- <data1>
- <fromdd/>
- <todd/>
- </data1>
- <data2>
- <fromdd_1/>
- <todd_1/>
- <fromdd_2/>
- <todd_2/>
- <fromdd_3/>
- <todd_3/>
- <flag/>
- </data2>
- <data3>
- <fromdd/>
- <todd/>
- <flag/>
- <insukind/>
- </data3>
- </send>
- <hidden>
- <syear/>
- <sterm/>
- <data3>
- <fromdd/>
- <todd/>
- <insukind/>
- <flag/>
- </data3>
- <data4>
- <fromdd/>
- <todd/>
- <insukind/>
- <flag/>
- </data4>
- <cntlist>
- <patcntlist/>
- </cntlist>
- <rpatlist>
- <patlist/>
- </rpatlist>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var curDate = getCurrentDate();
- curMonth = curDate.substr(0,6);
- curYear = curDate.substr(0,4);
-
- if(curMonth.substr(4,2)=='01'){
- model.setValue("/root/send/data1/fromdd",curYear-1+'12');
- model.setValue("/root/send/data1/todd",curMonth);
- }else{
- model.setValue("/root/send/data1/fromdd",curMonth-1);
- model.setValue("/root/send/data1/todd",curMonth);
- }
-
- model.setValue("/root/hidden/syear",curYear);
-
- model.refresh();
- ]]>
- </script>
- <submission id="TXPMC07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
- <submission id="TRPMC07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/cntlist"/>
- <submission id="TRPMC07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rpatlist"/>
- </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">
- <![CDATA[
- function fSearch_cnt(flag){
- model.setValue("/root/send/data2/flag",flag);
- model.resetInstanceNode("/root/hidden/cntlist");
- if(submit("TRPMC07101")){
- if(flag=='1'){
- model.resetInstanceNode("/root/main/patcnt/patcnt1");
- for(i=1;i<=2;i++){
- model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
- model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
- }
- }else if (flag=='2'){
- model.resetInstanceNode("/root/main/patcnt/patcnt2");
- for(i=1;i<=2;i++){
- model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
- model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
- }
- }else if (flag=='3'){
- model.resetInstanceNode("/root/main/patcnt/patcnt3");
- for(i=1;i<=2;i++){
- model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
- model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
- }
- }else if (flag=='A'){
- model.resetInstanceNode("/root/main/patcnt/patcnt1");
- model.resetInstanceNode("/root/main/patcnt/patcnt2");
- model.resetInstanceNode("/root/main/patcnt/patcnt3");
- for(i=1;i<=2;i++){
- model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
- model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
- model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins2_1"));
- model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins2_2"));
- model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins3_1"));
- model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins3_2"));
- }
- }
- }
- }
- function fSearch_patlist(){
- submit("TRPMC07102");
- }
- function fOJBaseInfoRef()
- {
- model.resetInstanceNode("/root/main/rcv/ptbs");
- submit("TRPMC00902");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" style="left:0px; top:20px; width:835px; height:40px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:830px; height:35px; "/>
- <caption id="caption32" class="tit_2" style="left:15px; top:11px; width:150px; height:13px; ">입원/외래 환자 생성</caption>
- <caption id="caption1" style="left:267px; top:12px; width:12px; height:11px; vertical-align:middle; ">~</caption>
- <input id="input2" ref="/root/send/data1/todd" class="input_search" format="yyyy-mm" style="left:290px; top:9px; width:61px; height:19px; ">
- <hint>
- <![CDATA[14일]]>
- </hint>
- </input>
- <input id="input1" ref="/root/send/data1/fromdd" class="input_search" format="yyyy-mm" style="left:190px; top:9px; width:61px; height:19px; ">
- <hint>
- <![CDATA[15일]]>
- </hint>
- </input>
- <button id="button1" class="btn4_letter4" style="left:390px; top:8px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>환자생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fromdd = model.getValue("/root/send/data1/fromdd");
- todd = model.getValue("/root/send/data1/todd");
- if(todd.length ==6 && fromdd.length ==6 &&todd>fromdd){
- if(isValidMonth(fromdd.substr(4,2)) && isValidMonth(todd.substr(4,2)) ){
- var result = messageBox(fromdd+"15 부터"+todd+"14 까지 환자를 생성하시겠습니까?", "Q");
- if(result=='6'){
- model.setValue("/root/send/data1/fromdd",fromdd+'15');
- model.setValue("/root/send/data1/todd",todd+'14');
- submit("TXPMC07101");
- // alert("생성");
- model.setValue("/root/send/data1/fromdd",fromdd);
- model.setValue("/root/send/data1/todd",todd);
- }
- }else{
- messageBox("생성일자를 확인하세요.", "I");
- }
- }else{
- messageBox("생성일자를 확인하세요.", "I");
- }
- ]]>
- </script>
- <hint>
- <![CDATA[데이터 처리 건 수에 따라 생성속도가 느려질 수 있습니다. 생성버튼을 누른 후 잠시 후에 조회해 주세요.]]>
- </hint>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:341px; x2:830px; y2:341px; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:263px; width:136px; height:13px; ">생성된 자료 확인</caption>
- <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:765px; top:321px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "정신과환자수산정", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- var condnm = caption4.value;
- datagrid1.saveExcel(fileName, condnm, false, false, "", "");
- }
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/ipat/patlist" scroll="auto" caption="생성시작일^생성종료일^조회시작일^조회종료일^등록번호^환자명^입원일^퇴원일^급종^유형^상병코드" colsep="^" colwidth="77, 77, 77, 77, 79, 80, 77, 77, 37, 37, 90" rowheader="seq" rowsep="|" style="left:0px; top:351px; width:830px; height:175px; ">
- <col ref="cfromdd" type="output" format="yyyy-mm-dd"/>
- <col ref="ctodd" type="output" format="yyyy-mm-dd"/>
- <col ref="fromdd" type="output" format="yyyy-mm-dd"/>
- <col ref="todd" type="output" format="yyyy-mm-dd"/>
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output" style="left:697px; top:23px; width:100px; height:23px; "/>
- <col ref="indd" type="output" format="yyyy-mm-dd"/>
- <col ref="dschdd" type="output" format="yyyy-mm-dd"/>
- <col ref="insukind" type="output"/>
- <col ref="suppkind" type="output"/>
- <col ref="diagcd" type="output"/>
- </datagrid>
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">정신과 환자 수 산정</caption>
- <shape id="roundrect2" appearance="roundrect" style="left:0px; top:89px; width:830px; height:35px; "/>
- <input id="input4" ref="/root/send/data2/fromdd_1" class="input_search" inputtype="date" style="left:201px; top:127px; width:81px; height:19px; "/>
- <input id="input5" ref="/root/send/data2/todd_1" class="input_search" inputtype="date" style="left:283px; top:127px; width:81px; height:19px; "/>
- <input id="input6" ref="/root/send/data2/fromdd_2" class="input_search" inputtype="date" style="left:413px; top:127px; width:81px; height:19px; "/>
- <input id="input7" ref="/root/send/data2/todd_2" class="input_search" inputtype="date" style="left:495px; top:127px; width:81px; height:19px; "/>
- <input id="input8" ref="/root/send/data2/fromdd_3" class="input_search" inputtype="date" style="left:624px; top:127px; width:81px; height:19px; "/>
- <button id="button5" class="btn2_letter2" style="left:365px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nam= model.getValue("/root/send/data2/fromdd_1")+"~"+model.getValue("/root/send/data2/todd_1");
- caption11.value = nam;
- var flag = "1";
- fSearch_cnt(flag);
- datagrid2.refresh();
- ]]>
- </script>
- </button>
- <input id="input9" ref="/root/send/data2/todd_3" class="input_search" inputtype="date" style="left:706px; top:127px; width:81px; height:19px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:69px; width:150px; height:13px; ">기간별 환자 수</caption>
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:283px; width:830px; height:35px; "/>
- <select1 id="radio12" ref="/root/hidden/data3/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:417px; top:294px; width:190px; height:17px; background-color:#fffbf2; border-style:none; ">
- <choices>
- <item>
- <label>건강보험</label>
- <value>1</value>
- </item>
- <item>
- <label>의료급여</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="input11" ref="/root/hidden/data3/fromdd" class="input_search" inputtype="date" style="left:170px; top:293px; width:100px; height:19px; "/>
- <input id="input12" ref="/root/hidden/data3/todd" class="input_search" inputtype="date" style="left:290px; top:293px; width:100px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:293px; width:150px; height:17px; ">입원환자 생성 자료</caption>
- <caption id="caption5" style="left:275px; top:296px; width:12px; height:11px; vertical-align:middle; ">~</caption>
- <button id="button2" class="btn1_letter2" style="left:770px; top:291px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fromdd = model.getValue("/root/hidden/data3/fromdd");
- todd = model.getValue("/root/hidden/data3/todd");
- insukind= model.getValue("/root/hidden/data3/insukind");
- if(isValidDateTime(fromdd,'YYYYMMDD') &&isValidDateTime(todd,'YYYYMMDD') &&fromdd<=todd&&!isNull(insukind)){
- model.setValue("/root/hidden/data3/flag","I");
- model.copyNode("/root/send/data3","/root/hidden/data3");
- model.resetInstanceNode("/root/hidden/rpatlist");
- fSearch_patlist();
- model.copyNode("/root/main/ipat","/root/hidden/rpatlist");
- datagrid1.refresh();
- }else{
- messageBox("조회 조건을 확인하세요.", "I");
- }
- ]]>
- </script>
- </button>
- <line id="line40" class="line_4" style="x1:705px; y1:287px; x2:705px; y2:315px; "/>
- <line id="line2" class="line_4" style="x1:705px; y1:540px; x2:705px; y2:568px; "/>
- <shape id="roundrect4" appearance="roundrect" style="left:0px; top:536px; width:830px; height:35px; "/>
- <button id="button4" class="btn1_letter2" style="left:770px; top:544px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fromdd = model.getValue("/root/hidden/data4/fromdd");
- todd = model.getValue("/root/hidden/data4/todd");
- insukind= model.getValue("/root/hidden/data4/insukind");
- if(isValidDateTime(fromdd,'YYYYMMDD') &&isValidDateTime(todd,'YYYYMMDD') &&fromdd<=todd&&!isNull(insukind)){
- model.setValue("/root/hidden/data4/flag","O");
- model.copyNode("/root/send/data3","/root/hidden/data4");
- model.resetInstanceNode("/root/hidden/rpatlist");
- fSearch_patlist();
- model.copyNode("/root/main/opat","/root/hidden/rpatlist");
- datagrid3.refresh();
- }else{
- messageBox("조회 조건을 확인하세요.", "I");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:765px; top:574px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "정신과환자수산정", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- var condnm = caption6.value;
- datagrid3.saveExcel(fileName, condnm, false, false, "", "");
- }
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/hidden/data4/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:417px; top:547px; width:190px; height:17px; background-color:#fffbf2; border-style:none; ">
- <choices>
- <item>
- <label>건강보험</label>
- <value>1</value>
- </item>
- <item>
- <label>의료급여</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/hidden/data4/fromdd" class="input_search" inputtype="date" style="left:170px; top:546px; width:100px; height:19px; "/>
- <input id="input10" ref="/root/hidden/data4/todd" class="input_search" inputtype="date" style="left:290px; top:546px; width:100px; height:19px; "/>
- <caption id="caption6" class="search_name" style="left:15px; top:546px; width:150px; height:17px; ">외래환자 생성 자료</caption>
- <caption id="caption8" style="left:275px; top:549px; width:12px; height:11px; vertical-align:middle; ">~</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:594px; x2:830px; y2:594px; "/>
- <line id="line4" class="line_4" style="x1:705px; y1:540px; x2:705px; y2:568px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:147px; x2:830px; y2:147px; text-align:center; vertical-align:middle; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:157px; width:199px; height:46px; text-align:center; vertical-align:middle; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:204px; width:199px; height:24px; text-align:center; vertical-align:middle; ">입원환자수(환자별재원일수합)</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:229px; width:199px; height:24px; text-align:center; vertical-align:middle; ">외래환자수</caption>
- <caption id="caption11" class="cell_1" style="left:200px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
- <caption id="caption13" class="cell_1" style="left:411px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
- <caption id="caption14" class="cell_1" style="left:622px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
- <caption id="caption15" class="cell_1" style="left:200px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
- <caption id="caption16" class="cell_1" style="left:411px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
- <caption id="caption17" class="cell_1" style="left:622px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
- <caption id="caption18" class="cell_1" style="left:305px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
- <caption id="caption19" class="cell_1" style="left:516px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
- <caption id="caption20" class="cell_1" style="left:727px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
- <datagrid id="datagrid2" nodeset="/root/main/patcnt/patcnt1/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:200px; top:205px; width:210px; height:48px; ">
- <col ref="ins1_1" type="output"/>
- <col ref="ins1_2" type="output"/>
- </datagrid>
- <datagrid id="datagrid4" nodeset="/root/main/patcnt/patcnt2/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:411px; top:205px; width:210px; height:48px; ">
- <col ref="ins2_1" type="output"/>
- <col ref="ins2_2" type="output"/>
- </datagrid>
- <datagrid id="datagrid5" nodeset="/root/main/patcnt/patcnt3/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:622px; top:205px; width:210px; height:48px; ">
- <col ref="ins3_1" type="output"/>
- <col ref="ins3_2" type="output"/>
- </datagrid>
- <button id="button8" class="btn2_letter2" style="left:577px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nam= model.getValue("/root/send/data2/fromdd_2")+"~"+model.getValue("/root/send/data2/todd_2");
- caption13.value = nam;
- var flag = "2";
- fSearch_cnt(flag);
- datagrid4.refresh();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter2" style="left:788px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nam= model.getValue("/root/send/data2/fromdd_3")+"~"+model.getValue("/root/send/data2/todd_3");
- caption14.value = nam;
- var flag = "3";
- fSearch_cnt(flag);
- datagrid5.refresh();
- ]]>
- </script>
- </button>
- <select1 id="combo5" ref="/root/hidden/sterm" class="combo_default" navindex="8" appearance="minimal" style="left:270px; top:97px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>1분기</label>
- <value>1</value>
- </item>
- <item>
- <label>2분기</label>
- <value>2</value>
- </item>
- <item>
- <label>3분기</label>
- <value>3</value>
- </item>
- <item>
- <label>4분기</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var syear = model.getValue("/root/hidden/syear")
- var sterm = model.getValue("/root/hidden/sterm")
- if(sterm =='1'){
- model.setValue("/root/send/data2/fromdd_1",syear-1+'1215');
- model.setValue("/root/send/data2/todd_1",syear+'0114');
- model.setValue("/root/send/data2/fromdd_2",syear+'0115');
- model.setValue("/root/send/data2/todd_2",syear+'0214');
- model.setValue("/root/send/data2/fromdd_3",syear+'0215');
- model.setValue("/root/send/data2/todd_3",syear+'0314');
- }else if(sterm =='2'){
- model.setValue("/root/send/data2/fromdd_1",syear+'0315');
- model.setValue("/root/send/data2/todd_1",syear+'0414');
- model.setValue("/root/send/data2/fromdd_2",syear+'0415');
- model.setValue("/root/send/data2/todd_2",syear+'0514');
- model.setValue("/root/send/data2/fromdd_3",syear+'0515');
- model.setValue("/root/send/data2/todd_3",syear+'0614');
- }else if(sterm =='3'){
- model.setValue("/root/send/data2/fromdd_1",syear+'0615');
- model.setValue("/root/send/data2/todd_1",syear+'0714');
- model.setValue("/root/send/data2/fromdd_2",syear+'0715');
- model.setValue("/root/send/data2/todd_2",syear+'0814');
- model.setValue("/root/send/data2/fromdd_3",syear+'0815');
- model.setValue("/root/send/data2/todd_3",syear+'0914');
- }else if(sterm =='4'){
- model.setValue("/root/send/data2/fromdd_1",syear+'0915');
- model.setValue("/root/send/data2/todd_1",syear+'1014');
- model.setValue("/root/send/data2/fromdd_2",syear+'1015');
- model.setValue("/root/send/data2/todd_2",syear+'1114');
- model.setValue("/root/send/data2/fromdd_3",syear+'1115');
- model.setValue("/root/send/data2/todd_3",syear+'1214');
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input13" ref="/root/hidden/syear" class="input_search" format="yyyy" style="left:93px; top:97px; width:61px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:15px; top:98px; width:60px; height:17px; ">연도</caption>
- <caption id="caption22" class="search_name" style="left:195px; top:98px; width:60px; height:17px; ">분기</caption>
- <button id="button10" class="btn1_letter2" style="left:770px; top:96px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var syear = model.getValue("/root/hidden/syear");
- var sterm = model.getValue("/root/hidden/sterm" );
- combo5.dispatch("xforms-value-changed");
-
- if((syear.length ==4)&&(sterm!='')&&(sterm !=0)){
-
- var nam1= model.getValue("/root/send/data2/fromdd_1")+"~"+model.getValue("/root/send/data2/todd_1");
- var nam2= model.getValue("/root/send/data2/fromdd_2")+"~"+model.getValue("/root/send/data2/todd_2");
- var nam3= model.getValue("/root/send/data2/fromdd_3")+"~"+model.getValue("/root/send/data2/todd_3");
- caption11.value = nam1;
- caption13.value = nam2;
- caption14.value = nam3;
-
- var flag = "A";
- fSearch_cnt(flag);
- datagrid2.refresh();
- datagrid4.refresh();
- datagrid5.refresh();
- }
- else{
- messageBox("조회조건을 확인하세요.", "I");
- }
-
- ]]>
- </script>
- </button>
- <line id="line6" class="line_4" style="x1:705px; y1:93px; x2:705px; y2:121px; "/>
- <datagrid id="datagrid3" nodeset="/root/main/opat/patlist" scroll="auto" caption="생성시작일^생성종료일^조회시작일^조회종료일^등록번호^환자명^진료일^퇴원일^급종^유형^상병코드" colsep="^" colwidth="100, 100, 40, 36, 100, 100, 100, 32, 50, 53, 90" rowheader="seq" rowsep="|" style="left:0px; top:604px; width:830px; height:175px; ">
- <col ref="cfromdd" type="output" format="yyyy-mm-dd"/>
- <col ref="ctodd" type="output" format="yyyy-mm-dd"/>
- <col ref="fromdd" type="output" visibility="hidden"/>
- <col ref="todd" type="output" visibility="hidden"/>
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output" style="left:697px; top:23px; width:100px; height:23px; "/>
- <col ref="indd" type="output" format="yyyy-mm-dd"/>
- <col ref="dschdd" type="output" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="insukind" type="output"/>
- <col ref="suppkind" type="output"/>
- <col ref="diagcd" type="output"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|