123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?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>
- <celltret>
- <celltretlist>
- <codenm/>
- <codenm2/>
- <monthcnt01/>
- <monthcnt02/>
- <monthcnt03/>
- <monthcnt04/>
- <monthcnt05/>
- <monthcnt06/>
- <monthcnt07/>
- <monthcnt08/>
- <monthcnt09/>
- <monthcnt10/>
- <monthcnt11/>
- <monthcnt12/>
- <monthcnttotal/>
- <beforeyearcnt/>
- <cntaddper/>
- <prcpcd/>
- </celltretlist>
- <daycelltretlist>
- <codenm/>
- <codenm2/>
- <daycnt01/>
- <daycnt02/>
- <daycnt03/>
- <daycnt04/>
- <daycnt05/>
- <daycnt06/>
- <daycnt07/>
- <daycnt08/>
- <daycnt09/>
- <daycnt10/>
- <daycnt11/>
- <daycnt12/>
- <daycnt13/>
- <daycnt14/>
- <daycnt15/>
- <daycnt16/>
- <daycnt17/>
- <daycnt18/>
- <daycnt19/>
- <daycnt20/>
- <daycnt21/>
- <daycnt22/>
- <daycnt23/>
- <daycnt24/>
- <daycnt25/>
- <daycnt26/>
- <daycnt27/>
- <daycnt28/>
- <daycnt29/>
- <daycnt30/>
- <daycnt31/>
- <daycnttotal/>
- <beforeyearcnt/>
- <cntaddper/>
- <prcpcd/>
- </daycelltretlist>
- </celltret>
- </main>
- <send>
- <req>
- <execfromdd/>
- <exectodd/>
- <execfromdd2/>
- <exectodd2/>
- <prcpexecdeptcd/>
- <searchflag>P</searchflag>
- <monthdayflag/>
- </req>
- </send>
- <init>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 시행부서처방도 가져오기 위해서 현재 로그인 한 사람의 실제 근무지를 가져온다.
- model.setValue("/root/send/req/prcpexecdeptcd", getUserInfo("dutplcecd"));
- model.refresh();
-
- rdo_monthday.select(1);
- model.setValue("/root/send/req/monthdayflag", "D");
-
- fSetDefaultDD();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /* @group : 처방별 조혈모세포처리건수
- * @ver : 2008.08.29
- * @by : 김은지
- * @type : function
- * @access : public
- * @desc : 월별/일별 디폴트 날짜 지정
- * @param :
- */
- function fSetDefaultDD(){
- var scurrentdd = getCurrentDate();
- if(model.getValue("/root/send/req/monthdayflag") == "D"){
- model.setValue("/root/send/req/execfromdd", scurrentdd);
- model.setValue("/root/send/req/exectodd", scurrentdd);
- model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
- }
- else{
- var scurrentdd2 = scurrentdd.toDate().getAddDate(-30).getDateFormat("YYYYMMDD");
- model.setValue("/root/send/req/execfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/exectodd", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/execfromdd2", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/exectodd2", scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
- }
- model.refresh();
- }
-
- /* @group : 처방별 조혈모세포처리건수
- * @ver : 2008.07.16
- * @by : 박중규
- * @type : function
- * @access : public
- * @desc : 이식처리건수
- * @param :
- */
- function fGetCellTrpeInfo(){
- if(model.getValue("/root/send/req/monthdayflag") == "D"){
- submit("TRABS10202");
- }
- else{
- submit("TRABS10201");
- }
- if(model.getValue("/root/send/req/monthdayflag") == "M"){
- // 전년 대비 증감율을 구한다.
- var nodelist = instance1.selectNodes("/root/main/celltret/celltretlist");
- for (var i = 1; i <= nodelist.length ; i ++) {
- var iMonthCntTotal = model.getValue("/root/main/celltret/celltretlist[" + i + "]/monthcnttotal");
- var iBeforeYearCnt = model.getValue("/root/main/celltret/celltretlist[" + i + "]/beforeyearcnt");
- if ( iMonthCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
- model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", "");
- } else {
- var dCntAddPer = ((parseFloat(iMonthCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- model.setValue("/root/main/celltret/celltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- else{
- // 전월도 대비 증감율을 구한다.
- var nodelist2 = instance1.selectNodes("/root/main/celltret/daycelltretlist");
- for (var i = 1; i <= nodelist2.length ; i ++) {
- var iDayCntTotal = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/daycnttotal");
- var iBeforeYearCnt = model.getValue("/root/main/celltret/daycelltretlist[" + i + "]/beforeyearcnt");
- if ( iDayCntTotal == "" || iBeforeYearCnt == "" || iBeforeYearCnt == 0 ) {
- model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", "");
- } else {
- var dCntAddPer = ((parseFloat(iDayCntTotal) - parseFloat(iBeforeYearCnt)) / parseFloat(iBeforeYearCnt)) * 100;
- model.setValue("/root/main/celltret/daycelltretlist[" + i + "]/cntaddper", (Math.round(dCntAddPer * 100) / 100));
- }
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRABS10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
- <submission id="TRABS10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/celltret"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <datagrid id="grd_daycelltret" nodeset="/root/main/celltret/daycelltretlist" caption="처방코드^처방내용^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일^Total^전월도^증감율^^7)^8)" colsep="^" colwidth="70, 250, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 63, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" fixedcols="3" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:81px; width:1194px; height:600px; text-align:center; ">
- <col ref="codenm" type="output"/>
- <col ref="codenm2" type="output"/>
- <col ref="daycnt01" type="output"/>
- <col ref="daycnt02"/>
- <col ref="daycnt03"/>
- <col ref="daycnt04"/>
- <col ref="daycnt05"/>
- <col ref="daycnt06"/>
- <col ref="daycnt07"/>
- <col ref="daycnt08"/>
- <col ref="daycnt09"/>
- <col ref="daycnt10"/>
- <col ref="daycnt11"/>
- <col ref="daycnt12"/>
- <col ref="daycnt13"/>
- <col ref="daycnt14"/>
- <col ref="daycnt15"/>
- <col ref="daycnt16"/>
- <col ref="daycnt17"/>
- <col ref="daycnt18"/>
- <col ref="daycnt19"/>
- <col ref="daycnt20"/>
- <col ref="daycnt21"/>
- <col ref="daycnt22"/>
- <col ref="daycnt23"/>
- <col ref="daycnt24"/>
- <col ref="daycnt25"/>
- <col ref="daycnt26"/>
- <col ref="daycnt27"/>
- <col ref="daycnt28"/>
- <col ref="daycnt29"/>
- <col ref="daycnt30"/>
- <col ref="daycnt31"/>
- <col ref="daycnttotal"/>
- <col ref="beforeyearcnt"/>
- <col ref="cntaddper"/>
- </datagrid>
- <datagrid id="grd_monthcelltret" nodeset="/root/main/celltret/celltretlist" caption="처방코드^처방내용^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^Total^전년도^증감율^^7)^8)" colsep="^" colwidth="70, 250, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 63, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" fixedcols="3" focuscolor="#b9e5fb" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:81px; width:1194px; height:600px; text-align:center; ">
- <col ref="codenm" type="output"/>
- <col ref="codenm2" type="output"/>
- <col ref="monthcnt01" type="output"/>
- <col ref="monthcnt02"/>
- <col ref="monthcnt03"/>
- <col ref="monthcnt04"/>
- <col ref="monthcnt05"/>
- <col ref="monthcnt06"/>
- <col ref="monthcnt07"/>
- <col ref="monthcnt08"/>
- <col ref="monthcnt09"/>
- <col ref="monthcnt10"/>
- <col ref="monthcnt11"/>
- <col ref="monthcnt12"/>
- <col ref="monthcnttotal"/>
- <col ref="beforeyearcnt"/>
- <col ref="cntaddper"/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:210px; height:13px; ">처방별 조혈모세포처리 현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
- <button id="button2" class="btn2_letter4" style="left:1129px; top:56px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/req/monthdayflag") == "M") {
- var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(월별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_monthcelltret.saveExcel(fileName);
- }
- }
- else{
- var fileName = window.fileDialog("save", ",", false, "처방별조혈모세포처리현황(일별)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_daycelltret.saveExcel(fileName);
- }
- }
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(적용일) :</caption>
- <caption id="caption7" class="search_no_b" style="left:233px; top:10px; width:12px; height:17px; ">~</caption>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCellTrpeInfo();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1107px; y1:9px; x2:1107px; y2:31px; "/>
- <input id="ipt_execfromdd" ref="/root/send/req/execfromdd" class="input_s_essential" inputtype="date" maxlength="6" style="left:130px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/send/req/execfromdd");
- var oCurYear = fromdd.toDate().getDateFormat("YYYY");
- var oCurMonth = fromdd.toDate().getDateFormat("MM");
- var flag = "";
- var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
- var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
- if(rdo_monthday.value == "D"){
- flag = "M";
- }else {
- flag = "Y";
- }
-
-
-
- if(flag == "M" && oMaxDay == fromdd.toDate().getDateFormat("DD")){
- model.setValue("/root/send/req/execfromdd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
- }else{
- model.setValue("/root/send/req/execfromdd2", (fromdd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_exectodd" ref="/root/send/req/exectodd" class="input_s_essential" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var todd = model.getValue("/root/send/req/exectodd");
- var oCurYear = todd.toDate().getDateFormat("YYYY");
- var oCurMonth = todd.toDate().getDateFormat("MM");
- var flag = "";
- var oMaxDay = new Date(new Date(oCurYear, oCurMonth, 1)-86400000).getDate();
- var oMaxDay2 = new Date(new Date(oCurYear, oCurMonth -1, 1)-86400000).getDate();
- if(rdo_monthday.value == "D"){
- flag = "M";
- }else {
- flag = "Y";
- }
-
-
- if(flag == "M" && oMaxDay == todd.toDate().getDateFormat("DD")){
- model.setValue("/root/send/req/exectodd2", (oCurYear + oCurMonth + "01").toDate().getAddDate(-1, flag).getDateFormat("YYYYMM") + oMaxDay2);
- }else{
- model.setValue("/root/send/req/exectodd2", (todd ).toDate().getAddDate(-1, flag).getDateFormat("YYYYMMDD"));
- }
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <select1 id="rdo_monthday" ref="/root/send/req/monthdayflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:358px; top:10px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>월별</label>
- <value>M</value>
- </item>
- <item>
- <label>일별</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDefaultDD();
- var fromdd = model.getValue("/root/send/req/execfromdd");
- var todd = model.getValue("/root/send/req/exectodd");
- if(rdo_monthday.value == "D"){
- grd_monthcelltret.attribute("visibility") = "hidden";
- grd_daycelltret.attribute("visibility") = "visible";
-
- ipt_execfromdd.attribute("maxlength") = "8";
- ipt_exectodd.attribute("maxlength") = "8";
- ipt_execfromdd2.attribute("maxlength") = "8";
- ipt_exectodd2.attribute("maxlength") = "8";
-
- ipt_execfromdd.attribute("format") = "yyyy-mm-dd";
- ipt_exectodd.attribute("format") = "yyyy-mm-dd";
- ipt_execfromdd2.attribute("format") = "yyyy-mm-dd";
- ipt_exectodd2.attribute("format") = "yyyy-mm-dd";
- }
- else{
- grd_monthcelltret.attribute("visibility") = "visible";
- grd_daycelltret.attribute("visibility") = "hidden";
-
- ipt_execfromdd.attribute("format") = "yyyy-mm";
- ipt_exectodd.attribute("format") = "yyyy-mm";
- ipt_execfromdd2.attribute("format") = "yyyy-mm";
- ipt_exectodd2.attribute("format") = "yyyy-mm";
- model.setValue("/root/send/req/execfromdd2", (fromdd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/exectodd2", (todd + 1).toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:492px; top:6px; width:112px; height:17px; ">비교(적용일) :</caption>
- <input id="ipt_execfromdd2" ref="/root/send/req/execfromdd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:607px; top:5px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_no_b" visibility="hidden" style="left:710px; top:7px; width:12px; height:17px; ">~</caption>
- <input id="ipt_exectodd2" ref="/root/send/req/exectodd2" class="input_s_essential" visibility="hidden" inputtype="date" style="left:725px; top:5px; width:100px; height:19px; "/>
- </group>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">처방별 조혈모세포처리 현황</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|