123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <fundsplanstate/>
- <premonthlist>
- </premonthlist>
- </list1>
- <list2>
- <fundsplanlist/>
- </list2>
- <daylist/>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <fundsplanym/>
- <amtunit>1</amtunit>
- <dutym/>
- </retrparams>
- <retrparams2>
- <instcd/>
- <fundsplandd/>
- <fundscd/>
- <amtunit/>
- </retrparams2>
- <tmpparams>
- <fundsplandd/>
- <fundscd/>
- <fundsnm/>
- <setfundscd/>
- </tmpparams>
- <temp>
- <sumamt/>
- </temp>
- <savelist>
- <premonthlist>
- </premonthlist>
- <fundsplanlist/>
- </savelist>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <submission id="TRRAF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list1"/>
- <submission id="TRRAF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams2" resultref="/root/main/list2"/>
- <bind id="bindDayPlaySumAmt" ref="/root/send/temp/sumamt" calculate="sum(/root/main/list2/fundsplanlist/amt)"/>
- <submission id="TXRAF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
- <submission id="TRRPD02206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/daylist"/>
- <submission id="TXRAF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var arrBaseDD = new Array();
- var arrHoliFlag = new Array();
- var arrDayNm = new Array();
- function fInit()
- {
- model.removenode("/root/main/list1/fundsplanstate");
- model.removenode("/root/main/list1/premonthlist");
- model.removenode("/root/main/list2/fundsplanlist");
-
- misfMsterDetailSet(grd_fundsplanstate, null, "TRRAF00201", "N");
- misfMsterDetailSet(grd_premonthlist, null, "TRRAF00201", "Y");
- misfMsterDetailSet(grd_fundsplanlist, null, "TRRAF00202", "Y");
-
- misfComboComCdListMulti("Z0007", "cmb_instcd");
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/fundsplanym", getCurrentDate().substr(0, 6));
- fSetGridMonth("C");
-
- if(getUserInfo("dutplceinstcd") == '001')
- {
- cmb_instcd.visible = true;
- }
- model.refresh();
- }
- function fRetrieve()
- {
- submit("TRRAF00201");
- for(var i=grd_fundsplanstate.fixedRows; i<grd_fundsplanstate.rows; i++)
- {
- var sOrderFlag = model.getValue(grd_fundsplanstate.nodeset + "[" + i + "]/orderflag");
- var sFundsCd = model.getValue(grd_fundsplanstate.nodeset + "[" + i + "]/setfundscd");
- if(sOrderFlag == "1")
- {
- if(sFundsCd == "0000" || sFundsCd == "9700") grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#eaeaea";
- else if(sFundsCd == "9800") grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#dddddd";
- else if(sFundsCd == "9900") grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#c0c0c0";
- else grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#ffffff";
- }
- else if(sOrderFlag == "2") grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#ffffcc";
- else if(sOrderFlag == "3") grd_fundsplanstate.rowStyle(i, "all", "background-color") = "#ccffcc";
- }
-
- fSetGridMonth("R");
- fSetSumAmt();
- }
- function fRetrieveDayPlanList()
- {
- var iDay = (grd_fundsplanstate.col - 7).toString().length == 1 ? "0" + (grd_fundsplanstate.col - 7).toString() : (grd_fundsplanstate.col - 7).toString();
- model.setValue("/root/send/retrparams2/instcd", cmb_instcd.value);
- model.setValue("/root/send/retrparams2/fundsplandd", ipt_fundsplanym.value + iDay);
- model.setValue("/root/send/retrparams2/fundscd", model.getValue(grd_fundsplanstate.nodeset + "[" + grd_fundsplanstate.row + "]/setfundscd"));
- model.setValue("/root/send/retrparams2/amtunit", rdo_amtunit.value);
- model.setValue("/root/send/tmpparams/fundsplandd", ipt_fundsplanym.value + iDay);
- model.setValue("/root/send/tmpparams/fundscd", model.getValue(grd_fundsplanstate.nodeset + "[" + grd_fundsplanstate.row + "]/fundscd"));
- model.setValue("/root/send/tmpparams/fundsnm", model.getValue(grd_fundsplanstate.nodeset + "[" + grd_fundsplanstate.row + "]/fundsnm"));
- model.setValue("/root/send/tmpparams/setfundscd", model.getValue(grd_fundsplanstate.nodeset + "[" + grd_fundsplanstate.row + "]/setfundscd"));
- submit("TRRAF00202");
-
- model.refresh();
- }
- function fSave()
- {
- model.removenode("/root/send/savelist/premonthlist");
- model.removenode("/root/send/savelist/fundsplanlist");
-
- model.makeNode("/root/send/savelist/premonthlist");
- model.makeNode("/root/send/savelist/fundsplanlist");
-
- model.setValue("/root/send/savelist/premonthlist", grd_premonthlist.getUpdateData());
- model.setValue("/root/send/savelist/fundsplanlist", grd_fundsplanlist.getUpdateData());
-
-
- misfSave("TXRAF00201");
- }
-
- function fSetSumAmt()
- {
- var iFundsGb1Sum = 0;
- var iFundsGb1DrAmt = 0;
- var iFundsGb1CrAmt = 0;
- var iFundsGb1RowIdx = -1;
- var iFundsGB2Sum = 0;
- var iFundsGb2DrAmt = 0;
- var iFundsGb2CrAmt = 0;
- var iFundsGb2RowIdx = -1;
- var iFundsGB3Sum = 0;
- var iFundsGb3DrAmt = 0;
- var iFundsGb3CrAmt = 0;
- var iFundsGb3RowIdx = -1;
- var iFundsGB4Sum = 0;
- var iFundsGb4DrAmt = 0;
- var iFundsGb4CrAmt = 0;
- var iFundsGb4RowIdx = -1;
- var iFundsGB5Sum = 0;
- var iFundsGb5DrAmt = 0;
- var iFundsGb5CrAmt = 0;
- var iFundsGb5RowIdx = -1;
- var iPreMonthAmt = 0; // 전기이월금액
- var iNextACntAmt = 0; // 차기이월금액
- var iAcntAmt = 0; // 제예금잔액 = 차입실행액 - 예금인출액
- var iSendAmt = 0; // 차입금잔액 = 차입실행액 - 차입상환액
- var iPreMonthRowIdx = grd_fundsplanstate.findRow("0000", 1, grd_fundsplanstate.colRef("setfundscd")); // 전기이월 Row Index
- var iNextAcntRowIdx = grd_fundsplanstate.findRow("9700", 1, grd_fundsplanstate.colRef("setfundscd")); // 차기이월금액 Row Index
- var iAcntRowIdx = grd_fundsplanstate.findRow("9800", 1, grd_fundsplanstate.colRef("setfundscd")); // 제예금잔액 Row Index
- var iSendRowIdx = grd_fundsplanstate.findRow("9900", 1, grd_fundsplanstate.colRef("setfundscd")); // 차입금잔액 Row Index
- var i7100Amt = 0; // 예금인출액
- var i8100Amt = 0; // 예금불입액
- var i7300Amt = 0; // 차입실행액
- var i8300Amt = 0; // 차입상환액
-
- var i7100RowIdx = grd_fundsplanstate.findRow("7100", 1, grd_fundsplanstate.colRef("setfundscd")); // 예금인출 Row Index
- var i8100RowIdx = grd_fundsplanstate.findRow("8100", 1, grd_fundsplanstate.colRef("setfundscd")); // 예금불입 Row Index
- var i7300RowIdx = grd_fundsplanstate.findRow("7300", 1, grd_fundsplanstate.colRef("setfundscd")); // 차입실행 Row Index
- var i8300RowIdx = grd_fundsplanstate.findRow("8300", 1, grd_fundsplanstate.colRef("setfundscd")); // 차입상환 Row Index
- for(var i=1; i<grd_fundsplanstate.rows; i++)
- {
- if(grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("fundssumgb")) == "02" && grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("orderflag")) == "3")
- {
- iFundsGb1RowIdx = i;
- }
- else if(grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("fundssumgb")) == "04" && grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("orderflag")) == "3")
- {
- iFundsGb2RowIdx = i;
- }
- else if(grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("fundssumgb")) == "06" && grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("orderflag")) == "3")
- {
- iFundsGb3RowIdx = i;
- }
- else if(grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("fundssumgb")) == "08" && grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("orderflag")) == "3")
- {
- iFundsGb4RowIdx = i;
- }
- else if(grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("fundssumgb")) == "10" && grd_fundsplanstate.valueMatrix(i, grd_fundsplanstate.colRef("orderflag")) == "3")
- {
- iFundsGb5RowIdx = i;
- }
- }
- for(var i=grd_fundsplanstate.frozenCols; i<grd_fundsplanstate.cols - 1; i++)
- {
- for(var j=1; j<grd_fundsplanstate.rows; j++)
- {
- if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "01" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "2")
- {
- iFundsGb1DrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "02" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "2")
- {
- iFundsGb1CrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "03" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb2DrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "04" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb2CrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "05" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb3DrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "06" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb3CrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "07" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "2")
- {
- iFundsGb4DrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "08" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "2")
- {
- iFundsGb4CrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "09" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb5DrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- else if(grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("fundssumgb")) == "10" && grd_fundsplanstate.valueMatrix(j, grd_fundsplanstate.colRef("orderflag")) == "1")
- {
- iFundsGb5CrAmt = parseInt(grd_fundsplanstate.valueMatrix(j, i), 10);
- }
- }
- i7100Amt = parseInt(grd_fundsplanstate.valueMatrix(i7100RowIdx, i), 10)
- i8100Amt = parseInt(grd_fundsplanstate.valueMatrix(i8100RowIdx, i), 10)
- i7300Amt = parseInt(grd_fundsplanstate.valueMatrix(i7300RowIdx, i), 10)
- i8300Amt = parseInt(grd_fundsplanstate.valueMatrix(i8300RowIdx, i), 10)
- if(i == grd_fundsplanstate.frozenCols)
- {
- iPreMonthAmt = parseInt(grd_fundsplanstate.valueMatrix(iPreMonthRowIdx, grd_fundsplanstate.colRef("sumamt")) == "" ? 0 : grd_fundsplanstate.valueMatrix(iPreMonthRowIdx, grd_fundsplanstate.colRef("sumamt")), 10);
- iAcntAmt = parseInt(grd_fundsplanstate.valueMatrix(iAcntRowIdx, grd_fundsplanstate.colRef("sumamt")) == "" ? 0 : grd_fundsplanstate.valueMatrix(iAcntRowIdx, grd_fundsplanstate.colRef("sumamt")), 10);
- iSendAmt = parseInt(grd_fundsplanstate.valueMatrix(iSendRowIdx, grd_fundsplanstate.colRef("sumamt")) == "" ? 0 : grd_fundsplanstate.valueMatrix(iSendRowIdx, grd_fundsplanstate.colRef("sumamt")), 10);
- }
- else
- {
- iPreMonthAmt = 0;
- iAcntAmt = 0;
- iSendAmt = 0;
- }
- iFundsGb1Sum = iFundsGb1DrAmt - iFundsGb1CrAmt;
- iFundsGB2Sum = iFundsGb2DrAmt - iFundsGb2CrAmt;
- iFundsGB3Sum = iFundsGb3DrAmt - iFundsGb3CrAmt;
- iFundsGB4Sum = iFundsGb4DrAmt - iFundsGb4CrAmt;
- iFundsGB5Sum = iFundsGb5DrAmt - iFundsGb5CrAmt;
- iNextACntAmt = iPreMonthAmt + (iFundsGb1Sum + iFundsGB2Sum + iFundsGB3Sum + iFundsGB4Sum + iFundsGB5Sum);
- iAcntAmt = iAcntAmt + (i8100Amt - i7100Amt);
- iSendAmt = iSendAmt + (i7300Amt - i8300Amt);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb1RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGb1Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb1RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGb1Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb2RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGB2Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb3RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGB3Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb4RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGB4Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iFundsGb5RowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iFundsGB5Sum);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iNextAcntRowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iNextACntAmt);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iAcntRowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iAcntAmt);
- model.setValue(grd_fundsplanstate.nodeset + "[" + iSendRowIdx + "]/" + grd_fundsplanstate.colAttribute(i, "ref"), iSendAmt);
- }
- }
-
- function fSetGridMonth(sType)
- {
- arrBaseDD = new Array();
- arrHoliFlag = new Array();
- arrDayNm = new Array();
- if(sType == "C")
- {
- model.setValue("/root/send/retrparams/dutym", model.getValue("/root/send/retrparams/fundsplanym"));
- submit("TRRPD02206");
- }
- else
- {
- for(var i=1; i<=31; i++)
- {
- arrBaseDD[i - 1] = model.getValue("/root/main/daylist[" + i + "]/basedd");
- arrHoliFlag[i - 1] = model.getValue("/root/main/daylist[" + i + "]/holiflag");
- arrDayNm[i - 1] = model.getValue("/root/main/daylist[" + i + "]/daynm");
-
- if(arrBaseDD[i - 1] == "")
- {
- grd_fundsplanstate.colHidden(i + 7) = true;
- }
- else
- {
- grd_fundsplanstate.colHidden(i + 7) = false;
- }
-
- if(arrHoliFlag[i - 1] == '4')
- {
- grd_fundsplanstate.colStyle((i + 7), "all", "color") = "#0000FF";
- }
- else if(arrHoliFlag[i - 1] == '0')
- {
- grd_fundsplanstate.colStyle((i + 7), "all", "color") = "#FF0000";
- }
- else
- {
- grd_fundsplanstate.colStyle((i + 7), "all", "color") = "#000000";
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">자금계획</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">기관구분 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:340px; top:9px; width:86px; height:17px; ">계획년월 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:105px; top:8px; width:185px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- grd_fundsplanstate.dispatch("onclick");
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- grd_fundsplanstate.dispatch("onclick");
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:580px; top:9px; width:86px; height:17px; ">원단위 :</caption>
- <select1 id="rdo_amtunit" ref="/root/send/retrparams/amtunit" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:663px; top:9px; width:187px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>백만원</label>
- <value>1000000</value>
- </item>
- <item>
- <label>천원</label>
- <value>1000</value>
- </item>
- <item>
- <label>원</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRetrieve();
- fRetrieveDayPlanList();
- ]]>
- </script>
- </select1>
- <input id="ipt_fundsplanym" ref="/root/send/retrparams/fundsplanym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:430px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetGridMonth();
- fRetrieve();
- fRetrieveDayPlanList();
- ]]>
- </script>
- </input>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:838px; y2:70px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">계획현황</caption>
- <caption id="caption2" class="tit_2" style="left:840px; top:56px; width:131px; height:14px; ">일일계획</caption>
- <line id="line1" class="line_1" style="x1:836px; y1:71px; x2:1193px; y2:72px; "/>
- <caption id="cap_acntyy" class="cell_1" style="left:836px; top:75px; width:115px; height:23px; text-align:center; vertical-align:middle; ">계획일자</caption>
- <line id="line4" class="line_2" style="x1:835px; y1:125px; x2:1193px; y2:125px; "/>
- <line id="line6" class="line_2" style="x1:835px; y1:99px; x2:1193px; y2:99px; "/>
- <line id="line12" class="line_3" style="x1:835px; y1:126px; x2:1193px; y2:126px; "/>
- <line id="line7" class="line_1" style="x1:833px; y1:72px; x2:832px; y2:741px; "/>
- <button id="btn_addrow" class="btn2_letter3" style="left:1043px; top:50px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_fundsplanstate.rows == 1)
- {
- return;
- }
-
- if(model.getValue("/root/send/tmpparams/setfundscd") == "")
- {
- return;
- }
- misfGridIUD(grd_fundsplanlist, "A");
-
- var strUnit ;
- strUnit = model.getValue("/root/send/tmpparams/amtunit");
-
- if (strUnit == "") {
- strUnit = model.getValue("/root/send/retrparams/amtunit")
- }
-
-
- model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/instcd", model.getValue("/root/send/retrparams/instcd"));
- model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/fundsplandd", model.getValue("/root/send/tmpparams/fundsplandd"));
- model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/fundscd", model.getValue("/root/send/tmpparams/setfundscd"));
- model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/fundsnm", model.getValue("/root/send/tmpparams/fundsnm"));
- // model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/amtunit", model.getValue("/root/send/tmpparams/amtunit"));
- model.setValue(grd_fundsplanlist.nodeset + "[" + grd_fundsplanlist.row + "]/amtunit", strUnit);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1097px; top:50px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_fundsplanlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_excellist" class="btn2_letter2" style="left:1151px; top:50px; width:42px; height:19px; text-align:left; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(fundsplanlist);
- ]]>
- </script>
- </button>
- <button id="btn_excelstate" class="btn2_letter2" style="left:786px; top:50px; width:42px; height:19px; text-align:left; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_fundsplanstate);
- ]]>
- </script>
- </button>
- <input id="ipt_fundsplandd" ref="/root/send/tmpparams/fundsplandd" class="input_essential" editable="false" format="yyyy-mm-dd" style="left:953px; top:77px; width:238px; height:19px; "/>
- <input id="ipt_fundsnm" ref="/root/send/tmpparams/fundsnm" class="input_essential" editable="false" style="left:1048px; top:103px; width:143px; height:19px; "/>
- <datagrid id="grd_fundsplanstate" nodeset="/root/main/list1/fundsplanstate" autoresize="false" backcoloralternate="#ffffff" caption="구분^^자금과목^자금과목^합계Gb^정렬Flag^합계^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^Set자금코드" colsep="^" colwidth="80, 0, 110, 50, 0, 0, 100, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0" frozencols="7" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:75px; width:830px; height:667px; ">
- <col ref="fundsgb" style="text-align:center; "/>
- <col ref="fundssumgb" visibility="hidden"/>
- <col ref="fundsnm" style="text-align:center; "/>
- <col ref="fundscd" style="text-align:center; "/>
- <col ref="fundssumgb" visibility="hidden"/>
- <col ref="orderflag" visibility="hidden"/>
- <col ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day01" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day02" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day03" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day04" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day05" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day06" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day07" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day08" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day09" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day10" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day11" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day12" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day13" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day14" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day15" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day16" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day17" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day18" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day19" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day20" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day21" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day22" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day23" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day24" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day25" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day26" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day27" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day28" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day29" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day30" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="day31" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="setfundscd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var sFundsCd = grd_fundsplanstate.valueMatrix(grd_fundsplanstate.row, grd_fundsplanstate.colRef("setfundscd"));
- var sOrderFlag = grd_fundsplanstate.valueMatrix(grd_fundsplanstate.row, grd_fundsplanstate.colRef("orderflag"));
- if(grd_fundsplanstate.col > 7 && grd_fundsplanstate.row > grd_fundsplanstate.fixedRows && sFundsCd != "0000" && sFundsCd != "9700" && sFundsCd != "9800" && sFundsCd != "9900" && sOrderFlag == "1")
- {
- fRetrieveDayPlanList();
- }
- else
- {
- model.setValue("/root/send/tmpparams/fundsplandd", "");
- model.setValue("/root/send/tmpparams/fundscd", "");
- model.setValue("/root/send/tmpparams/fundsnm", "");
- model.setValue("/root/send/tmpparams/setfundscd", "");
- model.removenode("/root/main/list2");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="cell_1" style="left:836px; top:101px; width:115px; height:23px; text-align:center; vertical-align:middle; ">자금과목</caption>
- <input id="ipt_setfundscd" ref="/root/send/tmpparams/setfundscd" class="input_essential" editable="false" style="left:953px; top:103px; width:93px; height:19px; "/>
- <input id="ipt_fundscd" ref="/root/send/tmpparams/fundscd" class="input_essential" editable="false" style="left:953px; top:103px; width:93px; height:19px; "/>
- <caption id="caption3" class="tit_2" style="left:839px; top:628px; width:131px; height:14px; ">전기잔액</caption>
- <line id="line8" class="line_1" style="x1:835px; y1:643px; x2:1192px; y2:644px; "/>
- <line id="line10" class="line_3" style="x1:835px; y1:742px; x2:1193px; y2:742px; "/>
- <caption id="cap_sumamt" ref="/root/send/temp/sumamt" format="(-)#,###" style="left:855px; top:597px; width:111px; height:20px; text-align:right; padding-right:2; background-color:#ccffcc; "/>
- <datagrid id="grd_premonthlist" nodeset="/root/main/list1/premonthlist" caption="기관^일자^자금코드^자금과목명^Seq^금액^원단위" colsep="^" colwidth="0, 0, 0, 170, 0, 165, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:836px; top:647px; width:357px; height:94px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fundsplandd" visibility="hidden"/>
- <col ref="fundscd" visibility="hidden"/>
- <col ref="fundsnm" style="text-align:center; "/>
- <col ref="seq"/>
- <col ref="amt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="amtunit" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sSeq = grd_premonthlist.valueMatrix(grd_premonthlist.row, grd_premonthlist.colRef("seq"));
- if(sSeq == "")
- {
- grd_premonthlist.addStatus(grd_premonthlist.row, "insert");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_fundsplanlist" nodeset="/root/main/list2/fundsplanlist" autoresize="false" backcoloralternate="#ffffff" caption="기관^일자^자금코드^자금과목명^Seq^금액^적요^단위" colsep="^" colwidth="0, 0, 0, 0, 0, 110, 208, 0" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:836px; top:128px; width:357px; height:467px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fundsplandd" visibility="hidden"/>
- <col ref="fundscd" visibility="hidden"/>
- <col ref="fundsnm" visibility="hidden"/>
- <col ref="seq"/>
- <col ref="amt" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="cmt" type="input" style="left:150px; top:23px; width:280px; height:23px; text-align:left; padding-left:2; "/>
- <col ref="amtunit" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- fRetrieve();
- //grd_fundsplanstate.dispatch("onclick");
- ]]>
- </script>
- </button>
- <button id="btn_copypremonth" class="btn4_letter4" style="left:1053px; top:3px; width:80px; height:22px; ">
- <caption>전월복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dlgRslt = messageBox("전월복사를 실행하면 현재년월의 계획은 삭제 됩니다.", "Q004");
-
- if(dlgRslt == 6)
- {
- if(submit("TXRAF00202"))
- {
- fRetrieve();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|