123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <?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>복약상담 통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <statslist>
- <item>
- <title/>
- <inreplcnt/>
- <inreplpatcnt/>
- <innonreplcnt/>
- <innonreplpatcnt/>
- <inexeccnt/>
- <inpatcnt/>
- <inprcpcnt/>
- <outreplcnt/>
- <outreplpatcnt/>
- <outnonreplcnt/>
- <outnonreplpatcnt/>
- <outexeccnt/>
- <outpatcnt/>
- <outprcpcnt/>
- </item>
- </statslist>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchchosflag/>
- <srchstattype1/>
- <srchstattype2/>
- <srchwardcd/>
- <srchcdgrupid/>
- <formflag1>1</formflag1>
- <formflag2/>
- <srchdeptcd/>
- <srchdrid/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <baseinfo>
- <spcldrug/>
- <efcycd/>
- </baseinfo>
- <srchdrugcd/>
- </send>
- <init>
- <baseinfo>
- <tmedcnst>
- <A0036/>
- </tmedcnst>
- </baseinfo>
- </init>
- <hidden>
- <srchinfo>
- <wardcd/>
- <wardnm/>
- </srchinfo>
- <baseinfo>
- <spcldrug>
- <A0006/>
- </spcldrug>
- </baseinfo>
- <receivedrugcd>/root/temp/drugcd</receivedrugcd>
- <orddept>
- <dept/>
- </orddept>
- <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
- <srchTmed>
- <TMED>
- <cdid/>
- <cdnm/>
- </TMED>
- </srchTmed>
- </hidden>
- <temp>
- <srchinfo>
- <ward/>
- </srchinfo>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- <drugcd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //복약구분
- //model.removenode("/root/hidden/srchTmed/TMED");
- //pharmacyGetCodeList( new Array("TMED"), new Array("/root/hidden/srchTmed") );
-
- //aezfSetSuppDeptcd();
- // 진료과/진료의 조회
- submit("TRPMOCOM01");
- astfAddCombo("/root/init", "orddeptcd", "cd,nm", ",전체");
-
- //병동 Combo 조회
- model.setValue("/root/send/deptinfo/deptflag", "W");
- submit("TRADT10203");
- astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
-
- // // 진료과세팅
- // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
- // if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
- // astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
- // }
-
- // 2011.03.17 pymi 복약상담
- model.makeNode("/root/init/baseinfo/tmedcnst/A0036") ;
- submit("TRADB00109");
- astfAddCombo("/root/init/baseinfo/tmedcnst", "A0036", "cdid,cdnm", "T,전체");
- // (e)
- var rdo_children = rdo_formcd.children;
- rdo_children.item(1).attribute("disable") = true;
- model.setValue("/root/send/srchfromdd", getNewDate().getAddDate(-7, "D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/srchtodd", getCurrentDate());
- model.setValue("/root/send/srchchosflag", "A");
- model.setValue("/root/send/srchstattype1", "1");
- model.setValue("/root/send/srchstattype2", "1");
- rexObj = makeReportPreview(0,106,1195,634);
- // fCtrlDataSheet();
- chk_chosflag.visible = false;
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRADB00001"/>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADS01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRADS01604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
- <submission id="TRADS01603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
- <submission id="TRADS01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
- <submission id="TRADB00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo/tmedcnst"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // var rexObj;
- // function fCtrlDataSheet() {
- // var selectVal = model.getValue("/root/send/srchstattype1");
- // if (selectVal == "1") {
- // removeReportPreview(rexObj);
- // grd_replDaily.visible = true;
- // } else {
- // makeReportPreview(0,106,1195,634, rexObj);
- // grd_replDaily.visible = false;
- // }
- // }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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:200px; height:14px; ">복약상담 통계</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:100px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:85px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:76px; "/>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkVal1 = model.getValue("/root/send/srchstattype1");
- var chkVal2 = model.getValue("/root/send/srchstattype2");
- if (chkVal1 == "1") {
- if (submit("TRADS01601")) {
- if (chkVal2 == "1") {
- exeReportPreview("RPADS01601", "XMLSTR", "/root/main/statslist/item");
- } else if (chkVal2 == "2") {
- exeReportPreview("RPADS01602", "XMLSTR", "/root/main/statslist/item");
- }
- }
- } else if (chkVal1 == "2") {
- if (submit("TRADS01602")) {
- if (chkVal2 == "1") {
- exeReportPreview("RPADS01603", "XMLSTR", "/root/main/statslist/item");
- } else if (chkVal2 == "2") {
- exeReportPreview("RPADS01604", "XMLSTR", "/root/main/statslist/item");
- }
- }
- } else if (chkVal1 == "3") {
- if (submit("TRADS01603")) {
- if (chkVal2 == "1") {
- exeReportPreview("RPADS01605", "XMLSTR", "/root/main/statslist/item");
- } else if (chkVal2 == "2") {
- exeReportPreview("RPADS01606", "XMLSTR", "/root/main/statslist/item");
- }
- }
- } else if (chkVal1 == "4") {
- if (submit("TRADS01604")) {
- if (chkVal2 == "1") {
- exeReportPreview("RPADS01607", "XMLSTR", "/root/main/statslist/item");
- } else if (chkVal2 == "2") {
- exeReportPreview("RPADS01608", "XMLSTR", "/root/main/statslist/item");
- }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">일자 :</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:15px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:15px; width:100px; height:19px; "/>
- <caption id="caption5" class="search_no_b" style="left:213px; top:15px; width:12px; height:17px; ">~</caption>
- <select1 id="combo1" ref="/root/send/srchcdgrupid" class="combo_search" appearance="minimal" style="left:110px; top:54px; width:195px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/tmedcnst/A0036">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:15px; top:55px; width:86px; height:17px; ">복약구분 :</caption>
- <caption id="caption4" class="search_name" style="left:620px; top:15px; width:86px; height:17px; ">통계양식 :</caption>
- <select1 id="rdo_formcd" ref="/root/send/srchstattype2" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:710px; top:35px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일자별</label>
- <value>1</value>
- </item>
- <item>
- <label>월별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:345px; top:55px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption12" class="search_name" style="left:620px; top:55px; width:80px; height:17px; ">의사 :</caption>
- <caption id="caption13" class="search_name" style="left:815px; top:55px; width:80px; height:17px; ">병동 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:425px; top:55px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
- model.setValue("/root/send/srchdrid", "");
- cmb_orddr.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddr" ref="/root/send/srchdrid" class="combo_search" appearance="minimal" style="left:690px; top:55px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button4" class="icon_search" style="left:1085px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_ward.visible==true){
- chk_ward.visible = false;
- }else {
- chk_ward.visible = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_stattype1" ref="/root/send/srchstattype1" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:710px; top:15px; width:300px; height:20px; 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>
- <item>
- <label>퇴원상담결과</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:885px; top:55px; width:196px; height:19px; "/>
- <select1 id="chk_chosflag" ref="/root/send/srchchosflag" class="radio_search" appearance="full" cols="2" overflow="visible" sep="," style="left:470px; top:15px; width:90px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <select id="chk_ioflagall" ref="/root/send/srchchosflag" overflow="visible" appearance="full" cols="3" style="left:420px; top:15px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkType = model.getValue("/root/send/srchchosflag");
- if (chkType.indexOf("A") > -1) {
- model.setValue("/root/send/srchchosflag", "A");
- chk_chosflag.visible = false;
- } else {
- model.setValue("/root/send/srchchosflag", "I");
- chk_chosflag.visible = true;
- chk_chosflag.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="caption7" class="search_name" style="left:346px; top:15px; width:70px; height:17px; ">구 분 :</caption>
- </group>
- <select id="chk_ward" ref="/root/send/srchwardcd" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:360px; top:40px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/deptlist/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var tmpVal = model.getValue("/root/send/srchwardcd");
- var wardCode = "";
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
- if (tmpVal.indexOf("T") > -1) {
- var wardCnt = model.getXPathValue("count(/root/hidden/deptlist/ward)");
- for (var i = 1; i <= wardCnt; i++) {
- wardCode += model.getValue("/root/hidden/deptlist/ward["+i+"]/wardcd")+",";
- }
- }
- model.setValue("/root/send/srchwardcd", wardCode);
- chk_ward.refresh();
- }
- if (tmpVal.indexOf("T") > -1 ){
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardnm.value = chk_ward.label;
- }
- // if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- ]]>
- </script>
- </select>
- </group>
- <button id="button2" class="icon_search" visibility="hidden" style="left:531px; top:760px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- // 약품코드 검색
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- var drugcd = model.getValue("/root/send/srchdrugcd");
- var getcd = model.getValue("/root/temp/drugcd");
- if (getcd == "") {
- model.setValue("/root/send/srchdrugcd");
- } else {
- if (drugcd == "") {
- model.setValue("/root/send/srchdrugcd", getcd);
- } else {
- model.setValue("/root/send/srchdrugcd", getcd+","+drugcd);
- }
- }
- ipt_srchdrugcd.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_srchdrugcd" ref="/root/send/srchdrugcd" class="input_search" visibility="hidden" style="left:330px; top:760px; width:196px; height:19px; "/>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:236px; top:760px; width:86px; height:17px; ">특정코드 :</caption>
- </xhtml:body>
- </xhtml:html>
|