123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- <?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>
- <list>
- <reptlist/>
- <reptspeclist/>
- <chklist/>
- </list>
- <item>
- <reptid/>
- </item>
- </main>
- <hide/>
- <send>
- <reptid/>
- <instcd/>
- <speccd/>
- <reptitem/>
- <save>
- <reptlist/>
- </save>
- <ptype/>
- </send>
- <temp>
- <seqno/>
- <checkdel/>
- <row/>
- <inptdata/>
- </temp>
- <init>
- <itemcd>
- <item>A항목</item>
- <cd>A</cd>
- <item>B항목</item>
- <cd>B</cd>
- <item>C항목</item>
- <cd>C</cd>
- </itemcd>
- <typecd>
- <type>숫자</type>
- <cd>NUM</cd>
- <type>문자</type>
- <cd>CHR</cd>
- <type>은행코드</type>
- <cd>BNK</cd>
- <type>업종코드</type>
- <cd>KND</cd>
- </typecd>
- <cls>
- <cls>변경</cls>
- <value>1</value>
- <cls>고정</cls>
- <value>2</value>
- </cls>
- <essncd>
- <essn>필수</essn>
- <cd>Y</cd>
- <essn>선택</essn>
- <cd>N</cd>
- </essncd>
- <chktype>
- <label>첫번째 형태</label>
- <value>A</value>
- <label>두번째 형태</label>
- <value>B</value>
- <label>세번째 형태</label>
- <value>C</value>
- <label>네번째 형태</label>
- <value>D</value>
- <label>다섯번째 형태</label>
- <value>E</value>
- </chktype>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct">
- <![CDATA[
-
- ]]>
- </script>
- <submission id="TXRAT01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/temp"/>
- <submission id="TRRAT01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptlist"/>
- <submission id="TRRAT01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptspeclist"/>
- <submission id="TXRAT01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/reptlist");
- model.removeNodeset("/root/main/itemlist/reptitemlist");
- model.setValue("/root/init/chktype","A");
-
- fSearch();
- model.refresh();
- }
-
- /*
- 신고서 항목 조회
- */
- function fSearch()
- {
- model.resetInstanceNode("/root/main/list/reptspeclist");
- model.removenode("/root/main/list/reptspeclist");
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/speccd", model.getValue("/root/init/chktype"));
- submit("TRRAT01401");
- btn_save_menugrup.disabled=true;
- btn_save_menuitem.disabled=true;
- btn_del_menugrup.disabled=true;
- btn_delete_menuitem.disabled=true;
- model.refresh();
-
- for (i=1; i<grd_reptlist.rows; i++)
- {
- if (grd_reptlist.valueMatrix(i, grd_reptlist.colRef("reptflagessn")) == "Y")
- {
- grd_reptlist.cellStyle("color", i, grd_reptlist.colRef("reptflagessn")) = "#FF0000";
- }
- else if (grd_reptlist.valueMatrix(i, grd_reptlist.colRef("reptflagessn")) == "N")
- {
- grd_reptlist.cellStyle("color", i, grd_reptlist.colRef("reptflagessn")) = "#0000FF";
- }
- }
-
- }
-
- /*
- 신고서항목 저장
- */
- function fSave(param)
- {
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
-
- grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("fstrgstrid")) = getUserInfo("userid");
- grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("lastupdtrid")) = getUserInfo("userid");
-
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("fstrgstrid")) = getUserInfo("userid");
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("lastupdtrid")) = getUserInfo("userid");
-
- if (param=="rept")
- {
- model.reset("/root/send/save/reptlist");
- // model.setValue("/root/send/save/reptlist/reptid", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptid")));
- model.setValue("/root/send/save/reptlist", grd_reptlist.getUpdateData());
- model.refresh();
- misfSave("TXRAT01401");
- fSearch();
- }
- else
- {
- model.reset("/root/send/save/reptlist");
-
- model.setValue("/root/send/save/reptlist", grd_reptspeclist.getUpdateData());
- model.refresh();
- misfSave("TXRAT01402");
- var sRow = grd_reptlist.row;
- var reptid = grd_reptlist.valueMatrix(sRow, grd_reptlist.colRef("reptid"));
- fGetReptSpecList(sRow, reptid);
- }
- }
-
- /* 행추가, 삭제*/
- function fAddDelRow(sStatus)
-
- {
- if(sStatus == "A")
- {
- misfGridIUD(grd_reptlist, sStatus);
- grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
-
- // grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("flagcd")) = "1";
- // grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("genrdd")) = getCurrentDate();
- //
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isskind")) = "01";
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind")) = "01";
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = "01";
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "00";
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("remintax")) = "00";
- //
- // grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn")) = "N";
- //
- // fSetAddtaxterm(grd_taxbilllist.row);
- }
- else
- {
- misfGridIUD(grd_taxbilllist, sStatus);
- }
- }
-
- function fGetReptSpecList(pRow, reptid)
- {
- model.resetInstanceNode("/root/send/save/reptlist");
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/reptid", reptid);
- model.setValue("/root/send/speccd", model.getValue("/root/init/chktype"));
- ipt_reptid.value = reptid;
-
- submit("TRRAT01402");
- btn_save_menuitem.disabled=true;
- model.dispatch("");
- model.refresh();
-
- }
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
-
- function fSetRowValue(node, destinationelement, sourceelement, row) {
- model.setValue(node + "[" + row + "]/" + destinationelement, sourceelement);
- }
-
-
- /* 팝업창 */
- function fCheckType(pRow, pReptID, pReptitem, pType)
- {
- model.setValue("/root/send/ptype",pType);
-
- /* Head 레코드일 경우*/
- if (pReptID == '001')
- {
- alert("헤드일경우");
- /* 신고차수*/
- if (pReptitem == '008')
- {
- alert("신고차수");
- model.setValue("/root/temp/row", grd_reptspeclist.row);
- var sRow = model.getValue("/root/temp/row");
- modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
- grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("reptspecfixval")) = model.getValue("/root/temp/inptdata");
- grd_reptspeclist.rowStatus(sRow) = 2;
- }
- }
-
- /* 은행코드일 경우 팝업 */
- if (pType == 'BNK')
- {
- model.setValue("/root/temp/row", grd_reptspeclist.row);
- var sRow = model.getValue("/root/temp/row");
- modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
- grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("reptspecfixval")) = model.getValue("/root/temp/inptdata");
- grd_reptspeclist.rowStatus(sRow) = 2;
- }
-
- if (pType == '')
- {
- }
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1239;1,1330;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">신고서 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:6px; top:30px; width:1182px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:14px; width:130px; height:17px; ">신고서항목 조회</caption>
- <line id="line1" style="x1:1105px; y1:5px; x2:1105px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- </group>
- <select1 id="rdo_chktype" ref="/root/init/chktype" class="combo_essential" appearance="minimal" style="left:500px; top:85px; width:110px; height:19px; vertical-align:middle; background-color:#fffbf2; border-color:#ffd799; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/chktype">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_reptlist.dispatch("onrowchanged");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="tit_2" style="left:5px; top:91px; width:111px; height:13px; vertical-align:middle; ">신고서 항목</caption>
- <line id="line12" class="line_1" style="x1:6px; y1:106px; x2:375px; y2:106px; "/>
- <datagrid id="grd_reptlist" nodeset="/root/main/list/reptlist" class="datagrid2" caption="신고서ID^신고서명^우선순위^필수구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^삭제가능여부" colwidth="53, 192, 54, 66, 100, 100, 100, 74, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:5px; top:111px; width:386px; height:601px; ">
- <col disabled="true" ref="reptid" style="text-align:center; "/>
- <col ref="reptflagnm" type="input" maxbyte="100"/>
- <col ref="reptflagprity" type="input" maxbyte="3" style="text-align:center; "/>
- <col ref="reptflagessn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/essncd">
- <label ref="essn"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="checkdel" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- model.dispatch("onmouseup");
- var sRow = grd_reptlist.row;
- var reptid = grd_reptlist.valueMatrix(sRow, grd_reptlist.colRef("reptid"));
- ipt_reptid.value = reptid;
- fGetReptSpecList(sRow, reptid);
- btn_del_menugrup.disabled=false;
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_save_menugrup.disabled=false;
- ]]>
- </script>
- </datagrid>
- <button id="btn_save_menugrup" class="btn5_letter2" style="left:348px; top:86px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (grd_reptlist.row == -1)
- {
- return;
- }
- fSave("rept");
- ]]>
- </script>
- </button>
- <button id="btn_del_menugrup" class="btn2_letter2" style="left:303px; top:86px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 신고서 삭제시 내역이 있으면 삭제불가*/
- var checkdel = model.getValue("/root/temp/checkdel");
-
- if (grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptflagessn")) == 'Y')
- {
- messageBox("필수항목은 삭제할 수 없습니다.", "I999");
- return;
- }
-
- else if (grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("checkdel")) == 'N')
- {
- messageBox("신고서 내역이 존재합니다. 내역을 먼저 삭제해주십시오", "I999");
- return;
- }
- btn_save_menugrup.disabled=false;
- misfGridIUD(grd_reptlist, "D");
- ]]>
- </script>
- </button>
- <datagrid id="grd_reptspeclist" nodeset="/root/main/list/reptspeclist" class="datagrid2" caption="기관코드^신고서ID^항목구분^신고항목^항목명^타입^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^길이^분류^고정값^출력번호^CheckDel^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^메뉴설명" colwidth="71, 56, 64, 54, 246, 59, 61, 59, 57, 64, 35, 47, 266, 53, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" selectionmode="free" style="left:395px; top:111px; width:790px; height:601px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reptid" visibility="hidden" diabled="true"/>
- <col disabled="true" ref="speccd" visibility="hidden"/>
- <col ref="reptitem" style="text-align:center; "/>
- <col ref="reptspecitem" type="input" maxbyte="90" style="left:267px; top:32px; width:378px; height:23px; "/>
- <col ref="reptspectype" type="combo" style="left:633px; top:32px; width:73px; height:23px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/typecd">
- <label ref="type"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstupdtdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="reptspeclgth" type="input" format="#,###" maxbyte="3" style="left:911px; top:32px; width:41px; height:23px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var length = grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("reptspeclgth"));
- ]]>
- </script>
- </col>
- <col ref="reptspeccls" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cls">
- <label ref="cls"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="reptspecfixval" type="input" maxbyte="90" style="text-align:center; "/>
- <col ref="reptspecprntno" type="input" format="aaa" maxbyte="3" style="text-align:center; "/>
- <col ref="checkdel" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_save_menuitem.disabled=false;
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- btn_delete_menuitem.disabled=false;
- var pRow = grd_reptspeclist.row;
- var pReptID = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptid"));
- var pReptitem = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptitem"));
- var pType = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptspectype"));
- fCheckType(pRow, pReptID, pReptitem, pType);
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:396px; top:91px; width:94px; height:13px; ">신고서 내역</caption>
- <button id="btn_delete_menuitem" class="btn2_letter2" style="left:1099px; top:84px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_save_menuitem.disabled=false;
- misfGridIUD(grd_reptspeclist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_save_menuitem" class="btn5_letter2" style="left:1144px; top:85px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_reptspeclist.row == -1)
- {
- return;
- }
- var focusRow = grd_reptlist.row;
-
- fSave("reptlist");
- fSearch();
- model.setFocus("grd_reptlist");
- grd_reptlist.row = focusRow;
- grd_reptlist.dispatch("onrowchanged");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:258px; top:86px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_save_menugrup.disabled=false;
- misfGridIUD(grd_reptlist, "A");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:1054px; top:84px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (ipt_reptid.value == null || ipt_reptid.value == "")
- {
- messageBox("신고서를 선택해주세요^^", "I999");
- return;
- }
- btn_save_menuitem.disabled=false;
- misfGridIUD(grd_reptspeclist, "A");
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("reptid")) = ipt_reptid.value;
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_reptspeclist.valueMatrix(grd_reptspeclist.row, grd_reptspeclist.colRef("speccd")) = rdo_chktype.value;
- ]]>
- </script>
- </button>
- <input id="ipt_reptid" visibility="hidden" style="left:223px; top:85px; width:30px; height:19px; "/>
- <line id="line4" class="line_1" style="x1:10px; y1:106px; x2:390px; y2:106px; "/>
- <line id="line2" class="line_1" style="x1:395px; y1:106px; x2:1185px; y2:106px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|