123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- <?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>
- <statslist/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <formflag1>1</formflag1>
- <formflag2>2</formflag2>
- <formflag3/>
- <srchdeptcd/>
- <srchdrid/>
- <deptinfo>
- <deptflag/>
- </deptinfo>
- <baseinfo>
- <spcldrug/>
- <efcycd/>
- </baseinfo>
- <srchdata>
- <hngnm/>
- <drugcd/>
- </srchdata>
- <srchwardcd/>
- <chosflag/>
- <comnm/>
- <comcd/>
- <reportkind/>
- </send>
- <init>
- <ioflag/>
- <ioflagall/>
- </init>
- <hidden>
- <srchinfo>
- <wardnm/>
- <wardcd/>
- <sendwardcd/>
- <deptnm/>
- <deptcd/>
- <senddeptcd/>
- </srchinfo>
- <baseinfo>
- <spcldrug>
- <A0006/>
- </spcldrug>
- </baseinfo>
- <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
- <receivehngnm>/root/send/srchdata/hngnm</receivehngnm>
- <orddept>
- <dept/>
- </orddept>
- <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
- </hidden>
- <temp>
- <srchinfo>
- <ward/>
- <dept/>
- </srchinfo>
- <receivedata>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- <srchtype/>
- <hngnm/>
- <drugcd/>
- </receivedata>
- <receivecom>
- <comcd/>
- <comnm/>
- <comexcd/>
- <srchtype/>
- </receivecom>
- </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" ev:event="xforms-ready">
- <![CDATA[
-
- var rdo_children = rdo_formcd.children;
- rdo_children.item(1).attribute("disable") = true;
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- var pre_srchfromdd = new Date();
- var pre_srchtodd = new Date();
- model.setValue("/root/send/srchfromdd" ,pre_srchfromdd.getAddDate(-30).getDateFormat()); //시작일자 -30전
- model.setValue("/root/send/srchtodd" ,pre_srchtodd.getAddDate(-1).getDateFormat()); //종료일자 -1전
- model.setValue("/root/send/formflag1", "1");
- model.setValue("/root/send/formflag2", "2");
- //model.setValue("/root/send/formflag3", "1");
- model.setValue("/root/init/ioflag", "I O"); //2010-02-10 조회구분 입원/외래 추가
- model.setValue("/root/init/ioflagall", "전체"); //2010-02-10 조회구분 전체 추가
-
- makeReportPreview(0,150,1195,570);
-
- //병동 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","T,전체");
- }
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
- <submission id="TRADS02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- <submission id="TRADS02007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
- </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:135px; x2:1195px; y2:135px; "/>
- <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:24px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/srchdeptcd", model.getValue("/root/hidden/srchinfo/senddeptcd")); // 진료과
- model.setValue("/root/send/srchwardcd", model.getValue("/root/hidden/srchinfo/sendwardcd")); // 병동
-
- model.setValue("/root/send/comnm", model.getValue("/root/send/comnm").setReplaceWord(",",",")); // 성분분류
- model.setValue("/root/send/srchdata/hngnm", model.getValue("/root/send/srchdata/hngnm").setReplaceWord(",",",")); // 약품명칭
-
- //조회구분 (입원/외래구분)
- var ioflag = model.getValue("/root/init/ioflag");
- var temp="";
- var ioflagData = ioflag.split(" ");
- for(var i = 0; i < ioflagData.length; ++i) {
- if (ioflagData[i] =="I") ioflagData[i] = "I','D','E"; //입원일경우는 D(DSC)/E(응급) 모두 포함시킨다.
- if (i == 0 ) temp = "'" + ioflagData[i] + "'";
- else temp += ",'" + ioflagData[i] + "'" ;
- }
- model.setValue("/root/send/chosflag", temp);
- model.refresh();
-
-
- //if ( model.getValue("/root/send/formflag1") == '1' && model.getValue("/root/send/formflag2") == '2' ) {
- // 에러!!!
- if( model.getValue("/root/send/formflag1") == "" && model.getValue("/root/send/formflag3") == "" ) {
- alert("병동별 / 과별 조건만 으로는 조회 할수 없습니다.");
- }
- // case1 - 일자별, 과별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == "" ) {
- model.setValue("/root/send/reportkind", "1"); // 리포트종류 번호
-
- if(submit("TRADS02001")){
- exeReportPreview("RPADS02001", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case2 - 일자별, 병동별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == "" ) {
- model.setValue("/root/send/reportkind", "2"); // 리포트종류 번호
-
- if(submit("TRADS02002")){
- exeReportPreview("RPADS02002", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case3 - 의뢰이유, 병동별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == '2' ) {
- model.setValue("/root/send/reportkind", "3"); // 리포트종류 번호
-
- if(submit("TRADS02003")){
- exeReportPreview("RPADS02003", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case4 - 의뢰이유, 과별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == '2' ) {
- model.setValue("/root/send/reportkind", "4"); // 리포트종류 번호
-
- if(submit("TRADS02004")){
- exeReportPreview("RPADS02004", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case5 - 소요시간대, 병동별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '1' && model.getValue("/root/send/formflag3") == '1' ) {
- model.setValue("/root/send/reportkind", "case5-1"); // 리포트종류 번호
-
- if(submit("TRADS02005")){
- exeReportPreview("RPADS02005", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case6 - 소요시간대, 과별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag2") == '2' && model.getValue("/root/send/formflag3") == '1' ) {
- model.setValue("/root/send/reportkind", "case6-1"); // 리포트종류 번호
-
- if(submit("TRADS02006")){
- exeReportPreview("RPADS02006", "XMLSTR", "/root/main/statslist/item");
- }
- }
- // case7 - 성분명, 상품명, 코드, 일자별 약품식별 통계 조회
- else if ( model.getValue("/root/send/formflag3") == '3' ) {
- model.setValue("/root/send/reportkind", "7"); // 리포트종류 번호
-
- if(submit("TRADS02007")){
- exeReportPreview("RPADS02007", "XMLSTR", "/root/main/statslist/item");
- }
- }
-
- model.setValue("/root/send/comnm", model.getValue("/root/send/comnm").setReplaceWord(",",",")); // 성분분류
- model.setValue("/root/send/srchdata/hngnm", model.getValue("/root/send/srchdata/hngnm").setReplaceWord(",",",")); // 약품명칭
-
- model.refresh();
- ]]>
- </script>
- </button>
- <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>
- <caption id="caption3" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">일자 :</caption>
- <caption id="caption4" class="search_name" style="left:705px; top:15px; width:86px; height:17px; ">통계양식 :</caption>
- <select1 id="rdo_formcd" ref="/root/send/formflag1" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:800px; top:15px; width:195px; 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="ondblclick">
- <![CDATA[
- rdo_formcd.value = "";
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(rdo_formcd3.value != "") {
- alert("통계양식 조건이 [소요시간대별 / 의뢰이유별 / 약품별] 일경우 선택 할수 없습니다.");
- rdo_formcd.value = "";
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">성분분류 :</caption>
- <caption id="caption9" class="search_name" style="left:365px; top:40px; width:86px; height:17px; ">병동 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption13" class="search_name" style="left:365px; top:65px; width:86px; height:17px; ">약품명칭 :</caption>
- <input id="ipt_comcls" ref="/root/send/comnm" class="input_search" disabled="true" style="left:109px; top:65px; width:196px; height:19px; "/>
- <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:460px; top:40px; width:196px; height:19px; "/>
- <input id="ipt_deptnm" ref="/root/hidden/srchinfo/deptnm" class="input_search" disabled="true" style="left:110px; top:40px; width:196px; height:19px; "/>
- <button id="button2" class="icon_search" style="left:310px; top:65px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/hidden/receivecom/srchtype","O");
- model.makeValue("/root/hidden/receivecom/comnm",model.getValue("/root/send/comnm"));
- model.makeValue("/root/hidden/receivecom/comcd",model.getValue("/root/send/comcd"));
- modal("SPADB61350",0,100,150,"SPADB61350","/root/hidden/receivecom","/root/hidden/receiveref");
- model.setValue("/root/send/comnm" ,getParameter("comnm"));
- model.setValue("/root/send/comcd" ,getParameter("comcd"));
- ipt_comcls.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="icon_search" style="left:660px; top:40px; 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:660px; top:65px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 부모창이 어떤 화면인지 확인할 구분값 세팅 'O'
- model.setValue("/root/temp/receivedata/srchtype", "O");
- model.setValue("/root/temp/receivedata/drugcd", model.getValue("/root/send/srchdata/drugcd"));
- model.setValue("/root/temp/receivedata/hngnm", model.getValue("/root/send/srchdata/hngnm"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
-
- // 약품코드 검색
- modal("SPADB60150",0,100,150,"SPADB60150","/root/temp/receivedata","/root/temp/receivedata");
- model.setValue("/root/send/srchdata/drugcd", getParameter("drugcd"));
- model.setValue("/root/send/srchdata/hngnm", getParameter("hngnm"));
- ipt_hngnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_hngnm" ref="/root/send/srchdata/hngnm" class="input_search" disabled="true" style="left:460px; top:65px; width:196px; height:19px; "/>
- <select1 id="radio1" ref="/root/send/formflag2" class="radio_search" appearance="full" cellspacing="45" cols="2" overflow="visible" style="left:800px; top:40px; width:235px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동별</label>
- <value>1</value>
- </item>
- <item>
- <label>과별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_formcd3" ref="/root/send/formflag3" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:800px; top:65px; width:275px; 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="ondblclick">
- <![CDATA[
- rdo_formcd3.value = "";
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rdo_formcd.value = "";
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="chk_ioflag" ref="/root/init/ioflag" overflow="visible" appearance="full" cols="2" style="left:454px; top:10px; width:96px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/init/ioflag").length == "3")
- {
- chk_ioflagall.select(0);
- }
- else
- {
- chk_ioflagall.deselect(0);
- }
- ]]>
- </script>
- </select>
- <select id="chk_ioflagall" ref="/root/init/ioflagall" overflow="visible" appearance="full" cols="3" style="left:547px; top:10px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>전체</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(model.getValue("/root/init/ioflagall") == "전체")
- {
- chk_ioflag.select(0);
- chk_ioflag.select(1);
- }
- else
- {
- chk_ioflag.deselect(0);
- chk_ioflag.deselect(1);
- }
- ]]>
- </script>
- </select>
- <caption id="caption7" class="search_name" style="left:365px; top:10px; width:86px; height:17px; ">조회구분 :</caption>
- <button id="button5" class="icon_search" style="left:310px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_dept.visible==true){
- chk_dept.visible = false;
- }else {
- chk_dept.visible = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:620px; top:70px; width:140px; height:19px; "/>
- <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:410px; top:70px; 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(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- 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 + "'"; // 병동코드 구분을 ',' 사용
- }
- }
- }
-
- // 전체 선택 'T' 제거 하기
- if(isSearchString(tempWardList2, "T")) {
- tempWardList2 = tempWardList2.substr(4,tempWardList2.length);
- }
-
- model.setValue("/root/hidden/srchinfo/sendwardcd", tempWardList2);
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- <input id="ipt_deptcd" ref="/root/hidden/srchinfo/deptcd" class="input_search" visibility="hidden" style="left:260px; top:70px; width:140px; height:19px; "/>
- <select id="chk_dept" ref="/root/temp/srchinfo/dept" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="7" direction="downacross" sep="," style="left:50px; top:70px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/hidden/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
- if(chk_dept.mouseRow == 0 && chk_dept.mouseCol == 0 ){
- if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"T")){
- var tempDeptList = ""; // 병동코드 임시 저장 변수
-
- for(var i = 0; i < chk_dept.length; ++i) {
- if(i == 0) {
- tempDeptList += chk_dept.item(i).value;
- } else {
- tempDeptList += "," + chk_dept.item(i).value; // 병동코드 구분을 ',' 사용
- }
- }
-
- model.setValue("/root/temp/srchinfo/dept", tempDeptList);
- } else {
- //ipt_wardcd.value = "";
- //ipt_wardnm.value = "";
- model.setValue("/root/temp/srchinfo/dept", "");
- }
- model.refresh();
- }
-
- if(isSearchString(model.getValue("/root/temp/srchinfo/dept"),"T")){
- ipt_deptcd.value = chk_dept.value.substr(2,chk_dept.value.length);
- ipt_deptnm.value = chk_dept.label.substr(3,chk_dept.label.length);
- } else {
- ipt_deptcd.value = chk_dept.value;
- ipt_deptnm.value = chk_dept.label;
- }
-
- var tempDeptList2 = ""; // 따옴표가 붙은 병동코드 임시 저장 변수( 데이터 조회시 쿼리에서 쓰일 형태로 만듬 )
- var isSelected = true;
- for(var i = 0; i < chk_dept.length; ++i) {
- // 선택된 항목 체크
- if(chk_dept.item(i).selected == '1') {
- if(isSelected) {
- tempDeptList2 += "'" + chk_dept.item(i).value + "'";
- isSelected = false;
- } else {
- tempDeptList2 += "," + "'" + chk_dept.item(i).value + "'"; // 병동코드 구분을 ',' 사용
- }
- }
- }
-
- // 전체 선택 'T' 제거 하기
- if(isSearchString(tempDeptList2, "T")) {
- tempDeptList2 = tempDeptList2.substr(4, tempDeptList2.length);
- }
-
- model.setValue("/root/hidden/srchinfo/senddeptcd", tempDeptList2);
- //input3.refresh();
- //검사실 체크박스 감추기
- //chk_excuroom.visible = false;
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|