123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cpglist>
- </cpglist>
- <search_cond/>
- </main>
- <send/>
- <init/>
- <hidden/>
- <temp>
- <size>
- <w/>
- </size>
- <popupmenu>
- <item>
- <name>삭제</name>
- <func>fCpgDelete</func>
- </item>
- </popupmenu>
- </temp>
- </root>
- </instance>
- <submission id="TRMMP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
- <submission id="TXMMP02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpglist"/>
- </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">
- <![CDATA[
- function fGetCpgHist(){
- copyNodeListType("/root/main", "/root/main/search_cond", "replace", model, opener.model);
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/search_cond");
-
- submit("TRMMP02001", false);
- opener.model.setValue("/root/main/search_cond/getflag", "");
- model.removeNode("/root/main/search_cond")
- model.makeNode("/root/main/search_cond");
-
- var nodeList = instance1.selectNodes( "/root/main/cpglist/cpginfo" );
- var num = 1;
- if( nodeList.length > 0 ){
- for( var i=1; i<=nodeList.length; i++ ){
- if( model.getValue("/root/main/cpglist/cpginfo["+i+"]/cpghistseq") == "임시" ){
- model.makeValue("/root/main/cpglist/cpginfo["+i+"]/dispseq", model.getValue("/root/main/cpglist/cpginfo["+i+"]/cpghistseq") );
- }else{
- model.makeValue("/root/main/cpglist/cpginfo["+i+"]/dispseq", num );
- num++;
- }
- }
- }
-
- model.refresh();
- }
-
- function fCpgDelete(){
- if( model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpglasthistyn") == "Y" ){
- messageBox("유효한 CP는 삭제", "E001");
- return;
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- copyNodeType("/root/send/reqdata", "/root/main/search_cond", "replace", model, opener.model);
- //model.copyNode("/root/send/reqdata", "/root/main/search_cond");
-
- model.makeValue("/root/send/reqdata/cpgno" , model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgno"));
- model.makeValue("/root/send/reqdata/cpghistseq" , model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/orghistseq"));
- model.makeValue("/root/send/reqdata/todd" , getCurrentDate() );
- model.makeValue("/root/send/reqdata/getflag" , "H" );
-
- submit("TXMMP02001", true);
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <line id="line1" class="line_3" style="x1:0px; y1:646px; x2:375px; y2:646px; "/>
- <button id="btn_close" class="btn4_letter2" visibility="hidden" style="left:320px; top:649px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.window.javascript.fCloseCpgHist();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/cpglist/cpginfo" autoresize="true" caption="Ver^D^CP명^적용 시작일^종료일^작성자^수정일^cpghist seq" colsep="^" colwidth="32, 25, 164, 70, 70, 70, 70, 45" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:430px; height:673px; ">
- <col ref="dispseq"/>
- <col ref="times" visibility="hidden"/>
- <col ref="cpgnm"/>
- <col ref="appdd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="rgstrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <col ref="cpghistseq" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( btn_close.attribute("left") != "420px" && datagrid1.row > 0){
- var iRow = opener.grd_cpglist.row;
- }
-
- opener.model.setValue("/root/temp/selected/cpgno", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgno"));
- opener.model.setValue("/root/temp/selected/cpghistseq", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/orghistseq"));
- opener.model.setValue("/root/temp/selected/cpgnm", model.getValue("/root/main/cpglist/cpginfo[" + datagrid1.row + "]/cpgnm"));
- opener.model.setValue("/root/temp/selected/cpgflagcd", opener.model.getValue("/root/main/cpglist/cpginfo[" + opener.grd_cpglist.row + "]/cpgflagcd"));
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( opener.model.getValue("/root/main/search_cond/authflag") == "M" ){
- if( datagrid1.row > 0 ){
- opener.btn_srchver.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if( opener.model.getValue("/root/main/search_cond/authflag") == "M" ){
- if(event.button == 3){
- if(datagrid1.isCell(event.target) && datagrid1.mouseRow >=datagrid1.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|