123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF00700_검사결과코드관리.xrw
- * 설 명 : 검사결과코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2006.12.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <testlist>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- </testlist>
- <rsltcdlist>
- <rsltcd/>
- <rsltcnts/>
- <listdispyn>Y</listdispyn>
- <positiveyn>Y</positiveyn>
- <rsntcddispseq/>
- <tclscd/>
- <spccd/>
- <instcd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastupdtdt/>
- <lastupdtrid/>
- </rsltcdlist>
- </main>
- <send>
- <codeflag/>
- <testlrgcd/>
- <testmdlcd/>
- <tclscd/>
- <data1>
- </data1>
- <userdeptflagcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <testlrgcd>00</testlrgcd>
- <testmdlcd>00</testmdlcd>
- </ref>
- <select01/>
- <select02/>
- <search>
- <selectgbn>1</selectgbn>
- </search>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/codeflag", "0104|0102|0000| 0111|0106|"); //0104 대분류 0102 중분류 0111 시행부서// 0106 상세시행부서
- submit("TRLZZ00101");
-
- fSelectGbn();
- model.setValue("/root/hidden/search/selectgbn","1");
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
- <submission id="TRLLF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tclscd" replace="instance" resultref="/root/main/rsltcdlist"/>
- <submission id="TXLLF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 조회구분에서 대분류와 중분류의 값을 받아 검사목록을 출력
- function fGettestRsltlist(){
- model.removeNodeset("/root/main/rsltcdlist");
- model.refresh();
- //model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
- //model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- //alert(model.getValue("/root/send/userdeptflagcd"));
- model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
- model.makeValue("/root/send/select01", model.getValue("/root/hidden/select01"));
- model.makeValue("/root/send/select02", model.getValue("/root/hidden/select02"));
-
- submit("TRLLF00701");
-
- }
-
- //검사목록 조회
- function fClickResultList(){
-
- var row = testlist.row;
- model.removeNodeset("/root/main/rsltcdlist");
- model.setValue("/root/send/tclscd" , model.getValue("/root/main/testlist["+row+"]/tclscd"));
- submit("TRLLF00702");
- checkKeyColumn("rsltcdlist"); // 키 값을 주어서 수정할수 없게 함
-
-
- }
-
- //행추가
- function fInsRowAdd() {
- var row = testlist.row;
- rsltcdlist.addRow();
- model.setValue("root/main/rsltcdlist["+rsltcdlist.row+"]/tclscd", model.getValue("root/main/testlist["+row+"]/tclscd"));
- row = rsltcdlist.row;
- model.setValue("root/main/rsltcdlist["+rsltcdlist.row+"]/rsntcddispseq", row);
- }
-
-
- //행삭제
- function fInsRowdel() {
-
- var row = rsltcdlist.row;
- rsltcdlist.rowStatus(row) = 4;
-
- }
-
- // 결과목록 삽입, 삭제, 수정
- function fExeEqmtSave() {
- if(testlist.row == -1){
- messageBox("검사항목을 선택하십시오", "I");
- return;
- }
-
- if(model.getValue("/root/main/rsltcdlist/rsltcd") == ""){
- messageBox("결과코드를 입력하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/rsltcdlist/rsltcnts") == ""){
- messageBox("결과내용을 입력하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/rsltcdlist/listdispyn") == ""){
- messageBox("목록표시여부를 선택하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/rsltcdlist/positiveyn") == ""){
- messageBox("positive여부를 선택하십시오.", "I");
- return;
- }
-
- if(model.getValue("/root/main/rsltcdlist/rsntcddispseq") == ""){
- messageBox("표시순서를 입력하십시오.", "I");
- return;
- }
- model.setValue("/root/send/data1", rsltcdlist.getUpdateData());
- submit("TXLLF00701");
- fClickResultList();
-
- }
-
- // 콤보박스 활성화
- function ftestcombo(){
- var CD = model.getValue("/root/hidden/ref/testlrgcd");
- if(CD == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = true;
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = false;
- }
- testmdlcd.refresh();
- }
-
- /* @group : 조회 구분 선택
- * @ver : 2009.10.20
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회 구분 선택 Function 검사분류, 시행부서
- */
- function fSelectGbn(){
- //검사분류 선택
- if(cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
- //두번째 콤보에 중분류 셋팅
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- cmb_select01.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
- //두번째 콤보에 검사계코드 셋팅
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- model.setvalue("/root/hidden/select01", "00");
- model.setvalue("/root/hidden/select02", "00");
-
- cmb_select01.refresh();
- cmb_select02.refresh();
- }
-
- //첫번째 콤보 선택시, 두번째 콤보 셋팅
- function fSetSelect02(){
- var select01 = model.getvalue("/root/hidden/select01");
-
- //검사분류선택
- if(cmb_selectgbn.value == "1"){
- if(select01 == "00"){
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- }
- else{
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/select02" , "00");
- cmb_select02.refresh();
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- if(select01 == "00"){
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- else{
- cmb_select02.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/select02" , "00");
- cmb_select02.refresh();
-
- }
- }
-
-
-
- ]]>
- </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:525px; y2:70px; "/>
- <datagrid id="testlist" nodeset="/root/main/testlist" caption="검사코드^검사명^검사구분코드" colsep="^" colwidth="100, 281, 120" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:525px; height:669; ">
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <col ref="tclskind"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(testlist.isCell(event.target) && testlist.row >= testlist.fixedRows){
- fClickResultList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- testlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">검사목록</caption>
- <button id="button2" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <datagrid id="rsltcdlist" nodeset="/root/main/rsltcdlist" caption="결과코드^결과내용^목록표시여부^positive여부^표시순서^검사분류코드^검체코드^기관코드^최초등록일시^최초등록자ID^최종수정일시^최종수정자ID" colsep="^" colwidth="90, 300, 80, 80,80, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:530px; top:75px; width:664px; height:669px; ">
- <col ref="rsltcd" type="input" _key="true"/>
- <col ref="rsltcnts" type="input" style="left:120px; top:23px; width:402px; height:23px; "/>
- <col ref="listdispyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="positiveyn" type="combo">
- <choices>
- <item>
- <label>YES(popup)</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- <item>
- <label>YES(result)</label>
- <value>G</value>
- </item>
- </choices>
- </col>
- <col ref="rsntcddispseq" type="input"/>
- <col ref="tclscd" type="input" visibility="hidden"/>
- <col ref="spccd" type="input" visibility="hidden"/>
- <col ref="instcd" type="input" visibility="hidden"/>
- <col ref="fstrgstdt" type="input" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="fstrgstrid" type="input" visibility="hidden"/>
- <col ref="lastupdtdt" type="input" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrid" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- rsltcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:535px; top:55px; width:131px; height:13px; ">결과코드목록</caption>
- <line id="line2" class="line_1" style="x1:530px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <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; "/>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGettestRsltlist() ;
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" visibility="hidden" appearance="minimal" itemcount="10" style="left:481px; top:8px; width:150px; 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[
- ftestcombo();
-
- ]]>
- </script>
- </select1>
- <select1 id="testmdlcd" ref="/root/hidden/ref/testmdlcd" disabled="true" visibility="hidden" appearance="minimal" itemcount="10" style="left:649px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGettestRsltlist() ;
- ]]>
- </script>
- </select1>
- <select1 id="cmb_selectgbn" ref="/root/hidden/search/selectgbn" class="combo_search" appearance="minimal" style="left:105px; top:8px; 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>
- <select1 id="cmb_select01" ref="/root/hidden/select01" class="combo_s_essential" appearance="minimal" style="left:199px; top:8px; 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();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_select02" ref="/root/hidden/select02" class="combo_s_essential" appearance="minimal" style="left:312px; top:8px; width:153px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGettestRsltlist() ;
- //fGetTclscdList();
-
- //if(model.getValue("/root/hidden/select02") != "00"){
- // fSetDetlTestMdlcd();
- //}
-
-
- ]]>
- </script>
- </select1>
- </group>
- <button id="button1" class="btn2_letter3" style="left:1086px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </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>
- </xhtml:body>
- </xhtml:html>
|