123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLR91300_Microscopy결과입력.xrw
- * 설 명 : Microscopy결과입력
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 윤재한
- * 작 성 일 : 2007.10.19
- * 수정이력 :
- * 기 타 :
- -->
- <?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>Urine Sediment Microscopy Result</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <testlist>
- <testcd/>
- <tclsscrnm/>
- <reptrslt/>
- </testlist>
- <testlist2>
- <testcd/>
- <tclsscrnm/>
- <reptrslt/>
- </testlist2>
- <rsltcdlist>
- <rsltcd/>
- <rsltcnts/>
- </rsltcdlist>
- </main>
- <send>
- <tclscd/>
- <bcno/>
- </send>
- <init/>
- <hidden>
- <temp>
- </temp>
- <urine/>
- <bcno/>
- </hidden>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fSetInit();
-
- ]]>
- </script>
- <bind id="bind1" ref="/root/main/testlist/percent" calculate="../cnt div /root/hidden/Count/Total * 100"/>
- <submission id="TRLLR91301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- <submission id="TRLLF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltcdlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit() {
- //테스트
- //model.setValue("/root/send/bcno", "I20R80050");
-
- submit("TRLLR91301");
-
- grd_testlist.row = 1;
- grd_testlist.col = 3;
-
- grd_testlist.editCell();
- grd_testlist2.refresh();
- model.refresh();
-
- fGetRslt();
- }
-
- //결과목록 조회
- function fGetRslt(ref) {
- if(ref=="2"){ // 두번째그리드
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testlist2["+ grd_testlist2.row +"]/testcd"));
- }else{
- model.makeValue("/root/send/tclscd", model.getValue("/root/main/testlist["+ grd_testlist.row +"]/testcd"));
- //model.setValue("/root/send/tclscd", "LUR11201"); //test
- }
- submit("TRLLF00702");
-
- model.refresh();
- }
-
- //결과값 넣기
- function fSetRslt() {
- var testcd = model.getValue("/root/main/rsltcdlist["+ grd_rsltlist.row +"]/tclscd");
- var find1 = grd_testlist.findRow(testcd, 1, 1, true, true);
-
- if(find1 < 0) {
- var find2 = grd_testlist.findRow(testcd, 1, 1, true, true);
-
- model.setValue("/root/main/testlist2["+ grd_testlist2.row +"]/reptrslt", model.getValue("/root/main/rsltcdlist["+ grd_rsltlist.row +"]/rsltcnts"));
- } else {
- model.setValue("/root/main/testlist["+ grd_testlist.row +"]/reptrslt", model.getValue("/root/main/rsltcdlist["+ grd_rsltlist.row +"]/rsltcnts"));
- }
-
- model.refresh();
- }
-
- //확인
- function fSetDiffCnt() {
- /*
- var vSendData = "";
- for(x=1;x<grd_TestInfoCnts.rows;x++){
-
-
-
- var tclscd = model.getValue("/root/main/testlist[" + x + "]/testcd");
- var orgrst = model.getValue("/root/main/testlist[" + x+ "]/percent");
- var count = model.getValue("/root/main/testlist[" + x+ "]/cnt");
-
- if (count.getTrim() == "" ) {//|| count.getTrim() == "0" ) {
- vSendData = vSendData + tclscd + "▦▩"; // Count가 0이거나 결과가 없으면 초기화
-
- } else {
- orgrst = fCOMLIS_RstRound(orgrst, "0", "1");
- if(model.getvalue("/root/main/testlist[" + x + "]/testcd") == "LHR10518"){
- vSendData = vSendData + tclscd + "▦" + count + "▩";
- }
- else{
- vSendData = vSendData + tclscd + "▦" + orgrst + "▩";
- }
- }
- }*/
- var nrbcTF = false;
- cnt = 1;
-
- for(i = 1; i <= grd_testlist.rows; i++) {
-
- if(model.getValue("/root/main/testlist["+ i +"]/reptrslt") != "") {
- model.setValue("/root/main/testlist["+ i +"]/bufinptrslt", model.getValue("/root/main/testlist["+ i +"]/reptrslt"));
- model.setValue("/root/main/testlist["+ i +"]/testcd2", model.getValue("/root/send/testcd"));
- model.makeNode("/root/hidden/abnormalresult/abnormallist["+ cnt +"]");
- model.copyNode("/root/hidden/abnormalresult/abnormallist["+ cnt +"]" , "/root/main/testlist["+i+"]");
-
- cnt++;
-
- nrbcTF= true;
- }
- }
-
-
- for(i = 1; i <= grd_testlist2.rows; i++) { // 두번째 그리드
-
- if(model.getValue("/root/main/testlist2["+ i +"]/reptrslt") != "") {
- model.setValue("/root/main/testlist2["+ i +"]/bufinptrslt", model.getValue("/root/main/testlist2["+ i +"]/reptrslt"));
- model.setValue("/root/main/testlist2["+ i +"]/testcd2", model.getValue("/root/send/testcd"));
- model.makeNode("/root/hidden/abnormalresult/abnormallist["+ cnt +"]");
- model.copyNode("/root/hidden/abnormalresult/abnormallist["+ cnt +"]" , "/root/main/testlist2["+i+"]");
-
- cnt++;
-
- nrbcTF= true;
- }
- }
-
- if(nrbcTF) {
- model.copyNode(opener.root.hidden.abresult , root.hidden.abnormalresult);
-
- window.close();
- }else {
- messageBox("결과 입력 된 검사가", "I004");
- }
-
- }
-
- // 첫째그리드 결과값 넣을때
- function fGetRslt2(){
- var Gcol = grd_testlist.col;
- var Grow = grd_testlist.row;
- if (event.keyCode==13) {
- var rslt = parseInt(grd_testlist.valueMatrix(Grow,Gcol));
- if(rslt > 0 && rslt < grd_rsltlist.rows){
- model.setValue("/root/main/testlist["+ grd_testlist.row +"]/reptrslt", model.getValue("/root/main/rsltcdlist["+ rslt +"]/rsltcnts"));
- }
- grd_testlist.row = Grow + 1;
- fGetRslt();
- model.refresh();
- }
- }
-
- //둘째그리드 결과값 넣을때
- function fGetRslt3(){
- var Gcol = grd_testlist2.col;
- var Grow = grd_testlist2.row;
- if (event.keyCode==13) {
- var rslt = parseInt(grd_testlist2.valueMatrix(Grow,Gcol));
- if(rslt > 0 && rslt < grd_testlist2.rows){
- model.setValue("/root/main/testlist2["+ grd_testlist2.row +"]/reptrslt", model.getValue("/root/main/rsltcdlist["+ rslt +"]/rsltcnts"));
- }
- grd_testlist2.row = Grow + 1;
- fGetRslt("2");
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="640" pageheight="610" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:616px; height:565px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:232px; y2:26px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:375px; height:13px; ">검사목록</caption>
- <datagrid id="grd_rsltlist" nodeset="/root/main/rsltcdlist" caption="결과코드^결과값" colsep="^" colwidth="54, 56" dataheight="23" rowheader="seq" rowheight="23" rowsep="|" navindex="1" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:481px; top:31px; width:132px; height:531px; text-align:center; ">
- <col ref="rsltcd"/>
- <col ref="rsltcnts"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetRslt();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:486px; top:11px; width:85px; height:13px; ">결과목록</caption>
- <line id="line3" class="line_1" style="x1:481px; y1:26px; x2:613px; y2:26px; "/>
- <line id="line2" class="line_1" style="x1:235px; y1:26px; x2:477px; y2:26px; "/>
- <datagrid id="grd_testlist2" nodeset="/root/main/testlist2" caption="검사코드^검사항목명^결과값" colsep="^" colwidth="0, 170, 50" dataheight="23" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" navindex="1" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:235px; top:31px; width:242px; height:531px; text-align:center; ">
- <col ref="testcd"/>
- <col ref="tclsscrnm" style="text-align:left; "/>
- <col ref="reptrslt" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_testlist2.isCell(event.target) && grd_testlist2.row >= grd_testlist2.fixedRows ){
- //if(grd_testlist.col != 3) {
- fGetRslt("2");
- //alert(model.getValue("/root/main/testlist["+grd_testlist.row+"]/reptrslt"));
- //}
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(grd_testlist2.col == 3) {
- fGetRslt3();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_testlist" nodeset="/root/main/testlist" caption="검사코드^검사항목명^결과값" colsep="^" colwidth="0, 160, 50" dataheight="23" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" navindex="1" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:31px; width:232px; height:531px; text-align:center; ">
- <col ref="testcd"/>
- <col ref="tclsscrnm" style="text-align:left; "/>
- <col ref="reptrslt" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows ){
- //if(grd_testlist.col != 3) {
- fGetRslt();
- //alert(model.getValue("/root/main/testlist["+grd_testlist.row+"]/reptrslt"));
- //}
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(grd_testlist.col == 3) {
- fGetRslt2();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:565px; width:615px; height:27px; ">
- <button id="btn_cnfm" class="btn4_letter2" visibility="visible" style="left:227px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDiffCnt();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:353px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:284px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|