123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMSDT01000.사회사업 상담 환자 실적.xrw
- * 설 명 : 사회사업 상담 환자 실적
- * 작 성 자 : 황혜민
- * 작 성 일 : 2008.09.02
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <cnstinfo>
- <cnstlist>
- <cond/>
- <bizfilecommon/>
- <bizfilereform/>
- <bizfilemind/>
- <bizfileorgantrans/>
- <bizfilehospis/>
- <sum/>
- <bfsum/>
- <bfcompare/>
- </cnstlist>
- </cnstinfo>
- </main>
- <send>
- <reqdata>
- <fromdd/>
- <todd/>
- <sumflag>2</sumflag>
- <achivflag>A1</achivflag>
- <cdgrupid/>
- <fromyy/>
- </reqdata>
- </send>
- <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();
- ]]>
- </script>
- <submission id="TRSDT01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cnstinfo"/>
- <submission id="TRSDT01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstinfo"/>
- <submission id="TRSDT01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstinfo"/>
- <bind id="bfcompare" ref="/root/main/cnstinfo/cnstlist/bfcompare" calculate="../sum - ../bfsum"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 조회기간 그리드초기화
- =========================================================================================================================================*/
- function fInit(){
-
- var currentDate = getCurrentDate();
- var LastDate=currentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDateYM=LastDate.substr(0,6);
-
- model.setValue("/root/send/reqdata/fromdd", LastDateYM );
- model.setValue("/root/send/reqdata/todd" , LastDateYM);
-
- // 그리드초기화
- model.removeNodeset("/root/main/cnstinfo/cnstlist");
-
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- function fDefaultCheck(){
- var fromdd = model.getValue("/root/send/reqdata/fromdd") +"01";
- var todd = model.getValue("/root/send/reqdata/todd")+ "01";
- var dateintval=getDateInterval(fromdd,todd);
-
- if( isNull(fromdd) == true || isNull(todd) == true){
- messageBox("조회기간을", "C001");
- model.setFocus("ipt_fromdd");
- return false;
- }
- // dataHelper 함수 isValidDateTime
- if( !isValidDateTime(fromdd, 'YYYYMMDD') || !isValidDateTime(todd, 'YYYYMMDD')){
- messageBox("입력하신 일이 정확한 날짜타입이 아닙니다.", "E999", "");
- model.setFocus("ipt_fromdd");
- model.removeNodeset("/root/main/cnstinfo");
- model.refresh();
- return false;
- }
- if(fromdd>todd)
- {
- messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
- model.setFocus("ipt_todd");
- model.removeNodeset("/root/main/cnstinfo");
- model.refresh();
- return false;
-
- }
-
- //alert(dateintval);
- if(dateintval>=365)
- {
- model.removeNodeset("/root/main/cnstinfo");
- model.refresh();
- messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
- model.setFocus("ipt_fromdd");
- model.removeNodeset("/root/main/cnstinfo");
- model.refresh();
- return false;
- }
- else
- {
- return true;
- }
-
- }
-
- function fAllSearch(){
- // model.resetInstanceNode("/root/main/cnstinfo/cnstlist");
- model.removeNodeset("/root/main/cnstinfo/cnstlist");
-
- var val = model.getValue("/root/send/reqdata/sumflag");
-
- switch(val){
- // 월별
- case("2"):
- fDisableGrd(false);
- var fromyy= model.getValue("/root/send/reqdata/fromdd");
- model.setValue("/root/send/reqdata/fromyy", fromyy.substr(0,4));
- fPerMonthSearch();
- break;
- // 임상과
- case("3"):
- fDisableGrd(true);
- fClinicalSearch();
- break;
- // 의뢰유형별
- case("4"):
- fDisableGrd(true);
- fSetSendValue("A0205");
- fSearch();
- break;
- // 연령별
- case("5"):
- fDisableGrd(true);
- fSetSendValue("A0178");
- fSearch();
- break;
- // 직업별
- case("6"):
- fDisableGrd(true);
- fSetSendValue("M0068");
- fSearch();
- break;
- // 학력별
- case("7"):
- fDisableGrd(true);
- fSetSendValue("M0069");
- fSearch();
- break;
- }
- }
- /**========================================================================================================================================
- *-- 접수환자/상담환자실적조회 (STS.SDTSCNST)
- *-- 연령기준별 (A0178) - sumflag = '4'
- *-- 의뢰유형별 (A0205) - sumflag = '3'
- *-- 직업별(M0068) - sumflag = '5'
- *-- 학력별(M0069) - sumflag = '6'
- =========================================================================================================================================*/
- function fSearch(){
- if(!fDefaultCheck()) return;
-
- if(submit("TRSDT01001") == true){
-
- }else{
- messageBox("조회를", "E009");
- }
- }
- /**========================================================================================================================================
- *-- 접수/상담환자실적 조회(STS.SDTSCNST)
- -- 임상과별 - sumflag = '2'
- =========================================================================================================================================*/
- function fClinicalSearch(){
- if(!fDefaultCheck()) return;
-
- if(submit("TRSDT01002") == true){
-
- }else{
- messageBox("조회를", "E009");
- }
- }
-
- function fPerMonthSearch(){
- if(!fDefaultCheck()) return;
-
- if(submit("TRSDT01003") == true){
- if(grd_cnst.rows - grd_cnst.fixedRows <=1){
- model.removeNodeset("/root/main/cnstinfo/cnstlist");
- model.refresh();
- return;
- }
- fGetPerMonthSum();
-
- }else{
- messageBox("조회를", "E009");
- }
- }
- /**========================================================================================================================================
- * 조회구분 변경했을때
- =========================================================================================================================================*/
-
- function fDisableGrd(flag){
-
- grd_cnst.colHidden(7) = flag;
- grd_cnst.colHidden(8) = flag;
- }
-
- function fSetSendValue(cdgrupid){
- model.setValue("/root/send/reqdata/cdgrupid", cdgrupid);
- }
- function fCmbChange(){
- //model.removeNodeset("/root/main/cnstinfo/cnstlist");
- //model.refresh();
-
- fAllSearch();
-
- // var val = model.getValue("/root/send/reqdata/sumflag");
- //
- // switch(val){
- // // 월별
- // case("2"):
- // fDisableGrd(false);
- // var fromyy= model.getValue("/root/send/reqdata/fromdd");
- // model.setValue("/root/send/reqdata/fromyy", fromyy.substr(0,4));
- // fPerMonthSearch();
- // break;
- // // 임상과
- // case("3"):
- // fDisableGrd(true);
- // fClinicalSearch();
- // break;
- // // 의뢰유형별
- // case("4"):
- // fDisableGrd(true);
- // fSetSendValue("A0205");
- // fSearch();
- // break;
- // // 연령별
- // case("5"):
- // fDisableGrd(true);
- // fSetSendValue("A0178");
- // fSearch();
- // break;
- // // 직업별
- // case("6"):
- // fDisableGrd(true);
- // fSetSendValue("M0068");
- // fSearch();
- // break;
- // // 학력별
- // case("7"):
- // fDisableGrd(true);
- // fSetSendValue("M0069");
- // fSearch();
- // break;
- // }
- }
- /**========================================================================================================================================
- * 접수환자실적/상담환자실적 변경했을때
- =========================================================================================================================================*/
-
- function fAchivflagChagne(){
- // 접수환자실적 A1, 상담환자실적 A2
- if(rdo_achivflag.value == 'A1'){
- model.removeNodeset("/root/main/cnstinfo/cnstlist");
- cmb_sumflaga1.visible = true;
- cmb_sumflaga2.visible = false;
- cmb_sumflaga1.value = 2;
- }else{
- model.removeNodeset("/root/main/cnstinfo/cnstlist");
- cmb_sumflaga1.visible = false;
- cmb_sumflaga2.visible = true;
- cmb_sumflaga2.value = 2;
- }
- model.refresh();
-
- }
- /*
- * 전월대비 실적비교 합계-전월실적
- ===========================================*/
-
- function fGetPerMonthSum(){
- if(grd_cnst.rows - grd_cnst.fixedRows >1){
- var sStat = 0;
- var insRow = grd_cnst.rows;
- grd_cnst.addRow(insRow, false);
- grd_cnst.valueMatrix(insRow, grd_cnst.colRef("cond") ) = "전기간대비실적비교";
-
- for(var i= grd_cnst.colRef("bizfilecommon"); i<= grd_cnst.colRef("sum"); i++){
- var bfResult = eval(grd_cnst.valueMatrix(insRow -1 , i));
- var sSum = eval(grd_cnst.valueMatrix(insRow-2, i));
-
- sStat = eval(sSum)- eval(bfResult) ;
- grd_cnst.valueMatrix(insRow, i ) = eval(sStat);
- //alert("sSum "+ sSum +"bfResult " + bfResult + "sStat " + sStat);
- }
- grd_cnst.valueMatrix(insRow-1, grd_cnst.colRef("bfcompare")) = "";
- grd_cnst.valueMatrix(insRow, grd_cnst.colRef("bfcompare")) = "";
- }
- }
- /**========================================================================================================================================
- * 엑셀저장 버튼 클릭시
- =========================================================================================================================================*/
- function fExcel() {
- if (grd_cnst.rows <= 1) {
- messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "사회사업접수상담환자실적", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_cnst.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:224px; 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[
- fInit();
- ]]>
- </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:195px; height:13px; ">사회사업 접수/상담 환자 실적</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1190px; y2:73px; "/>
- <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" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // fCmbChange();
- fAllSearch();
- ]]>
- </script>
- </button>
- <caption id="caption23" class="search_name" style="left:240px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
- <line id="line2" style="x1:1113px; y1:7px; x2:1113px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_sumflaga2" ref="/root/send/reqdata/sumflag" appearance="minimal" style="left:335px; top:10px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>월별</label>
- <value>2</value>
- </item>
- <item>
- <label>임상과별</label>
- <value>3</value>
- </item>
- <item>
- <label>의뢰유형별</label>
- <value>4</value>
- </item>
- <item>
- <label>연령별</label>
- <value>5</value>
- </item>
- <item>
- <label>직업별</label>
- <value>6</value>
- </item>
- <item>
- <label>학력별</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fCmbChange();
- ]]>
- </script>
- </select1>
- <caption id="cap1" style="left:670px; top:8px; width:25px; height:20px; text-align:center; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/reqdata/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:572px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/reqdata/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:695px; top:8px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:480px; top:10px; width:100px; height:17px; ">조회기간 :</caption>
- <select1 id="rdo_achivflag" ref="/root/send/reqdata/achivflag" overflow="visible" appearance="full" cols="4" rows="1" style="left:30px; top:10px; width:195px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>접수환자실적</label>
- <value>A1</value>
- </item>
- <item>
- <label>상담환자실적</label>
- <value>A2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fAchivflagChagne();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sumflaga1" ref="/root/send/reqdata/sumflag" appearance="minimal" style="left:335px; top:10px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>월별</label>
- <value>2</value>
- </item>
- <item>
- <label>의뢰유형별</label>
- <value>4</value>
- </item>
- <item>
- <label>연령별</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fCmbChange();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:51px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_cnst" nodeset="/root/main/cnstinfo/cnstlist" class="datagrid2" caption="구분^일반의료^재활의료^정신의료^장기이식^호스피스^합계^전월실적^전월대비실적비교^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="201, 120, 120, 120, 120, 120, 120, 120, 128" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:1px; top:76px; width:1190px; height:664px; ">
- <col ref="cond" format="yyyy-mm" style="text-align:center; "/>
- <col ref="bizfilecommon" style="text-align:center; "/>
- <col ref="bizfilereform" style="text-align:center; "/>
- <col ref="bizfilemind" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="bizfileorgantrans" style="text-align:center; "/>
- <col ref="bizfilehospis" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sum" style="text-align:center; "/>
- <col ref="bfsum" style="text-align:center; "/>
- <col ref="bfcompare" format="#.9" style="text-align:center; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|