123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF00800_검사소견코드관리.xrw
- * 설 명 : 검사소견코드관리
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.07.10
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <gettestprotclist>
- <testcd/>
- <testnm/>
- <seqno/>
- <dispseq/>
- <prntflagcd/>
- <delflagcd/>
- </gettestprotclist>
- <testcdlist>
- <testnm/>
- </testcdlist>
- </main>
- <send>
- <searchtext/>
- <refflag/>
- <grddata/>
- <testcd/>
- </send>
- <hidden>
- <refgbn>0</refgbn>
- <searchtext/>
- <rdo_refflag>0</rdo_refflag>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestcmtlist"/>
- <submission id="TXLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fRdoSet();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLPC01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestprotclist"/>
- <submission id="TXLPC01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLPC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testcdlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fSetInit() {
-
- model.reset();
- }
-
- function fRdoSet(){
-
- if (rdo_refflag.value == 0 ) { // 0 : 전체 . 1 : 선택 조회
- cmb_refgbn.disabled = true;
- ipt_searchtext.disabled = true;
- ipt_searchtext.value = "";
- button2.disabled = false;
- fGetTestProtcList();
- }else if (rdo_refflag.value == 1){
- cmb_refgbn.disabled = false;
- ipt_searchtext.disabled = false;
- ipt_searchtext.value = "";
- button2.disabled = true;
- }
- }
-
-
- //행추가
- function fInsRowAdd(pGridId) {
- pGridId.additem();
- pGridId.topRow = pGridId.rows -1;
- model.refresh();
-
- }
-
- //행삭제
- function fInsRowDel() {
- grd_TestProtcList.rowStatus(grd_TestProtcList.row) = 4;
- //grd_TestCmtList.deleteItem(grd_TestCmtList.row); //행삭제
- }
-
- //조회
- function fGetTestCmtList() {
- model.setValue("/root/send/sectcd", model.getValue("/root/hidden/ref/sectcd")); //시행부서
- model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/ref/tsectcd/cd")); //시행부서상세
-
- submit("TRLLF00801");
-
- //소견상세내용 자동 조회
- fGetCmtDetlCnts("1");
- }
-
-
- //저장
- function fExeTestProtcList() {
- var ecd = model.getValue("/root/hidden/ref/tsectcd/cd");
-
- model.setValue("/root/send/grddata", grd_TestProtcList.getUpdateData());
- if(submit("TXLPC01802")){
- rdo_refflag.value = 0;
- fGetTestProtcList();
- }else{
- alert("저장중 오류가 발생하였습니다. 일련번호를 확인해 보시기 바랍니다");
- }
-
-
- //검사소견목록 자동 조회
-
-
- }
-
- // 검사코드 엔터시 검사명 조회 , 일련번호 중복 조회
- function fGetTestnm(){
- if(event.keyCode == "13"){
- //검사코드 처리 --검사코드 엔터쳤을때 이름이 나온다
- if ( grd_TestProtcList.col == 1 ) {
-
- var stclscdu = model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd");
- stclscdu = stclscdu.toUpperCase();
- model.setValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd",stclscdu);
-
-
-
- model.makeValue("/root/send/testcd", model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd"));
- submit("TRLPC00104");
-
- if(model.getValue("/root/main/testcdlist/testnm") != ""){ // 검사코드 있을때
- model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row+"]/testnm", model.getValue("/root/main/testcdlist/testnm"));
- }else{
- alert("검사코드를 확인하십시오.");
- model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row+"]/testnm", "");
- }
-
- model.refresh();
- }
- else if ( grd_TestProtcList.col == 3 ) { //알련번호중복체크
-
- //grd_eqmtlist.gridToInstance();
- var stclscdu = model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/seqno");
- stclscdu = stclscdu.toUpperCase();
- model.setValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/seqno",stclscdu);
- var icnt = 0
- var stclscd = model.getValue("/root/main/gettestprotclist["+ grd_TestProtcList.row +"]/seqno")
- //alert (stclscd);
-
- //alert("sdispseq"+sdispseq) ;
- //var findrow = grd_eqmttclscd.findRow(sdispseq , 1, 3 , true, true);
- //alert (findrow);
-
- for ( i = 1 ; i <= grd_TestProtcList.rows ; i ++){
- var ttclscd = model.getValue("/root/main/gettestprotclist["+ i +"]/seqno")
- //alert("tdispseq"+tdispseq);
- if ( stclscd == ttclscd ){
- icnt ++;
- }
- }
-
- if( icnt == 2 ){
- alert(" 일련번호는 중복입니다. ");
- model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row +"]/seqno", "");
- //fGetEqmtTclscdList(grd_eqmtlist.row)
- return;
-
- }
- }
- }
- }
-
- function fGetTestProtcList(){
-
- model.setValue("/root/send/refflag" , model.getValue("/root/hidden/refgbn"));
- model.setValue("/root/hidden/searchtext", ipt_searchtext.currentText)
- model.setValue("/root/send/searchtext" ,model.getValue("/root/hidden/searchtext"));
- submit("TRLPC01803");
-
-
- }
-
-
- //검사명 검사코드로 부분 조회
- function fKeyEvent(){
- if(event.keyCode == "13"){
- if(event.target =="ipt_searchtext"){
- //model.setValue("/root/hidden/searchtext", ipt_searchtext.currentText)
- fGetTestProtcList();
- }
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="800" style="margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:670px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:665px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사프로토콜목록</caption>
- <button id="button2" class="btn2_letter3" style="left:610px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd(grd_TestProtcList);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:554px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowDel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_TestProtcList" nodeset="/root/main/gettestprotclist" caption="검사코드^검사명^일련번호^표시순서^명칭출력구분^사용구분^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="80, 229, 70, 70, 100, 70" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:665px; height:669px; ">
- <col ref="testcd" type="input"/>
- <col ref="testnm"/>
- <col ref="seqno" type="input" style="text-align:center; "/>
- <col ref="dispseq" type="input" style="text-align:center; "/>
- <col ref="prntflagcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>검사명</label>
- <value>0</value>
- </item>
- <item>
- <label>프로토콜명</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="delflagcd" type="combo">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>삭제</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_TestProtcList.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fGetTestnm();
- ]]>
- </script>
- </datagrid>
- <group id="group1" style="left:0px; top:10px; width:665px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:660px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:580px; y1:4px; x2:580px; y2:26px; "/>
- <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:595px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestProtcList();
- ]]>
- </script>
- </button>
- <input id="ipt_searchtext" ref="/root/hidden/searchtext" inputtype="button" style="left:315px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <select1 id="cmb_refgbn" ref="/root/hidden/refgbn" appearance="minimal" style="left:218px; top:8px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>검사명</label>
- <value>0</value>
- </item>
- <item>
- <label>검사코드</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_refflag" ref="/root/hidden/rdo_refflag" appearance="full" cols="2" overflow="visible" style="left:110px; top:9px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>선택</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRdoSet();
- ]]>
- </script>
- </select1>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:670px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:650px; y2:25px; "/>
- <button id="btn_Save" class="btn4_letter2" style="left:531px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTestProtcList();
- ]]>
- </script>
- </button>
- <button id="btn_Init" class="btn4_letter3" style="left:590px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:670px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:465px; height:14px; ">검사항목별 프로토콜 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|