123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <grupdeptlist/>
- <deptlist/>
- </main>
- <send>
- <instcd/>
- <grupdeptnm/>
- </send>
- <init>
- </init>
- <hidden>
- <common>
- <instcdinfo/>
- </common>
- </hidden>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var rowStat = "C";
- var curRow = -1;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/csrreqdeptlist");
- model.removeNodeset("/root/main/csrdeptlist");
-
- zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.resetInstanceNode("/root/send/reqdata");
- fSearch();
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
-
- model.refresh();
-
- }
-
- function fSearch(){
-
- model.removeNodeset("/root/main/deptlist");
-
- submit("TRMNG00405");
-
- }
-
- function fSearch2() {
-
- model.makeValue("/root/send/reqdata1/grupdeptcd", grd_grupdeptlist.valueMatrix(grd_grupdeptlist.row, grd_grupdeptlist.colRef("grupdeptcd"))); //청구부서구분코드
-
- submit("TRMNG00406");
-
- }
-
- function fSavData() {
- model.makeValue("/root/send/reqdata/grupdeptlist", getGridUpdateData(grd_grupdeptlist) );
-
- submit("TXMNG00404");
- }
-
- function fsave(){
-
- var updtdata = getGridUpdateData(grd_deptlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- model.makeValue("/root/send/reqdata2/deptlist", updtdata);
-
- submit("TXMNG00405");
-
- fSearch2();
- }
-
- 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 + "]/grupdeptcd", grd_grupdeptlist.valueMatrix(grd_grupdeptlist.row, grd_grupdeptlist.colRef("grupdeptcd")));
-
- addRow = addRow + 1;
- }
-
- model.recalculate();
- model.refresh();
- }
-
- ]]>
- </script>
- <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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- submit("TRMNG02302");
- var getuserinstcd = model.getValue("/root/temp/useinfo/cdid");
-
- if ( getuserinstcd == "N") {
- btn_clndept.visible = false;
- }
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRMNG00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grupdeptlist"/>
- <submission id="TXMNG00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TXMNG00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/temp"/>
- <submission id="TRMNG00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/main/deptlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNG02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:186px; height:14px; ">린넨부서구분 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <line id="line13" class="line_4" style="x1:1120px; y1:5px; x2:1120px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1130px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:102px; top:8px; width:158px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:270px; top:10px; width:88px; height:17px; ">그룹명 :</caption>
- <input id="ipt_reqdeptnm" ref="/root/send/grupdeptnm" class="input_search" style="left:348px; top:8px; width:172px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:250px; y1:74px; x2:1195px; y2:74px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:59px; width:133px; height:14px; ">그룹구분</caption>
- <button id="btn_grdadd" class="btn2_letter2" disabled="true" style="left:1064px; top:54px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_deptlist.addRow();
- var cur_row = grd_deptlist.row;
-
- grd_deptlist.editCell();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:255px; top:59px; width:133px; height:14px; ">린넨청구부서 등록</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:74px; x2:245px; y2:74px; "/>
- <datagrid id="grd_grupdeptlist" nodeset="/root/main/grupdeptlist" caption="코드^그룹명^사용" colsep="^" colwidth="50, 109, 40" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:79px; width:240px; height:641px; ">
- <col disabled="true" ref="grupdeptcd" style="text-align:center; "/>
- <col ref="grupdeptnm" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_grupdeptlist.isCell(event.target) && grd_grupdeptlist.mouseRow >= grd_grupdeptlist.fixedrows){
- if(grd_grupdeptlist.rowStatus(grd_grupdeptlist.row) == "0") {
- fSearch2();
- btn_grdadd.disabled = false;
- btn_save.disabled = false;
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:1009px; top:54px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" disabled="true" style="left:1152px; top:54px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsave();
- fSearch2();
- ]]>
- </script>
- </button>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="부서코드^부서명^그룹구분^비고^정렬^수정자ID^수정자^수정일자" colsep="^" colwidth="107, 150, 100, 250, 60, 0, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:250px; top:79px; width:945px; height:640px; ">
- <col class="input_essential" ref="deptcd" type="inputbutton" _key="true"/>
- <col ref="deptnm"/>
- <col class="input_essential" ref="grupdeptcd" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/grupdeptlist">
- <label ref="grupdeptnm"/>
- <value ref="grupdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <col ref="sortseq" type="input" style="text-align:center; "/>
- <col ref="lastupdtrid" type="output" style="text-align:center; "/>
- <col ref="lastupdtrnm" type="output" style="text-align:center; "/>
- <col ref="lastupdtdt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- 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","SPMNG00402","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG00402_/SPMNG00402_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_deptlist");
-
- fSettingGoodList("/root/copynode");
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_deptlist.col == grd_deptlist.colRef("deptcd"))
- {
-
- if(grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) != "")
- {
- model.removenode("/root/init/main/deptcodelist");
-
- rszfOpenPopUpListByWndName(grd_deptlist,"","deptcd,deptnm","SPRSS00230","","", "Y");
- var CSV = model.getValue(gvParamPath +"/SPRSS00230_/SPRSS00230_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_deptlist");
-
- fSettingGoodList("/root/copynode");
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_deptlist.editCell();
- ]]>
- </script>
- </datagrid>
- <button id="btn_new" class="btn2_letter2" navindex="3" style="left:111px; top:54px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_grupdeptlist.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_updt" class="btn2_letter2" navindex="4" style="left:156px; top:54px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if((grd_grupdeptlist.rowStatus(grd_grupdeptlist.row) =="1")||(grd_grupdeptlist.rowStatus(grd_grupdeptlist.row) =="3")){
- grd_grupdeptlist.deleteRow(grd_grupdeptlist.row);
- }else{
- grd_grupdeptlist.rowStatus(grd_grupdeptlist.row) = "4";
- }
- ]]>
- </script>
- </button>
- <button id="btn_save1" class="btn5_letter2" navindex="17" style="left:201px; top:54px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var btn = messageBox("저장하시겠습니까?", "Q");
-
- if(btn == "6") {
-
- fSavData();
- fSearch()
- } else {
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:1108px; top:54px; width:45px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_deptlist.row > -1 && grd_deptlist.row >= grd_deptlist.fixedrows){
-
- var firstRow = grd_deptlist.selectedRow(0);
- var lastRow = grd_deptlist.selectedRow(grd_deptlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- grd_deptlist.addStatus(i, "delete");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|