123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <reqdesc>
- <depno/>
- <deptype/>
- <reqhngnm/>
- <reqdd/>
- <reqhopedd/>
- <reqserver/>
- <reqcomponent/>
- <reqcomment/>
- <dephngnm/>
- <depdd/>
- <educhkdd/>
- <educhkhngnm/>
- <educhkresult/>
- <remark/>
- </reqdesc>
- <reqList/>
- </main>
- <send>
- <reqhngnm/>
- <reqfromdd/>
- <reqtodd/>
- <reqcomponent/>
- <dephngnm/>
- <depfromdd/>
- <deptodd/>
- <reqList/>
- <delflag/>
- </send>
- <hidden>
- <selectedRow/>
- <isEdited/>
- </hidden>
- <init>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- submit("TRZHA00101");
- ]]>
- </script>
- <submission id="TRZHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqList"/>
- <submission id="TXZHA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqList"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../commonweb/js/utilHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- // 검색조건 초기화
- model.setValue("/root/send/reqhngnm", "");
- model.setValue("/root/send/reqfromdd", getCurrentDate());
- model.setValue("/root/send/reqtodd", getCurrentDate());
- model.setValue("/root/send/reqcomponent", "");
- model.setValue("/root/send/reqcomponent", "");
- model.setValue("/root/send/dephngnm", "");
- model.setValue("/root/send/depfromdd", "");
- model.setValue("/root/send/deptodd", "");
-
- // 상세내역 초기화
- model.setValue("/root/main/reqdesc/depno", "");
- model.setValue("/root/main/reqdesc/deptype", "");
- model.setValue("/root/main/reqdesc/reqhngnm", "");
- model.setValue("/root/main/reqdesc/reqdd", "");
- model.setValue("/root/main/reqdesc/reqhopedd", "");
- model.setValue("/root/main/reqdesc/reqserver", "");
- model.setValue("/root/main/reqdesc/reqcomponent", "");
- model.setValue("/root/main/reqdesc/reqcomment", "");
- model.setValue("/root/main/reqdesc/dephngnm", "");
- model.setValue("/root/main/reqdesc/depdd", "");
- model.setValue("/root/main/reqdesc/educhkdd", "");
- model.setValue("/root/main/reqdesc/educhkhngnm", "");
- model.setValue("/root/main/reqdesc/educhkresult", "");
- model.setValue("/root/main/reqdesc/remark", "");
-
- model.refresh();
- }
-
- function fSaveEdited() {
-
-
- var gridrow = model.getValue("/root/hidden/selectedRow");
-
- // not equals to Insert and not equals to Delete, Only Update
- if (grd_main.rowStatus(gridrow) != "1" || grd_main.rowStatus(gridrow) != "4") {
- grd_main.addStatus(gridrow, "update");
-
- model.setValue("/root/main/reqList[" + gridrow + "]/depno", model.getValue("/root/main/reqdesc/depno"));
- model.setValue("/root/main/reqList[" + gridrow + "]/deptype", model.getValue("/root/main/reqdesc/deptype"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqhngnm", model.getValue("/root/main/reqdesc/reqhngnm"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqdd", model.getValue("/root/main/reqdesc/reqdd"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqhopedd", model.getValue("/root/main/reqdesc/reqhopedd"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqserver", model.getValue("/root/main/reqdesc/reqserver"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqcomponent", model.getValue("/root/main/reqdesc/reqcomponent"));
- model.setValue("/root/main/reqList[" + gridrow + "]/reqcomment", model.getValue("/root/main/reqdesc/reqcomment"));
- model.setValue("/root/main/reqList[" + gridrow + "]/dephngnm", model.getValue("/root/main/reqdesc/dephngnm"));
- model.setValue("/root/main/reqList[" + gridrow + "]/depdd", model.getValue("/root/main/reqdesc/depdd"));
- model.setValue("/root/main/reqList[" + gridrow + "]/educhkdd", model.getValue("/root/main/reqdesc/educhkdd"));
- model.setValue("/root/main/reqList[" + gridrow + "]/educhkhngnm", model.getValue("/root/main/reqdesc/educhkhngnm"));
- model.setValue("/root/main/reqList[" + gridrow + "]/educhkresult", model.getValue("/root/main/reqdesc/educhkresult"));
- model.setValue("/root/main/reqList[" + gridrow + "]/remark", model.getValue("/root/main/reqdesc/remark"));
-
- model.refresh();
- }
- }
-
- // 필수항목 입력체크
- function fValidateList() {
-
- var hasEmpty = false;
-
- var errMsg = "필수항목이 비어있습니다. \r\n";
-
- if (isNull(model.getValue("/root/main/reqdesc/reqhngnm"))) {
- hasEmpty = true;
- errMsg += "요청자 \r\n";
- };
- if (isNull(model.getValue("/root/main/reqdesc/reqdd"))) {
- hasEmpty = true;
- errMsg += "요청일 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/reqhopedd"))) {
- hasEmpty = true;
- errMsg += "희망일 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/reqserver"))) {
- hasEmpty = true;
- errMsg += "배포요청서버 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/reqcomponent"))) {
- hasEmpty = true;
- errMsg += "컴포넌트 \r\n";
- }
- //model.getValue("/root/main/reqdesc/reqcomment");
- if (isNull(model.getValue("/root/main/reqdesc/dephngnm"))) {
- hasEmpty = true;
- errMsg += "조치자 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/depdd"))) {
- hasEmpty = true;
- errMsg += "조치일 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/educhkdd"))) {
- hasEmpty = true;
- errMsg += "테스트확인일 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/educhkhngnm"))) {
- hasEmpty = true;
- errMsg += "확인자 \r\n";
- }
- if (isNull(model.getValue("/root/main/reqdesc/educhkresult"))) {
- hasEmpty = true;
- errMsg += "확인결과 \r\n";
- }
- //model.getValue("/root/main/reqdesc/remark");
-
- if (hasEmpty) {
- alert(errMsg);
-
- return false;
- }
-
- return true;
- }
-
- // 수정시 열상태 설정
- function fSetStatus() {
- var gridrow = model.getValue("/root/hidden/selectedRow");
-
- grd_main.addStatus(gridrow, "update");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1211;2,789;">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:124px; height:14px; vertical-align:middle; ">프로그램배포 관리</caption>
- <datagrid id="grd_main" nodeset="/root/main/reqList" caption="배포번호^배포구분^요청자^요청일^희망일^배포요청서버^컴포넌트^요청사유^조치자^조치일시^교육서버확인일^확인자^확인결과^비고" colsep="^" colwidth="70, 65, 80, 80, 80, 100, 168, 200, 80, 80, 100, 100, 100, 160" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:10px; top:110px; width:1190px; height:265px; ">
- <col ref="depno"/>
- <col disabled="true" ref="deptype" type="combo">
- <choices>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- <item>
- <label>긴급</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="reqhngnm"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqhopedd" format="yyyy-mm-dd"/>
- <col ref="reqserver"/>
- <col ref="reqcomponent"/>
- <col ref="reqcomment"/>
- <col ref="dephngnm"/>
- <col ref="depdd" format="yyyy-mm-dd hh-mm"/>
- <col ref="educhkdd" format="yyyy-mm-dd"/>
- <col ref="educhkhngnm"/>
- <col disabled="true" ref="educhkresult" type="combo">
- <choices>
- <item>
- <label>이상유</label>
- <value>true</value>
- </item>
- <item>
- <label>이상무</label>
- <value>false</value>
- </item>
- </choices>
- </col>
- <col ref="remark"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 선택된 행의 정보를 저장
- model.setValue("/root/hidden/selectedRow", grd_main.row);
-
- // 배포리스트 선택(더블클릭)시 세부내용 표시
- model.setValue("/root/main/reqdesc/depno", model.getValue("/root/main/reqList[" + grd_main.row + "]/depno"));
- model.setValue("/root/main/reqdesc/deptype", model.getValue("/root/main/reqList[" + grd_main.row + "]/deptype"));
- model.setValue("/root/main/reqdesc/reqhngnm", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqhngnm"));
- model.setValue("/root/main/reqdesc/reqdd", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqdd"));
- model.setValue("/root/main/reqdesc/reqhopedd", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqhopedd"));
-
- model.setValue("/root/main/reqdesc/reqserver", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqserver"));
- model.setValue("/root/main/reqdesc/reqcomponent", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqcomponent"));
- model.setValue("/root/main/reqdesc/reqcomment", model.getValue("/root/main/reqList[" + grd_main.row + "]/reqcomment"));
- model.setValue("/root/main/reqdesc/dephngnm", model.getValue("/root/main/reqList[" + grd_main.row + "]/dephngnm"));
- model.setValue("/root/main/reqdesc/depdd", model.getValue("/root/main/reqList[" + grd_main.row + "]/depdd"));
- model.setValue("/root/main/reqdesc/educhkdd", model.getValue("/root/main/reqList[" + grd_main.row + "]/educhkdd"));
- model.setValue("/root/main/reqdesc/educhkhngnm", model.getValue("/root/main/reqList[" + grd_main.row + "]/educhkhngnm"));
- model.setValue("/root/main/reqdesc/educhkresult", model.getValue("/root/main/reqList[" + grd_main.row + "]/educhkresult"));
- model.setValue("/root/main/reqdesc/remark", model.getValue("/root/main/reqList[" + grd_main.row + "]/remark"));
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // when changed grid_data's selected row
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell_1" style="left:10px; top:433px; width:100px; height:20px; ">배포요청서버</caption>
- <caption id="caption3" class="cell_1" style="left:467px; top:412px; width:100px; height:20px; ">요청자</caption>
- <input id="input2" ref="/root/main/reqdesc/reqhngnm" navindex="10" imemode="hangul" style="left:569px; top:412px; width:140px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:712px; top:412px; width:100px; height:20px; ">요청일</caption>
- <input id="input3" ref="/root/main/reqdesc/reqdd" navindex="11" inputtype="date" style="left:814px; top:412px; width:140px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:958px; top:412px; width:100px; height:20px; ">희망일</caption>
- <input id="input4" ref="/root/main/reqdesc/reqhopedd" navindex="12" inputtype="date" style="left:1060px; top:412px; width:140px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:257px; top:412px; width:100px; height:20px; ">배포구분</caption>
- <input id="input5" ref="/root/main/reqdesc/depno" editable="false" style="left:113px; top:412px; width:140px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:10px; top:454px; width:100px; height:206px; ">컴포넌트</caption>
- <caption id="caption8" class="cell_1" style="left:377px; top:434px; width:100px; height:226px; ">요청사유</caption>
- <input id="input8" ref="/root/main/reqdesc/dephngnm" navindex="16" imemode="hangul" style="left:112px; top:661px; width:140px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:10px; top:661px; width:100px; height:20px; ">조치자</caption>
- <input id="input9" ref="/root/main/reqdesc/depdd" navindex="17" inputtype="date" format="yyyy-mm-dd hh:ss" style="left:357px; top:661px; width:140px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:255px; top:661px; width:100px; height:20px; ">조치일시</caption>
- <caption id="caption11" class="cell_1" style="left:10px; top:682px; width:100px; height:70px; ">비고</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:10px; top:25px; width:1190px; height:50px; "/>
- <caption id="caption13" class="tit_2" style="left:20px; top:389px; width:100px; height:13px; ">세부내용</caption>
- <caption id="caption14" class="tit_2" style="left:20px; top:87px; width:100px; height:13px; ">배포리스트</caption>
- <line id="line1" class="line_1" style="x1:10px; y1:105px; x2:1200px; y2:105px; "/>
- <caption id="caption15" class="search_name" style="left:19px; top:40px; width:70px; height:17px; ">요청자</caption>
- <line id="line6" class="line_3" style="x1:10px; y1:754px; x2:1200px; y2:754px; "/>
- <line id="line2" class="line_1" style="x1:10px; y1:407px; x2:1200px; y2:407px; "/>
- <input id="input11" ref="/root/send/reqhngnm" navindex="1" imemode="hangul" style="left:88px; top:40px; width:70px; height:19px; "/>
- <input id="input12" ref="/root/send/reqfromdd" class="input_essential" navindex="2" inputtype="date" style="left:237px; top:40px; width:90px; height:19px; "/>
- <caption id="caption16" class="search_name" style="left:167px; top:40px; width:70px; height:17px; ">요청일</caption>
- <input id="input13" ref="/root/send/reqcomponent" navindex="4" imemode="alpha" style="left:527px; top:40px; width:120px; height:19px; "/>
- <caption id="caption17" class="search_name" style="left:447px; top:40px; width:76px; height:17px; ">컴포넌트</caption>
- <input id="input14" ref="/root/send/dephngnm" navindex="5" imemode="hangul" style="left:726px; top:40px; width:70px; height:19px; "/>
- <caption id="caption18" class="search_name" style="left:656px; top:40px; width:76px; height:17px; ">조치자</caption>
- <input id="input15" ref="/root/send/reqtodd" class="input_essential" navindex="3" inputtype="date" style="left:346px; top:40px; width:90px; height:19px; "/>
- <caption id="caption19" style="left:328px; top:41px; width:15px; height:20px; text-align:center; ">~</caption>
- <input id="input16" ref="/root/send/depfromdd" navindex="6" inputtype="date" style="left:875px; top:40px; width:90px; height:19px; "/>
- <input id="input17" ref="/root/send/deptodd" navindex="7" inputtype="date" style="left:982px; top:40px; width:90px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:805px; top:40px; width:70px; height:17px; ">조치일</caption>
- <caption id="caption21" style="left:965px; top:41px; width:15px; height:20px; text-align:center; ">~</caption>
- <button id="button1" class="btn1_letter2" navindex="8" style="left:1135px; top:39px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRZHA00101");
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/main/reqdesc/reqcomponent" navindex="14" imemode="alpha" style="left:112px; top:454px; width:262px; height:206px; "/>
- <textarea id="textarea2" ref="/root/main/reqdesc/reqcomment" navindex="15" imemode="hangul" style="left:479px; top:434px; width:721px; height:225px; "/>
- <button id="button2" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1075px; top:85px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_main.addRow(true);
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1133px; top:85px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var selectedRows = grd_main.selectedRows;
- if (selectedRows != "") {
- // grd_main.deleteRow(selectedRows, false);
- grd_main.addStatus(selectedRows, "delete");
- } else {
- messageBox("삭제할 행을 선택해 주십시요!");
- }
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter3" navindex="24" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1125px; top:760px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter4" navindex="23" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:1040px; top:760px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>최종저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/reqList", grd_main.getUpdateData());
-
- if (submit("TXZHA00102")) {
- fInitialize();
- }
- ]]>
- </script>
- </button>
- <input id="input7" ref="/root/main/reqdesc/educhkdd" navindex="18" inputtype="date" style="left:600px; top:661px; width:140px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:499px; top:661px; width:100px; height:20px; ">교육서버확인일</caption>
- <input id="input10" ref="/root/main/reqdesc/educhkhngnm" navindex="19" imemode="hangul" style="left:845px; top:661px; width:140px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:742px; top:661px; width:100px; height:20px; ">확인자</caption>
- <textarea id="textarea3" ref="/root/main/reqdesc/remark" navindex="21" imemode="hangul" style="left:112px; top:682px; width:1088px; height:70px; "/>
- <select id="checkbox1" ref="/root/main/reqdesc/reqserver" navindex="13" overflow="visible" appearance="full" cols="4" style="left:115px; top:435px; width:260px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>HIS031</label>
- <value>HIS031</value>
- </item>
- <item>
- <label>HIS032</label>
- <value>HIS032</value>
- </item>
- <item>
- <label>MIS030</label>
- <value>MIS030</value>
- </item>
- <item>
- <label>CRM030</label>
- <value>CRM030</value>
- </item>
- </choices>
- </select>
- <caption id="caption23" class="cell_1" style="left:988px; top:660px; width:100px; height:20px; ">확인결과</caption>
- <select1 id="radio1" ref="/root/main/reqdesc/educhkresult" navindex="20" appearance="full" cols="2" overflow="visible" style="left:1098px; top:661px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>OK</label>
- <value>true</value>
- </item>
- <item>
- <label>NG</label>
- <value>false</value>
- </item>
- </choices>
- </select1>
- <button id="button4" class="btn4_letter6" navindex="22" disable.background-image="../../../com/commonweb/images/dis_btn4_letter6.gif" style="left:1095px; top:380px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter6.gif; ">
- <caption>수정내용적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fValidateList()) {
- fSaveEdited();
- }
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/send/delflag" overflow="visible" appearance="full" style="left:1082px; top:42px; width:45px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>삭제</label>
- <value>true</value>
- </item>
- </choices>
- </select>
- <caption id="caption24" class="cell_1" style="left:11px; top:412px; width:100px; height:20px; ">배포번호</caption>
- <select1 id="radio2" ref="/root/main/reqdesc/deptype" navindex="9" appearance="full" cols="2" overflow="visible" style="left:369px; top:414px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- <item>
- <label>긴급</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|