123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLBP01800_NAT접수확인.xrw
- * 설 명 : NAT접수확인
- * 설 계 자 : (주)에이씨케이 - 박정은
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2008.02.18
- * 수정이력 :
- * 기 타 :
- -->
- <?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>NAT접수확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <natcnfm>
- <dnorlist>
- <tnsrpid/>
- <patnm/>
- <dnorno/>
- <dnornm/>
- <bcno/>
- <brgstno/>
- <bcolldt/>
- <spcacptdt/>
- <cnfmyn/>
- <execprcpuniqno/>
- <dnorseqno/>
- </dnorlist>
- <acptinfo>
- <bcollcnt/>
- <acptcnt/>
- <cnfmcnt/>
- </acptinfo>
- </natcnfm>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <refgbn/>
- <grddata/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <fromdd/>
- <todd/>
- <refgbn/>
- </ref>
- </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[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLBP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/natcnfm"/>
- <submission id="TXLBP01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 초기화
- function fSetInit() {
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/natcnfm/acptinfo");
- model.removeNodeset("/root/main/natcnfm/dnorlist");
- grd_dnor.rebuild();
-
- model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
- model.setValue("/root/hidden/ref/todd", getCurrentDate());
- model.setValue("/root/hidden/ref/refgbn", "1"); // 0- 성분헌혈전송 1- 혈액은행접수 2- comfirm 완료
- model.refresh();
-
- }
-
- // 조회버튼
- function fGetNatAcpt(){
- model.resetInstanceNode("/root/main/natcnfm/acptinfo");
- model.removeNodeset("/root/main/natcnfm/dnorlist");
- grd_dnor.rebuild();
-
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
-
- submit("TRLBP01801");
-
- }
-
- // 저장버튼
- function fExeSave(){
- //if(model.getValue("/root/hidden/ref/refgbn")=="0"){
- // messageBox("접수된 검체만 comfirm완료 할 수 있습니다. ", "I");
- //}
-
-
- if(model.getValue("/root/hidden/ref/refgbn")=="1"){ // 혈액은행접수 라디오 선택
- var grddata = grd_dnor.getUpdateData();
- /*
- var chkyn = "";
-
- for(i=1; i< grd_dnor.rows; i++){
- if(model.getValue("/root/main/natcnfm/dnorlist["+i+"]/cnfmyn")=="Y"){
- chkyn += "1";
- }
- }
-
- if(chkyn==""){
- messageBox("confirm 할 검체 전송칸에 V체크 해주세요 ", "I");
- }else{
- */
- model.setValue("/root/send/grddata", grddata);
-
- if(submit("TXLBP01801")){
- fGetNatAcpt();
- }
-
- //}
- }
- }
-
- // 출력버튼
- function fExePrint(){
-
- }
-
- // 라디오버튼 선택시마다
- function fSetRadioSelect(){
- if(model.getValue("/root/hidden/ref/refgbn")=="0"){
- btn_save.disabled = "true";
- grd_dnor.colDisabled(9) = "ture";
- }else if(model.getValue("/root/hidden/ref/refgbn")=="1"){
- btn_save.disabled = "false";
- grd_dnor.colDisabled(9) = "false";
- }else if(model.getValue("/root/hidden/ref/refgbn")=="2"){
- btn_save.disabled = "true";
- grd_dnor.colDisabled(9) = "ture";
- }
- }
-
- // 엑셀 저장
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "NAT접수_" + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- pGridId.saveExcel(fileName, "", "", "", "", "0");
- }
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption11" class="tit_2" style="left:5px; top:55px; width:94px; height:13px; ">접수정보</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:70px; x2:586px; y2:70px; "/>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <input id="input1" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회버튼
- fGetNatAcpt();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">접수일시 :</caption>
- <caption id="caption1" class="search_name" style="left:345px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <line id="line13" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
- <input id="input2" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:225px; top:8px; width:100px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:209px; top:9px; width:15px; height:17px; ">~</caption>
- <select1 id="rdo_refgbn" ref="/root/hidden/ref/refgbn" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:440px; top:10px; width:317px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>성분헌혈 전송</label>
- <value>0</value>
- </item>
- <item>
- <label>혈액은행 접수</label>
- <value>1</value>
- </item>
- <item>
- <label>Confirm 완료</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRadioSelect();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:107px; width:109px; height:13px; ">공여자 리스트</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:122px; x2:1194px; y2:122px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:75px; width:90px; height:23px; vertical-align:middle; ">성분헌혈 전송</caption>
- <output id="output3" ref="/root/main/natcnfm/acptinfo/bcollcnt" class="output_fix" style="left:93px; top:76px; width:100px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:196px; top:75px; width:90px; height:23px; vertical-align:middle; ">혈액은행 접수</caption>
- <output id="output1" ref="/root/main/natcnfm/acptinfo/acptcnt" class="output_fix" style="left:289px; top:76px; width:100px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:392px; top:75px; width:90px; height:23px; vertical-align:middle; ">Confirm 완료</caption>
- <output id="output2" ref="/root/main/natcnfm/acptinfo/cnfmcnt" class="output_fix" style="left:486px; top:76px; width:100px; height:19px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:97px; x2:586px; y2:97px; "/>
- <datagrid id="grd_dnor" nodeset="/root/main/natcnfm/dnorlist" caption="등록번호^환자성명^공여자번호^공여자명^바코드번호^헌혈증번호^성분헌혈 출고 일시^혈액은행 접수 일시^전송^uniqno^dnorseqno" colsep="^" colwidth="80, 80, 80, 80, 120, 120, 200, 200, 50, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:127px; width:1194px; height:600px; ">
- <col ref="tnsrpid"/>
- <col ref="patnm"/>
- <col ref="dnorno"/>
- <col ref="dnornm"/>
- <col ref="bcno"/>
- <col ref="brgstno"/>
- <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
- <col ref="execprcpuniqno"/>
- <col ref="dnorseqno"/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:101px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_dnor);
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">혈액은행 NAT 접수 확인</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_cle" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrint();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|