123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMSDT11000_의료협력병의원의사별진료의뢰통계.xrw
- * 설 명 : 의료협력병의원의사별진료의뢰통계
- * 작 성 자 : 임여원
- * 작 성 일 : 2008.12.12
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <brgstincmexpspres>
- <brgstincmexpsprescond>
- <areanm/>
- <coophospnm/>
- <drnm/>
- <lstconscnt/>
- <conscnt/>
- <cnt/>
- <cntpet/>
- <clsmatyn/>
- <coopyn/>
- </brgstincmexpsprescond>
- </brgstincmexpspres>
- <search>
- <reqflag>1</reqflag>
- <fromdd/>
- <todd/>
- <fromentryy/>
- </search>
- </main>
- <send>
- <reqdata/>
- </send>
- <init/>
- <hidden>
- <init>
- <comcd/>
- </init>
- </hidden>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fReqBrgstIncmExpsCond();
- ]]>
- </script>
- <submission id="TRSDT04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cnstinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRSDT12001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/brgstincmexpspres"/>
- <bind id="cntpet" ref="/root/main/brgstincmexpspres/brgstincmexpsprescond/cntpet" calculate="(../cnt div ../lstconscnt) *100"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 조회기간 그리드초기화
- =========================================================================================================================================*/
- function fInit()
- {
- model.removeNodeset("/root/main/brgstincmexpspres");
-
- var CurrentDate=getCurrentDate();
-
- var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM=LastDate.substr(0,6);
- var CurrentDateYY=CurrentDate.substring(0,4);
-
- model.makeValue("/root/main/search/fromentryy",CurrentDateYY);
- model.makeValue("/root/main/search/toentryy",CurrentDateYY);
-
- model.makeValue("/root/main/search/fromdd",LastDateYM);
- model.makeValue("/root/main/search/todd",LastDateYM);
-
- ipt_fromentryy.visible=false;
-
- zbcfGetCodeList( new Array("A0429"),new Array("/root/hidden/init/comcd"));
- model.refresh();
-
- }
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- function fReqBrgstIncmExpsCond()
- {
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
-
- var fromdd=model.getValue("/root/main/search/fromdd");
- var todd=model.getValue("/root/main/search/todd");
- var reqflag=model.getValue("/root/main/search/reqflag");
- var fromentryy=model.getValue("/root/main/search/fromentryy");
-
- model.makeValue("/root/send/reqdata/reqflag",reqflag);
-
- if(reqflag=='1') //조회 구분이 월 일때
- {
- if(isNull(fromdd))
- {
- messageBox("조회시작일자는","I003");
- model.setFocus("ipt_fromdd");
- return;
- }
- if(isNull(todd))
- {
- messageBox("조회종료일자는","I003");
- model.setFocus("ipt_todd");
- return;
- }
- var dateintval=getDateInterval(fromdd+"01",todd+"31");
- if(fromdd>todd)
- {
- messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- model.setFocus("ipt_todd");
- return;
- }
- if(dateintval>"370")
- {
- messageBox("조회기간은 최대 1년까지 할 수 있습니다","I");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- model.makeValue("/root/send/reqdata/fromdd",fromdd);
- model.makeValue("/root/send/reqdata/todd",todd);
- model.removeNodeset("/root/send/reqdata/fromentryy");
-
- if(fromdd==todd)
- {
- //alert(fromdd);
- model.makeValue("/root/send/reqdata/dateflag","1"); // 조회월이 같으면 전기간을 전월로 하기 위해 dateflag셋팅
-
- }
- else
- {
- model.makeValue("/root/send/reqdata/dateflag","2");
- }
-
-
- }
- else //조회구분이 년도 일때
- {
- if(isNull(fromentryy))
- {
- messageBox("조회시작연도는","I003");
- model.setFocus("ipt_fromentryy");
- return;
- }
- model.removeNodeset("/root/send/reqdata/fromdd");
- model.removeNodeset("/root/send/reqdata/todd");
- model.removeNodeset("/root/send/reqdata/dateflag");
- model.makeValue("/root/send/reqdata/fromentryy",fromentryy);
-
- }
-
-
-
- model.refresh();
- submit("TRSDT12001");
-
- model.refresh();
-
- }
-
- /**========================================================================================================================================
- * 초기화
- =========================================================================================================================================*/
- function fResetBrgstIncmExps()
- {
- model.removeNodeset("/root/main/brgstincmexpspres");
- model.refresh();
- }
- /**========================================================================================================================================
- * 엑셀저장 버튼 클릭시
- =========================================================================================================================================*/
- function fExcel() {
- if (grd_brgstincmexpsprescond.rows <= 2) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "의료협력병의원의사별진료의뢰통계", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_brgstincmexpsprescond.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;1,1191;" 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:230px; height:14px; ">의료협력병의원의사별진료의뢰통계</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_search0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fResetBrgstIncmExps();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:232px; height:14px; ">의료협력병의원의사별진료의뢰통계</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:1190px; y2:72px; "/>
- <group id="group4" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button2" class="btn1_letter2" navindex="6" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqBrgstIncmExpsCond();
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap1" style="left:409px; top:7px; width:25px; height:20px; text-align:center; ">~</caption>
- <caption id="caption2" class="search_name" style="left:229px; top:9px; width:100px; height:17px; ">조회기간:</caption>
- <input id="ipt_fromentryy" ref="/root/main/search/fromentryy" class="input_search" navindex="4" inputtype="date" format="yyyy" style="left:337px; top:7px; width:58px; height:19px; "/>
- <caption id="caption23" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" navindex="5" inputtype="date" format="yyyy-mm" style="left:445px; top:7px; width:73px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm" style="left:337px; top:7px; width:73px; height:19px; "/>
- <select1 id="cmb_reqflag" ref="/root/main/search/reqflag" navindex="3" appearance="minimal" style="left:110px; top:9px; width:85px; 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 CurrentDate=getCurrentDate();
- if(cmb_reqflag.value=='1')
- {
- ipt_fromdd.visible=true;
- ipt_todd.visible=true;
- ipt_fromentryy.visible=false;
- model.removeNodeset("/root/send/reqdata/entryy");
- }
- else
- {
- ipt_fromdd.visible=false;
- ipt_todd.visible=false;
- ipt_fromentryy.visible=true;
-
- cap1.visible=false;
- model.removeNodeset("/root/send/reqdata/fromdd");
- model.removeNodeset("/root/send/reqdata/todd");
- }
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- fReqBrgstIncmExpsCond(); //조회함수
- model.refresh();
-
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excel" class="btn2_letter4" navindex="7" style="left:1126px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_brgstincmexpsprescond" nodeset="/root/main/brgstincmexpspres/brgstincmexpsprescond" class="datagrid2" caption="caption3^지역^caption1^병원명^caption2^의사별^전기간의뢰건수^조회기간의뢰건수^증감(전기간대비)^증감(전기간대비)^동문여부^협력여부^reply^장소^장소^장소^장소명^장소^담당자|caption3^지역^caption1^병원명^caption2^의사별^전기간의뢰건수^조회기간의뢰건수^건수^증감율(%)^동문여부^협력여부^reply^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="26, 178, 33, 227, 15, 138, 118, 118, 96, 96, 87, 88" dataheight="25" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:76px; width:1190px; height:664px; ">
- <col ref="areacd" visibility="hidden"/>
- <col ref="areanm" style="text-align:center; "/>
- <col ref="coophospcd" visibility="hidden"/>
- <col ref="coophospnm"/>
- <col ref="coopdrcd" visibility="hidden"/>
- <col ref="drnm" style="text-align:center; "/>
- <col ref="lstconscnt" format="#,###" style="text-align:center; "/>
- <col ref="conscnt" format="(-)#,###" style="text-align:center; "/>
- <col ref="cnt" format="(-)#,###" style="text-align:center; "/>
- <col ref="cntpet" format="(-)#.99" style="text-align:center; "/>
- <col ref="clsmatyn" style="text-align:center; "/>
- <col ref="coopyn" style="text-align:center; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|