123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792 |
- <?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>CSR 청구부서 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <csrreqdeptlist>
- <csrreqdeptcd/>
- <csrreqdeptnm/>
- <useyn/>
- <updtspec/>
- <cmt/>
- <fstrgstdt/>
- <fstrgstrid/>
- <fstrgstrnm/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- </csrreqdeptlist>
- <csrdeptlist>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd/>
- <useyn/>
- <cmt/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <instcd/>
- <csrreqdeptnm/>
- <useynnm/>
- </csrdeptlist>
- <cond>
- <csrreqdeptcd/>
- <csrreqdeptnm/>
- <useyn/>
- <fstrgstdt/>
- <fstrgstrid/>
- <fstrgstrnm/>
- <lastupdtdt/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <updtspec/>
- <cmt/>
- </cond>
- <cond2>
- <csrreqdeptcd/>
- </cond2>
- </main>
- <send>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd2/>
- <useyn>Y</useyn>
- </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");
- //model.resetInstanceNode("/root/send");
-
- misfGridInit(grd_csrreqdeptlist);
-
- 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"));
- btn_prt.disabled= !(checkAuth("P"));
-
- model.refresh();
-
- }
-
- /* ---------------------------------------------------------------------
- *
- * SMRSS01201_CSR 청구부서 등록.xrw (SMRFC00700.xfm - JScript )
- *
- * - Version :
- * 1) : Ver.1.00.01
- * : Create By
- * : 2009.01.09
- ---------------------------------------------------------------------- */
- /*
- * 부서구분을 조회
- */
- function fSearch(){
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
-
- model.removeNodeset("/root/main/csrdeptlist");
-
- if(!isRequiredControls("cmb_instcd")) return;
-
-
- submit("TRMNG00401");
-
- }
-
- function fSearch2() {
- // model.copyNode("/root/main/cond", "/root/main/csrreqdeptlist[" + grd_csrreqdeptlist.row + "]"); //부서구분이 가지고 있는 instance를 복사(아래 상세 화면에 보여줌.)
-
-
- model.makeValue("/root/send/reqdata/csrreqdeptcd", grd_csrreqdeptlist.valueMatrix(grd_csrreqdeptlist.row, grd_csrreqdeptlist.colRef("csrreqdeptcd"))); //청구부서구분코드
- model.makeValue("/root/send/reqdata/useyn", model.getValue("/root/send/useyn"));
-
-
- submit("TRMNG00402");
-
- var useyn;
- var csrreqdeptcd;
- var useynnm;
-
- for(var i = 1; i < grd_reqcollcdeptlist.rows; i++) {
-
- useyn = grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("useyn"));
- csrreqdeptcd = grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("csrreqdeptcd"));
-
-
- grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("csrreqdeptnm")) = model.getValue("/root/main/csrreqdeptlist[csrreqdeptcd='" + csrreqdeptcd + "']/csrreqdeptnm");
-
-
- if(useyn == "Y") {
- useynnm = "사용";
- } else {
- useynnm = "미사용";
- }
-
- grd_reqcollcdeptlist.valueMatrix(i ,grd_reqcollcdeptlist.colRef("useynnm")) = useynnm;
- }
-
-
-
- }
-
- function fSavData() {
- if(!checkKeyColumn("grd_csrreqdeptlist")) return;
- model.makeValue("/root/send/reqdata/csrdeptlist", getGridUpdateData(grd_csrreqdeptlist) );
-
- submit("TXMNG00401");
- }
-
- function fsave(){
-
- if(!checkKeyColumn("grd_reqcollcdeptlist")) return;
-
- var updtdata = getGridUpdateData(grd_reqcollcdeptlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- // rtn = messageBox("", "Q002");
- // if(rtn != "6" ) return;
-
- model.makeValue("/root/send/reqdata/csrreqdept", updtdata);
-
- submit("TXMNG00402");
-
- //fSearch2();
- }
-
- function fCheckTime()
- {
- if(grd_csrtmlist.col == grd_csrtmlist.colRef("clotm"))
- {
- var sTime = grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm"));
-
- if(sTime == "" || sTime == null)
- {
- return;
- }
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- messageBox("24시를 ","E001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- messageBox("59분을 ","E001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
- }
- }
-
- function fUpdtCtrl() {
- ipt_csrreqdeptnm.disabled = false;
- rdo_useyn.disabled = false;
- tar_cmt.disabled = false;
- ipt_updtspec.disabled = false;
- }
-
- function fInitCtrl() {
- model.resetInstanceNode("/root/main/cond");
-
- ipt_csrreqdeptcd.disabled = false;
- ipt_csrreqdeptnm.disabled = false;
-
- rdo_useyn.disabled = false;
-
- ipt_updtspec.disabled = false;
- tar_cmt.disabled = false;
- model.refresh();
-
- }
-
- function fInitData() {
- model.resetInstanceNode("/root/main/cond");
- }
-
- function fDisCtrl() {
-
- ipt_csrreqdeptcd.disabled = true;
- ipt_csrreqdeptnm.disabled = true;
- rdo_useyn.disabled = true;
- ipt_updtspec.disabled = true;
- tar_cmt.disabled = true;
- model.refresh();
-
- btn_new.disabled = false;
- btn_updt.disabled = false;
- }
-
- function fPrintRex() {
-
- model.makeNode("/root/send/report/csrdeptlist");
-
- copyNodesetType("/root/send/report/csrdeptlist", "/root/main/csrdeptlist");
-
-
-
- exeReportPreview("RPMNG00400", "XMLSTR", "/root/send/report/csrdeptlist");
-
-
- }
-
- function fSettingGoodList(pnode)
- {
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_reqcollcdeptlist.rows - grd_reqcollcdeptlist.fixedRows;
-
- for (var j = 1; j <= codynode.length; j++)
- {
-
- if(addRow > grd_reqcollcdeptlist.rows - grd_reqcollcdeptlist.fixedRows)
- {
- misfGridIUD(grd_reqcollcdeptlist,"A");
- addRow = grd_reqcollcdeptlist.rows - grd_reqcollcdeptlist.fixedRows;
- }
-
- model.setValue(grd_reqcollcdeptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_reqcollcdeptlist" + "[" + j + "]/deptcd"));
- model.setValue(grd_reqcollcdeptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_reqcollcdeptlist" + "[" + j + "]/depthngnm"));
- model.setValue(grd_reqcollcdeptlist.nodeset + "[" + addRow + "]/csrreqdeptcd", grd_csrreqdeptlist.valueMatrix(grd_csrreqdeptlist.row, grd_csrreqdeptlist.colRef("csrreqdeptcd")));
- model.setValue(grd_reqcollcdeptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
- model.setValue(grd_reqcollcdeptlist.nodeset + "[" + addRow + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
-
- 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="TXMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TXMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrreqdeptlist"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <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; ">CSR 청구부서 등록</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:1000px; y1:5px; x2:1000px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:650px; top:10px; width:89px; height:17px; ">사용여부 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1015px; 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/deptnm" class="input_search" style="left:468px; top:8px; width:172px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" style="left:355px; top:8px; width:85px; height:19px; "/>
- <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:8px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "CSR 청구부서 등록현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_reqcollcdeptlist.saveExcel(fileName, "CSR 청구부서 등록현황");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:1131px; top:8px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrintRex();
- ]]>
- </script>
- </button>
- <select1 id="rdo_useyn2" ref="/root/send/useyn" navindex="1" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:740px; top:10px; width:245px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="btn_reqdept" class="icon_search" style="left:445px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMNG00300");
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
- model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
-
- ipt_reqdeptcd.refresh();
- ipt_reqdeptnm.refresh();
-
- for(var i = 1; i <= grd_csrreqdeptlist.rows; i++) {
-
- if( grd_csrreqdeptlist.valueMatrix(i, grd_csrreqdeptlist.colRef("csrreqdeptcd")) == ipt_csrreqdeptcd2.value ) {
- grd_csrreqdeptlist.row = i;
- fSearch2();
- // fDisCtrl();
- btn_grdadd.disabled = false;
-
- btn_save.disabled = false;
- curDept = grd_csrreqdeptlist.row;
- break;
- }
- }
-
-
-
- ]]>
- </script>
- </button>
- </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:13px; ">부서구분</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[
- if(!isRequiredControls("cmb_instcd")) return;
-
- grd_reqcollcdeptlist.addRow();
- var cur_row = grd_reqcollcdeptlist.row;
-
- grd_reqcollcdeptlist.editCell();
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:255px; top:59px; width:133px; height:13px; ">CSR 청구부서 등록</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:74px; x2:245px; y2:74px; "/>
- <datagrid id="grd_csrreqdeptlist" nodeset="/root/main/csrreqdeptlist" caption="코드^부서구분명^사용" colsep="^" colwidth="50, 109, 40" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:79px; width:240px; height:641px; ">
- <col disabled="true" ref="csrreqdeptcd" type="input" _key="true" style="text-align:center; "/>
- <col ref="csrreqdeptnm" type="input"/>
- <col ref="useyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- if(grd_csrreqdeptlist.isCell(event.target) && grd_csrreqdeptlist.mouseRow >= grd_csrreqdeptlist.fixedrows){
- if(grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) == "0") {
- fSearch2();
- // fDisCtrl();
- btn_grdadd.disabled = false;
-
- btn_save.disabled = false;
- } else {
-
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <input id="ipt_csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" visibility="hidden" style="left:525px; top:50px; width:100px; height:20px; "/>
- <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_reqcollcdeptlist" nodeset="/root/main/csrdeptlist" caption="부서코드^부서명^부서구분^사용^비고^수정자ID^수정자^수정일자^최초등록일자^기관코드^부서구분명^사용명" colsep="^" colwidth="107, 150, 80, 50, 141, 100, 100, 100, 98, 100, 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="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 class="input_essential" ref="useyn" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <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; "/>
- <col ref="fstrgstdt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="csrreqdeptnm" visibility="hidden"/>
- <col ref="useynnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqcollcdeptlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.property("flag") = "req";
- if (grd_reqcollcdeptlist.col == grd_reqcollcdeptlist.colRef("deptcd")) {//부서코드 버튼을 눌렀을 때
- // var recv_list = "deptcd,deptnm";
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
- rszfOpenPopUpListByWndName(grd_reqcollcdeptlist,"","deptcd,deptnm","SPMNG00400","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG00400_/SPMNG00400_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_reqcollcdeptlist");
-
-
- fSettingGoodList("/root/copynode");
-
- }
- model.property("instcd") = "";
- model.property("useryn") = "";
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_reqcollcdeptlist.col == grd_reqcollcdeptlist.colRef("deptcd"))
- {
-
- if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptcd")) != "")
- {
- model.removenode("/root/init/main/deptcodelist");
-
- rszfOpenPopUpListByWndName(grd_reqcollcdeptlist,"","deptcd,deptnm","SPRSS00230","","", "Y");
- var CSV = model.getValue(gvParamPath +"/SPRSS00230_/SPRSS00230_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_reqcollcdeptlist");
-
-
- fSettingGoodList("/root/copynode");
-
- // if(model.getValue("/root/init/main/deptcodelist/deptcd") != "")
- // {
- // grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptcd")) = model.getValue("/root/init/main/deptcodelist/deptcd");
- // grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptnm")) = model.getValue("/root/init/main/deptcodelist/depthngnm");
- // grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptnm")) = model.getValue("/root/init/main/deptcodelist/depthngnm");
- // }
- //
- // }else{
- // grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptcd")) = "";
- // grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("deptnm")) = "";
- // }
- //
-
- }
- //misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- grd_reqcollcdeptlist.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_csrreqdeptlist.addRow();
-
- for(var i = grd_csrreqdeptlist.rows -1 ; i > 0;i--){
-
- if (Number(grd_csrreqdeptlist.valueMatrix(i-1,grd_csrreqdeptlist.colRef("csrreqdeptcd")))+1 < 10) {
- grd_csrreqdeptlist.valueMatrix(i,grd_csrreqdeptlist.colRef("csrreqdeptcd")) = "0"+(Number(grd_csrreqdeptlist.valueMatrix(i-1,grd_csrreqdeptlist.colRef("csrreqdeptcd")))+1).toString();
- }else{
- if(i==1){
- grd_csrreqdeptlist.valueMatrix(i,grd_csrreqdeptlist.colRef("csrreqdeptcd")) = "01";
- }else{
- grd_csrreqdeptlist.valueMatrix(i,grd_csrreqdeptlist.colRef("csrreqdeptcd")) = Number(grd_csrreqdeptlist.valueMatrix(i-1,grd_csrreqdeptlist.colRef("csrreqdeptcd")))+1;
- }
- }
- break;
-
- }
-
-
- if(grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) == "1" || grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) == "3") {
- grd_csrreqdeptlist.colDisabled(grd_csrreqdeptlist.colRef("csrreqdeptcd")) = true;
- grd_csrreqdeptlist.valueMatrix(grd_csrreqdeptlist.row, grd_csrreqdeptlist.colRef("useyn")) = "Y";
- }
- ]]>
- </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[
- /*var firstRow = grd_csrreqdeptlist.selectedRow(0);
- var lastRow = grd_csrreqdeptlist.selectedRow(grd_csrreqdeptlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- grd_csrreqdeptlist.addStatus(i, "delete");
- }*/
- if((grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) =="1")||(grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) =="3")){
- grd_csrreqdeptlist.deleteRow(grd_csrreqdeptlist.row);
- }else{
- grd_csrreqdeptlist.rowStatus(grd_csrreqdeptlist.row) = "4";
- }
- if(grd_reqcollcdeptlist.rows > 1) {
- var rtn = messageBox("삭제할 부서구분에 등록된 부서들이 존재합니다. 등록된부서의 부서구분을 지금 변경하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.property("instcd") = cmb_instcd.value;
- model.property("useryn") = rdo_useyn2.value;
-
- //부서변경 팝업 모달창으로 띄움..
- modal("SMRSS01202", "", "", "", "", "", "","width:200px;height:80px;align:center;");
-
-
- var csrdeptcd = model.property("csrreqdeptcd");
- if(csrdeptcd == grd_csrreqdeptlist.valueMatrix(grd_csrreqdeptlist.row, grd_csrreqdeptlist.colRef("csrreqdeptcd")) ) {
- messageBox("같은부서로 변경을 할수 없습니다.", "E");
- fSearch();
- return;
- }
-
- for(var i = 1; i <= grd_reqcollcdeptlist.rows; i++) {
- grd_reqcollcdeptlist.addStatus(i, "update");
- grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("csrreqdeptcd")) = csrdeptcd;
- }
-
- fsave();
- fSavData();
- btn_search.dispatch("DOMActivate");
- } else {
- for(var i = 1; i <= grd_reqcollcdeptlist.rows; i++) {
- grd_reqcollcdeptlist.addStatus(i, "delete");
- grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("csrreqdeptcd")) = csrdeptcd;
- }
-
- fsave();
- fSavData();
- btn_search.dispatch("DOMActivate");
- }
-
- }
-
- ]]>
- </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") {
- var rowStat;
- var useyn;
- for(var i = 1; i < grd_csrreqdeptlist.rows; i++) {
- rowStat = grd_csrreqdeptlist.rowStatus(i);
- useyn = grd_csrreqdeptlist.valueMatrix(i, grd_csrreqdeptlist.colRef("useyn"));
-
- grd_csrreqdeptlist.row = i;
-
- if(rowStat == "2" && useyn == "N") {
- fSearch2();
-
- if(grd_reqcollcdeptlist.rows > 1) {
- var rtn = messageBox("등록된 하위청구부서가 존재합니다. 일괄수정하시겠습니까?", "Q");
- if(rtn == "6") {
- model.property("instcd") = cmb_instcd.value;
- model.property("useryn") = rdo_useyn2.value;
-
- //부서변경 팝업 모달창으로 띄움..
- modal("SMRSS01202", "", "", "", "", "", "","width:200px;height:80px;align:center;");
-
- var csrdeptcd = model.property("csrreqdeptcd");
-
- if(csrdeptcd == grd_csrreqdeptlist.valueMatrix(grd_csrreqdeptlist.row, grd_csrreqdeptlist.colRef("csrreqdeptcd")) ) {
- messageBox("같은부서로 변경을 할수 없습니다.", "E");
- return;
- }
-
- for(var i = 1; i <= grd_reqcollcdeptlist.rows; i++) {
- grd_reqcollcdeptlist.addStatus(i, "update");
- grd_reqcollcdeptlist.valueMatrix(i, grd_reqcollcdeptlist.colRef("csrreqdeptcd")) = csrdeptcd;
- }
-
- fsave();
- } else {
- grd_csrreqdeptlist.rowStatus(i) = "0";
- }
- }
- }
- }
-
- fSavData();
- btn_new.disabled = false;
- btn_updt.disabled = false;
-
- btn_search.dispatch("DOMActivate");
- grd_csrreqdeptlist.row = curRow;
- fSearch2();
- } 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_reqcollcdeptlist.row > -1 && grd_reqcollcdeptlist.row >= grd_reqcollcdeptlist.fixedrows){
-
- var firstRow = grd_reqcollcdeptlist.selectedRow(0);
- var lastRow = grd_reqcollcdeptlist.selectedRow(grd_reqcollcdeptlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- grd_reqcollcdeptlist.addStatus(i, "delete");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_clndept" class="btn1_letter8" style="left:400px; top:50px; width:100px; height:20px; ">
- <caption>세탁물청구부서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(grd_reqcollcdeptlist,"","deptcd,deptnm","SPMNG00401","","", "Y");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|