123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>제한부서등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <limreq>
- <limreqdeptlist/>
- </limreq>
- </list>
- </main>
- <target>
- <defaultvalue>
- <instcd/>
- <instnm/>
- <goodcd/>
- <goodnm/>
- </defaultvalue>
- </target>
- <send>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <instnm/>
- <save>
- <limreqdeptlist/>
- </save>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC05410" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/limreq"/>
- <submission id="TXRSC05410" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_limdept);
-
- misfMsterDetailSet(grd_limdept,null, "TRRSC05410" ,"Y");
- model.setValue("/root/send/instcd", model.getValue(PURTARGET_NODE + "/instcd"));
- model.setValue("/root/send/instnm", model.getValue(PURTARGET_NODE + "/instnm"));
- model.setValue("/root/send/goodcd", model.getValue(PURTARGET_NODE + "/goodcd"));
- model.setValue("/root/send/goodnm", model.getValue(PURTARGET_NODE + "/goodnm"));
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- function fCheckSaveData()
- {
- if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드가 존재하지 않아 저장 " ,"E001");
- return false;
- }
- if(model.getValue(opt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품코드가 존재하지 않아 저장 " ,"E001");
- return false;
- }
-
- for(var currow = grd_limdept.fixedRows; currow < grd_limdept.rows ; currow++)
- {
- if(grd_limdept.valueMatrix(currow , grd_limdept.colRef("reqdeptcd")).length == 0)
- {
- messageBox(currow + " 번째 부서코드를 " ,"C001");
- grd_limdept.row = currow;
- grd_limdept.col= grd_limdept.colRef("reqdeptcd");
- grd_limdept.editCell();
- return false;
- }
- else
- {
- for(srcrow = currow + 1 ; srcrow < grd_limdept.rows ; srcrow++)
- {
- if(grd_limdept.valueMatrix(currow , grd_limdept.colRef("reqdeptcd")) == grd_limdept.valueMatrix(srcrow , grd_limdept.colRef("reqdeptcd")))
- {
- messageBox("동일 부서 코드가 [" + currow + "," +srcrow + "->" + grd_limdept.valueMatrix(currow , grd_limdept.colRef("reqdeptnm")) + "] 존재하여 저장 " ,"E001");
- return false;
- }
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="370" pageheight="690" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:335px; height:680px; ">
- <line id="line4" class="line_1" style="x1:0px; y1:101px; x2:333px; y2:101px; "/>
- <group id="grp_sea" style="left:0px; top:45px; width:334px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:334px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <output id="opt_goodcd" ref="/root/send/goodcd" navindex="2" class="output_fix" visibility="hidden" style="left:165px; top:9px; width:125px; height:19px; text-align:right; "/>
- <output id="opt_instcd" ref="/root/send/instcd" navindex="2" class="output_fix" visibility="hidden" style="left:125px; top:9px; width:100px; height:19px; text-align:right; "/>
- <caption id="opt_instnm" ref="/root/send/instnm" navindex="2" class="input_fix" editable="false" style="left:5px; top:9px; width:100px; height:19px; text-decoration:underline; text-align:left; "/>
- <caption id="opt_goodnm" ref="/root/send/goodnm" navindex="2" class="input_fix" editable="false" style="left:105px; top:9px; width:228px; height:19px; text-decoration:underline; text-align:left; "/>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:84px; width:140px; height:13px; ">제한부서등록</caption>
- <button id="button4" class="btn2_letter3" style="left:280px; top:81px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_limdept, "D");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:226px; top:81px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_limdept, "A");
- model.setValue(grd_limdept.nodeset + "["+ grd_limdept.row + "]/instcd" , model.getValue("root/send/instcd"));
- model.setValue(grd_limdept.nodeset + "["+ grd_limdept.row + "]/goodcd" , model.getValue("root/send/goodcd"));
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:279px; top:655px; width:56px; height:22px; ">
- <caption>취소</caption>
- </button>
- <button id="button28" class="btn4_letter2" style="left:222px; top:655px; width:56px; height:22px; ">
- <caption>확인</caption>
- </button>
- <datagrid id="grd_limdept" nodeset="/root/main/list/limreq/limreqdeptlist" caption="부서^부서" colwidth="110, 200" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:106px; width:333px; height:548px; ">
- <col ref="reqdeptcd" type="inputbutton"/>
- <col ref="reqdeptnm"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_limdept.colRef("reqdeptcd") == grd_limdept.col)
- {
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", grd_limdept,"", recv_list) ;
- model.refresh();
- // rszfOpenPopUpListByWndName(grd_limdept,"","reqdeptcd,reqdeptnm","SPRSD00160","","");
- // model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:5px; top:12px; width:329px; height:27px; ">
- <line id="line17" class="line_2" style="x1:0px; y1:25px; x2:329px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:202px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- misfSave("TXRSC05410");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:258px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_search" navindex="4" class="btn1_letter2" style="left:145px; top:3px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <script type="javascript" ev:event="onwindowdeactivate">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPRSC00211_", grd_limdept.rows - grd_limdept.fixedRows);
-
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|