123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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>세탁물청구부서코드 HELP</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <deptcodelist>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd/>
- <supdeptnm/>
- <userid/>
- <useyn/>
- </deptcodelist>
- <cond>
- <deptcd/>
- </cond>
- <csrdeptlist/>
- </main>
- <target/>
- <init>
- <refcond>
- <label>부서코드</label>
- <value>deptcd</value>
- <label>부서명</label>
- <value>deptnm</value>
- </refcond>
- </init>
- <send>
- <deptref>
- <refcond/>
- <deptnm/>
- <deptcd/>
- <instcd/>
- </deptref>
- <comcdref>
- <cdgrupid/>
- <cdid/>
- <cdnm/>
- </comcdref>
- <reqdata>
- <deptcd/>
- </reqdata>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRMNG00402");
-
- model.makeValue("/root/send/useyn", "Y");
- submit("TRMNG00401");
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSettingGoodList(pnode) {
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
-
- for (var j = 1; j <= codynode.length; j++)
- {
- if(addRow > grd_deptlist.rows - grd_deptlist.fixedRows)
- {
- misfGridIUD(grd_deptlist,"A");
- addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
- }
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/deptcd"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/depthngnm"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptcd" , cmb_dept.value);
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptnm" , cmb_dept.label);
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/userid" , getUserInfo("userid"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
- addRow = addRow + 1;
- }
- model.recalculate();
- model.refresh();
-
- }
- ]]>
- </script>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNG00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
- <submission id="TXMNG00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/temp"/>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrreqdeptlist"/>
- <submission id="TXMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" 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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="550" guideline="1,622;2,552;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:580px; height:520px; ">
- <group id="group2" style="left:0px; top:0px; width:580px; height:30px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:519px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chk = cmb_dept.value;
- if (chk == null || chk == "") {
- alert("상위부서를 선택하세요");
- return;
- }
-
- model.setValue("/root/send/reqdata/deptcd", model.getValue("/root/main/cond/deptcd"));
- submit("TRMNG00404");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:6px; width:86px; height:17px; ">조회조건:</caption>
- <select1 id="cmb_dept" ref="/root/main/cond/deptcd" appearance="minimal" style="left:100px; top:5px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:113px; height:14px; ">하위부서 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:580px; y2:60px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptcodelist" caption="부서코드^부서명^부서구분" colsep="^" colwidth="144, 230, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:65px; width:580px; height:455px; ">
- <col class="input_essential" editable="false" ref="deptcd" type="inputbutton"/>
- <col ref="deptnm"/>
- <col class="input_essential" ref="csrreqdeptcd" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="supdeptcd" visibility="hidden"/>
- <col ref="supdeptnm" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var chk = cmb_dept.value;
- if (chk == null || chk == "") {
- alert("상위부서를 선택하세요");
- return;
- }
- model.property("flag") = "req";
- if (grd_deptlist.col == grd_deptlist.colRef("deptcd")) {//부서코드 버튼을 눌렀을 때
- // var recv_list = "deptcd,deptnm";
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
- rszfOpenPopUpListByWndName(grd_deptlist,"","deptcd,deptnm","SPMNG00400","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG00400_/SPMNG00400_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_deptlist");
-
- fSettingGoodList("/root/copynode");
- // model.setValue("/root/main/deptcodelist[" + grd_deptlist.row + "]/deptcd", model.getValue("/root/copynode/grd_deptlist/deptcd"));
- // model.setValue("/root/main/deptcodelist[" + grd_deptlist.row + "]/deptnm", model.getValue("/root/copynode/grd_deptlist/depthngnm"));
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn5_letter2" style="left:530px; top:40px; width:100px; height:20px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for (i=grd_deptlist.fixedRows; i<grd_deptlist.rows; i++ ) {
- var csrreqdeptcd = grd_deptlist.valueMatrix(i, grd_deptlist.colRef("csrreqdeptcd"));
- if (csrreqdeptcd == null || csrreqdeptcd == "") {
- if ( grd_deptlist.rowStatus(i) != "3" ) {
- alert("부서구분을 입력하세요");
- return;
- }
- }
- }
- var update = getGridUpdateData(grd_deptlist);
-
- if (update == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.makeValue("/root/send/reqdata1/reqdeptinfo", update);
-
- model.makeValue("/root/send/reqdata2/csrreqdept", update);
-
- submit("TXMNG00403");
-
- submit("TXMNG00402");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:415px; top:40px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_deptlist.addRow();
- grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("useyn")) = "Y";
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" style="left:470px; top:40px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_deptlist.rows - grd_deptlist.fixedRows == 0) {
- messageBox("삭제할 행이 존재하지 않습니다.");
- return;
- }
-
- if(grd_deptlist.row < 0) {
- messageBox("삭제할 행을 선택하십시오.", "E");
- return;
- }
-
- grd_deptlist.rowStatus(grd_deptlist.row) = "4";
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:521px; width:580px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:461px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_deptlist.rows - grd_deptlist.fixedRows == 0)
- {
- messageBox("적용할 내역이","I004");
- window.close();
- return;
- }
- var iParam = model.getValue(grd_deptlist.nodeset);
-
- var nodelist = instance1.selectNodes(grd_deptlist.nodeset + "[chkyn='Y']");
-
- var rCVS = getNodeListCSV(nodelist);
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPMNG00400_", rCVS);
-
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- window.close();
-
-
- // misfPopUpListReturn(grd_deptlist);
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:520px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfPopUpListCancel();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|