123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?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>
- <list1>
- <grdcivilaplcnts>
- <civilrgstdd/>
- <civilaplcnts/>
- </grdcivilaplcnts>
- </list1>
- <list2>
- <grdtretfact>
- <civilaplcnts/>
- <civilrgstdd/>
- </grdtretfact>
- </list2>
- <list3>
- <grdrsltcnts>
- <civilrgstdd/>
- <civilaplcnts/>
- </grdrsltcnts>
- </list3>
- </main>
- <send>
- <data1>
- <s_cacm>
- <pid/>
- <civilgenrdd/>
- <civilseqno/>
- <civilmngtno/>
- <instcd/>
- <civiltretflag/>
- <civilaplcnts/>
- <civilrgstdd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </s_cacm>
- <grd_cacm/>
- </data1>
- <data2>
- <pid/>
- <civilgenrdd/>
- <civilseqno/>
- </data2>
- </send>
- <hidden>
- <capm>
- <pop_capm/>
- </capm>
- <cnts/>
- </hidden>
- </root>
- </instance>
- <submission id="TXPMC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1"/>
- <submission id="TRPMC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCivilTretSpecRef();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 선택된 그리드 아이디
- var gSelectedGrid = "";
-
- function fCivilTretSpecRef(){
- model.setValue("/root/send/data2/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
- model.setValue("/root/send/data2/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
- model.setValue("/root/send/data2/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
-
- submit("TRPMC02801");
-
- grd_civilaplcnts.resizeCells();
- grd_civildecicnts.resizeCells();
- grd_civilmeasfact.resizeCells();
-
- model.resetInstanceNode("/root/send/data1");
- model.resetInstanceNode("/root/send/data2");
- model.refresh();
- }
-
- // 민원내용저장
- function fSetCivilAplCnts() {
- model.resetInstanceNode("/root/send/data1");
- var cur_row = grd_civilaplcnts.row;
-
- model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
- model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
- model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
- model.setValue("/root/send/data1/s_cacm/civiltretflag" , "1");
- model.setValue("/root/send/data1/grd_cacm" , grd_civilaplcnts.getUpdateData());
-
- //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
- //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
-
- submit("TXPMC02801");
- }
-
- // 처리내용저장
- function fSetCivilMeasFact() {
- model.resetInstanceNode("/root/send/data1");
- var cur_row = grd_civilmeasfact.row;
-
- model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
- model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
- model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
- model.setValue("/root/send/data1/s_cacm/civiltretflag" , "2");
- model.setValue("/root/send/data1/grd_cacm" , grd_civilmeasfact.getUpdateData());
-
- //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
- //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
- submit("TXPMC02801");
- }
-
- // 결론저장
- function fSetCivilDeciCnts() {
- model.resetInstanceNode("/root/send/data1");
- var cur_row = grd_civildecicnts.row;
-
- model.setValue("/root/send/data1/s_cacm/pid" , model.getValue("/root/hidden/capm/pop_capm/pid"));
- model.setValue("/root/send/data1/s_cacm/civilgenrdd" , model.getValue("/root/hidden/capm/pop_capm/civilgenrdd"));
- model.setValue("/root/send/data1/s_cacm/civilseqno" , model.getValue("/root/hidden/capm/pop_capm/civilseqno"));
- model.setValue("/root/send/data1/s_cacm/civiltretflag" , "3");
- model.setValue("/root/send/data1/grd_cacm",grd_civildecicnts.getUpdateData());
-
- //model.setValue("/root/send/data1/s_cacm/civilrgstdd",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilrgstdd"));
- //model.setValue("/root/send/data1/s_cacm/civilaplcnts",model.getValue("/root/main/list1/grdcivilaplcnts["+ cur_row +"]/civilaplcnts"));
-
- submit("TXPMC02801");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="860" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:776px; height:860px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">민원내용</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:776px; y2:25px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:294px; width:95px; height:13px; ">민원답변</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:309px; x2:776px; y2:309px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:578px; width:95px; height:13px; ">개선사항</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:593px; x2:776px; y2:593px; "/>
- <button id="button1" class="btn5_letter2" style="left:566px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCivilAplCnts();
- fSetCivilMeasFact();
- fSetCivilDeciCnts();
- fCivilTretSpecRef();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:611px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_civilaplcnts.addItem();
- //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
- grd_civilaplcnts.selectionMode = "free";
- model.setValue("/root/main/list1/grdcivilaplcnts["+ (grd_civilaplcnts.rows - grd_civilaplcnts.fixedRows) +"]/civilrgstdd", getCurrentDate());
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:669px; top:5px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civilaplcnts.row;
- if (cur_row == -1) {
- grd_civilaplcnts.addItem();
- grd_civilaplcnts.selectionMode = "free";
- model.setValue("/root/main/list1/grdcivilaplcnts["+ 1 +"]/civilrgstdd", getCurrentDate());
- } else {
- grd_civilaplcnts.insertItem(cur_row,"after");
- grd_civilaplcnts.selectionMode = "free";
- model.setValue("/root/main/list1/grdcivilaplcnts["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:723px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civilaplcnts.row;
- grd_civilaplcnts.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" style="left:566px; top:289px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCivilAplCnts();
- fSetCivilMeasFact();
- fSetCivilDeciCnts();
- fCivilTretSpecRef();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:611px; top:289px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_civilmeasfact.addItem();
- //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
- grd_civilmeasfact.selectionMode = "free";
-
- model.setValue("/root/main/list2/grdtretfact["+ (grd_civilmeasfact.rows - grd_civilmeasfact.fixedRows) +"]/civilrgstdd", getCurrentDate());
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:669px; top:289px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civilmeasfact.row;
- if (cur_row == -1) {
- grd_civilmeasfact.addItem();
- grd_civilmeasfact.selectionMode = "free";
- model.setValue("/root/main/list2/grdtretfact["+ 1 +"]/civilrgstdd", getCurrentDate());
- } else {
- grd_civilmeasfact.insertItem(cur_row,"after");
- grd_civilmeasfact.selectionMode = "free";
- model.setValue("/root/main/list2/grdtretfact["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" style="left:723px; top:289px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civilmeasfact.row;
- grd_civilmeasfact.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter2" style="left:566px; top:573px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCivilAplCnts();
- fSetCivilMeasFact();
- fSetCivilDeciCnts();
- fCivilTretSpecRef();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter3" style="left:611px; top:573px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_civildecicnts.addItem();
- //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
- grd_civildecicnts.selectionMode = "free";
-
- model.setValue("/root/main/list3/grdrsltcnts["+ (grd_civildecicnts.rows - grd_civildecicnts.fixedRows) +"]/civilrgstdd", getCurrentDate());
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter3" style="left:669px; top:573px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civildecicnts.row;
- if (cur_row == -1) {
- grd_civildecicnts.addItem();
- grd_civildecicnts.selectionMode = "free";
- model.setValue("/root/main/list3/grdrsltcnts["+ 1 +"]/civilrgstdd", getCurrentDate());
- } else {
- grd_civildecicnts.insertItem(cur_row,"after");
- grd_civildecicnts.selectionMode = "free";
- model.setValue("/root/main/list3/grdrsltcnts["+ (cur_row + 1) +"]/civilrgstdd", getCurrentDate());
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter3" style="left:723px; top:573px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_civildecicnts.row;
- grd_civildecicnts.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <datagrid id="grd_civilaplcnts" nodeset="/root/main/list1/grdcivilaplcnts" autoresize="true" caption="입력일자^민원내용^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:776px; height:250px; ">
- <col ref="civilrgstdd" type="inputdate"/>
- <col ref="civilaplcnts" type="input"/>
- <col ref="chrgernm"/>
- <col ref="civilmngtno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- gSelectedGrid = "grd_civilaplcnts";
- caption62.value = "민원내용";
- model.setValue("/root/hidden/cnts", "");
-
- var cur_row = grd_civilaplcnts.row;
- if (cur_row >= 1) {
- model.setValue("/root/hidden/cnts", model.getValue("/root/main/list1/grdcivilaplcnts["+ (cur_row) +"]/civilaplcnts"));
- group2.visible = true;
- model.setFocus("textarea1");
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_civilmeasfact" nodeset="/root/main/list2/grdtretfact" autoresize="true" caption="입력일자^조치사항^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:314px; width:776px; height:250px; ">
- <col ref="civilrgstdd" type="inputdate"/>
- <col ref="civilaplcnts" type="input"/>
- <col ref="chrgernm"/>
- <col ref="civilmngtno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- gSelectedGrid = "grd_civilmeasfact";
- caption62.value = "조치사항";
- model.setValue("/root/hidden/cnts", "");
-
- var cur_row = grd_civilmeasfact.row;
- if (cur_row >= 1) {
- model.setValue("/root/hidden/cnts", model.getValue("/root/main/list2/grdtretfact["+ (cur_row) +"]/civilaplcnts"));
- group2.visible = true;
- model.setFocus("textarea1");
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_civildecicnts" nodeset="/root/main/list3/grdrsltcnts" autoresize="true" caption="입력일자^결론내용^담당자^caption1" colsep="^" colwidth="86, 580, 70, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:600px; width:776px; height:250px; ">
- <col ref="civilrgstdd" type="inputdate"/>
- <col ref="civilaplcnts" type="input"/>
- <col ref="chrgernm"/>
- <col ref="civilmngtno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- gSelectedGrid = "grd_civildecicnts";
- caption62.value = "결론";
- model.setValue("/root/hidden/cnts", "");
-
- var cur_row = grd_civildecicnts.row;
- if (cur_row >= 1) {
- model.setValue("/root/hidden/cnts", model.getValue("/root/main/list3/grdrsltcnts["+ (cur_row) +"]/civilaplcnts"));
- group2.visible = true;
- model.setFocus("textarea1");
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="group2" visibility="hidden" style="left:5px; top:90px; width:765px; height:535px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:760px; height:520px; "/>
- <textarea id="textarea1" ref="/root/hidden/cnts" editable="true" imemode="hangul" style="left:5px; top:30px; width:750px; height:485px; "/>
- <caption id="caption62" class="tit_2" style="left:5px; top:5px; width:133px; height:14px; font-family:돋움; vertical-align:middle; ">색션</caption>
- <button id="btn_close" class="btn2_letter2" style="left:715px; top:5px; width:44px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/cnts", "");
- group2.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_apply" class="btn2_letter2" style="left:670px; top:5px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = -1;
- // 민원내용
- if (gSelectedGrid == "grd_civilaplcnts") {
- cur_row = grd_civilaplcnts.row;
- if (cur_row >= 1) {
- model.setValue("/root/main/list1/grdcivilaplcnts["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
- grd_civilaplcnts.addStatus(cur_row, "update");
- grd_civilaplcnts.resizeCells();
- }
- }
- // 조치
- if (gSelectedGrid == "grd_civilmeasfact") {
- cur_row = grd_civilmeasfact.row;
- if (cur_row >= 1) {
- model.setValue("/root/main/list2/grdtretfact["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
- grd_civilmeasfact.addStatus(cur_row, "update");
- grd_civilmeasfact.resizeCells();
- }
- }
- // 결론
- if (gSelectedGrid == "grd_civildecicnts") {
- cur_row = grd_civildecicnts.row;
- if (cur_row >= 1) {
- model.setValue("/root/main/list3/grdrsltcnts["+ (cur_row) +"]/civilaplcnts", model.getValue("/root/hidden/cnts"));
- grd_civildecicnts.addStatus(cur_row, "update");
- grd_civildecicnts.resizeCells();
- }
- }
-
- model.setValue("/root/hidden/cnts", "");
- group2.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|