123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF00900_참조검사코드관리.xrw
- * 설 명 : 참조검사코드관리
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007. 07. 27
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <gettestitem>
- <tclscd/>
- <tclsnm/>
- <spccd/>
- <tclskind/>
- </gettestitem>
- <gettestlist>
- <choi/>
- <tclscd/>
- <tclsnm/>
- <spccd/>
- </gettestlist>
- <getreftestlist>
- <reftclscd/>
- <tclsnm/>
- <refspccd/>
- </getreftestlist>
- </main>
- <send>
- <lrgcd/>
- <mdlcd/>
- <codeflag/>
- <reftestdata/>
- <testflag/>
- <tclscd/>
- <spccd/>
- <userdeptflagcd/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <lrgcd>00</lrgcd>
- <mdlcd>
- <cd>00</cd>
- <nm/>
- </mdlcd>
- <testlrgcd>00</testlrgcd>
- <testmdlcd>
- <cd>00</cd>
- <nm/>
- </testmdlcd>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0104 대분류 | 0102 중분류
- submit("TRLZZ00101");
-
- //검사목록 조회
- fTestList();
- model.removeNodeset("/root/main/gettestitem");
- grd_TestItem.refresh();
- model.removeNodeset("/root/main/getreftestlist");
- grd_RefTestList.refresh();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <submission id="TRLZZ00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLLF00901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/gettestitem"/>
- <submission id="TRLLF00902" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/getreftestlist"/>
- <submission id="TXLLF00901" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <submission id="TRLLF01701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/gettestlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //중분류 초기정보 조회
- function fSetLrgCd(){
- var etc = model.getvalue("/root/hidden/ref/lrgcd");
-
- if(etc == "00"){
- cmb_MdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setValue("/root/hidden/ref/mdlcd/cd" , "00");
- }
- else{
- model.setValue("/root/hidden/ref/mdlcd/cd" , "00");
- cmb_MdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
- }
- cmb_MdlCd.refresh();
-
- fTestList();
- }
-
- //중분류 초기정보 조회
- function fSetTestLrgCd(){
- var lrg = model.getvalue("/root/hidden/ref/testlrgcd");
-
- if(lrg == "00"){
- cmb_TestMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setValue("/root/hidden/ref/testmdlcd/cd" , "00");
- }
- else{
- model.setValue("/root/hidden/ref/testmdlcd/cd" , "00");
- cmb_TestMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ lrg +"']";
- }
- cmb_TestMdlCd.refresh();
- }
-
- //초기시 검사목록 조회
- function fTestList() {
- model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/mdlcd/cd"));
- model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/lrgcd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF01701");
- }
-
- //참조검사목록 행삭제
- function fDelRefTestListRow() {
- //grd_RefTestList.rowStatus(grd_RefTestList.row) = 1;
- grd_RefTestList.deleteRow(grd_RefTestList.row);
-
- //for(i = 1; i < grd_RefTestList.rows; i++) {
- // grd_RefTestList.rowStatus(i) = 1;
- //}
-
- }
-
- //검사항목 조회
- function fGetTestItem() {
- model.setValue("/root/send/mdlcd", model.getValue("/root/hidden/ref/testmdlcd/cd"));
- model.setValue("/root/send/lrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF00901");
-
- model.removeNodeset("/root/main/getreftestlist");
- grd_RefTestList.refresh();
- grd_TestItem.refresh();
- }
-
- //참조검사목록 조회
- function fGetRefTestList() {
- model.setValue("/root/send/tclscd", model.getValue("/root/main/gettestitem["+ grd_TestItem.row +"]/tclscd"));
- model.setValue("/root/send/spccd", model.getValue("/root/main/gettestitem["+ grd_TestItem.row +"]/spccd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF00902");
- }
-
- //참조검사목록으로 올리기
- function fSetRefTestList() {
-
- var row = grd_RefTestList.rows;
- var bfcheck = 0;
-
- for(i=1; i< grd_TestList.rows; i++){
-
- var fcheck = grd_TestList.findRow("Y", i, 1, false, true);
-
- if(fcheck == -1 ) {
- break;
- }
- i = fcheck;
-
- if(fcheck > bfcheck){
-
- var tcd= model.getValue("/root/main/gettestlist["+fcheck+"]/tclscd");
- var trow = grd_RefTestList.findRow(tcd, 1, 1, false, true);
-
- if(trow > 0){
- alert("이미 선택된 코드입니다.");
- } else {
- grd_RefTestList.addRow(false);
- model.makeNode("/root/main/getreftestlist["+row+"]/reftclscd");
- model.makeNode("/root/main/getreftestlist["+row+"]/tclsnm");
- model.makeNode("/root/main/getreftestlist["+row+"]/refspccd");
- model.setValue("/root/main/getreftestlist["+row+"]/reftclscd", model.getValue("/root/main/gettestlist["+fcheck+"]/tclscd"));
- model.setValue("/root/main/getreftestlist["+row+"]/tclsnm", model.getValue("/root/main/gettestlist["+fcheck+"]/tclsnm"));
- model.setValue("/root/main/getreftestlist["+row+"]/refspccd", model.getValue("/root/main/gettestlist["+fcheck+"]/spccd"));
-
- row++;
- }
- }
-
- bfcheck = fcheck;
- }
- grd_RefTestList.refresh();
- //for(i = 1; i < grd_RefTestList.rows; i++) {
- // grd_RefTestList.rowStatus(i) = 1;
- //}
- }
-
- //저장
- function fSaveRefTestList() {
- if(grd_RefTestList.rows == 1) {
- model.setValue("/root/send/testflag", "0");
- } else {
- model.setValue("/root/send/testflag", "1");
-
- for(i = 1; i < grd_RefTestList.rows; i++) {
- grd_RefTestList.rowStatus(i) = 1;
- }
-
- }
-
- model.setValue("/root/send/reftestdata", grd_RefTestList.getUpdateDataAll("i"));
- model.setValue("/root/send/tclscd", model.getValue("/root/main/gettestitem[" + grd_TestItem.row + "]/tclscd"));
- model.setValue("/root/send/spccd", model.getValue("/root/main/gettestitem[" + grd_TestItem.row + "]/spccd"));
-
- submit("TXLLF00901");
-
- fGetTestItem();
- model.removeNodeset("/root/main/getreftestlist");
- grd_RefTestList.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:565px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:80px; height:13px; ">검사항목</caption>
- <caption id="caption3" class="tit_2" style="left:570px; top:435px; width:110px; height:13px; ">검사목록</caption>
- <line id="line2" class="line_1" style="x1:570px; y1:450px; x2:1190px; y2:450px; "/>
- <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:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetTestItem();
- ]]>
- </script>
- </button>
- <select1 id="cmb_TestMdlCd" ref="/root/hidden/ref/testmdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:309px; top:8px; width:198px; 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[
- fGetTestItem();
-
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="cmb_TestLrgCd" ref="/root/hidden/ref/testlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:198px; 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[
- fSetTestLrgCd();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:570px; top:55px; width:110px; height:13px; ">참조검사목록</caption>
- <line id="line4" class="line_1" style="x1:570px; y1:70px; x2:1190px; y2:70px; "/>
- <button id="button104" class="icon_top" style="left:860px; top:398px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //선택검사목록
- fSetRefTestList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_MdlCd" ref="/root/hidden/ref/mdlcd/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:992px; top:429px; width:198px; 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[
- fTestList();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:698px; top:429px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="cmb_LrgCd" ref="/root/hidden/ref/lrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:791px; top:429px; width:198px; 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[
- fSetLrgCd();
- ]]>
- </script>
- </select1>
- <datagrid id="grd_RefTestList" nodeset="/root/main/getreftestlist" caption="검사코드^검사명" colwidth="82, 457" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="seq" rowheight="32" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:75px; width:620px; height:308px; ">
- <col ref="reftclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_RefTestList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_TestList" nodeset="/root/main/gettestlist" overflow="scroll" scroll="autovscroll" caption="^검사코드^검사명" colwidth="26, 82, 411" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:455px; width:620px; height:276px; ">
- <col ref="choi" type="checkbox" checkvalue="Y,N"/>
- <col ref="tclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_TestList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" style="left:1135px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelRefTestListRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_TestItem" nodeset="/root/main/gettestitem" caption="검사코드^검사명^검사코드구분" colwidth="82, 286, 100" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" colsep="^" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:565px; height:667px; ">
- <col ref="tclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <col ref="tclskind"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetRefTestList();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_TestItem.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </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[
- fSaveRefTestList();
- ]]>
- </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>
|