123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP00600_특이결과기록관리.xrw
- * 설 명 : 특이결과기록관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.07.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <spcfrsltreflist>
- <chio/>
- <rgstdt/>
- <patnm/>
- <pid/>
- <orddept/>
- <wardroom/>
- <testitem/>
- <rslt/>
- <perchgr/>
- <cnfmr/>
- <cfmdt/>
- <notipsn/>
- <notitm/>
- <measfact/>
- <bcno/>
- <testcd/>
- <bigo/>
- </spcfrsltreflist>
- </main>
- <send>
- <codeflag/>
- <data1/>
- <data2/>
- <sectcd/>
- <tsectcd/>
- <deptflag/>
- <testlrdcd/>
- <testmdlcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refrgstsdd/>
- <refrgstedd/>
- <deptgbn>1</deptgbn>
- <deptL>00</deptL>
- <deptM>00</deptM>
- </ref>
- <search>
- <searchflag>1</searchflag>
- <searchtest/>
- <selectgbn/>
- </search>
- <testlrg>00</testlrg>
- <testmdl>
- <cd>00</cd>
- </testmdl>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fsetstart();
- ]]>
- </script>
- <submission id="TRLLP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcfrsltreflist"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
- <submission id="TXLLP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/spcfrsltreflist"/>
- <instance id="instance2">
- <root/>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //특이결과 조회
- function fGetSpcfRslttreflist(){
-
- //model.copyNode("/root/send/data2" ,"/root/hidden/ref"); 이재오 막다
-
- //model.copyNode("/root/send/data2/refrgstsdd" ,"/root/hidden/ref/refrgstsdd");
- //model.copyNode("/root/send/data2/refrgstedd" ,"/root/hidden/ref/refrgstedd");
-
- model.makeValue("/root/send/refrgstsdd",model.getValue("/root/hidden/ref/refrgstsdd"));
- model.makeValue("/root/send/refrgstedd",model.getValue("/root/hidden/ref/refrgstedd"));
-
-
- model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
- if (cmb_selectgbn.value == "1"){
- model.setValue("/root/send/testlrdcd", model.getValue("/root/hidden/testlrg"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/testmdl/cd"));
- }
- //조회구분 시행부서 선택시
- else if(cmb_selectgbn.value == "2"){
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
- model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
- }
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
-
-
-
- submit("TRLLP00601");
- /*
- model.removeNodeset("/root/main/testlist");
- grd_testList.rebuild();
-
- model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/search/searchflag"));
- model.setValue("/root/send/refcont" , model.getValue("/root/hidden/search/searchtext"));
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
- //조회구분
- if (cmb_selectgbn.value == "1"){
- model.setValue("/root/send/testmdlcd" , model.getValue("/root/hidden/testmdl/cd"));
- model.setValue("/root/send/testlrgcd" , model.getValue("/root/hidden/testlrg"));
- }
- //조회구분 시행부서 선택시
- else if(cmb_selectgbn.value == "2"){
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
- model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
- }
- if(model.getValue("/root/hidden/search/searchtext") == ""){ //텍스트 검색이 아니면 등록된 검사코드 모두 조회
- submit("TRLQF00301");
- }else{
- submit("TRLQF00304");
- }
- */
-
- }
-
- // 특이결과삭제
- function fExeEqmtdel(){
- for(i=1; i< grd_spcfrsltlist.rows; i++){
- if(model.getValue("/root/main/spcfrsltreflist["+i+"]/chio") =="Y"){
- grd_spcfrsltlist.rowStatus(i) = 4;
- }else{
- grd_spcfrsltlist.rowStatus(i) = 0;
- }
- }
- model.setValue("/root/send/data1", grd_spcfrsltlist.getUpdateData());
- //model.alert(grd_spcfrsltlist.getUpdateData());
- submit("TXLLP00601");
- //alert(model.getValue("/root/send/data1"));
- fGetSpcfRslttreflist();
- }
-
- //특이결과확인
- function fExeEqmtSave(){
- for(i=1; i< grd_spcfrsltlist.rows; i++){
- if(model.getValue("/root/main/spcfrsltreflist["+i+"]/chio") =="Y"){
- grd_spcfrsltlist.rowStatus(i) = 2;
- }else{
- grd_spcfrsltlist.rowStatus(i) = 0;
- }
- }
- model.setValue("/root/send/data1", grd_spcfrsltlist.getUpdateData());
- //model.alert(grd_spcfrsltlist.getUpdateData());
- submit("TXLLP00601");
- //alert(model.getValue("/root/send/data1"));
- fGetSpcfRslttreflist();
- }
-
- function fSelectGbn(){
- //검사분류 선택
- if(cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
- //두번째 콤보에 중분류 셋팅
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
- //두번째 콤보에 검사계코드 셋팅
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- model.setvalue("/root/hidden/testlrg", "00");
- model.setvalue("/root/hidden/testmdl/cd", "00");
-
- cmb_testLrgCd.refresh();
- cmb_testMdlCd.refresh();
- }
- function fSetSelect02(){
- var select01 = model.getvalue("/root/hidden/testlrg");
-
- //검사분류선택
- if(cmb_selectgbn.value == "1"){
- if(select01 == "00"){
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- }
- else{
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
- }
- //model.setValue("/root/hidden/select01" , "00");
- cmb_testMdlCd.refresh();
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- if(select01 == "00"){
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- else{
- cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
- }
- //model.setValue("/root/hidden/select02" , "00");
- cmb_testMdlCd.refresh();
-
- }
- }
-
- function fsetstart(){
- grd_spcfrsltlist.fixedcellcheckbox(0, 1) = true;
-
- var toDay = getCurrentDate();
- model.removeNodeset("/root/init");
-
- model.setValue("/root/send/codeflag", "0102|0104|0000|0111|0106|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
-
- model.setValue("/root/hidden/ref/refrgstsdd", toDay);
- model.setValue("/root/hidden/ref/refrgstedd", toDay);
- // model.setValue("/root/send/codeflag", "0104|0102|"); //막다
- model.removeNodeset("/root/main/spcfrsltreflist");
- submit("TRLZZ00101");
- }
-
- function fSetInit() {
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/ref/refrgstsdd", toDay);
- model.setValue("/root/hidden/ref/refrgstedd", toDay);
- model.setValue("/root/hidden/dept", '00');
- model.removeNodeset("/root/main/spcfrsltreflist");
- //fGetHospTclscd(); //검사코드상세내역 조회
- fSelectGbn();
- model.setValue("/root/hidden/search/selectgbn","1");
-
- model.refresh();
- }
-
- function fComboAalue(){
-
- if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
- cmb_dept.visible = true;
- combo2.visible = false;
- }
- else{
- cmb_dept.visible = false;
- combo2.visible = true;
-
- }
- }
- // 검사코드 리스트 조회
- function fGetTclscdList(){
- model.removeNodeset("/root/main/tclscdlist");
- grd_tclsList.rebuild();
-
- model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
- if (cmb_selectgbn.value == "1"){
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/testlrg"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/testmdl/cd"));
- }
- //조회구분 시행부서 선택시
- else if(cmb_selectgbn.value == "2"){
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
- model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
- }
- model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
- //submit("TRLLF00608");
- submit("TRLQF00303");
-
- }
-
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <datagrid id="grd_spcfrsltlist" nodeset="/root/main/spcfrsltreflist" caption="^등록일시^환자명^등록번호^진료과^병동/병실^검사항목^결과^통보자^확인자^확인일시^피통보자^통보시간^조치사항^bcno^testcd^비고" colwidth="30, 100, 50, 60, 50, 84, 130, 60, 50, 50, 100, 55, 104, 100, 0, 0,130" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; font-weight:normal; ">
- <col checkvalue="Y,N" ref="chio" type="checkbox"/>
- <col ref="rgstdt" type="output" format="yyyy-mm-dd hh:nn"/>
- <col ref="patnm"/>
- <col ref="pid"/>
- <col ref="orddept"/>
- <col ref="wardroom"/>
- <col ref="testitem"/>
- <col ref="rslt"/>
- <col ref="perchgr"/>
- <col ref="cnfmr"/>
- <col ref="cfmdt" type="output" format="yyyy-mm-dd hh:nn"/>
- <col ref="notipsn"/>
- <col ref="notitm" type="output" format="yyyy-mm-dd hh:nn"/>
- <col ref="measfact"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="bigo" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spcfrsltlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">특이결과 조회</caption>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel (grd_spcfrsltlist);
- ]]>
- </script>
- </button>
- <group id="group1" style="left:0px; top:5px; width:1195px; height:40px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">등록일자 :</caption>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpcfRslttreflist();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:790px; top:10px; width:86px; height:17px; ">시행부서 :</caption>
- <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:965px; top:10px; width:50px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_usdt" ref="/root/hidden/ref/refrgstsdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; "/>
- <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:880px; top:10px; width:85px; height:19px; font-weight:normal; ">
- <choices>
- <item>
- <label>대분류</label>
- <value>1</value>
- </item>
- <item>
- <label>중분류</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fComboAalue();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:1010px; top:5px; width:60px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_testLrgCd" ref="/root/hidden/testlrg" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:545px; top:10px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetSelect02();
- //fSetTestLrgCd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_testMdlCd" ref="/root/hidden/testmdl/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:660px; top:10px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //검사코드리스트조회
- //fGetTclscdList();
- ]]>
- </script>
- </select1>
- <caption id="caption25" class="search_name" style="left:355px; top:10px; width:87px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_selectgbn" ref="/root/hidden/search/selectgbn" class="combo_search" visibility="visible" appearance="minimal" style="left:450px; top:10px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>검사분류</label>
- <value>1</value>
- </item>
- <item>
- <label>시행부서</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectGbn();
- ]]>
- </script>
- </select1>
- </group>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">특이결과 기록관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- // for(i=1; i < grd_spcfrsltlist.rows; i++ ){
- //
- // find = grd_spcfrsltlist.findRow("Y",i,1,true)
- //
- // if(find <= 0 ) {
- // copyNodeListType("/root/hidden/report" , "/root/main/spcfrsltreflist["+ i +"]" , "after");
- //
- // }
- // else{
- // copyNodeListType("/root/hidden/report" , "/root/main/spcfrsltreflist["+ find +"]" , "after");
- //
- // }
- // }
- exeReportPreview("RPLLP90200", "XMLSTR", "/root/main/spcfrsltreflist");
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <button id="but_del" class="btn4_letter2" style="left:1009px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtdel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|