123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685 |
- <?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/>
- </list>
- <item>
- <reptid/>
- </item>
- <rex>
- <rexrow>
- <dspdt/>
- </rexrow>
- </rex>
- </main>
- <hide/>
- <send>
- <reptid/>
- <instcd/>
- <addtaxpnt/>
- <addtaxyy/>
- <frdate/>
- <todate/>
- <speccd/>
- <reptitem/>
- <seqno/>
- <save>
- <reptlist/>
- </save>
- <etcparam/>
- <reptspectype/>
- </send>
- <temp>
- <seqno/>
- <row/>
- <inptdata/>
- <flag/>
- </temp>
- <init>
- <init_reptkind>
- <item>
- <label>1기 예정</label>
- <value>1</value>
- <label>1기 확정</label>
- <value>2</value>
- <label>2기 예정</label>
- <value>3</value>
- <label>2기 확정</label>
- <value>4</value>
- </item>
- </init_reptkind>
- <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="TRRAT01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptspeclist"/>
- <submission id="TRRAT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/main/list/reptlist"/>
- <submission id="TRRAT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/reptspeclist"/>
- <submission id="TXRAT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/reptlist" resultref="/root/temp"/>
- <submission id="TRRAT01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rex"/>
- </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" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업
- */
- function fInitialize()
- {
- model.removeNodeset("/root/main/list/reptlist");
- model.removeNodeset("/root/main/list/reptspeclist");
- model.setValue("/root/send/addtaxyy", getCurrentDate().substr(0, 4));
-
- rdo_chktype.value = "A";
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
-
- submit("TRRAT01501");
- fSetReptKind();
- fSetDate();
- model.refresh();
- }
-
- /*
- 신고서 항목 조회
- */
- function fSearch()
- {
- model.removeNodeset("/root/main/list/reptspeclist");
- fSetDate();
- model.setValue("/root/send/reptid", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptid")));
- model.setValue("/root/send/speccd", rdo_chktype.value);
- model.setValue("/root/send/reptitem", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptitem")));
- model.setValue("/root/send/addtaxyy", ipt_yyyy.value);
- model.setValue("/root/send/addtaxpnt", rdo_reptkind.value);
-
- submit("TRRAT01502");
- fSetRowStatus();
-
- model.refresh();
- }
-
- function fSearchPrev()
- {
- model.removeNodeset("/root/main/list/reptspeclist");
- fSetDate();
- model.setValue("/root/send/reptid", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptid")));
- model.setValue("/root/send/speccd", rdo_chktype.value);
- model.setValue("/root/send/reptitem", grd_reptlist.valueMatrix(grd_reptlist.row, grd_reptlist.colRef("reptitem")));
- model.setValue("/root/send/addtaxyy", ipt_yyyy.value);
- model.setValue("/root/send/addtaxpnt", rdo_reptkind.value);
-
- submit("TRRAT01503");
- fSetRowStatus();
- model.refresh();
- }
-
- /*
- 신고서항목 저장
- */
- function fSave(param)
- {
- if (param=="rept")
- {
- model.reset("/root/send/save/reptlist");
-
- model.setValue("/root/send/save/reptlist", grd_reptlist.getUpdateData());
- model.refresh();
- misfSave("TTRAT01312");
- }
- else
- {
- model.reset("/root/send/save/reptlist");
-
- model.setValue("/root/send/save/reptlist", grd_reptspeclist.getUpdateData());
- model.refresh();
- misfSave("TTRAT01314");
- }
- }
-
- /* 행추가, 삭제*/
- 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 fGetReptList(pRow, reptid)
- {
- model.resetInstanceNode("/root/main/list/reptlist");
- model.resetInstanceNode("/root/send/save/reptlist");
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/reptid", reptid);
-
- model.removenode("/root/main/list/reptlist");
-
- submit("TTRAT01313");
- 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 fSetReptKind()
- {
- var sMonth = getCurrentDate().substr(4, 2);
- if(sMonth == "01" || sMonth == "02" || sMonth == "03")
- {
- model.setValue("/root/send/addtaxpnt", "1");
- }
- else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
- {
- model.setValue("/root/send/addtqaxpnt", "2");
- }
- else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
- {
- model.setValue("/root/send/addtqaxpnt", "3");
- }
- else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
- {
- model.setValue("/root/send/addtqaxpnt", "4");
- }
- model.refresh();
- }
-
- function fGetReptSpecList(pRow, reptid)
- {
- model.resetInstanceNode("/root/send/save/reptlist");
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/reptid", reptid);
-
- submit("TRRAT01503");
- model.refresh();
- }
-
- function fSetDate()
- {
- if(model.getValue("/root/send/addtaxyy").length != 4)
- {
- messageBox("년도가 잘못되었습니다.", "I999");
- return;
- }
-
- var sReptKind = model.getValue("/root/send/addtaxpnt");
- if(sReptKind == "1")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0101");
- model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0331");
- }
- else if(sReptKind == "2")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0101");
- model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0630");
- }
- else if(sReptKind == "3")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0701");
- model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "0930");
- }
- else if(sReptKind == "4")
- {
- model.setValue("/root/send/frdate", model.getValue("/root/send/addtaxyy") + "0701");
- model.setValue("/root/send/todate", model.getValue("/root/send/addtaxyy") + "1231");
- }
- model.refresh();
- }
-
- function fSetRowStatus()
- {
- var chk = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("chk"));
-
- if (chk == "I")
- {
- for (var i = 1; i <= grd_reptspeclist.rows; i++)
- {
- grd_reptspeclist.rowStatus(i) = 1;
- }
- }
- // else
- // {
- // for (var i = 1; i <= grd_reptspeclist.rows; i++)
- // {
- // grd_reptspeclist.rowStatus(i) = 2;
- // }
- // }
- }
-
- function fSetGrid()
- {
- for (var i = 1; i <= grd_reptspeclist.rows; i++)
- {
- grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("fstrgstrid")) = getUserInfo("userid");
- grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("lastupdtrid")) = getUserInfo("userid");
- grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("addtaxyy")) = model.getValue("/root/send/addtaxyy");
- grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("addtaxpnt")) = model.getValue("/root/send/addtaxpnt");
- }
- }
-
- function fCellFormat()
- {
- for (var i = 1; i <= grd_reptspeclist.rows; i++)
- {
- var row = i;
- var col = grd_reptspeclist.colRef("inptdata");
- var type = grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("reptspectype"));
- var lgth = grd_reptspeclist.valueMatrix(i, grd_reptspeclist.colRef("reptspeclgth"));
- var char = "";
-
- if (type == 'NUM')
- {
- char = '#';
- grd_reptspeclist.cellFormat(row, col) = char;
- grd_reptspeclist.cellattribute("maxlength",row, col, row, col) = "(-)"+lgth;
- }
- else
- {
- grd_reptspeclist.cellattribute("maxlength",row, col, row, col) = lgth;
- }
- }
- }
-
- function fCheckType(pRow, pReptID, pReptitem, pReptSpecType)
- {
- model.setValue("/root/temp/row", pRow);
- model.setValue("/root/send/reptid", pReptID);
- model.setValue("/root/send/reptitem", pReptitem);
- model.setValue("/root/send/reptspectype", pReptSpecType);
-
- var sRow = model.getValue("/root/temp/row");
-
- /* Head 레코드일 경우*/
- if (pReptID == '001')
- {
- /* 신고차수*/
- if (pReptitem == '008')
- {
- modal("SPRAT01301","","","","","/root/send", "/root/target", "1200" );
- var flag = model.getValue("/root/temp/flag")
- if (flag == '2')
- {
- grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
- var rowstatus = grd_reptspeclist.rowStatus(sRow);
- if (rowstatus != '1')
- {
- grd_reptspeclist.rowStatus(sRow) = 2;
- }
- }
- }
- }
-
- /* 은행코드일 경우 팝업 */
- if (pReptSpecType == 'BNK')
- {
- modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
- var flag = model.getValue("/root/temp/flag")
-
- if (flag == '2')
- {
- grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
- var rowstatus = grd_reptspeclist.rowStatus(sRow);
- if (rowstatus != '1')
- {
- grd_reptspeclist.rowStatus(sRow) = 2;
- }
- }
- }
-
- /* 일반과세자 신고서일 경우 */
-
- if (pReptID == '002')
- {
- if (pReptitem == '053')
- {
- modal("SPRAT01301","","","","","/root/send", "/root/target", "" );
- var flag = model.getValue("/root/temp/flag")
- if (flag == '2')
- {
- grd_reptspeclist.valueMatrix(sRow, grd_reptspeclist.colRef("inptdata")) = model.getValue("/root/temp/inptdata");
- var rowstatus = grd_reptspeclist.rowStatus(sRow);
- if (rowstatus != '1')
- {
- grd_reptspeclist.rowStatus(sRow) = 2;
- }
- }
- }
- }
- }
-
- ]]>
- </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:137px; 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:5px; top:25px; width:1182px; height:50px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:50px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:16px; width:95px; height:17px; ">년 도 :</caption>
- <input id="ipt_yyyy" ref="/root/send/addtaxyy" class="input_s_essential" navindex="1" maxlength="4" style="left:95px; top:15px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var yyyy = ipt_yyyy.value;
-
- // if (yyyy.size() == 4)
- // {
- // model.setValue("/root/main/send/yyyy", ipt_yyyy.value);
- // }
- // else
- // {
- // alert("년도가 잘못 입력되었습니다.");
- // }
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:195px; top:15px; width:106px; height:17px; ">신고 유형 :</caption>
- <select1 id="rdo_reptkind" ref="/root/send/addtaxpnt" class="radio_search" navindex="2" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:305px; top:15px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/init_reptkind/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fSetDate();
- model.setValue("/root/send/seqno", "000");
- fSearch();
-
- ]]>
- </script>
- </select1>
- <caption id="caption10" class="search_name" style="left:645px; top:15px; width:86px; height:17px; ">거래기간 :</caption>
- <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" navindex="3" editable="false" inputtype="date" style="left:745px; top:15px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption1" style="left:845px; top:14px; width:15px; height:25px; ">~</caption>
- <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" navindex="4" editable="false" inputtype="date" style="left:860px; top:15px; width:95px; height:19px; "/>
- <button id="button1" class="btn6_letter2" navindex="12" visibility="visible" style="left:1040px; top:14px; width:56px; height:22px; ">
- <caption>파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var strInstcd = getUserInfo("dutplceinstcd") ;
- var addtaxyy = ipt_yyyy.value;
- var etcparam = 3; // 전자신고서 파일생성으로 셋팅
- var currDD = getCurrentDate().substr(4, 8);
-
- var strFilNm = addtaxyy+currDD;
-
-
- model.setValue("/root/send/instcd", strInstcd);
- model.setValue("/root/send/etcparam", etcparam);
-
- model.removeNodeset("/root/main/rex");
- model.reset("/root/main/rex/rexrow");
- model.refresh();
-
- var tmpflnm ;
- var flsize;
-
- submit("TRRAT01504");
-
- var tmpstr,tmpstr2;
- var rowcnt;
- var i;
- rowcnt = filegrid.rows;
-
- var fso, tf;
-
- strFilNm = "c:\\ersdata\\" + strFilNm + ".101";
- fso = new ActiveXObject("Scripting.FileSystemObject");
- tf = fso.CreateTextFile(strFilNm, true);
-
- for (i = 1; i <= rowcnt ; i++)
- {
- tmpstr = filegrid.valueMatrix(i, filegrid.colRef("dspdt")) ;
- tmpstr2 = tmpstr.split("*");
- //tmpstr2 = tmpstr;
- //tmpstr2 = tmpstr.substring(0,flsize);
- filegrid.valueMatrix(i, filegrid.colRef("dspdt")) = tmpstr2[0];
- tf.Write (tmpstr2[0]);
- //filegrid.valueMatrix(i, filegrid.colRef("filedata")) = tmpstr;
- }
- tf.Close();
-
- model.refresh();
-
- // var fileName = window.fileDialog("save", "," , false, strFilNm, "101", "*.*");
- // filegrid.saveText(fileName);
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1105px; y1:5px; x2:1105px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:14px; 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:495px; top:85px; width:140px; 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[
-
- fSearch();
-
- ]]>
- </script>
- </select1>
- <datagrid id="filegrid" nodeset="/root/main/rex/rexrow" visibility="hidden" caption="데이터" colsep="^" colwidth="730" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="30" rowsep="|" style="left:630px; top:105px; width:350px; height:10px; ">
- <col ref="dspdt" type="input" style="text-align:right; "/>
- </datagrid>
- <button id="btn_prev" class="btn2_letter2" style="left:1010px; top:85px; width:42px; height:19px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 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")) = model.getValue("/root/init/chktype");
- var seqno = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("seqno"));
- model.setValue("/root/send/seqno", seqno);
- fSearchPrev();
-
- ]]>
- </script>
- </button>
- <button id="btn_next" class="btn2_letter2" style="left:1055px; top:85px; width:42px; height:19px; ">
- <caption>다음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 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")) = model.getValue("/root/init/chktype");
- var seqno = grd_reptspeclist.valueMatrix(1, grd_reptspeclist.colRef("seqno"));
- model.setValue("/root/send/seqno", seqno);
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_reptlist" nodeset="/root/main/list/reptlist" class="datagrid2" caption="신고서ID^신고서명^항목구분^신고항목" colwidth="53, 269, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:6px; top:113px; width:345px; height:601px; ">
- <col ref="reptid" style="text-align:center; "/>
- <col ref="reptflagnm"/>
- <col ref="speccd"/>
- <col ref="reptitem" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- model.dispatch("onmouseup");
- model.setValue("/root/send/seqno", "000");
- fSearch();
- fCellFormat();
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_reptspeclist" nodeset="/root/main/list/reptspeclist" class="datagrid2" caption="기관코드^신고서ID^신고서명^항목구분^신고항목^항목명^일련번호^신고년도^신고회차^Type^분류^길이^입력 데이터^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^Check^메뉴설명" colwidth="71, 73, 100, 64, 67, 289, 67, 76, 76, 61, 62, 55, 129, 97, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" selectionmode="free" style="left:358px; top:113px; width:830px; height:600px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reptid" visibility="hidden" diabled="true"/>
- <col disabled="true" ref="reptflagnm" visibility="hidden"/>
- <col disabled="true" ref="speccd" visibility="hidden"/>
- <col disabled="true" ref="reptitem"/>
- <col disabled="true" ref="reptspecitem"/>
- <col ref="seqno" style="text-align:center; "/>
- <col ref="addtaxyy" visibility="hidden"/>
- <col ref="addtaxpnt" visibility="hidden"/>
- <col ref="reptspectype" visibility="hidden"/>
- <col disabled="true" ref="reptspeccls" style="text-align:center; "/>
- <col disabled="true" ref="reptspeclgth" style="text-align:center; "/>
- <col ref="inptdata" type="input"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="chk" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- 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 pReptSpecType = grd_reptspeclist.valueMatrix(pRow, grd_reptspeclist.colRef("reptspectype"));
-
- fCheckType(pRow, pReptID, pReptitem, pReptSpecType);
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:6px; top:90px; width:111px; height:14px; ">신고서 LIST</caption>
- <button id="btn_save_menuitem" class="btn5_letter2" style="left:1145px; top:85px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSetGrid();
- model.reset("/root/send/save/reptlist");
- model.setValue("/root/send/save/reptlist", grd_reptspeclist.getUpdateData());
- model.refresh();
-
- misfSave("TXRAT01501");
- model.makeNode("/root/temp/row");
- model.makeNode("/root/temp/inptdata");
- model.makeNode("/root/temp/flag");
- fSearch();
-
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:19px; x2:1194px; y2:19px; "/>
- <line id="line2" class="line_1" style="x1:6px; y1:105px; x2:351px; y2:105px; "/>
- <line id="line4" class="line_1" style="x1:358px; y1:105px; x2:1187px; y2:105px; "/>
- <caption id="caption4" class="tit_2" style="left:358px; top:90px; width:118px; height:14px; ">신고서 내역 입력</caption>
- <button id="button2" class="btn2_letter2" style="left:1100px; top:85px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i <= grd_reptspeclist.rows; i++)
- {
- grd_reptspeclist.rowStatus(i) = 4;
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|