123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801 |
- <?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/>
- </main>
- <send>
- <bizflag/>
- <rqflag/>
- <srchfromdd/>
- <srchtodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <formflag1>1</formflag1>
- <formflag2>1</formflag2>
- <srchdeptcd/>
- <srchdrid/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <baseinfo>
- <spcldrug/>
- <efcycd/>
- </baseinfo>
- <srchdata>
- <prcpcd/>
- </srchdata>
- <srchwardcd/>
- </send>
- <init>
- </init>
- <hidden>
- <srchinfo>
- <wardcd/>
- <wardnm/>
- <sendwardcd/>
- <senddeptcd/>
- <tdmdrugnm/>
- </srchinfo>
- <baseinfo>
- <spcldrug>
- <A0006/>
- </spcldrug>
- </baseinfo>
- <receivedrugcd>/root/send/srchdata/hngnm</receivedrugcd>
- <orddept>
- <dept/>
- </orddept>
- <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
- <formflag2/>
- <tdmdruginfo>
- <testlist>
- <drugcd/>
- <drugnm/>
- </testlist>
- </tdmdruginfo>
- </hidden>
- <temp>
- <srchinfo>
- <ward/>
- <tdmdrug/>
- </srchinfo>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- </receivedata>
- </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/numericHelper.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" ev:event="xforms-ready">
- <![CDATA[
-
- // 진료과/진료의 조회
- submit("TRPMOCOM01");
- astfAddCombo("/root/init", "orddeptcd", "cd,nm", ",전체");
-
- var rdo_children = rdo_formcd1.children;
- rdo_children.item(1).attribute("disable") = true;
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchtodd", getCurrentDate());
- model.setValue("/root/send/formflag1", "1"); // 초기값 세팅
- model.setValue("/root/send/formflag2", "1"); // 초기화
-
- makeReportPreview(0,150,1195,570);
-
- //병동 Combo 조회
- model.setValue("/root/send/deptinfo/deptflag", "W");
- submit("TRADT10203");
- astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
-
- // 의사 항목에 '전체' 추가하기 - 시작
- var initNode = instance1.selectSingleNode("/root/init"); // 전체 데이터
- var nodes = instance1.selectNodes("/root/init/orddrid"); // 의사 데이터
- var equalsValue1 = ""; // 비교 부서코드1
- var equalsValue2 = ""; // 비교 부서코드2
- var copyedNode = null; // 복사 노드
-
- for(var i = 0; i < nodes.length; ++i) {
- if(i == 0) {
- equalsValue1 = nodes.item(i).childNodes.item(2).nodeValue;
- } else {
- equalsValue2 = nodes.item(i).childNodes.item(2).nodeValue;
- }
-
- if(equalsValue1 != equalsValue2) {
- // 첫번째 값은 비교 대상이 없으므로 1번만 비교
- if(i == 0) {
- copyedNode = nodes.item(i).cloneNode(true); // 노드 복사
- copyedNode.childNodes.item(0).nodeValue = ""; // cd
- copyedNode.childNodes.item(1).nodeValue = "전체"; // nm
- copyedNode.childNodes.item(2).nodeValue = equalsValue1; // deptCode
- } else {
- copyedNode = nodes.item(i).cloneNode(true); // 노드 복사
- copyedNode.childNodes.item(0).nodeValue = ""; // cd
- copyedNode.childNodes.item(1).nodeValue = "전체"; // nm
- copyedNode.childNodes.item(2).nodeValue = equalsValue2; // deptCode
-
- equalsValue1 = equalsValue2;
- }
-
- initNode.insertBefore(copyedNode, nodes.item(i)); // 대상노드 상위에 노드 추가
- }
- }
- // 의사 항목에 '전체' 추가하기 - 끝
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01712" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS01713" 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="TRADB62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/srchinfo" replace="instance" resultref="/root/hidden/tdmdruginfo/testlist"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- </model>
- </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:130px; x2:1195px; y2:130px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:15px; x2:1110px; y2:95px; "/>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 시작일자
- if(ipt_fromdd.value.length == 6) {
- // 월별
- ipt_fromdd.value = ipt_fromdd.value + "01";
- }
- else if(ipt_fromdd.value.length == 4) {
- // 년별
- ipt_fromdd.value = ipt_fromdd.value + "0101";
- }
-
- // 조회 종료일자
- if(ipt_todd.value.length == 6) {
- // 월별
- ipt_todd.value = ipt_todd.value + getDayCountForMonth(ipt_todd.value.substring(0, 4), ipt_todd.value.substring(4, 6));
- }
- else if(ipt_todd.value.length == 4) {
- // 년별
- ipt_todd.value = ipt_todd.value + "1231";
- }
-
- // 통계양식 일자별
- if(rdo_formcd1.value == "1") {
- if(!(isValidDateTime(ipt_fromdd.value, "YYYYMMDD") && isValidDateTime(ipt_todd.value, "YYYYMMDD"))) {
- messageBox("조회 일자를 다시 입력","I008");
- return;
- }
- }
- // 통계양식 월별
- else if(rdo_formcd1.value == "2") {
- if(!(isValidDateTime(ipt_fromdd.value.substring(0, 6), "YYYYMM") && isValidDateTime(ipt_todd.value.substring(0, 6), "YYYYMM"))) {
- messageBox("조회 일자를 다시 입력","I008");
- return;
- }
- }
- // 통계양식 연별
- else if(rdo_formcd1.value == "3") {
- // YYYY 형식 값은 isValidDateTime 함수로 처리가 안되서 문자열 싸이즈와 숫자 여부만 판단
- if((ipt_fromdd.value.substring(0, 4).length < 4 || ipt_todd.value.substring(0, 4).length < 4) ||
- !(ipt_fromdd.value.substring(0, 4).isNumber() && ipt_todd.value.substring(0, 4).isNumber())) {
- messageBox("조회 일자를 다시 입력","I008");
- return;
- }
- }
- // model.setValue("/root/send/srchdeptcd", model.getValue("/root/hidden/srchinfo/senddeptcd")); // 진료과
- model.setValue("/root/send/srchwardcd", model.getValue("/root/hidden/srchinfo/sendwardcd")); // 병동
-
- // case6 - TDM 임상과(세부분과)별 자문업무 건수 통계
- if(cmb_bizflag.value == "TDM" && rdo_formcd1.value == '1' && rdo_formcd2.value == '1') {
- // case6 - 임상과(세부분과)별 TDM자문업무 건수 통계
- alert("TDM case6");
- if(submit("TRADS01706")){
- exeReportPreview("RPADS01706", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case2 - TDM 기간별 자문업무 건수 통계 - !!!!!!!필요 없어서 삭제 됨!!!!!!!
-
- // case7 - 임상과별 TDM 자문 회신업무 건수 통계 1
- else if(cmb_bizflag.value == "TDM" && cmb_reqreplflag.value == "R" && (rdo_formcd1.value == "1" || rdo_formcd1.value == "2" || rdo_formcd1.value == "3") && rdo_formcd2.value == '2') {
- alert("TDM case7");
- if(submit("TRADS01707")){
- exeReportPreview("RPADS01707", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case8 - 임상과별 TDM 자문 회신업무 건수 통계 2
- else if(cmb_bizflag.value == "TDM" && cmb_reqreplflag.value == "A" && (rdo_formcd1.value == "1" || rdo_formcd1.value == "2" || rdo_formcd1.value == "3") && rdo_formcd2.value == '2') {
- alert("TDM case8");
- if(submit("TRADS01708")){
- exeReportPreview("RPADS01708", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case9 - 임상과별 TDM 자문 회신업무 건수 통계 3
- else if(cmb_bizflag.value == "TDM" && (rdo_formcd1.value == "1" || rdo_formcd1.value == "2" || rdo_formcd1.value == "3") && rdo_formcd2.value == '3') {
- alert("TDM case9");
- if(submit("TRADS01709")){
- exeReportPreview("RPADS01709", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case10 - 임상과별 TDM 자문 회신업무 건수 통계 4
- else if(cmb_bizflag.value == "TDM" && rdo_formcd1.value == '2' && rdo_formcd2.value == "") {
- alert("TDM case10");
- if(submit("TRADS01710")){
- exeReportPreview("RPADS01710", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case11 - 임상과별 TDM 자문 회신업무 건수 통계 5
- else if(cmb_bizflag.value == "TDM" && rdo_formcd1.value == '3' && rdo_formcd2.value == "") {
- alert("TDM case11");
- if(submit("TRADS01711")){
- exeReportPreview("RPADS01711", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case12 - 임상과별 TDM 자문 회신업무 건수 통계 2-1
- else if(cmb_bizflag.value == "TDM" && cmb_reqreplflag.value == "Q" && (rdo_formcd1.value == "1" || rdo_formcd1.value == "2" || rdo_formcd1.value == "3") && rdo_formcd2.value == '2') {
- alert("TDM case12");
- if(submit("TRADS01712")){
- exeReportPreview("RPADS01712", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case13 - 임상과별 TDM 자문 회신업무 건수 통계 2-2
- else if(cmb_bizflag.value == "TDM" && cmb_reqreplflag.value == "C" && (rdo_formcd1.value == "1" || rdo_formcd1.value == "2" || rdo_formcd1.value == "3") && rdo_formcd2.value == '2') {
- alert("TDM case13");
- if(submit("TRADS01713")){
- exeReportPreview("RPADS01713", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case3 - NST 기간별 특수조제실 조제량 통계(TPN)
- else if(cmb_bizflag.value == "NST" && rdo_formcd1.value == '1' && rdo_formcd2.value == "") {
- alert("NST case3");
- if(submit("TRADS01703")){
- exeReportPreview("RPADS01703", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case4 - NST 기간별 건수 통계(분기별, 연별)
- else if(cmb_bizflag.value == "NST" && (rdo_formcd1.value == '2' || rdo_formcd1.value == '3') && rdo_formcd2.value == "") {
- alert("NST case4");
- if(submit("TRADS01704")){
- exeReportPreview("RPADS01704", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case5 - NST 임상과(세부분과)별 자문업무 건수 통계
- else if(cmb_bizflag.value == "NST" && (rdo_formcd1.value == '1' || rdo_formcd1.value == '2' || rdo_formcd1.value == '3') && rdo_formcd2.value == '1') {
- alert("NST case5");
- if(submit("TRADS01705")){
- exeReportPreview("RPADS01705", "XMLSTR", "/root/main/statslist/item");
- }
- } else {
- alert("조건에 해당하는 통계양식이 없습니다.");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:335px; top:10px; 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:430px; top:10px; 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:548px; top:10px; width:100px; height:19px; "/>
- <caption id="caption5" class="search_no_b" style="left:533px; top:10px; width:12px; height:17px; ">~</caption>
- <select1 id="cmb_bizflag" ref="/root/send/bizflag" class="combo_search" appearance="minimal" style="left:140px; top:10px; width:166px; height:19px; ">
- <choices>
- <item>
- <label>TDM</label>
- <value>TDM</value>
- </item>
- <item>
- <label>NST</label>
- <value>NST</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 조회 시작일자
- if(ipt_fromdd.value.length == 6) {
- // 월별
- ipt_fromdd.value = ipt_fromdd.value + "01";
- }
- else if(ipt_fromdd.value.length == 4) {
- // 년별
- ipt_fromdd.value = ipt_fromdd.value + "0101";
- }
-
- // 조회 종료일자
- if(ipt_todd.value.length == 6) {
- // 월별
- ipt_todd.value = ipt_todd.value + getDayCountForMonth(ipt_todd.value.substring(0, 4), ipt_todd.value.substring(4, 6));
- }
- else if(ipt_todd.value.length == 4) {
- // 년별
- ipt_todd.value = ipt_todd.value + "1231";
- }
-
- if(model.getValue("/root/send/bizflag") == "NST") {
- ipt_fromdd.attribute("format") = "yyyy-mm-dd";
- ipt_todd.attribute("format") = "yyyy-mm-dd";
-
- model.setValue("/root/send/formflag1" , "1" ); // 통계양식 '일자별' 세팅
- model.setValue("/root/send/formflag2" , "1" ); // 통계양식 초기화
- model.setValue("/root/send/rqflag" , "" ); // 통계양식 초기화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- rdo_formcd2.disabled = false; // 통계양식 과별, 의뢰,회신 구분, 자문료 구분별
- }
-
- // else if ( (model.getValue("/root/send/formflag2") == "2" || model.getValue("/root/send/formflag2") == "3") && model.getValue("/root/send/bizflag") == "NST" ) {
- // messageBox("[업무구분]이 [NST]일경우 [회신,회신 구분별 또는 자문료 구분별을]선택 하실수","I004");
- // model.setValue("/root/send/bizflag", "1");
- // model.setValue("/root/send/rqflag", ""); // 데이터 초기화
- // cmb_reqreplflag.disabled = true; // 비활성화
- // } else if ( model.getValue("/root/send/formflag1") != "" && model.getValue("/root/send/formflag2") == "1" && model.getValue("/root/send/bizflag") == "NST" ) {
- // messageBox("[업무구분]이 [NST]일경우 [일자별, 월별, 연별 또는 과별]만 선택 하실수","I010");
- // model.setValue("/root/send/formflag2" , "" );
- // }
-
- else if ( model.getValue("/root/send/formflag2") == "2" && model.getValue("/root/send/bizflag") == "TDM" ) {
- cmb_reqreplflag.disabled = false; // 의뢰,회신구분 활성화
- model.setValue("/root/send/formflag1" , "1" ); // 통계양식 '일자별' 세팅
- model.setValue("/root/send/rqflag" , "A" ); // 의뢰,회신구분 '전체' 세팅
- } else if(model.getValue("/root/send/bizflag") == "TDM") {
- // 검색일자의 년 / 월 / 일 속성 변경
- ipt_fromdd.attribute("format") = "yyyy-mm-dd";
- ipt_todd.attribute("format") = "yyyy-mm-dd";
-
- model.setValue("/root/send/formflag1" , "1" ); // 통계양식 '일자별' 세팅
- model.setValue("/root/send/formflag2" , "1" ); // 통계양식 '과별' 세팅
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:15px; top:10px; width:116px; height:17px; ">업무구분 :</caption>
- <caption id="caption4" class="search_name" style="left:680px; top:10px; width:86px; height:17px; ">통계양식 :</caption>
- <select1 id="rdo_formcd1" ref="/root/send/formflag1" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:775px; top:10px; width:190px; 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>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/bizflag") == "") {
- messageBox("[업무구분] 을 선택","I008");
- return;
- }
-
- // 조회 시작일자
- if(ipt_fromdd.value.length == 6) {
- // 월별
- ipt_fromdd.value = ipt_fromdd.value + "01";
- }
- else if(ipt_fromdd.value.length == 4) {
- // 년별
- ipt_fromdd.value = ipt_fromdd.value + "0101";
- }
-
- // 조회 종료일자
- if(ipt_todd.value.length == 6) {
- // 월별
- ipt_todd.value = ipt_todd.value + getDayCountForMonth(ipt_todd.value.substring(0, 4), ipt_todd.value.substring(4, 6));
- }
- else if(ipt_todd.value.length == 4) {
- // 년별
- ipt_todd.value = ipt_todd.value + "1231";
- }
-
- if ( model.getValue("/root/send/bizflag") == "NST" && model.getValue("/root/send/formflag1") != "1" && model.getValue("/root/send/formflag2") == "1") {
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- rdo_formcd2.disabled = false; // 통계양식 과별, 의뢰,회신 구분별, 자문료 비활성화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- } else if ( model.getValue("/root/send/bizflag") == "TDM" && model.getValue("/root/send/formflag1") != "1" && model.getValue("/root/send/formflag2") == "1") {
- model.setValue("/root/send/formflag2" , ""); // 통계양식 과별, 의뢰,회신 구분별, 자문료 구분별 초기화
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- rdo_formcd2.disabled = true; // 통계양식 과별, 의뢰,회신 구분별, 자문료 비활성화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- } else if ( model.getValue("/root/send/formflag1") != "1" && model.getValue("/root/send/formflag2") == "") {
- model.setValue("/root/send/formflag2" , ""); // 통계양식 과별, 의뢰,회신 구분별, 자문료 구분별 초기화
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- rdo_formcd2.disabled = true; // 통계양식 과별, 의뢰,회신 구분별, 자문료 비활성화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- } else if ( model.getValue("/root/send/bizflag") == "TDM" && model.getValue("/root/send/formflag1") == "1" && model.getValue("/root/send/formflag2") == "") {
- model.setValue("/root/send/formflag2" , "1"); // 통계양식 '과별' 세팅
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- rdo_formcd2.disabled = false; // 통계양식 과별, 의뢰,회신 구분별, 자문료 활성화
- } else {
- rdo_formcd2.disabled = false; // 통계양식 과별, 의뢰,회신 구분별, 자문료 활성화
- }
-
- // 검색일자의 년 / 월 / 일 속성 변경
- if ( model.getValue("/root/send/formflag1") == "1" ) {
- ipt_fromdd.attribute("format") = "yyyy-mm-dd";
- ipt_todd.attribute("format") = "yyyy-mm-dd";
- } else if( model.getValue("/root/send/formflag1") == "2" ) {
- ipt_fromdd.attribute("format") = "yyyy-mm";
- ipt_todd.attribute("format") = "yyyy-mm";
- } else if( model.getValue("/root/send/formflag1") == "3" ) {
- ipt_fromdd.attribute("format") = "yyyy";
- ipt_todd.attribute("format") = "yyyy";
- } else {
- ipt_fromdd.attribute("format") = "yyyy-mm-dd";
- ipt_todd.attribute("format") = "yyyy-mm-dd";
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- rdo_formcd1.value = "";
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if ( model.getValue("/root/send/formflag1") != "" && model.getValue("/root/send/formflag2") == "1" && model.getValue("/root/send/bizflag") == "NST" ) {
- // messageBox("[업무구분]이 [NST]일경우 [일자별, 월별, 연별 또는 과별]만 선택 하실수","I010");
- // model.setValue("/root/send/formflag2" , "");
- // model.refresh();
- // return;
- // }
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" visibility="hidden" style="left:680px; top:70px; width:86px; height:17px; ">병동 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:70px; width:118px; height:17px; ">진료과 :</caption>
- <caption id="caption12" class="search_name" style="left:335px; top:70px; width:88px; height:17px; ">의사 :</caption>
- <caption id="caption13" class="search_name" style="left:335px; top:40px; width:86px; height:17px; ">의뢰약물 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:140px; top:70px; width:165px; 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[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 진료과가 '전체' 선택일 경우
- if(cmb_orddept.value == "") {
- model.resetInstanceNode("/root/send/srchdrid");
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid";
- }
- // '전체' 선택이 아닐 경우
- else {
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddr" ref="/root/send/srchdrid" class="combo_search" appearance="minimal" style="left:430px; top:70px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="icon_search" visibility="hidden" style="left:980px; top:70px; 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>
- <button id="button4" class="icon_search" style="left:618px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_tdmdrug.visible){
- chk_tdmdrug.visible = false;
- }else {
- submit("TRADB62202"); //TDM 기준정보 데이타 가져오기 (ast.adbmtdmbase)
- astfAddCombo("/root/hidden/tdmdruginfo/testlist", "item", "testcd,testnm", "A,전체선택"); //2010-01-25 진료과 멀티선택 가능하도록 추가처리
- chk_tdmdrug.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="chk_tdmdrug" ref="/root/temp/srchinfo/tdmdrug" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="5" sep="|" style="left:450px; top:60px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/tdmdruginfo/testlist/item">
- <label ref="testnm"/>
- <value ref="testcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(chk_tdmdrug.mouseRow == 0 && chk_tdmdrug.mouseCol == 0 ){ //전체선택
- if(isSearchString(model.getValue("/root/temp/srchinfo/tdmdrug"),"A")){ //2010-01-25 전체
- var tdmdrug = "";
- for(var i = 1; i <= getNodesetCount("/root/hidden/tdmdruginfo/testlist/item"); i++){
- tdmdrug += model.getValue("/root/hidden/tdmdruginfo/testlist/item["+i+"]/testcd")+"|";
- }
- model.setValue("/root/temp/srchinfo/tdmdrug" , tdmdrug);
- }else{
- model.setValue("/root/temp/srchinfo/tdmdrug", "");
- }
- model.refresh();
- }
-
- if(isSearchString(model.getValue("/root/temp/srchinfo/tdmdrug"),"A")){
- inp_tdmdrugcd.value = chk_tdmdrug.value.substr(2,chk_tdmdrug.value.length); //전체선택(A) 코드 제외
- inp_tdmdrugnm.value = chk_tdmdrug.label.substr(5,chk_tdmdrug.label.length); //전체선택 명칭 제외
- } else {
- inp_tdmdrugcd.value = chk_tdmdrug.value
- inp_tdmdrugnm.value = chk_tdmdrug.label;
- }
-
- var tempDeptList2 = ""; // 따옴표가 붙은 병동코드 임시 저장 변수( 데이터 조회시 쿼리에서 쓰일 형태로 만듬 )
- var isSelected = true;
- for(var i = 0; i < chk_tdmdrug.length; ++i) {
- // 선택된 항목 체크
- if(chk_tdmdrug.item(i).selected == '1') {
- if(isSelected) {
- tempDeptList2 += "'" + chk_tdmdrug.item(i).value + "'";
- isSelected = false;
- } else {
- tempDeptList2 += "," + "'" + chk_tdmdrug.item(i).value + "'"; // 병동코드 구분을 ',' 사용
- }
- }
- }
-
- // 전체 선택 'T' 제거 하기
- if(isSearchString(tempDeptList2, "A")) {
- tempDeptList2 = tempDeptList2.substr(4, tempDeptList2.length);
- }
-
- model.setValue("/root/send/srchdata/prcpcd", tempDeptList2);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- chk_tdmdrug.visible=true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- chk_tdmdrug.visible=false;
- ]]>
- </script>
- </select>
- <input id="inp_tdmdrugcd" ref="/root/send/srchdata/prcpcd" class="input_search" disabled="true" visibility="hidden" style="left:410px; top:40px; width:15px; height:19px; "/>
- <input id="inp_tdmdrugnm" ref="/root/hidden/srchinfo/tdmdrugnm" class="input_search" disabled="true" style="left:430px; top:40px; width:184px; height:19px; "/>
- <select1 id="rdo_formcd2" ref="/root/send/formflag2" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:775px; top:40px; width:295px; 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>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- // 조회 시작일자
- if(ipt_fromdd.value.length == 6) {
- // 월별
- ipt_fromdd.value = ipt_fromdd.value + "01";
- }
- else if(ipt_fromdd.value.length == 4) {
- // 년별
- ipt_fromdd.value = ipt_fromdd.value + "0101";
- }
-
- // 조회 종료일자
- if(ipt_todd.value.length == 6) {
- // 월별
- ipt_todd.value = ipt_todd.value + getDayCountForMonth(ipt_todd.value.substring(0, 4), ipt_todd.value.substring(4, 6));
- }
- else if(ipt_todd.value.length == 4) {
- // 년별
- ipt_todd.value = ipt_todd.value + "1231";
- }
-
- // 의뢰, 회신구분 활성화
- if((rdo_formcd2.value == '2') && model.getValue("/root/send/bizflag") == "TDM") {
- cmb_reqreplflag.disabled = false;
- model.setValue("/root/send/formflag1" , "1" ); // 통계양식 '일자별' 세팅
- model.setValue("/root/send/rqflag" , "A" ); // 의뢰,회신구분 '전체' 세팅
- }
- // TDM 일경우 통계양식의 '과별' 선택시 '일자별' 로 강제 세팅
- else if((rdo_formcd2.value == '1') && model.getValue("/root/send/bizflag") == "TDM") {
- // 검색일자의 년 / 월 / 일 속성 변경
- ipt_fromdd.attribute("format") = "yyyy-mm-dd";
- ipt_todd.attribute("format") = "yyyy-mm-dd";
-
- model.setValue("/root/send/formflag1" , "1" ); // 통계양식 '일자별' 세팅
- model.setValue("/root/send/rqflag" , "" ); // 의뢰,회신구분 '전체' 세팅
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- }
- // 의뢰, 회신구분 비활성화
- else {
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- }
-
- // 업무구분 체크
- if(model.getValue("/root/send/bizflag") == "") {
- messageBox("[업무구분] 을 선택","I008");
- } else if ( (model.getValue("/root/send/formflag2") == "2" || model.getValue("/root/send/formflag2") == "3") && model.getValue("/root/send/bizflag") == "NST" ) {
- messageBox("[업무구분]이 [NST]일경우 [의뢰,회신 구분별 또는 자문료 구분별을]선택 하실수","I004");
- model.setValue("/root/send/formflag2" , model.getValue("/root/hidden/formflag2") );
- }
-
- // else if ( model.getValue("/root/send/formflag1") != "" && model.getValue("/root/send/formflag2") == "1" && model.getValue("/root/send/bizflag") == "NST" ) {
- // messageBox("[업무구분]이 [NST]일경우 [일자별, 월별, 연별 또는 과별]만 선택 하실수","I010");
- // model.setValue("/root/send/formflag2" , "" );
- // }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- model.setValue("/root/hidden/formflag2" , model.getValue("/root/send/formflag2") );
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/rqflag", ""); // 의뢰,회신구분 데이터 초기화
- cmb_reqreplflag.disabled = true; // 의뢰,회신구분 비활성화
- rdo_formcd2.value = "";
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_reqreplflag" ref="/root/send/rqflag" class="combo_search" disabled="true" appearance="minimal" style="left:140px; top:40px; width:165px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>회신구분</label>
- <value>R</value>
- </item>
- <item>
- <label>의뢰구분</label>
- <value>Q</value>
- </item>
- <item>
- <label>자문내용 및 결과구분</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:15px; top:40px; width:117px; height:17px; ">의뢰,회신구분 :</caption>
- <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" visibility="hidden" style="left:775px; top:70px; width:196px; height:19px; "/>
- </group>
- <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:245px; top:15px; 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[
- if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- var tempWardList = ""; // 병동코드 임시 저장 변수
-
- for(var i = 0; i < chk_ward.length; ++i) {
- if(i == 0) {
- tempWardList += chk_ward.item(i).value;
- } else {
- tempWardList += "," + chk_ward.item(i).value; // 병동코드 구분을 ',' 사용
- }
- }
-
- model.setValue("/root/temp/srchinfo/ward", tempWardList);
-
- } else {
- //ipt_wardcd.value = "";
- //ipt_wardnm.value = "";
- model.setValue("/root/temp/srchinfo/ward", "");
- }
- model.refresh();
- }
- if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
- ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
- } else {
- ipt_wardcd.value = chk_ward.value;
- ipt_wardnm.value = chk_ward.label;
- }
-
- var tempWardList2 = ""; // 따옴표가 붙은 병동코드 임시 저장 변수( 데이터 조회시 쿼리에서 쓰일 형태로 만듬 )
- var isSelected = true;
- for(var i = 0; i < chk_ward.length; ++i) {
- // 선택된 항목 체크
- if(chk_ward.item(i).selected == '1') {
- if(isSelected) {
- tempWardList2 += "'" + chk_ward.item(i).value + "'";
- isSelected = false;
- } else {
- tempWardList2 += "," + "'" + chk_ward.item(i).value + "'"; // 병동코드 구분을 ',' 사용
- }
- }
- }
-
- // 전체 선택 'A' 제거 하기
- if(isSearchString(tempWardList2, "T")) {
- tempWardList2 = tempWardList2.substr(4,tempWardList2.length);
- }
-
- model.setValue("/root/hidden/srchinfo/sendwardcd", tempWardList2);
- ]]>
- </script>
- </select>
- <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:630px; top:10px; width:140px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|