123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00700.xrw
- * 설 명 : 결과예문관리
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- * 기 타 :
- -->
- <?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>
- <rsltexmpcdlst>
- <item>
- <afseq/>
- <rsltexmpcd/>
- <rsltexmpcnts/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </rsltexmpcdlst>
- <rsltexmpcntslst>
- <item>
- <afseq/>
- <rsltexmpcd/>
- <rsltexmpcnts/>
- </item>
- </rsltexmpcntslst>
- </main>
- <send>
- <srchrsltexmpcd/>
- <srchrsltexmpcnts/>
- <srchratype/>
- <save>
- </save>
- <srchinstcd/>
- </send>
- <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"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //화면권한추가
- btn_search.disabled = ! checkAuth("R");
- btn_save.disabled = ! checkAuth("X");
- btn_clear.disabled = ! checkAuth("X");
- btn_print.disabled = ! checkAuth("P");
-
- model.removeNodeset("/root/main/rsltexmpcdlst/item");
- model.removeNodeset("/root/main/rsltexmpcnts/item");
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcdlst"/>
- <submission id="TRAHB00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcntslst"/>
- <submission id="TXAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetRexmCdList(){
- fInit(false);
- // ipt_exmpcd.disabled = false
- // model.removeNodeset("/root/main/rsltexampcdlst/item");
- // model.removeNodeset("/root/main/rsltexmpcntslst/item");
- if(model.getValue("/root/send/srchratype") == ""){
- messageBox("구분을","C002");
- model.setFocus("ipt_afseq");
- }
- model.setvalue("root/send/srchinstcd",getUserInfo("dutplceinstcd"));
- submit("TRAHB00701");
- // model.resetInstanceNode("/root/send/srchrsltexmpcd");
- // model.resetInstanceNode("/root/send/srchrsltexmpcnts");
-
- }
-
- function fGetRexmCnts(bCopy){
-
- var idx = grd_rexm.Row;
- if( idx < 1) return ;
-
- ipt_exmpcd.disabled = !bCopy ;
-
- model.setvalue("root/send/srchinstcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchrsltexmpcd",model.getValue("/root/main/rsltexmpcdlst/item[" +idx+ "]/rsltexmpcd" ));
- submit("TRAHB00702");
- model.resetInstanceNode("/root/send/srchrsltexmpcd");
- model.refresh();
-
- if(bCopy == true ) {
- model.setValue("/root/main/rsltexmpcnts","");
- model.refresh();
- model.setFocus("ipt_exmpcd");
- }
-
- }
-
- function fSaveRexmCd(vDel){
- if(vDel == true ) {
- if ( messageBox("정보를","Q001") !=6 ) return ;
- }
- else {
- if ( messageBox("정보를","Q002") !=6 ) return ;
- }
- //if(!fCheckVal()) return ;
-
- model.copyNode("/root/send/save", "/root/main/rsltexmpcntslst/item");
-
- var vMode = "/root/send/save/mode";
- model.makeNode(vMode);
- if( ipt_exmpcd.disabled == true ){
- //update
- if(vDel == false ) {
- model.setValue(vMode, "u");
- }
- else {
- model.setValue(vMode, "d");
- }
- }
- else {
- //신규생성
- model.setValue(vMode, "i");
-
- }
-
- //var tmp = model.getvalue(vMode);
- //alert(tmp);
-
- var vTmp = "/root/send/save/srchinstcd";
- model.makeNode(vTmp);
- model.setvalue(vTmp,getUserInfo("dutplceinstcd"));
- var vTmp2 = "/root/send/save/srchratype";
- model.makeNode(vTmp2);
- model.setvalue(vTmp2,model.getValue("/root/send/srchratype"));
- if(submit("TXAHB00701")) {
- fGetRexmCdList();
- }
-
- }
-
- function fInit(vInput){
- ipt_exmpcd.disabled = false;
- if( vInput == false ) {
- //model.removeNodeset("/root/main/rsltexmpcdlst/item");
- model.resetInstanceNode("/root/main/rsltexmpcntslst/item");
- }
- model.resetInstanceNode("/root/main/rsltexmpcnts");
- model.setFocus("ipt_afseq");
- model.refresh();
- }
-
- function fCheckVal(){
- var vCd = model.getValue("/root/main/rsltexmpcntslst/item/rsltexmpcd");
-
- if(vCd == "") {
- messageBox("결과예문코드는","I003");
- model.setFocus("ipt_exmpcd");
- }
-
- return true;
- }
-
- function fGetExmpDetlInfo(bCopy){
- var idx = grd_rexm.Row;
- if( idx < 1) return ;
- ipt_exmpcd.disabled = !bCopy ;
- model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchjudgexmpcd2",model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
- submit("TRAHB00802");
- if(bCopy == true ) {
- model.setValue("/root/main/judgexmpdetl/item/judgexmpcd","");
- model.refresh();
- model.setFocus("ipt_exmpcd");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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:255px; height:13px; ">
- <![CDATA[결과예문관리 & 추후관리예문]]>
- </caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:720px; top:55px; width:78px; height:14px; ">예문작성란</caption>
- <line id="line10" class="line_3" style="x1:715px; y1:725px; x2:1194px; y2:725px; "/>
- <line id="line1" class="line_1" style="x1:715px; y1:70px; x2:1194px; y2:70px; "/>
- <line id="line2" class="line_2" style="x1:715px; y1:97px; x2:1194px; y2:97px; "/>
- <line id="line3" class="line_2" style="x1:715px; y1:121px; x2:1194px; y2:121px; "/>
- <caption id="caption7" class="cell_1" style="left:715px; top:98px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">예문코드</caption>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:90px; height:14px; ">예문내역</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:710px; y2:70px; "/>
- <line id="line5" class="line_2" style="x1:715px; y1:145px; x2:1194px; y2:145px; "/>
- <line id="line8" class="line_2" style="x1:715px; y1:273px; x2:1194px; y2:273px; "/>
- <input id="ipt_exmpcd" ref="/root/main/rsltexmpcntslst/item/rsltexmpcd" class="input_essential" style="left:797px; top:99px; width:388px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13) {
- model.setFocus("ipt_shrthang");
- }
- ]]>
- </script>
- </input>
- <textarea id="tar_hangcnts" ref="/root/main/rsltexmpcntslst/item/rsltexmpcnts" scroll="vertical" style="left:796px; top:122px; width:392px; height:590px; "/>
- <group id="grp_search" 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="caption21" class="search_name" style="left:291px; top:8px; width:86px; height:17px; ">예문코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRexmCdList();
- ]]>
- </script>
- </button>
- <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
- <input id="ipt_examcnts" ref="/root/send/srchrsltexmpcnts" class="input_search" style="left:750px; top:8px; width:290px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_examcd" ref="/root/send/srchrsltexmpcd" class="input_search" style="left:380px; top:8px; width:165px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption22" class="search_name" style="left:660px; top:8px; width:86px; height:17px; ">예문내용 :</caption>
- <select1 id="cmb_srchhealexamflag" ref="/root/send/srchratype" class="combo_search" appearance="minimal" style="left:75px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>결과예문</label>
- <value>A</value>
- </item>
- <item>
- <label>추후관리예문</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:11px; top:8px; width:86px; height:17px; ">구분 :</caption>
- </group>
- <caption id="caption2" class="cell_1" style="left:715px; top:122px; width:79px; height:590px; font-family:돋움; vertical-align:middle; ">예문내용</caption>
- <datagrid id="grd_rexm" nodeset="/root/main/rsltexmpcdlst/item" caption="순서^예문코드^예문내용^최종수정자^최종수정일시" colsep="^" colwidth="30,78, 448, 64, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:710px; height:650px; ">
- <col ref="afseq"/>
- <col ref="rsltexmpcd"/>
- <col ref="rsltexmpcnts"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetRexmCnts(false);
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="cell_1" style="left:715px; top:74px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">정렬순서</caption>
- <input id="ipt_afseq" ref="/root/main/rsltexmpcntslst/item/afseq" class="input_essential" style="left:798px; top:75px; width:388px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13) {
- model.setFocus("ipt_exmpcd");
- }
- ]]>
- </script>
- </input>
- </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_save" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveRexmCd(false);
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveRexmCd(true);
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit(false);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|