123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP01300_수정된검사결과조회.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>
- <![CDATA[]]>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <updtrsltlist>
- <chk/>
- <updtdt/>
- <pid/>
- <patnm/>
- <orddeptnm/>
- <wardroom/>
- <tclsnm/>
- <updtbfrslt/>
- <updtbfreptnm/>
- <updtaftrslt/>
- <updtaftreptnm/>
- <updtresn/>
- <notidt/>
- </updtrsltlist>
- </main>
- <send>
- <codeflag/>
- <usdd/>
- <uedd/>
- <testlrgcd/>
- <sectcd/>
- <refflag/>
- <bcno/>
- <pid/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <refrgstsdd/>
- <refrgstedd/>
- </ref>
- <testlrgcd>00</testlrgcd>
- <sectcd>00</sectcd>
- <refflag>1</refflag>
- <pid/>
- <bcno/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/ref/refrgstsdd", toDay);
- model.setValue("/root/hidden/ref/refrgstedd", toDay);
- ipt_usdt.refresh();
- ipt_uedt.refresh();
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0104|0111|"); //0104 검사 대분류
-
- updtrsltlist.fixedcellcheckbox(0,1) = true;
-
- submit("TRLZZ00101");
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLP01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/updtrsltlist"/>
- <submission id="TXLLP01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 조회
- function fupdtaftrsltlist(){
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/testlrgcd"));
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd"));
- model.setValue("/root/send/refflag", model.getValue("/root/hidden/refflag"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
- model.setValue("/root/send/bcno", model.getValue("/root/hidden/bcno"));
-
- //alert(model.getValue("/root/send/usdd"));
- //alert(model.getValue("/root/send/uedd"));
- //alert(model.getValue("/root/send/testlrgcd"));
- submit("TRLLP01301");
-
- // ↓ 환자이름 동일하면 같은내용 안보이게
- var pid = model.getValue("/root/main/updtrsltlist[1]/pid");
-
- for(i = 1; i < updtrsltlist.rows; i++) {
- if(i == 1 || model.getValue("/root/main/updtrsltlist["+i+"]/pid") != pid) {
- pid = model.getValue("/root/main/updtrsltlist["+i+"]/pid");
- } else if(model.getValue("/root/main/updtrsltlist["+i+"]/pid") == pid) {
- model.setValue("/root/main/updtrsltlist["+i+"]/updtdt", "");
- model.setValue("/root/main/updtrsltlist["+i+"]/pid", "");
- model.setValue("/root/main/updtrsltlist["+i+"]/patnm", "");
- model.setValue("/root/main/updtrsltlist["+i+"]/orddeptnm", "");
- model.setValue("/root/main/updtrsltlist["+i+"]/wardroom", "");
-
- }
- }
-
-
- }
-
- //수정결과 삭제
- function fDelete(){
-
- for(i=1; i<updtrsltlist.rows; i++ ){
- if(model.getValue("/root/main/updtrsltlist["+i+"]/chk")=="Y"){
- updtrsltlist.rowStatus(i)= 2;
- }else{
- updtrsltlist.rowStatus(i)= 0;
- }
- }
- model.makeValue("/root/send/updtrsltlist", updtrsltlist.getUpdateData());
-
- if(submit("TXLLP01301")){
- fupdtaftrsltlist();
- }
- }
-
- // 엑셀저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
-
- function fKeyEvent(){
-
- if(event.keyCode == "13"){
-
- // 등록번호 바코드 리딩시
- if(event.target == "ipt_pid"){
- model.setvalue("/root/hidden/pid", (ipt_pid.currentText).toUpperCase());
-
-
- fupdtaftrsltlist();
-
- ipt_pid.selBegin = 0;
- ipt_pid.selEnd = ipt_pid.currentText.length;
- }
-
- // 검체번호 바코드 리딩시
- if(event.target == "ipt_bcno"){
- model.setvalue("/root/hidden/bcno", (ipt_bcno.currentText).toUpperCase());
-
-
- fupdtaftrsltlist();
-
- ipt_bcno.selBegin = 0;
- ipt_bcno.selEnd = ipt_bcno.currentText.length;
- }
-
- }
- }
-
- ]]>
- </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; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; 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:5px; 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[
- fupdtaftrsltlist()
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_n_b" style="left:196px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption1" class="search_name" style="left:316px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_sectcd" ref="/root/hidden/sectcd" visibility="hidden" appearance="minimal" style="left:494px; top:8px; width:155px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="testlrgcd" ref="/root/hidden/testlrgcd" appearance="minimal" style="left:494px; top:8px; width:155px; 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:94px; top:8px; width:100px; height:19px; font-weight:normal; "/>
- <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:209px; top:8px; width:100px; height:19px; font-weight:normal; "/>
- <select1 id="combo2" ref="/root/hidden/refflag" appearance="minimal" style="left:404px; top:8px; 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[
- if(combo2.value == "1"){ //검사분류
- testlrgcd.visible = true;
- cmb_sectcd.visible = false;
- }else{
- testlrgcd.visible = false;
- cmb_sectcd.visible = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:660px; top:10px; width:99px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" class="search_name" style="left:875px; top:10px; width:99px; height:17px; ">바코드번호 :</caption>
- <input id="ipt_pid" ref="/root/hidden/pid" class="input_s_button" inputtype="button" style="left:750px; top:10px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(model.getValue("/root/hidden/pid") == ""){
- alert("등록번호를 입력하십시오");
- }else{
- fupdtaftrsltlist();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <input id="ipt_bcno" ref="/root/hidden/bcno" class="input_s_button" inputtype="button" style="left:980px; top:9px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(model.getValue("/root/hidden/bcno") == ""){
- alert("바코드번호를 입력하십시오");
- }else{
- fupdtaftrsltlist();
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">수정결과조회</caption>
- <datagrid id="updtrsltlist" nodeset="/root/main/updtrsltlist" caption="^수정일시^등록번호^성명^진료과^병동/병실^수정검사항목^수정전결과^수정전보고자^수정후결과^수정후보고자^수정사유^bcno^통보시간" colwidth="30, 137, 76, 82, 67, 106, 131, 120, 83, 120, 85, 143, 100, 105" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="updtdt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="pid" type="output"/>
- <col ref="patnm" type="output"/>
- <col ref="orddeptnm" type="output"/>
- <col ref="wardroom" type="output"/>
- <col ref="tclsnm" type="output"/>
- <col ref="updtbfrslt" type="output"/>
- <col ref="updtbfreptnm"/>
- <col ref="updtaftrslt" type="output"/>
- <col ref="updtaftreptnm"/>
- <col ref="updtresn" type="output"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="notidt" type="output" visibility="hidden"/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:48px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(updtrsltlist);
- ]]>
- </script>
- </button>
- </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[
- model.reset();
- ]]>
- </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="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/print/fromdd", model.getValue("/root/hidden/ref/refrgstsdd") );
- model.makeValue("/root/main/print/todd", model.getValue("/root/hidden/ref/refrgstedd") );
- exeReportPreview("RPLLP01300", "XMLSTR");
- model.removeNodeset("/root/main/print");
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" style="left:1068px; top:3px; width:68px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelete();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|