123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00100.xrw
- * 설 명 : 검사코드관리
- * 설 계 자 : 손주연
- * 작 성 자 : 박원희
- * 작 성 일 : 2007.03.13
- * 수정이력 :
- * 기 타 :
- -->
- <?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>사전질의코드 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <inqrlst>
- <item>
- <inqrcd/>
- <inqrnm/>
- <answcnt/>
- <useyn/>
- <inqrdispseq/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </inqrlst>
- <anslst>
- <item>
- <inqrcd/>
- <answcd/>
- <answcnts/>
- <answengcnts/>
- <reminptyn/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </anslst>
- <roomlst>
- <item>
- <inqrcd/>
- <answcd/>
- <testroomcd/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </roomlst>
- </main>
- <send>
- <srchinqrflag/>
- <srchinqrcd/>
- <srchinqrcnts/>
- <srchinstcd/>
- <save>
- <saveinqrcd/>
- <instcd/>
- <inqrflag/>
- <userid/>
- <saveinqrans/>
- <inqrcd/>
- <saveinqransroom/>
- </save>
- <ansinqrcd/>
- <answcd/>
- </send>
- <init>
- <baseinfo>
- <inqrflaglst/>
- <answflaglst/>
- </baseinfo>
- <room>
- <roomlst/>
- </room>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRAHB03191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/inqrlst"/>
- <submission id="TRZBC00101"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- btn_search. disabled = ! checkAuth("R") ;
- btn_save. disabled = ! checkAuth("X") ;
- btn_print. disabled = ! checkAuth("P") ;
- fGetInqrFlag();
- submit("TRAHB01502");
-
-
- ]]>
- </script>
- <submission id="TRAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/room/roomlst"/>
- <submission id="TRAHB03192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/anslst"/>
- <submission id="TRAHB03193" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/roomlst"/>
- <submission id="TXAHB03191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetInqrlst(){
-
- var selRow = grd_inqrlst.row;
- //var tmp = cmb_inqrflag.value ;
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
-
- if(submit("TRAHB03191")) {
- if(selRow > 0) {
- fGetInqrAns();
- }
- }
- model.removeNodeset("/root/main/roomlst/item");
- model.refresh();
- }
- /**
- * 사전질의 답안내역 가져오기
- */
- function fGetInqrAns(){
-
- var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
-
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
- model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
-
- //var tmp = model.getValue("/root/send/inqrcd" );
- //alert(tmp );
-
- submit("TRAHB03192");
- }
- /**
- * 사전질의 답안내역 가져오기
- */
- function fGetInqrAnsRoom(){
-
- var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
-
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
- model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
- model.setValue("/root/send/answcd" , grd_answlst.valueMatrix(grd_answlst.row, 2) );
-
- //var tmp = model.getValue("/root/send/inqrcd" );
- //alert(tmp );
-
- submit("TRAHB03193");
- }
-
-
-
- /**
- * 사전질의분류 가져오기
- */
- function fGetInqrFlag(){
- model.removeNodeset("/root/init/baseinfo/inqrflaglst/A0106");
- zbcfGetCodeList( new Array("A0106","A0066" ),
- new Array("/root/init/baseinfo/inqrflaglst"
- ,"/root/init/baseinfo/answflaglst" ) );
- submit("TRZBC00101");
-
- }
- /**
- * 초기화
- */
- function fInitInqrLst(){
-
- model.removeNodeset("/root/main/inqrlst/item");
- model.removeNodeset("/root/main/anslst/item");
- //model.reset();
- //. model.resetInstanceNode("/root/send/srchinqrflag");
- model.refresh();
- }
- /**
- * Save function,사전질의코드
- */
- function fSaveInqrCd() {
- var ret = false;
- if( messageBox("사전질의코드정보를","Q002") == 6){
-
- model.setValue("/root/send/save/saveinqrcd", grd_inqrlst.getUpdateData());
- model.setValue("/root/send/save/saveinqrans", grd_answlst.getUpdateData());
- model.setValue("/root/send/save/saveinqransroom", grd_roomlst.getUpdateData());
- ret = submit("TXAHB03191");
-
- return ret;
- }
- return ret;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">사전질의코드관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <datagrid id="grd_answlst" nodeset="/root/main/anslst/item" caption="사전질의코드^코드^답안^영문답안^비고입력여부^최종수정자^최종수정일시" colsep="^" colwidth="100, 100, 313, 153, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:75px; width:600px; height:325px; ">
- <col ref="inqrcd" visibility="hidden"/>
- <col ref="answcd" type="input" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="answcnts" type="input" style="left:100px; top:23px; width:441px; height:23px; "/>
- <col ref="answengcnts" type="input" visibility="hidden"/>
- <col type="input" visibility="hidden"/>
- <col ref="reminptyn"/>
- <col ref="lastupdtrid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetInqrAnsRoom();
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption3" class="search_name" style="left:11px; top:9px; width:112px; height:17px; ">사전질의코드 :</caption>
- <input id="ipt_inqrcnts" ref="/root/send/srchinqrcnts" class="input_search" style="left:435px; top:8px; width:340px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/main/anslst");
- model.removenode("/root/main/inqrlst");
-
- fGetInqrlst();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption5" class="search_name" style="left:316px; top:9px; width:119px; height:17px; ">사전질의내역 :</caption>
- <input id="ipt_inqrcd" ref="/root/send/srchinqrcd" class="input_search" style="left:130px; top:8px; width:160px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:78px; height:14px; ">사전질의코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:590px; y2:70px; "/>
- <datagrid id="grd_inqrlst" nodeset="/root/main/inqrlst/item" caption="코드^사전질의내역^답안선택수^사용여부^최종수정자^최종수정일시" colsep="^" colwidth="70, 260, 80, 50, 100, 100" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:590px; height:660px; ">
- <col ref="inqrcd" type="input"/>
- <col ref="inqrnm" type="input"/>
- <col ref="answcnt" type="input"/>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" type="input"/>
- <script type="javascript" ev:event="ondbclick">
- <![CDATA[
- //fGetInqrAns();
- alert(grd_inqrlst.valueMatrix(grd_inqrlst.row, grd_inqrlst.col));
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetInqrAns();
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:599px; top:55px; width:107px; height:14px; ">선택형답안</caption>
- <line id="line2" class="line_1" style="x1:594px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_grddel" class="btn2_letter3" style="left:537px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_inqrlst.addStatus(grd_inqrlst.row,"delete");
- deleteSelectedRows(grd_inqrlst,true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:482px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_inqrlst.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_ansadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_answlst.addRow();
- model.setValue("/root/main/anslst/item[" + (grd_answlst.rows - 1) + "]/inqrcd", model.getValue("/root/main/inqrlst/item[" + grd_inqrlst.row + "]/inqrcd"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_ansdel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_answlst.addStatus(grd_answlst.row,"delete");
- deleteSelectedRows(grd_answlst,true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_roomlst" nodeset="/root/main/roomlst/item" caption="사전질의코드^답안코드^검사실명^최종수정자^최종수정일시" colsep="^" colwidth="100, 100, 151, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:430px; width:600px; height:305px; ">
- <col ref="inqrcd" visibility="hidden"/>
- <col ref="answcd" visibility="hidden"/>
- <col ref="testroomcd" type="combo" style="left:0px; top:23px; width:100px; height:23px; ">
- <choices>
- <itemset nodeset="/root/init/room/roomlst/itemroom">
- <label ref="testroomnm"/>
- <value ref="testroomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:1085px; top:405px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_roomlst.addRow();
- model.setValue("/root/main/roomlst/item[" + (grd_roomlst.rows - 1) + "]/inqrcd", model.getValue("/root/main/anslst/item[" + grd_answlst.row + "]/inqrcd"));
- model.setValue("/root/main/roomlst/item[" + (grd_roomlst.rows - 1) + "]/answcd", model.getValue("/root/main/anslst/item[" + grd_answlst.row + "]/answcd"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:599px; top:410px; width:126px; height:14px; ">답안별 통보검사실</caption>
- <button id="button2" class="btn2_letter3" style="left:1139px; top:405px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_answlst.addStatus(grd_answlst.row,"delete");
- deleteSelectedRows(grd_roomlst,true);
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:594px; y1:425px; x2:1194px; y2:425px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInqrLst();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fSaveInqrCd()) {
- fGetInqrlst();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|