123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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>CMC비전관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <visionlist>
- <rows>
- <valifromdd/>
- <valitodd/>
- <vision/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <cmcno/>
- </rows>
- </visionlist>
- </main>
- <send>
- <savevision>
- <valifromdd/>
- <vision/>
- <cmcno/>
- <status/>
- <valitodd/>
- <oldvalifromdd/>
- </savevision>
- <search>
- <fromyear/>
- <toyear/>
- <searchkeyword/>
- </search>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- model.refresh();
- ]]>
- </script>
- <submission id="TRZUM01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/visionlist"/>
- <submission id="TXZUM01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savevision" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/visionlist/rows");
- var toDay = getCurrentDate();
- model.setValue("/root/send/search/fromyear",toDay.substr(0,4)-1);
- model.setValue("/root/send/search/toyear",toDay.substr(0,4));
- model.setValue("/root/send/savevision/valifromdd",toDay);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:106px; height:14px; ">CMC비전 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <input id="ipt_valifromdd" ref="/root/send/savevision/valifromdd" inputtype="date" style="left:762px; top:76px; width:90px; height:19px; "/>
- <textarea id="tar_vision" ref="/root/send/savevision/vision" style="left:762px; top:100px; width:430px; height:115px; "/>
- <caption id="caption3" class="cell_1" style="left:700px; top:99px; width:60px; height:116px; ">비전</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:108px; height:14px; ">비전리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:690px; y2:70px; "/>
- <line id="line2" class="line_2" style="x1:700px; y1:97px; x2:1194px; y2:97px; "/>
- <caption id="caption1" class="cell_1" style="left:700px; top:75px; width:60px; height:20px; ">기준일자</caption>
- <line id="line6" class="line_3" style="x1:700px; y1:216px; x2:1194px; y2:216px; "/>
- <datagrid id="grd_visionlist" nodeset="/root/main/visionlist/rows" autoresize="true" caption="기준년도^기준년도^비전^등록자^등록일시^순번" colsep="^" colwidth="70, 70, 340, 70, 120, 30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:690px; height:640px; ">
- <col ref="valifromdd" format="yyyy-mm-dd"/>
- <col ref="valitodd" format="yyyy-mm-dd"/>
- <col ref="vision"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="cmcno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_visionlist.isCell(event.target) && grd_visionlist.row >= grd_visionlist.fixedRows){
- var row = grd_visionlist.row;
- model.copyNode("/root/send/savevision", "/root/main/visionlist/rows["+row+"]");
- model.makeValue("/root/send/savevision/oldvalifromdd",model.getValue("/root/send/savevision/valifromdd"));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:705px; top:55px; width:95px; height:14px; ">비전등록</caption>
- <line id="line3" class="line_1" style="x1:700px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:73px; height:17px; ">검색어 :</caption>
- <input id="input1" ref="/root/send/search/searchkeyword" class="input_search" navindex="1" style="left:92px; top:8px; width:130px; height:14px; "/>
- <caption id="caption9" class="search_name" style="left:565px; top:9px; width:86px; height:17px; ">기준년도 :</caption>
- <input id="ipt_fromyear" ref="/root/send/search/fromyear" class="input_s_essential" navindex="3" style="left:654px; top:8px; width:90px; height:19px; "/>
- <caption id="caption10" class="search_no_b" style="left:746px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="ipt_toyear" ref="/root/send/search/toyear" class="input_s_essential" navindex="4" style="left:760px; top:8px; width:90px; height:19px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRZUM01701");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- </group>
- <line id="line4" class="line_3" style="x1:0px; y1:716px; x2:690px; y2:716px; "/>
- <button id="btn_delete" class="btn5_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("비전을","Q001") == "6"){
- model.setValue("/root/send/savevision/status","D");
- if(submit("TXZUM01701",false)){
- model.resetInstanceNode("/root/send/savevision");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <output id="opt_cmcno" ref="/root/send/savevision/cmcno" style="left:970px; top:76px; width:100px; height:19px; "/>
- <button id="btn_insert" class="btn2_letter2" style="left:1062px; top:50px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/savevision");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:1107px; top:50px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vision = model.getValue("/root/send/savevision/vision");
- var status = "I";
-
- if(vision.isByteSize(300)){
- if(model.getValue("/root/send/savevision/cmcno") != "") {
- status = "U";
- }
- model.setValue("/root/send/savevision/status",status);
- if(submit("TXZUM01701",false)){
- model.resetInstanceNode("/root/send/savevision");
- model.refresh();
- }
- }else{
- messageBox("비전내용이","E003");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|