123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387 |
- <?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="">
- <init>
- <title>
- <item>
- <name>대분류</name>
- <id>lrg</id>
- </item>
- <item>
- <name>중분류</name>
- <id>mdl</id>
- </item>
- <item>
- <name>소분류</name>
- <id>sml</id>
- </item>
- <item>
- <name>구분</name>
- <id>srfeflag</id>
- </item>
- <item>
- <name>화면ID</name>
- <id>scrnid</id>
- </item>
- <item>
- <name>화면명</name>
- <id>scrnname</id>
- </item>
- <item>
- <name>중요도</name>
- <id>insuimp</id>
- </item>
- <item>
- <name>세부기능/오류</name>
- <id>detailfe</id>
- </item>
- <item>
- <name>개발자ID</name>
- <id>dev</id>
- </item>
- <item>
- <name>예정시작일</name>
- <id>schestartdd</id>
- </item>
- <item>
- <name>예정완료일</name>
- <id>schedd</id>
- </item>
- <item>
- <name>추가일</name>
- <id>acptdd</id>
- </item>
- <item>
- <name>시작일</name>
- <id>startdd</id>
- </item>
- <item>
- <name>종료일</name>
- <id>enddd</id>
- </item>
- <item>
- <name>진행률</name>
- <id>prcsrate</id>
- </item>
- <item>
- <name>공정대상</name>
- <id>prcsyn</id>
- </item>
- <item>
- <name>비고</name>
- <id>remark</id>
- </item>
- <item>
- <name>기능분해1</name>
- <id>funt1</id>
- </item>
- <item>
- <name>기능분해2</name>
- <id>funt2</id>
- </item>
- <item>
- <name>기능분해3</name>
- <id>funt3</id>
- </item>
- <item>
- <name>수정필요여부</name>
- <id>updtneedyn</id>
- </item>
- <item>
- <name>과제명</name>
- <id>subjno</id>
- </item>
- <item>
- <name>사용여부</name>
- <id>useyn</id>
- </item>
- <item>
- <name>변경구분</name>
- <id>adchflag</id>
- </item>
- <item>
- <name>적용기준일</name>
- <id>appdd</id>
- </item>
- <item>
- <name>통합개발</name>
- <id>devflag</id>
- </item>
- <item>
- <name>M/D</name>
- <id>manday</id>
- </item>
- <item>
- <name>난이도</name>
- <id>dgrdifclt</id>
- </item>
- </title>
- <title2>
- <item>
- <name>시작일</name>
- <id>startdd</id>
- </item>
- <item>
- <name>종료일</name>
- <id>enddd</id>
- </item>
- <item>
- <name>진행률</name>
- <id>prcsrate</id>
- </item>
- </title2>
- <title3>
- <item>
- <name>소위원회</name>
- <id>reprdept</id>
- </item>
- <item>
- <name>화면검증완료</name>
- <id>scrnveriyn</id>
- </item>
- <item>
- <name>테스트완료</name>
- <id>testendyn</id>
- </item>
- <item>
- <name>인수위완료</name>
- <id>insuendyn</id>
- </item>
- <item>
- <name>비고</name>
- <id>remark</id>
- </item>
- </title3>
- </init>
- <main>
- <grd_projlist/>
- </main>
- <send>
- <title/>
- <content/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // var popIndex = opener.model.getValue("/root/popIndex");
- //
- // if (popIndex == "super"){
- // combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item";
- // var def = opener.grd_projlist.col;
- //
- // // 오프너의 컬럼 리스트를 받아 와서(def) 현재 팝업의 콤보 리스트와 매치 시킨다.
- // // def 값은 콤보 박스에 select 값으로 넘겨 준다.(콤보 인덱스는 0 부터 시작한다)
- // // 대분류 부터 일괄수정이 적용 되므로 그 이전의 컬럼 리스트는 제외해야 하므로 5를 빼는 것이다.
- // if(def < 15)
- // {
- // def = def -5;
- // }
- // else if(def < 22)
- // {
- // def = def-7;
- // }
- // else if (def < 34)
- // {
- // def = def - 14;
- // }
- // else
- // {
- // def = def -18;
- // }
- // combo1.refresh();
- // combo1.select(parseInt(def));
- // } else if (popIndex == "dev"){
- // combo1.choices.itemset.attribute("nodeset") = "/root/init/title2/item";
- // combo1.refresh();
- // combo1.select(0);
- // } else if (popIndex == "insu"){
- // combo1.choices.itemset.attribute("nodeset") = "/root/init/title3/item";
- // combo1.refresh();
- // combo1.select(0);
- // } else {
- // alert("error");
- // }
- // 팝업 테스트용
- // var popIndex = "super";
- // var def = "appdd";
-
- var popIndex = opener.model.getValue("/root/popIndex");
- var def = opener.grd_projlist.colAttribute(opener.grd_projlist.col,"ref");
-
- if(def == "schestartdd" || def == "schedd" || def == "acptdd" || def == "startdd" || def == "enddd" || def == "appdd")
- {
- input1.attribute("format") = "yyyy-mm-dd";
- input1.attribute("mask") = "include";
- }
- input1.refresh();
-
- if (popIndex == "super"){
- combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item";
- model.setValue("/root/send/title",def);
- combo1.refresh();
- } else if (popIndex == "dev"){
- combo1.choices.itemset.attribute("nodeset") = "/root/init/title2/item";
- model.setValue("/root/send/title",def);
- combo1.refresh();
- } else if (popIndex == "insu"){
- combo1.choices.itemset.attribute("nodeset") = "/root/init/title3/item";
- model.setValue("/root/send/title",def);
- combo1.refresh();
- } else {
- alert("error");
- }
-
-
- // 팝업 테스트용 데이터 셋팅하기~
- // col element 얻어 오기
- // grd_projlist.colAttribute(grd_projlist.col,"ref")
- // grd_projlist.colAttribute(grd_projlist.col,"type")
- //
- // var def = "sml";
- // combo1.choices.itemset.attribute("nodeset") = "/root/init/title/item";
- // model.setValue("/root/send/title",def);
- // combo1.refresh();
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetContent(){
-
- var content = model.getValue("/root/send/content");
- var title = model.getValue("/root/send/title");
-
- for(var i=0; i<opener.grd_projlist.selectedRows; i++)
- {
-
- opener.model.setValue("/root/main/projlist/list/proj[" + (opener.grd_projlist.selectedRow(i) - opener.grd_projlist.fixedRows + 1) + "]/"+title, content);
- }
-
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" src="../../commonweb/js/common.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="680" pageheight="200">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">프로젝트진척관리(일괄수정)</caption>
- <group id="group1" style="left:0px; top:55px; width:675px; height:50px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:675px; height:40px; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:61px; height:17px; ">항목</caption>
- <caption id="caption3" class="search_name" style="left:201px; top:8px; width:66px; height:17px; ">내용</caption>
- <select1 id="combo1" ref="/root/send/title" class="combo_search" appearance="minimal" style="left:65px; top:10px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/title/item">
- <label ref="name"/>
- <value ref="id"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 날짜 형식의 데이터 수정시 날짜 포맷을 지정해 준다.
- cur_col = combo1.value;
- if(cur_col == "schestartdd" || cur_col == "schedd" || cur_col == "acptdd" || cur_col == "startdd" || cur_col == "enddd" || cur_col == "appdd")
- {
- input1.attribute("format") = "yyyy-mm-dd";
- input1.attribute("mask") = "include";
- }
-
- input1.refresh();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/content" style="left:255px; top:10px; width:390px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- input1.value = input1.value.toUpperCase();
- cur_col = combo1.value;
- if(cur_col == "scrnveriyn" | cur_col == "insuendyn") // 화면검증완료여부,인수위 완료 여부
- {
- if(model.getValue("/root/send/content") == "Y" | model.getValue("/root/send/content") == "N" | model.getValue("/root/send/content") == "")
- {
-
- }
- else {
- alert("잘못된 값을 입력하셨습니다.");
- input1.value = "";
- }
- }
- else if(cur_col == "testendyn") // 테스트완료여부
- {
- if(model.getValue("/root/send/content") == "Y" | model.getValue("/root/send/content") == "N" | model.getValue("/root/send/content") == "R" | model.getValue("/root/send/content") == "")
- {
-
- }
- else {
- alert("잘못된 값을 입력하셨습니다.");
- input1.value = "";
- }
- }
-
- else if(cur_col == "acptdd" || cur_col == "enddd") // 추가일,종료일
- {
- nday = new Date() // 오늘의 날짜와 시간을 구함
- t_year = nday.getYear();
- t_mon = nday.getMonth()+1; // 0부터 시작해서 1월이다.
- t_day = nday.getDate();
-
- // 날짜 포맷 맞추기
- if(t_mon < 10)
- t_mon = "0" + t_mon;
- if(t_day < 10)
- t_day = "0" + t_day;
-
- if(model.getValue("/root/send/content") > t_year + "-" + t_mon + "-" + t_day)
- {
- // XPath 를 이용해서 값을 얻어와서 그때 그때 다르게 뿌려 준다.
- alert(model.getValue("/root/init/title/item[id = /root/send/title]/name") + "은 현재날짜 보다 클 수 없습니다.");
- input1.value = "";
- }
-
- }
-
- else if(cur_col == "appdd") // 적용 기준일
- {
- if(model.getValue("/root/send/content") == "2008-10-01" || model.getValue("/root/send/content") == "2009-01-01" ||
- model.getValue("/root/send/content") == "2009-03-01" || model.getValue("/root/send/content") == "2009-03-23"|| model.getValue("/root/send/content") == "2009-05-01")
- {
- }
- else
- {
- alert("적용 기준일은 2008-10-01, 2009-01-01, 2009-03-01, 2008-03-23, 2009-05-01 중 하나입니다.");
- input1.value = "";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- input1.value = input1.currentText;
- fSetContent();
- }
- ]]>
- </script>
- </input>
- </group>
- <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:610px; top:35px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>일괄수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetContent();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|