123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <?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>
- <grnt>
- <grntlist2>
- <gubun/>
- <pumno/>
- <rmrk/>
- <keumak/>
- <ymdgive/>
- <flagseq/>
- <pjid/>
- <ymdwrite/>
- <seqwrite/>
- <flagseqold/>
- <fromdd/>
- <todd/>
- </grntlist2>
- </grnt>
- </main>
- <send>
- <paydedu>
- <instcd/>
- <fromdd/>
- <todd/>
- </paydedu>
- <save>
- <grntlist1/>
- </save>
- </send>
- <hidden>
- <item>
- <pumno/>
- </item>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initialize();
- ]]>
- </script>
- <submission id="TRRAD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
- <submission id="TXRAD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- </model>
- <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/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
- function initialize(){
- misfGridInit(grd_grntpsn1);
- misfMsterDetailSet(grd_grntpsn1,null, "TRRAD01901" ,"Y");
-
- var curdate = getCurrentDate();
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- var deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
- //var emplno = getUserInfo("userid");
- //var emplnm = getUserInfo("usernm");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
-
- model.refresh();
- }
- function Popup(){
- var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
- var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
- var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
- if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
- model.setValue("/root/popdata/junpyodate", ymd);
- model.setValue("/root/popdata/makedeptcd", mdeptcd);
- model.setValue("/root/popdata/yogudeptcd", ydeptcd);
- model.setValue("/root/popdata/pumgubun", "3");
- modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">지출번호수정</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- grd_grntpsn1.row = 0;
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
- <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:78px; top:17px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:12px; top:18px; width:61px; height:17px; ">기관 :</caption>
- <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="구분^품의번호^적요^금액^지출일자^지출번호^프로젝트^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="89, 119, 379, 118, 107, 64, 277, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1192px; height:665px; ">
- <col disabled="true" ref="gubun" type="combo">
- <choices>
- <item>
- <label>구매</label>
- <value>A</value>
- </item>
- <item>
- <label>품의</label>
- <value>B</value>
- </item>
- <item>
- <label>일반</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="pumno" style="text-align:center; "/>
- <col ref="rmrk"/>
- <col ref="keumak" format="(-)#,###" style="text-align:right; "/>
- <col ref="ymdgive" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="flagseq" type="input" format="99999" style="text-align:center; "/>
- <col ref="pjid" type="input" format="99999"/>
- <col ref="ymdwrite" visibility="hidden"/>
- <col ref="seqwrite" visibility="hidden"/>
- <col ref="flagseqold" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flagwrite" && model.getValue("/root/send/paydedu/newgb") == "I") {
- var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
- if (flagwrite == "Y"){
- var seq = model.getValue("/root/send/paydedu/flagseq");
- if (isNaN(seq) || seq == null || seq == ""){
- seq = 0;
- }
- seq = parseInt(seq) + 1;
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
- model.setValue("/root/send/paydedu/flagseq", seq);
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
- }
- model.refresh();
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_grntpsn1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_unsldd" ref="/root/send/paydedu/fromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:320px; top:19px; width:115px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/fromdd") != "" && model.getValue("/root/send/paydedu/todd") != ""){
- btn_search.dispatch("DOMActivate");
- }
- /*
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
- }
- model.refresh();
- */
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:230px; top:18px; width:86px; height:17px; ">지급일자 :</caption>
- <input id="input17" ref="/root/send/paydedu/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:460px; top:19px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/paydedu/fromdd") != "" && model.getValue("/root/send/paydedu/todd") != ""){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:131px; height:13px; ">품의기표내역</caption>
- <caption id="caption3" style="left:437px; top:20px; width:20px; height:20px; text-align:center; ">~</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagseq") == ""){
- messageBox(i + "번째 지출번호는 필수 입력항목입니다.", "E999", "");
- return;
- }
- }
- if (misfSave("TXRAD01901")){
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grnt/grntlist1");
- group3.disabled = false;
- grd_grntpsn1.disabled = false;
- ipt_unsldd.disabled = false;
- ipt_costcntrdeptcd.disabled = false;
- combo1.disabled = false;
- input4.disabled = false;
- input14.disabled = true;
- input15.disabled = true;
- input10.disabled = true;
- model.setValue("/root/send/paydedu/pumno1", "");
- model.setValue("/root/send/paydedu/pumno2", "");
- initialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button3" class="btn2_letter3" visibility="hidden" style="left:1010px; top:5px; width:53px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
- exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|