123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>물품이동내역승인(물품받는부서)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <moveconf>
- <moveconflist/>
- </moveconf>
- </main>
- <send>
- <search>
- <instcd/>
- <fromdeptcd/>
- <fromdeptnm/>
- <movefromdd/>
- <movetodd/>
- <movegubun>2</movegubun>
- </search>
- <save>
- <moveconflist/>
- </save>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_moveconflist);
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/search/movefromdd" , getCurrentDate());
- model.setValue("/root/send/search/movetodd" , getCurrentDate());
- model.setValue("/root/send/search/fromdeptcd",getUserInfo("dutunitcd"));
- model.setValue("/root/send/search/fromdeptnm",getUserInfo("dutunitnm"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSO22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/moveconf"/>
- <submission id="TXRSO22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:243px; height:15px; ">물품이동내역승인(물품받는부서)</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/save/moveconflist",grd_moveconflist.getUpdateData());
- if(submit("TXRSO22901")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_help" class="btn4_letter3" navindex="12" style="left:1070px; top:3px; width:68px; height:22px; ">
- <caption>도움말</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRSO22901.xrw", "modeless","", "", "","");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:0px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1128px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_fromdeptcd.value == "") {
- messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
- model.setFocus("ipt_fromdeptcd");
- return;
- };
- if(ipt_movefromdd.value.length < 8) {
- messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_movefromdd");
- return;
- };
- if(ipt_movetodd.value.length < 8) {
- messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_movetodd");
- return;
- };
- misfGridInit(grd_moveconflist);
- if(submit("TRRSO22901")){
- for(i = 1 ; i < grd_moveconflist.rows ; i++){
- var movegubun = grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun"))
- if(movegubun == "2"){
- grd_moveconflist.cellAttribute("disabled", i, grd_moveconflist.colRef("movegubun")) = "true";
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:30px; "/>
- <button id="btn_delivedeptcd" class="icon_search" navindex="5" style="left:397px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_fromdeptcd,"", "fromdeptcd,fromdeptnm");
- ipt_fromdeptcd.refresh();
- opt_fromdeptcd.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:67px; top:8px; width:136px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_movetodd" ref="/root/send/search/movetodd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:800px; top:8px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:235px; top:9px; width:81px; height:17px; vertical-align:middle; ">부서:</caption>
- <caption id="caption4" style="left:785px; top:9px; width:20px; height:20px; ">~</caption>
- <input id="ipt_fromdeptcd" ref="/root/send/search/fromdeptcd" class="input_default" navindex="4" style="left:290px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "fromdeptcd,fromdeptnm" );
- ipt_fromdeptcd.refresh();
- opt_fromdeptcd.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //2012.04.05 박준범 추가
- inputEnterKey("ipt_fromdeptcd", "xforms-value-changed");
- ]]>
- </script>
- </input>
- <input id="ipt_movefromdd" ref="/root/send/search/movefromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:695px; top:8px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관:</caption>
- <output id="opt_fromdeptcd" ref="/root/send/search/fromdeptnm" class="output_fix" appearance="output" style="left:415px; top:8px; width:156px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:614px; top:9px; width:86px; height:17px; ">이동일자:</caption>
- </group>
- <caption id="caption2" class="tit_2" style="left:0px; top:45px; width:215px; height:13px; ">이동요청내역승인(물품받는부서)</caption>
- <datagrid id="grd_moveconflist" nodeset="/root/main/moveconf/moveconflist" class="datagrid2" caption="이동일자^물품코드^물품명^규격^수량^물품보내는부서^물품받는부서^이동승인^caption1^caption2" colsep="^" colwidth="103, 125, 234, 233, 60, 170, 170, 60, 1, 1, 1, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="9" style="left:0px; top:65px; width:1195px; height:650px; ">
- <col ref="movedd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="goodcd" type="output"/>
- <col ref="goodhngnm"/>
- <col ref="goodspec"/>
- <col ref="moveqty" type="input" style="text-align:center; "/>
- <col ref="fromdeptnm" type="output"/>
- <col ref="todeptnm" type="output"/>
- <col ref="movegubun" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>2</value>
- </item>
- <item>
- <label>N</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden"/>
- <col ref="moveno" visibility="hidden"/>
- <col ref="fromdeptcd" visibility="hidden"/>
- <col ref="todeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "goodcd"){
- rszfOpenPopUpListByWndName(grd_movereqlist,"","goodcd,allsizespecid,goodhngnm,goodspec,purcunit","SPRSD00210","instcd","cmb_instcd","Y");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1195px; y2:60px; "/>
- <button id="btn_add" class="btn2_letter4" navindex="10" style="left:1128px; top:40px; width:64px; height:19px; ">
- <caption>전체승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(i = 1 ; i < grd_moveconflist.rows ; i++){
- var movegubun = grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun"));
- if(movegubun != "2"){
- grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun")) = "2";
- grd_moveconflist.rowStatus(i) = 2;
- }
- }
- grd_moveconflist.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|