123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 외래채혈실핵의학검체조회.xrw
- * 설 명 : ㅇㅇ
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 : 2009.07.24
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <spclist>
- <choi/>
- <bcno/>
- <orddeptnm/>
- <pid/>
- <hngnm/>
- <tclsnm/>
- <spcnm/>
- <spcstat/>
- <bcoll/>
- <spcpseuacpt/>
- <spcacpt/>
- <spccncl/>
- <tsectnm/>
- <prcpdd/>
- <execprcpuniqno/>
- <tclscd/>
- <rsltstat/>
- </spclist>
- </main>
- <send>
- <refflag/>
- <reftext/>
- <fromdd/>
- <todd/>
- <spcflag>00</spcflag>
- <genrflag>2</genrflag>
- <codeflag/>
- <execdept/>
- <data1/>
- </send>
- <init/>
- <hidden>
- <spcacpt>
- <testmdlcd>00</testmdlcd>
- <testlrgcd>00</testlrgcd>
- </spcacpt>
- <check>0</check>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <!-- 시행부서 조회-->
- <submission id="TRLLC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
- <submission id="TXLLR91201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <!-- *사용* 시행부서 조회 -->
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetInit() {
-
- grd_nspclist.fixedcellcheckbox(0,1)=true;
-
- model.removeNodeset("/root/init");
-
- model.setValue("/root/send/codeflag", "0102|0106|0104|0111|0000|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag
- // 초기정보 조회
- submit("TRLZZ00101");
- model.removeNodeset("/root/main/spclist");
-
- var today = getCurrentDate();
-
- model.setValue("/root/send/fromdd", today);
- model.setValue("/root/send/todd", today);
- model.setFocus("ipt_text");
- model.refresh();
- }
-
- //조회
- function fGetNSpcList() {
- // model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
- model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testlrgcd"));
- submit("TRLLC00604");
-
- // 진행상황 및 처방일 색깔 빨강색으로 둔다
- if(grd_nspclist.rows > 0) {
- for(iRow = 1; iRow < grd_nspclist.rows;iRow++)
- {
- if( model.getvalue("/root/main/spclist["+iRow+"]/rsltstat") == "4" || model.getvalue("/root/main/spclist["+iRow+"]/rsltstat") == "5" )
- {
- grd_nspclist.cellstyle("color", iRow, grd_nspclist.colRef("rsltstat")) = "#ff3300";
- }
- if( model.getvalue("/root/main/spclist["+iRow+"]/spcstat") == "5")
- {
- grd_nspclist.cellstyle("color", iRow, grd_nspclist.colRef("spcstat")) = "#ff3300";
- }
- }
- }
- }
-
- function fSetTLrgCd() {
- var etc = model.getvalue("/root/hidden/spcacpt/testlrgcd");
-
- if(etc == "00"){
- cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
- }
- else{
- model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
- cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
- }
- cmd_TMdlCd.refresh();
- }
- function fSetallcheck(){
-
- for(var tRow = 1; tRow < grd_nspclist.rows ; tRow++){
-
-
- if(model.getValue("/root/main/spclist["+ tRow +"]/choi") == "true"){
-
- grd_nspclist.rowStatus(tRow) = 2; // 수정
- }else{
- grd_nspclist.rowStatus(tRow) = 0; // 취소
- }
- }
- grd_nspclist.refresh();
- }
-
- function btnAllCheck(){
- var checked = model.getValue("/root/hidden/check");
- // alert(checked);
- if(checked=="0") {
- checked ="1";
-
- } else {
- checked ="0";
-
- }
-
- for(i=1;i<grd_nspclist.rows;i++){
-
- var vRsltstat = model.getvalue("/root/main/spclist["+i+"]/rsltstat");
-
- if(vRsltstat == "4" || vRsltstat == "5"){
- model.setValue("/root/main/spclist["+i+"]/choi", "false");
- } else{
- if( checked=="1" ) {
- model.setValue("/root/main/spclist["+i+"]/choi", "true");
- } else {
- model.setValue("/root/main/spclist["+i+"]/choi", "false");
- }
- }
- }
-
- model.setValue("/root/hidden/check", checked);
-
- model.refresh();
-
- }
-
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
- if(event.target == "ipt_text"){
- if(ipt_text.currentText != "") {
- model.setValue("/root/send/reftext", (ipt_text.currentText).toUpperCase());
- fGetNSpcList();
- } else {
- messageBox("검색어를", "C001");
- }
- ipt_text.selBegin = 0;
- ipt_text.selEnd = ipt_text.currentText.length;
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:800px; height:15px; ">치과병원 이관 검체검사 내역 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:70px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
- <line id="line3" class="line_4" style="x1:1050px; y1:10px; x2:1050px; y2:52px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:825px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNSpcList();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:16px; top:24px; width:90px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:25px; width:106px; height:19px; "/>
- <caption id="caption5" class="search_no_b" style="left:220px; top:25px; width:15px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:240px; top:25px; width:106px; height:19px; "/>
- <select1 id="cmb_spcflag" ref="/root/send/spcflag" class="combo_search" navindex="11" visibility="hidden" appearance="minimal" style="left:885px; top:25px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>-전체-</label>
- <value>00</value>
- </item>
- <item>
- <label>취소</label>
- <value>0</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>
- <select1 id="cmd_TMdlCd" ref="/root/hidden/spcacpt/testmdlcd" class="combo_s_essential" visibility="hidden" appearance="minimal" itemcount="10" style="left:890px; top:25px; width:35px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0106">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_TLrgCd" ref="/root/hidden/spcacpt/testlrgcd" class="combo_s_essential" visibility="visible" appearance="minimal" itemcount="10" style="left:445px; top:25px; width:154px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTLrgCd();
- ]]>
- </script>
- </select1>
- <button id="button23" class="btn3_letter2" style="left:955px; top:20px; width:62px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var execddyncnt = 0;
-
- for(i = 1 ; i < grd_nspclist.rows ; i ++){
- grd_nspclist.rowStatus(i) = 0;
- if(model.getValue("/root/main/spclist["+i+"]/choi") == "true"){
- grd_nspclist.rowStatus(i) = 2;
- }
- }
- // //액팅이 된 처방인지 체크
- // if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/execdd") != "00000000") {
- // execddyncnt++;
- // }
- // model.setValue("/root/send/userid", model.getValue("/root/hidden/ref/userid"));
- // model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/data1", grd_nspclist.getUpdateData());
- submit("TXLLR91201");
- ]]>
- </script>
- </button>
- <input id="ipt_text" ref="/root/send/refflag" class="input_button" navindex="12" imemode="disabled" inputtype="button" _chartype="upper" style="left:710px; top:25px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:625px; top:25px; width:90px; height:17px; ">차트번호:</caption>
- <caption id="caption2" class="search_name" style="left:360px; top:25px; width:90px; height:17px; ">시행부서</caption>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
- <datagrid id="grd_nspclist" nodeset="/root/main/spclist" caption="^시행부서^검체번호^치과진행상태^진료과^등록번호^성명^검사명^검사코드^검체명^본원 결과상태^채취시각^채취자^결과일^병동^처방일^작업번호" colsep="^" colwidth="60,0,80,100,75, 70, 65, 180,70, 130, 100, 0,0,130, 0, 100, 0" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:657px; text-align:center; ">
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="tsectnm"/>
- <col ref="bcno" type="input"/>
- <col ref="rsltstat" type="combo">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="orddeptnm"/>
- <col ref="pid" type="input"/>
- <col ref="hngnm"/>
- <col ref="tclsnm"/>
- <col ref="tclscd"/>
- <col ref="spcnm"/>
- <col ref="spcstat" type="combo">
- <choices>
- <item>
- <label>최종</label>
- <value>4</value>
- </item>
- <item>
- <label>수정보고</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="bcoll"/>
- <col ref="spcpseuacpt"/>
- <col ref="spcacpt"/>
- <col ref="spccncl"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_nspclist.gridToInstance();
- ]]>
- </script>
- <col ref="prcpdd"/>
- <col ref="execprcpuniqno"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
- // alert("1");
- if(grd_nspclist.row == "0"){
- btnAllCheck();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- // alert("2");
- if(grd_nspclist.row == "0"){
- btnAllCheck();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:25px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_nspclist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_check" style="left:1060px; top:40px; width:20px; height:20px; background-image:../../../lis/commonweb/images/chkRPT0.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btnAllCheck();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_reset" class="btn4_letter3" style="left:1120px; top:15px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|