123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801 |
- <?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>
- <masterinfo>
- <info>
- <irowno/>
- <valunm/>
- <fromdd/>
- <todd/>
- <valuno/>
- <histseq/>
- <valuflag/>
- <refseq/>
- <check/>
- <status/>
- </info>
- </masterinfo>
- <condition>
- <valuflag>1</valuflag>
- </condition>
- <sortdata>
- <sort1>1</sort1>
- <cond1>-</cond1>
- <icond1>0</icond1>
- <sort2>2</sort2>
- <cond2>-</cond2>
- <icond2>0</icond2>
- <sort3>3</sort3>
- <cond3>-</cond3>
- <icond3>0</icond3>
- </sortdata>
- </main>
- <send>
- <reqdata>
- </reqdata>
- <savedata>
- </savedata>
- </send>
- <trgdata/>
- <srcdata/>
- <temp>
- <getdata>
- <grdfocus/>
- <poolsize>1</poolsize>
- <pool>
- <cd/>
- </pool>
- <endVal/>
- </getdata>
- <size/>
- <info>
- <irowno/>
- <valunm/>
- <fromdd/>
- <todd/>
- <valuno/>
- <histseq/>
- <valuflag/>
- <refseq/>
- <check/>
- <status/>
- </info>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- if( !isNull(getOpenerUID()) ){
- srchexclsYN = opener.javascript.getParameter("srchexcls");
- srchdropYN = opener.javascript.getParameter("srchdrop");
- if( srchexclsYN == "Y" ){
- model.setValue("/root/main/condition/valuflag", "3");
- var sRow = opener.javascript.getParameter("lastrowcnt");
- model.setValue("/root/temp/getdata/grdfocus",sRow );
- }
- if( srchdropYN == "Y" ){
- model.setValue("/root/main/condition/valuflag", "2");
- var sRow = opener.javascript.getParameter("lastrowcnt");
- model.setValue("/root/temp/getdata/grdfocus",sRow );
- }
- }
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/reqdata/valuflag", model.getValue("/root/main/condition/valuflag"));
- submit("TRMQP02601");
-
- if( srchexclsYN == "Y" ){
- grd_masterinfo.explorerbar = "sortshow";
-
- cap_title.attribute("text") = "Exclusion 사유 조회";
- cap_smalltitle.visible = false;
- btn_sel.visible = true;
- btn_save.visible = false;
-
- //grd_masterinfo.caption="선택^내용^적용일자^종료일자^caption1^caption2^caption3^caption4";
- grd_masterinfo.attribute("rowheader") = "seq";
- grd_masterinfo.colhidden(1) = false;
- grd_masterinfo.colhidden(2) = true;
- grd_masterinfo.coltype(3) = "output";
- grd_masterinfo.colWidth(3) = 400;
- grd_masterinfo.colhidden(4) = true;
- grd_masterinfo.colhidden(5) = true;
- grd_masterinfo.attribute("top") = "12px";
- grd_masterinfo.attribute("width") = "490px";
- grd_masterinfo.attribute("height") = "423px";
- roundrect1.attribute("width") = 0;
- btn_srch.attribute("left") = 0;
- line27.attribute("x1") = 0;
- line27.attribute("x2") = 0;
- btn_add.attribute("left") = 0;
- btn_del.attribute("left") = 0;
- btn_excel.attribute("left") = 0;
- line7.attribute("x2") = "490px";
- line8.attribute("x2") = "490px";
- line8.attribute("y1") = "436px";
- line8.attribute("y2") = "436px";
- btn_sel.attribute("left") = "375px";
- btn_save.attribute("left") = "375px";
- btn_close.attribute("left") = "433px";
- grd_masterinfo.coltype(4) = "output";
- grd_masterinfo.coltype(5) = "output";
- grp_biz.attribute("width") = 490;
- grp_biz.attribute("height") = 440;
- grp_btn.attribute("top") = 455;
- grp_btn.attribute("width") = 490;
- grp_tle.attribute("width") = 490;
-
- //btn_save2.visible = true;
- btn_upviewmode.attribute("top") = 0;
- btn_upviewmode2.attribute("top") = 0;
- btn_downviewmode.attribute("top") = 0;
- btn_downviewmode2.attribute("top") = 0;
- btn_upviewmode2.attribute("left") = 0;
- btn_upviewmode.attribute("left") = 0;
- btn_downviewmode.attribute("left") = 0;
- btn_downviewmode2.attribute("left") = 0;
-
- btn_upviewmode.visible = false;
- btn_upviewmode2.visible = false;
- btn_downviewmode.visible = false;
- btn_downviewmode2.visible = false;
- window.width = 516;
- window.height = 537;
-
- grd_masterinfo.setSeqRowHeader(1);
- }
-
- //drop cp별 관리를 위한 화면 처리로직 추가. 2008.06.20 LWS
- else if( srchdropYN == "Y" ){
- grd_masterinfo.explorerbar = "sortshow";
-
- cap_title.attribute("text") = "Drop 사유 조회";
- cap_smalltitle.visible = false;
- btn_sel.visible = true;
- btn_save.visible = false;
-
- grd_masterinfo.attribute("rowheader") = "seq";
- grd_masterinfo.colhidden(1) = false;
- grd_masterinfo.colhidden(2) = true;
- grd_masterinfo.coltype(3) = "output";
- grd_masterinfo.colWidth(3) = 400;
- grd_masterinfo.colhidden(4) = true;
- grd_masterinfo.colhidden(5) = true;
- grd_masterinfo.attribute("top") = "12px";
- grd_masterinfo.attribute("width") = "490px";
- grd_masterinfo.attribute("height") = "423px";
- roundrect1.attribute("width") = 0;
- btn_srch.attribute("left") = 0;
- line27.attribute("x1") = 0;
- line27.attribute("x2") = 0;
- btn_add.attribute("left") = 0;
- btn_del.attribute("left") = 0;
- btn_excel.attribute("left") = 0;
- line7.attribute("x2") = "490px";
- line8.attribute("x2") = "490px";
- line8.attribute("y1") = "436px";
- line8.attribute("y2") = "436px";
- btn_sel.attribute("left") = "375px";
- btn_save.attribute("left") = "375px";
- btn_close.attribute("left") = "433px";
- grd_masterinfo.coltype(4) = "output";
- grd_masterinfo.coltype(5) = "output";
- grp_biz.attribute("width") = 490;
- grp_biz.attribute("height") = 440;
- grp_btn.attribute("top") = 455;
- grp_btn.attribute("width") = 490;
- grp_tle.attribute("width") = 490;
-
- //btn_save2.visible = true;
- btn_upviewmode.attribute("top") = 0;
- btn_upviewmode2.attribute("top") = 0;
- btn_downviewmode.attribute("top") = 0;
- btn_downviewmode2.attribute("top") = 0;
- btn_upviewmode2.attribute("left") = 0;
- btn_upviewmode.attribute("left") = 0;
- btn_downviewmode.attribute("left") = 0;
- btn_downviewmode2.attribute("left") = 0;
-
- btn_upviewmode.visible = false;
- btn_upviewmode2.visible = false;
- btn_downviewmode.visible = false;
- btn_downviewmode2.visible = false;
- window.width = 516;
- window.height = 537;
-
- grd_masterinfo.setSeqRowHeader(1);
- }
- else{
- var gnrObj = getOpenWindow("SMMQP00600");
- if( gnrObj != null ){
- var openmasterYN = opener.javascript.getParameter("openmaster");
- if( isNull(openmasterYN) ){
- btn_save.attribute("left") = "998px";
- btn_close.visible = true;
- }
- grd_masterinfo.colhidden(1) = true;
- }
- }
- ]]>
- </script>
- <submission id="TRMQP02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/masterinfo"/>
- <submission id="TXMQP02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/masterinfo"/>
- <!-- <submission id="TRMMP02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/antibionsgbrcdlist"/> -->
- </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="../../../emr/termmngtweb/js/MRTCommon.js"/>
- <script type="javascript">
- <![CDATA[
- var srchexclsYN = "";
- var srchdropYN = "";
- var srcNode = "/root/main/masterinfo/info"; //["+iRow+"]
-
- // 중복 체크를 한 후 ER 로 데이터를 전달한다.
- function fSetOpenerValue( iRow ) {
- var bool = "false";
- var iCnt = parseInt(model.getValue("/root/temp/getdata/poolsize"));
- var selCd = model.getValue("/root/main/masterinfo/info["+ iRow + "]/valuno");
-
- if(iCnt != 1){
- for(var i=1; i<=iCnt; i++) {
- if(selCd == model.getValue("/root/temp/getdata/pool/cd[" + i + "]")){
- bool = "ture";
- return;
- }
- }
- }
- if(bool == "false"){
- var sRow = model.getValue("/root/temp/getdata/grdfocus");
- if(sRow == ""){
- sRow = "0";
- model.setValue("/root/temp/getdata/endVal" , "E");
- }
- sRow = parseInt(sRow) + 1;
- var selCd = model.getValue("/root/main/masterinfo/info[" + iRow + "]/valuno");
- var selSeq = model.getValue("/root/main/masterinfo/info[" + iRow + "]/histseq");
- var selNM = model.getValue("/root/main/masterinfo/info[" + iRow + "]/valunm");
-
- if(model.getValue("/root/main/condition/valuflag") == "3") {
- opener.grd_exclusion.addRow();
- opener.model.makeValue("/root/main/exclusion/exclist[" + sRow + "]/valuno", selCd);
- opener.model.makeValue("/root/main/exclusion/exclist[" + sRow + "]/histseq", selSeq);
- opener.model.makeValue("/root/main/exclusion/exclist[" + sRow + "]/valunm", selNM);
- opener.model.makeValue("/root/main/exclusion/exclist[" + sRow + "]/m", "i");
- opener.model.makeValue("/root/main/exclusion/exclist[" + sRow + "]/flag", "E00");
- } else if(model.getValue("/root/main/condition/valuflag") == "2") {
- opener.grd_drop.addRow();
- opener.model.makeValue("/root/main/dropinfo/droplist[" + sRow + "]/valuno", selCd);
- opener.model.makeValue("/root/main/dropinfo/droplist[" + sRow + "]/histseq", selSeq);
- opener.model.makeValue("/root/main/dropinfo/droplist[" + sRow + "]/valunm", selNM);
- opener.model.makeValue("/root/main/dropinfo/droplist[" + sRow + "]/m", "i");
- opener.model.makeValue("/root/main/dropinfo/droplist[" + sRow + "]/flag", "D00");
- }
-
- //opener.grd_diag.rowStatus(sRow)= 1;
- //opener.grd_diag.rebuild();
- model.setValue("/root/temp/getdata/grdfocus", sRow);
- model.makeValue("/root/temp/getdata/pool/cd[" + iCnt + "]", selCd);
- iCnt = parseInt(iCnt)+1;
- model.setValue("/root/temp/getdata/poolsize", iCnt);
- }
-
- }
-
- /*=====================================================================================
- @desc : drop/평가/exclusion 추가
- ======================================================================================*/
- function fAddCnts(){
- grd_masterinfo.addRow();
- var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/fromdd", getCurrentDate() );
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/todd", '99991231' );
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/valuflag", model.getValue("/root/main/condition/valuflag") );
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/status", "i" );
- //opener check 추가 by 손주연 2008-01-04
- grd_masterinfo.row = curCnt;
- grd_masterinfo.col = 3
- grd_masterinfo.editCell();
- //model.refresh();
- //손주연 수정 종료
- }
-
- /*=====================================================================================
- @desc : 행 옮기기
- ======================================================================================*/
- function fMoveRow( flag, no ){
- if( grd_masterinfo.row < 1 ){
- messageBox("이동할 행을", "C002");
- return;
- }
- if(grd_masterinfo.selectedRows > 1){
- messageBox("여러 행을 이동", "E001");
- return;
- }
- var iRow = grd_masterinfo.row;
- var trgRow = 0;
-
- model.removenode("/root/temp/info");
- model.makeNode("/root/temp/info");
- model.copyNode("/root/temp/info", srcNode + "[" + iRow + "]");
-
- if( flag == "T" ){ //"위로"
- if( iRow == 1 ){
- messageBox("이동", "E001");
- return;
- }
- if(no == 1){
- model.copyNode(srcNode + "["+ iRow +"]", srcNode + "["+ (iRow-1) +"]");
- model.copyNode(srcNode + "["+ (iRow-1) +"]" , "/root/temp/info");
-
- model.setValue(srcNode + "[" + (iRow-1) + "]/irowno" , iRow-1);
- model.setValue(srcNode + "[" + (iRow-1) + "]/refseq" , iRow-1);
- if( model.getValue(srcNode + "[" + (iRow-1) + "]/status") != "i" ){
- model.setValue(srcNode + "[" + (iRow-1) + "]/status" , "u");
- }
- model.setValue(srcNode + "[" + iRow + "]/irowno" , iRow);
- model.setValue(srcNode + "[" + iRow + "]/refseq" , iRow);
- if( model.getValue(srcNode + "[" + iRow + "]/status") != "i" ){
- model.setValue(srcNode + "[" + iRow + "]/status" , "u");
- }
-
- grd_masterinfo.select(iRow-1, 1) = true;
- grd_masterinfo.row = iRow-1;
- }else{
- //trgRow = 1;
- for( var i=1; i<=(iRow-1); i++){
- model.setValue(srcNode + "[" + i + "]/irowno" , (i+1));
- model.setValue(srcNode + "[" + i + "]/refseq" , (i+1));
- if( model.getValue(srcNode + "[" + i + "]/status") != "i" ){
- model.setValue(srcNode + "[" + i + "]/status" , "u");
- }
- }
-
- model.removenode(srcNode + "[" + iRow + "]");
-
- var pNode = instance1.selectSingleNode("/root/main/masterinfo");
- var destNode = instance1.selectSingleNode(srcNode + "[" + 1 + "]");
- var copyNode = instance1.selectSingleNode("/root/temp/info");
- pNode.insertBefore(copyNode, destNode);
-
- model.setValue(srcNode + "[" + 1 + "]/irowno" , 1);
- model.setValue(srcNode + "[" + 1 + "]/refseq" , 1);
- if( model.getValue(srcNode + "[" + 1 + "]/status") != "i" ){
- model.setValue(srcNode + "[" + 1 + "]/status" , "u");
- }
-
- grd_masterinfo.select(1, 1) = true;
- grd_masterinfo.row = 1;
- }
-
- }else if( flag == "B"){ //"아래로"
- if( iRow == grd_masterinfo.rows-1 ){
- messageBox("이동", "E001");
- return;
- }
- if(no == 1){
- model.copyNode(srcNode + "["+ iRow +"]" , srcNode + "["+ (iRow+1) +"]");
- model.copyNode(srcNode + "["+ (iRow+1) +"]", "/root/temp/info");
- model.setValue(srcNode + "[" + iRow + "]/irowno" , iRow);
- model.setValue(srcNode + "[" + iRow + "]/refseq" , iRow);
- if( model.getValue(srcNode + "[" + iRow + "]/status") != "i" ){
- model.setValue(srcNode + "[" + iRow + "]/status" , "u");
- }
- model.setValue(srcNode + "[" + (iRow+1) + "]/irowno" , iRow+1);
- model.setValue(srcNode + "[" + (iRow+1) + "]/refseq" , iRow+1);
- if( model.getValue(srcNode + "[" + (iRow+1) + "]/status") != "i" ){
- model.setValue(srcNode + "[" + (iRow+1) + "]/status" , "u");
- }
-
- grd_masterinfo.select(iRow+1, 1) = true;
- grd_masterinfo.row = iRow+1;
- }else{
- trgRow = grd_masterinfo.rows-1;
- for( var i=(iRow+1); i<=trgRow; i++){
- model.setValue(srcNode + "[" + i + "]/irowno" , (i-1));
- model.setValue(srcNode + "[" + i + "]/refseq" , (i-1));
- if( model.getValue(srcNode + "[" + i + "]/status") != "i" ){
- model.setValue(srcNode + "[" + i + "]/status" , "u");
- }
- }
-
- var pNode = instance1.selectSingleNode("/root/main/masterinfo");
- var destNode = instance1.selectSingleNode(srcNode + "[" + (trgRow) + "]");
- var copyNode = instance1.selectSingleNode("/root/temp/info");
- pNode.insertAfter(copyNode, destNode);
-
- model.removenode(srcNode + "[" + iRow + "]");
-
- model.setValue(srcNode + "[" + trgRow + "]/irowno" , trgRow);
- model.setValue(srcNode + "[" + trgRow + "]/refseq" , trgRow);
- if( model.getValue(srcNode + "[" + trgRow + "]/status") != "i" ){
- model.setValue(srcNode + "[" + trgRow + "]/status" , "u");
- }
-
- grd_masterinfo.select(trgRow, 1) = true;
- grd_masterinfo.row = trgRow;
- }
- }
-
- grd_masterinfo.refresh();
-
- fSettingStatus();
- //btn_save2.disabled = false;
- }
-
- /*=====================================================================================
- @desc : rowstatus 재설정
- ======================================================================================*/
- function fSettingStatus(){
- for( var i=1; i<grd_masterinfo.rows; i++ ){
- var iStatus = model.getValue(srcNode + "[" + i + "]/status");
- if( iStatus == "i" ){
- grd_masterinfo.rowstatus(i) = 1;
- }else if( iStatus == "u" ){
- grd_masterinfo.rowstatus(i) = 2;
- }else if( iStatus == "d" ){
- grd_masterinfo.rowstatus(i) = 4;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1073" pageheight="765" guideline="1,1075;" idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1055px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">Drop/Exclusion 관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:738px; width:1055px; height:27px; ">
- <button id="btn_sel" class="btn4_letter2" visibility="hidden" style="left:882px; top:3px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowCnt = grd_masterinfo.rows;
-
- for(var i=1; i<rowCnt; i++){
- var bool = grd_masterinfo.valueMatrix(i,1);
- if(bool == "true"){
- fSetOpenerValue( i );
- }
- if(model.getValue("/root/temp/getdata/endVal") == "E")
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:940px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- // model.makeNode("/root/send/savedata/info");
- // var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;//1부터 시작
- // for( var idx = 1 ; idx <= curCnt ; idx++ ){
- // model.setValue("/root/main/masterinfo/info["+ idx + "]/refseq", idx);
- // }
- // model.copyNode("/root/send/savedata", "/root/main/masterinfo");
- model.makeValue("/root/send/savedata/list", grd_masterinfo.getUpdateData());
-
- submit("TXMQP02601");
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:998px; top:3px; width:56px; height:267px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1055px; height:727px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:35px; width:1054px; height:35px; "/>
- <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:1055px; y2:95px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:725px; x2:1055px; y2:725px; "/>
- <line id="line27" class="line_4" style="x1:970px; y1:42px; x2:970px; y2:64px; "/>
- <caption id="cap_smalltitle" class="tit_2" style="left:5px; top:15px; width:226px; height:15px; ">Drop/Exclusion 관리</caption>
- <select1 id="rdo_flag" ref="/root/main/condition/valuflag" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:80px; top:46px; width:265px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>Drop사유</label>
- <value>2</value>
- </item>
- <item>
- <label>Exclusion사유</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/reqdata/valuflag", model.getValue("/root/main/condition/valuflag"));
- submit("TRMQP02601");
- ]]>
- </script>
- </select1>
- <caption id="cap_flag" class="search_name" style="left:10px; top:45px; width:75px; height:17px; ">구분 :</caption>
- <button id="btn_srch" class="btn1_letter2" style="left:985px; top:42px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/reqdata/valuflag", model.getValue("/root/main/condition/valuflag"));
- submit("TRMQP02601");
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter2" style="left:923px; top:74px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddCnts();
- /*
- grd_masterinfo.addRow();
- var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/fromdd", getCurrentDate() );
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/todd", '99991231' );
- model.setValue("/root/main/masterinfo/info[" + curCnt + "]/valuflag", model.getValue("/root/main/condition/valuflag") );
- model.refresh();*/
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" style="left:968px; top:74px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var iRow = grd_masterinfo.row - grd_masterinfo.fixedRows + 1;
- var iSelectedRows = grd_masterinfo.selectedRows;
- var iRow = 0;
-
- if(iSelectedRows < 1){
- return;
- }
- //2008.07.25 선택한 여려건 삭제 처리(JJE)
- for( var i=iSelectedRows-1; i>=0; i-- ){
- iRow = grd_masterinfo.selectedRow(i);
- var statusNode = instance1.selectSingleNode( srcNode + "[" + iRow + "]/status" );
- var status = statusNode.text;
-
- if( status == "i" ){
- //grd_masterinfo.deleteRow(iRow); => 바로 삭제 시, selectedRow(i) 잘못 잡힘
- model.removenode(srcNode + "[" + iRow + "]");
- }else if(status == "d" ){
- model.setValue(statusNode, "-");
- grd_masterinfo.rowStatus(iRow) = 0;
- }else{
- model.setValue(statusNode, "d");
- model.setValue(srcNode + "[" + iRow + "]/todd", getCurrentDate());
- grd_masterinfo.rowStatus(iRow) = 4;
- }
- }
- grd_masterinfo.refresh();
- fSettingStatus();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1013px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_masterinfo.saveExcel(fileName, "SheetName:sheet1;exportfalsecols:0,6,7,8;", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_masterinfo" nodeset="/root/main/masterinfo/info" dragmode="true" dropmode="true" autoresize="true" caption="선택^No,^내용^적용일자^종료일자^caption1^caption2^caption3^caption4^caption5^caption6" colsep="^" colwidth="50, 50, 760, 100, 100, 100, 100, 100, 100, 100, 100" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:99px; width:1055px; height:625px; ">
- <col ref="check" type="checkbox"/>
- <col ref="irowno" style="text-align:center; "/>
- <col ref="valunm" type="input" style="text-align:left; vertical-align:middle; "/>
- <col ref="fromdd" type="inputdate" style="text-align:center; "/>
- <col ref="todd" type="inputdate" style="text-align:center; "/>
- <col ref="valuno" visibility="hidden"/>
- <col ref="histseq" visibility="hidden"/>
- <col ref="valuflag" visibility="hidden"/>
- <col ref="refseq" visibility="hidden"/>
- <col ref="check" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="ondrop">
- <![CDATA[
- //Drop 등록, Exclusion 선택을 위해 화면이 열릴때에도, 이동 가능해야 함 (20080717 요구사항)
- if( srchexclsYN == "Y" ) return ;
- if( srchdropYN == "Y" ) return ;
-
- var trgCnt = grd_masterinfo.mouseRow;
-
- if( trgCnt < 0){
- trgCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;
- }
- if( trgCnt == 0){
- trgCnt = 1;
- }
-
- var srcCnt = grd_masterinfo.row;
- var newCnt;
- var trgNode = "/root/main/masterinfo/info["+trgCnt+"]";
- var srcNode = "/root/main/masterinfo/info["+srcCnt+"]";
- var srcStatus = grd_masterinfo.rowStatus(srcCnt);
- var trgStatus = grd_masterinfo.rowStatus(trgCnt);
-
- if ( event.drag == "grd_masterinfo") {
- grd_masterinfo.select( grd_masterinfo.mouseRow, 1, grd_masterinfo.mouseRow, 8 ) = true;
- model.removeNodeset("/root/trgdata");
- model.makeNode("/root/trgdata/info");
-
- if(srcCnt > 0 && trgCnt > 0 ){
- for(idx = 1 ; idx <= (grd_masterinfo.rows - grd_masterinfo.fixedRows) ; idx++){
- if( grd_masterinfo.rowStatus(idx) != 0 ){
- return;
- }
- }
- if( trgCnt == srcCnt){//자기자신일경우..
- return;
- }else{
- model.copyNode(" /root/trgdata/info", trgNode);
- grd_masterinfo.insertRow(trgCnt, "above",false);
- model.copyNode( trgNode, "/root/srcdata/info" );
- //model.copyNode( srcNode, " /root/trgdata/info");
- if( trgCnt < srcCnt ) srcCnt++;//아래에서 위로 이동할때 위쪽에 행이 하나 추가되었으므로 삭제할 행이 증가된상태이다
- if( trgCnt > srcCnt ) srcCnt--;
-
- grd_masterinfo.deleteRow(srcCnt, false);
- grd_masterinfo.refresh();
-
- }
- grd_masterinfo.refresh();
- }
-
- //refseq update하러 간다.
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/savedata/info");
-
- var curCnt = grd_masterinfo.rows - grd_masterinfo.fixedRows;//1부터 시작
- for( var idx = 1 ; idx <= curCnt ; idx++ ){
- model.setValue("/root/main/masterinfo/info["+ idx + "]/refseq", idx);
- }
-
- model.copyNode("/root/send/savedata", "/root/main/masterinfo");
-
- submit("TXMQP02601");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondragover">
- <![CDATA[
- //2008-01-17 손주연 수정 시작
- if( srchexclsYN == "Y" ) return;
- //2008-01-17 손주연 수정 종료
- if( srchdropYN == "Y" ) return ;
-
- if ( event.drag == "grd_masterinfo") {
- grd_masterinfo.select( grd_masterinfo.mouseRow, 1, grd_masterinfo.mouseRow, 8 ) = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondragstart">
- <![CDATA[
- if ( event.drag == "grd_masterinfo") {
- model.removeNodeset("/root/srcdata");
- model.makeNode("/root/srcdata/info");
-
- //event.dropData = grd_masterinfo.textMatrix( grd_masterinfo.row, 1 );
- var curCnt = grd_masterinfo.row;
- if(curCnt > 0){
- model.copyNode("/root/srcdata/info", "/root/main/masterinfo/info["+curCnt+"]");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //opener check 추가 by 손주연 2008-01-04
- if( !checkOpener() ) {
- if( grd_masterinfo.row < 1) return ;
-
- grd_masterinfo.editCell();
- return ;
- }
- //손주연 수정 종료
-
- var srchexclsYN = opener.javascript.getParameter("srchexcls");
- srchdropYN = opener.javascript.getParameter("srchdrop");
- if( srchexclsYN == "Y" || srchdropYN == "Y"){
- iRow = grd_masterinfo.row;
- if(iRow < 1){
- return;
- }
- model.setValue("/root/main/masterinfo/info[" + iRow + "]/check", "true");
- grd_masterinfo.refresh();
- fSetOpenerValue(iRow);
-
- //2008-01-17 손주연 수정 시작
- //if(model.getValue("/root/temp/getdata/endVal") == "E")
- window.close();
- //2008-01-17 손주연 수정 종료
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //enter시 입력 추가 by 손주연 2008-01-04
- if( (grd_masterinfo.col == 3) && (event.keyCode == 13 ) ) {
- fAddCnts();
- }
- //손주연 수정 종료
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_masterinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_upviewmode" class="icon_top" style="left:837px; top:74px; width:26px; height:19px; font-size:11pt; font-weight:bold; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMoveRow( "T", 1 );
- ]]>
- </script>
- <hint>
- <![CDATA[위로]]>
- </hint>
- </button>
- <button id="btn_downviewmode" class="icon_bottom" style="left:865px; top:74px; width:26px; height:19px; font-size:11pt; font-weight:bold; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMoveRow( "B", 1 );
- ]]>
- </script>
- <hint>
- <![CDATA[아래로]]>
- </hint>
- </button>
- <button id="btn_upviewmode2" class="icon_top" style="left:809px; top:74px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMoveRow( "T", 2 );
- ]]>
- </script>
- <hint>
- <![CDATA[맨위로]]>
- </hint>
- </button>
- <button id="btn_downviewmode2" class="icon_bottom" style="left:893px; top:74px; width:26px; height:19px; font-size:11pt; font-weight:bold; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMoveRow( "B", 2 );
- ]]>
- </script>
- <hint>
- <![CDATA[맨아래로]]>
- </hint>
- </button>
- <button id="btn_save2" class="btn2_letter2" disabled="true" visibility="hidden" style="left:448px; top:0px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/savedata/list", grd_masterinfo.getUpdateData());
- if( submit("TXMQP02601") ){
- btn_save2.disabled = true;
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|