12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715 |
- <?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>
- <grntlist1>
- <pumno/>
- <junpyodate/>
- <makedeptcd/>
- <makedeptnm/>
- <yogudeptcd/>
- <pumemplno/>
- <pumemplnm/>
- <pumgubun/>
- <naeyong/>
- <payyn/>
- <custcode/>
- <custnm/>
- <bankcode/>
- <bankman/>
- <bankno/>
- <usedate/>
- <nabdate/>
- <fromdate/>
- <todate/>
- <pumtot/>
- <gwanno/>
- <pumsayu/>
- <yesno/>
- <seqno/>
- <iudgb/>
- <inptgwno/>
- <inptgwnm/>
- <bugbungijan/>
- <taxlist/>
- <chulseq/>
- </grntlist1>
- <grntlist2>
- <cdacntcd/>
- <bugtamt/>
- <bugtexecamt/>
- <bugtjanamt/>
- <pumamt/>
- <hyubdate/>
- <yesno/>
- <flag/>
- <acntcd/>
- <junpyodate/>
- <usedate/>
- <makedeptcd/>
- <yogudeptcd/>
- <pumno/>
- <naeyong/>
- <pumemplno/>
- <bankcode/>
- <bankno/>
- <bankman/>
- <custcode/>
- <nabdate/>
- <fromdate/>
- <todate/>
- <gwanno/>
- <pumgubun/>
- <pumsayu/>
- <bugbungijan/>
- <inptgwno/>
- <taxlist/>
- <becdacntcd/>
- </grntlist2>
- <grntlist3/>
- </grnt>
- <codeinfo>
- <codelist>
- <cdid/>
- <cntlcd1/>
- <cdnm/>
- <detldesc/>
- <cntlcd2/>
- <custnm/>
- <useyn/>
- <grupcdid/>
- </codelist>
- </codeinfo>
- </main>
- <init>
- <combo1>
- <deptcdcmb>
- <deptcd/>
- <deptnm/>
- </deptcdcmb>
- </combo1>
- <combo2>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo2>
- <combo3>
- <acntcmb>
- <acntcd/>
- <acntnm/>
- </acntcmb>
- </combo3>
- <combo4>
- <proccmb>
- <cdid/>
- <cdnm/>
- </proccmb>
- </combo4>
- </init>
- <send>
- <paydedu>
- <instcd/>
- <emplno/>
- <emplnm/>
- <acntcd/>
- <cnt/>
- <amt1/>
- <custcode/>
- <bugtflag/>
- <deptcd/>
- <usedate/>
- <pumno/>
- <pumno1/>
- <pumno2/>
- <stat/>
- <junpyodate/>
- <qtrflag/>
- <chulseq/>
- </paydedu>
- <save>
- <grntlist1/>
- </save>
- <reqdata>
- <grupcdid/>
- <srcd/>
- <useyn/>
- <detldesc/>
- <cntlcd2/>
- </reqdata>
- </send>
- <send1>
- <acntcd/>
- </send1>
- <custinfo>
- <custlist>
- <aactno/>
- <bankcd/>
- <depor/>
- <custnm/>
- </custlist>
- </custinfo>
- <bugtinfo>
- <bugtlist>
- <bugtamt/>
- <bugtexecamt/>
- <bugtjanamt/>
- <bugbungijan/>
- </bugtlist>
- </bugtinfo>
- <wongainfo>
- <wongalist>
- <acntcd/>
- </wongalist>
- </wongainfo>
- <popdata>
- <junpyodate/>
- <makedeptcd/>
- <yogudeptcd/>
- <pumgubun/>
- </popdata>
- <pop1data>
- <pumgubun/>
- <pumno/>
- <cdacntcd/>
- <pumamt/>
- <irow/>
- <chulseq/>
- </pop1data>
- <pop2data>
- <makedeptcd/>
- <instcd/>
- </pop2data>
- <pop3data>
- <pumgubun/>
- <pumno/>
- <pumamt/>
- <taxlist/>
- <custcode/>
- <custname/>
- <kyymd/>
- <pumno2/>
- <naeyong/>
- <sekeumdate/>
- </pop3data>
- <hidden>
- <item>
- <pumno/>
- </item>
- </hidden>
- <target>
- <recvref/>
- </target>
- <taxinfo>
- <taxlist/>
- </taxinfo>
- <closeinfo>
- <closelist>
- <closdd/>
- <closyn/>
- </closelist>
- </closeinfo>
- <acntcheckinfo>
- <acntchecklist>
- <cdid/>
- </acntchecklist>
- </acntcheckinfo>
- <pop4data>
- <chulseq/>
- <yogudeptcd/>
- </pop4data>
- </root>
- </instance>
- <submission id="TRRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo1"/>
- <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
- <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
- <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
- <submission id="TRRAD01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/bugtinfo"/>
- <submission id="TRRAD01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
- <submission id="TRRAD01508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/wongainfo"/>
- <submission id="TRRAD01513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
- <submission id="TRRAD01516" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/closeinfo"/>
- <submission id="TRRAD01517" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/acntcheckinfo"/>
- <submission id="TXRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
- <submission id="TRRAH02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/codeinfo"/>
- </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" ev:event="xforms-ready">
- <![CDATA[
- initialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function initialize(){
- misfGridInit(grd_grntpsn1);
- misfMsterDetailSet(grd_grntpsn1,null, "TRRAD01506" ,"Y");
-
- var curdate = getCurrentDate();
- var instcd = getUserInfo("dutplceinstcd");
- 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");
- model.setValue("/root/main/grnt/grntlist1/junpyodate", curdate);
- model.setValue("/root/main/grnt/grntlist1/usedate", curdate);
- model.setValue("/root/main/grnt/grntlist1/makedeptcd", deptcd);
- model.setValue("/root/main/grnt/grntlist1/makedeptnm", deptnm);
- model.setValue("/root/main/grnt/grntlist1/pumemplno", emplno);
- model.setValue("/root/main/grnt/grntlist1/pumemplnm", emplnm);
- model.setValue("/root/main/grnt/grntlist1/payyn", "N");
- model.setValue("/root/main/grnt/grntlist1/yesno", "N");
- model.setValue("/root/main/grnt/grntlist1/iudgb", "I");
- model.setValue("/root/main/grnt/grntlist1/pumgubun", "3");
- model.setValue("/root/send/paydedu/bugtflag", "2");
- misfComboComCdListMulti("R0001","cmb_bankcd");
- submit("TRRAD01501");
- submit("TRRAD01504");
- submit("TRRAD01513");
- submit("TRRAD01516");
-
- var closdd = model.getValue("/root/closeinfo/closelist/closdd");
- var closyn = model.getValue("/root/closeinfo/closelist/closyn");
- var junpyodate = model.getValue("/root/main/grnt/grntlist1/junpyodate");
- /* if (closyn == "Y" && closdd >= junpyodate) {
- group3.disabled = true;
- grd_grntpsn1.disabled = true;
- button5.disabled = true;
- button4.disabled = true;
- button2.disabled = true;
- button35.disabled = true;
- button3.disabled = true;
- button36.disabled = true;
- btn_grdaddpaydedulist.disabled = true;
- btn_grddelpaydedulist.disabled = true;
- caption26.visible = true;
- }
- */
- // 2011.09.21 cyw 출장비 품의는 031 본원은 재무파트 / 교육수련팀 / 의료질관리팀만 사용가능하도록..
- // ( 칠곡 ) 3320100000 -- 의료질관리파트, 4110701000 -- 교육연구팀, 4010609000 --기획재무파트
- if( instcd == "032" ){
- if( deptcd != "3320100000" && deptcd != "4110701000" && deptcd != "4010609000" ){
- btn_chulpum.visible = false;
- }else{
- btn_chulpum.visible = true;
- }
- }
-
- if( instcd == "031" ){
- if( deptcd != "4030100000" && deptcd != "4110100000" && deptcd != "4071200000" ){
- btn_chulpum.visible = false;
- }else{
- btn_chulpum.visible = true;
- }
- }
- model.refresh();
- }
-
- 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 fOpenPopupUserHelp(pCtrl, pInstance){
- misfOpenPopUpList("01", pCtrl, "", pInstance);
- 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");
-
- //opener 로 값던지기
- //clearParameter("aa");
- //setParmeter("aa","3");
- //참고
- //opener에서 값가져오기
- //getParameter("aa");
- modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
-
- model.setValue("/root/pop1data/chulseq", model.getValue("/root/send/paydedu/chulseq"));
- }
- }
-
- function Popup1(){
- var icnt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
- //var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
- var pumno = model.getValue("/root/send/paydedu/pumno");
- var pumamt = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt");
- var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
- model.setValue("/root/send/paydedu/acntcd", cdacntcd);
- if (submit("TRRAD01508")){
- if (instance1.selectSingleNode("/root/wongainfo/wongalist/acntcd") == null){
-
- }else{
- icnt = parseInt(icnt) + 1;
- }
- }
- if (icnt > 0){
- model.setValue("/root/pop1data/pumno", pumno);
- model.setValue("/root/pop1data/cdacntcd", cdacntcd);
- model.setValue("/root/pop1data/pumgubun", pumgubun);
- model.setValue("/root/pop1data/pumamt", model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- //model.setValue("/root/pop1data/pumamt", model.getValue("/root/main/grnt/grntlist1/pumtot"));
- var irow = parseInt(i) + 1;
- model.setValue("/root/pop1data/irow", irow);
- //modal("SPRAD00500", "", "", "", "SPRAD00500","/root/pop1data","/root/pop1data");
-
- window.load("SPRAD00500.xrw", "modal","", "caption:hidden", "/root/pop1data","/root/pop1data");
- }
- }
- }
-
- //계산서, 세금계산서
- function Popup2(){
-
- var pumamt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
- //var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
- var pumno = model.getValue("/root/send/paydedu/pumno");
-
- // 2011.07.26 CYW 계정들의 총금액을 넣어줘야함.
- pumamt = pumamt + parseInt(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- }
-
- model.setValue("/root/pop3data/pumgubun", pumgubun);
- model.setValue("/root/pop3data/pumno", pumno);
- model.setValue("/root/pop3data/pumno2", model.getValue("/root/send/paydedu/pumno2"));
- model.setValue("/root/pop3data/pumamt", pumamt);
- model.setValue("/root/pop3data/taxlist", model.getValue("/root/main/grnt/grntlist1/taxlist"));
- model.setValue("/root/pop3data/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
- model.setValue("/root/pop3data/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- model.setValue("/root/pop3data/custname", model.getValue("/root/main/grnt/grntlist1/custnm"));
- // 2011.03.29 박준범 - 발의일자와 거래발생일자를 모두다 SPRAD00700 으로 전달해야 함
- model.setValue("/root/pop3data/kyymd", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
- model.setValue("/root/pop3data/sekeumdate", model.getValue("/root/main/grnt/grntlist1/usedate"));
-
- window.load("SPRAD00700.xrw", "modal","", "", "/root/pop3data","/root/pop3data");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" scroll="auto" style="left:0px; top:28px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1123px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/grnt/grntlist1");
- misfMsterDetailRetrieve();
- var pumno = model.getValue("/root/main/grnt/grntlist1/pumno");
- model.setValue("/root/send/paydedu/pumno1", pumno.substr(0, 8));
- model.setValue("/root/send/paydedu/pumno2", pumno.substr(8, 4));
- model.setValue("/root/send/paydedu/pumno", pumno);
- /*
- if (model.getValue("/root/send/paydedu/stat") != "U"){
- Popup1();
- }
- */
-
- // 2011.06.29 cyw 예산합의일도 조건에 추가.
- if (model.getValue("/root/main/grnt/grntlist1/yesno") == "Y" ){
- group3.disabled = true;
- grd_grntpsn1.disabled = true;
- btn_grddelpaydedulist.disabled = true;
- btn_grdaddpaydedulist.disabled = true;
- //2011.07.07 cyw 수정시, 품의계정, 경리계정도 수정가능하도록.
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = true;
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = true;
-
- }else{
- grd_grntpsn1.disabled = false;
- ipt_unsldd.disabled = true;
- ipt_costcntrdeptcd.disabled = true;
- combo1.disabled = true;
- input4.disabled = false;
- btn_grddelpaydedulist.disabled = false;
- btn_grdaddpaydedulist.disabled = false;
- //grd_grntpsn1.isReadOnly(grd_grntpsn1.rows,6) = true;
-
- //2011.07.07 cyw 수정시, 품의계정, 경리계정도 수정가능하도록.
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = false;
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = false;
- }
- model.setValue("/root/send/paydedu/stat", "");
- if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
- caption16.value = "카드번호 :";
- ipt_custcd.disabled = true;
- input7.disabled = true;
- }else{
- caption16.value = "계좌번호 :";
- ipt_custcd.disabled = false;
- input7.disabled = false;
- }
-
- //2011.04.26 박준범 - 조회이후 (세금)계산서의 내역이 있으면 control을 disable 시켜서
- // 세금계산서와 계산서의 내역이 동시에 등록되는 일도 없도록 한다.
- if( model.getValue("/root/main/grnt/grntlist1/taxlist") == "1" || model.getValue("/root/main/grnt/grntlist1/taxlist") == "2" ){
- combo3.disabled = true;
- } else {
- combo3.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" visibility="hidden" style="x1:1106px; y1:11px; x2:1106px; y2:33px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:291px; x2:1192px; y2:291px; "/>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" navindex="18" style="left:1078px; top:270px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/junpyodate") == ""){
- messageBox("발의일자는 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/makedeptcd") == ""){
- messageBox("작성부서는 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
- messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/usedate") == ""){
- messageBox("거래발생일은 필수 입력항목입니다.", "E999", "");
- return;
- }
- //2011.04.11 박준범 - 거래처 check 추가
- if (model.getValue("/root/main/grnt/grntlist1/custcode") == ""){
- messageBox("거래처는 필수 입력항목입니다.", "E999", "");
- return;
- }
-
- misfGridIUD(grd_grntpsn1, "A");
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = false;
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = false;
- grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("pumamt")) = false;
-
- var irow = grd_grntpsn1.row;
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/usedate", model.getValue("/root/main/grnt/grntlist1/usedate"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/makedeptcd", model.getValue("/root/main/grnt/grntlist1/makedeptcd"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumno", model.getValue("/root/main/grnt/grntlist1/pumno"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumemplno", model.getValue("/root/main/grnt/grntlist1/pumemplno"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/nabdate", model.getValue("/root/main/grnt/grntlist1/nabdate"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/fromdate", model.getValue("/root/main/grnt/grntlist1/fromdate"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/todate", model.getValue("/root/main/grnt/grntlist1/todate"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/gwanno", model.getValue("/root/main/grnt/grntlist1/gwanno"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumgubun", model.getValue("/root/main/grnt/grntlist1/pumgubun"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumsayu", model.getValue("/root/main/grnt/grntlist1/pumsayu"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/inptgwno", model.getValue("/root/main/grnt/grntlist1/inptgwno"));
- model.setValue("/root/main/grnt/grntlist2[" + irow + "]/texlist", model.getValue("/root/main/grnt/grntlist1/texlist"));
- //model.setValue("/root/main/grnt/grntlist2[" + irow + "]/payyn", model.getValue("/root/main/grnt/grntlist1/payyn"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_inputexcel" class="btn2_letter4" visibility="hidden" style="left:858px; top:270px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_grntpsn1.loadExcel(fileName, 1, true);
- for (var i = 1; i < grd_grntpsn1.rows; i ++){
- grd_grntpsn1.rowStatus(i) = 1;
- }
- grd_grntpsn1.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1134px; top:270px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_grntpsn1, "D");
- var amt = 0;
- var totamt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- if (grd_grntpsn1.rowStatus(i) != 4 && grd_grntpsn1.rowStatus(i) != 5 && grd_grntpsn1.rowStatus(i) != 6){
- amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- if (isNaN(amt) || amt == ""){
- amt = 0;
- }
- totamt = parseFloat(totamt) + parseFloat(amt);
- /*
- if (parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt"))){
- messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
- }
- */
- }
- }
- model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:88px; top:12px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:22px; top:13px; width:61px; height:17px; ">기관 :</caption>
- <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="품의계정^예산배정금액^예산집행실적^품의가능금액^caption18^품의금액^예산합의일^승인^전표^경리계정^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption19^caption20^caption21" colsep="^" colwidth="151, 154, 146, 158, 30, 147, 106, 72, 55, 157, 53, 43, 34, 28, 33, 37, 34, 36, 28, 39, 36, 38, 37, 33, 39, 34, 30, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:297px; width:1192px; height:445px; ">
- <col disabled="true" editmode="inputsearch" ref="cdacntcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo2/acntcmb">
- <label ref="acntnm"/>
- <value ref="acntcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="bugbungitot" format="(-)#,###" style="text-align:right; "/>
- <col ref="bugtexecamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="bugtjanamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="bugtamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col disabled="false" ref="pumamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="hyubdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="yesno" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미승인</label>
- <value>N</value>
- </item>
- <item>
- <label>취소</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="flag" style="text-align:center; "/>
- <col disabled="true" editmode="inputsearch" ref="acntcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/combo3/acntcmb">
- <label ref="acntnm"/>
- <value ref="acntcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="junpyodate" visibility="hidden"/>
- <col ref="usedate" visibility="hidden"/>
- <col ref="makedeptcd" visibility="hidden"/>
- <col ref="yogudeptcd" visibility="hidden"/>
- <col ref="pumno" visibility="hidden"/>
- <col ref="naeyong" visibility="hidden"/>
- <col ref="pumemplno" visibility="hidden"/>
- <col ref="bankcode" visibility="hidden"/>
- <col ref="bankno" visibility="hidden"/>
- <col ref="bankman" visibility="hidden"/>
- <col ref="custcode" visibility="hidden"/>
- <col ref="nabdate" visibility="hidden"/>
- <col ref="fromdate" visibility="hidden"/>
- <col ref="todate" visibility="hidden"/>
- <col ref="gwanno" visibility="hidden"/>
- <col ref="pumgubun" visibility="hidden"/>
- <col ref="pumsayu" visibility="hidden"/>
- <col ref="bugbungijan" visibility="hidden"/>
- <col ref="inptgwno" visibility="hidden"/>
- <col ref="texlist" visibility="hidden"/>
- <col ref="becdacntcd" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "cdacntcd" ) { //계산기준코드
- var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd");
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
- model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
- model.setValue("/root/send/paydedu/junpyodate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/junpyodate") );
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", acntcd);
-
- if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.colRef("cdacntcd")) == ""){
- if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, 10) == ""){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", "");
- messageBox("경리계정에 없는 품의계정입니다. 확인 후 처리하기시 바랍니다.", "E999", "");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
- model.refresh();
- return;
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
- }
- }else{
- if (submit("TRRAD01505")){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
- //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
- model.refresh();
- }
- }
- }
-
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "acntcd" ) { //계산기준코드
- var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd");
- if (acntcd == "11290300" || acntcd == "12280300"){
-
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd", acntcd);
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
- model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
- if (submit("TRRAD01505")){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
- //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
- model.refresh();
- }
- }
- }
-
- if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "pumamt" ) {
- var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd");
- model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
- model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
- model.setValue("/root/send/paydedu/junpyodate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/junpyodate") );
- //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", acntcd);
- // 2011.06.15 박준범 - 아래의 [품의총액을 계산하는 부분]과 [품의가능금액과 품의금액을 비교하는 부분] 을 분리하여
- // [품의총액을 계산하는 부분]은 현위치로 올렸음
- var amt = 0;
- var totamt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- if (isNaN(amt) || amt == ""){
- amt = 0;
- }
- totamt = parseFloat(totamt) + parseFloat(amt);
- }
- model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
- model.refreshpart("/root/main/grnt/grntlist1/pumtot");
-
- //valueMatrix는 인스턴스에 저장된 값, labelMatrix는 셀에 보여지는 값으로 포맷이 적용된 값으로 put이 안됨.
- if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row-1, grd_grntpsn1.colRef("cdacntcd")) == ""){
- if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, 10) == ""){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", "");
- messageBox("경리계정에 없는 품의계정입니다. 확인 후 처리하기시 바랍니다.", "E999", "");
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
- model.refresh();
- return;
- }else{
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
- return;
- }
- }else{
- if (submit("TRRAD01505")){
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
- model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
- //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
- model.refresh();
- }
- }
- /* 2011.06.15 박준범 - [품의총액을 계산하는 부분]과 [품의가능금액과 품의금액을 비교하는 부분] 을 분리하여 구현하기 의해 comment처리함
- - [품의총액을 계산하는 부분]은 현위치보다 위쪽에 위치시키고, [품의가능금액과 품의금액을 비교하는 부분]은 현재 위치에 그대로 둠
- var amt = 0;
- var totamt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- if (isNaN(amt) || amt == ""){
- amt = 0;
- }
- totamt = parseFloat(totamt) + parseFloat(amt);
- if ( parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt")) ){
- messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
- //ControlID.currentText
- // alert(grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
- // alert(grd_grntpsn1.valueMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
- // grd_grntpsn1.
- //return;
- }
- }
- model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
- model.refresh();
- */
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- if ( parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt")) ){
- messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
- //ControlID.currentText
- // alert(grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
- // alert(grd_grntpsn1.valueMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
- // grd_grntpsn1.
- //return;
- }
-
- if( model.getValue("/root/main/grnt/grntlist2[" + i + "]/hyubdate") != "" && model.getValue("/root/main/grnt/grntlist2[" + i + "]/yesno") == "Y")
- {
- messageBox("예산합의 후에는 품의금액을 변경", "E001", "");
- }
- }
-
-
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_savegrntpsn1excel" class="btn2_letter4" visibility="hidden" style="left:925px; top:270px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_grntpsn1.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <group id="group3" style="left:0px; top:46px; width:1190px; height:222px; ">
- <input id="input7" ref="/root/main/grnt/grntlist1/bankno" class="input_essential" navindex="11" style="left:450px; top:85px; width:303px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button1" class="icon_search" navindex="-1" style="left:549px; top:60px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
- if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
- model.setValue("/root/send/paydedu/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- if (submit("TRRAD01502")){
- model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/custinfo/custlist/bankcd"));
- model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/custinfo/custlist/depor"));
- model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/custinfo/custlist/aactno"));
- model.refresh();
- }
- }
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
- var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
- model.setValue("/root/pop2data/makedeptcd", mdeptcd);
- modal("SPRAD00600", "", "", "", "SPRAD00600","/root/pop2data","/root/pop2data");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/main/grnt/grntlist1/fromdate" class="input_s_essential" navindex="14" inputtype="date" style="left:450px; top:110px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/fromdate", model.getValue("/root/main/grnt/grntlist1/fromdate"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input9" ref="/root/main/grnt/grntlist1/todate" class="input_s_essential" navindex="15" inputtype="date" style="left:570px; top:110px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/todate", model.getValue("/root/main/grnt/grntlist1/todate"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <bool id="bool1" navindex="6" checkvalue="Y,N" ref="/root/main/grnt/grntlist1/payyn" style="left:965px; top:35px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/payyn", model.getValue("/root/main/grnt/grntlist1/payyn"));
- }
- */
- model.refresh();
- ]]>
- </script>
- </bool>
- <input id="input10" ref="/root/main/grnt/grntlist1/pumtot" disabled="true" format="(-)#,###" style="left:895px; top:110px; width:120px; height:19px; text-align:right; "/>
- <caption id="caption20" class="search_name" style="left:355px; top:160px; width:87px; height:17px; ">비 고 :</caption>
- <caption id="caption1" class="search_name" style="left:355px; top:10px; width:86px; height:17px; ">작성부서 :</caption>
- <caption id="caption10" class="search_name" style="left:790px; top:85px; width:99px; height:17px; ">거래발생일 :</caption>
- <input id="input11" ref="/root/main/grnt/grntlist1/gwanno" class="input_essential" navindex="16" visibility="hidden" style="left:450px; top:135px; width:565px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/gwanno", model.getValue("/root/main/grnt/grntlist1/gwanno"));
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" visibility="hidden" style="left:245px; top:185px; width:87px; height:17px; ">품의구분 :</caption>
- <select1 id="combo1" ref="/root/main/grnt/grntlist1/yogudeptcd" navindex="3" appearance="minimal" style="left:910px; top:10px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo1/deptcdcmb">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/paydedu/deptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
- submit("TRRAD01503");
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- //Popup();
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:45px; top:110px; width:87px; height:17px; ">납 기 일 :</caption>
- <input id="input12" ref="/root/main/grnt/grntlist1/pumgubun" visibility="hidden" style="left:340px; top:185px; width:100px; height:19px; "/>
- <caption id="caption22" class="search_name" visibility="hidden" style="left:45px; top:180px; width:87px; height:17px; ">승인여부 :</caption>
- <input id="ipt_costcntrdeptnm" ref="/root/main/grnt/grntlist1/makedeptnm" class="input_essential" disabled="true" style="left:569px; top:10px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_deptflag.attribute("ref")) == "1"){
- racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
- }else if(model.getValue(cmb_deptflag.attribute("ref")) == "2"){
- model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
- fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
- || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept)){
- messageBox("권한이 없습니다.", "I000");
- model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- ipt_costcntrdeptcd.refresh();
- ipt_costcntrdeptcd.dispatch("xforms-value-changed");
- return false;
- }
-
- if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != ""){
- model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.refresh();
- }
- fRemoveAcntValue();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:790px; top:10px; width:112px; height:17px; ">예산관련부서 :</caption>
- <caption id="caption12" class="search_name" style="left:355px; top:110px; width:87px; height:17px; ">기 간 :</caption>
- <input id="input13" ref="/root/main/grnt/grntlist1/yesno" visibility="hidden" style="left:140px; top:180px; width:100px; height:19px; "/>
- <input id="ipt_unsldd" ref="/root/main/grnt/grntlist1/junpyodate" class="input_s_essential" navindex="1" inputtype="date" style="left:140px; top:10px; width:90px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- 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="caption4" class="search_name" style="left:45px; top:35px; width:86px; height:17px; ">품의번호 :</caption>
- <caption id="caption13" class="search_name" style="left:355px; top:60px; width:86px; height:17px; ">거 래 처 :</caption>
- <input id="ipt_custcd" ref="/root/main/grnt/grntlist1/custcode" class="input_essential" navindex="8" maxlength="11" style="left:450px; top:60px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
- model.setValue("/root/send/paydedu/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- if (submit("TRRAD01502")){
- model.setValue("/root/main/grnt/grntlist1/custnm", model.getValue("/root/custinfo/custlist/custnm"));
- model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/custinfo/custlist/bankcd"));
- model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/custinfo/custlist/depor"));
- model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/custinfo/custlist/aactno"));
- model.refresh();
- }
- }else{
- model.setValue("/root/main/grnt/grntlist1/custnm", "");
- model.setValue("/root/main/grnt/grntlist1/bankcode", "");
- model.setValue("/root/main/grnt/grntlist1/bankman", "");
- model.setValue("/root/main/grnt/grntlist1/bankno", "");
- }
-
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
- //model.setValue("/root/main/grnt/grntlist2[" + i + "]/custnm", model.getValue("/root/main/grnt/grntlist1/custnm"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
-
- if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
- if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
- messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
- return;
- }
- var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
- model.setValue("/root/pop2data/makedeptcd", mdeptcd);
- modal("SPRAD00600", "", "", "", "SPRAD00600","/root/pop2data","/root/pop2data");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:45px; top:10px; width:86px; height:17px; ">발의일자 :</caption>
- <input id="ipt_costcntrdeptcd" ref="/root/main/grnt/grntlist1/makedeptcd" class="input_essential" navindex="2" maxlength="10" style="left:450px; top:10px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/makedeptcd", model.getValue("/root/main/grnt/grntlist1/makedeptcd"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- //Popup();
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_costcntrdeptcd" class="icon_search" navindex="-1" style="left:549px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_costcntrdeptcd, "makedeptcd,makedeptnm");
- //Popup();
- ]]>
- </script>
- </button>
- <caption id="caption14" class="search_name" style="left:790px; top:60px; width:100px; height:17px; ">은 행 :</caption>
- <select1 id="cmb_bankcd" ref="/root/main/grnt/grntlist1/bankcode" class="combo_default" navindex="9" appearance="minimal" editmode="inputsearch" style="left:895px; top:60px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_emplno" class="icon_search" style="left:232px; top:60px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupUserHelp(ipt_emplnos, "pumemplno,pumemplnm");
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/main/grnt/grntlist1/pumemplno"));
- }
- model.refresh();
-
- /*
- ar recv_list = "empln,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
- model.setValue("/root/main/grnt/grntlist1/pumemplno", model.getValue("/root/send/paydedu/emplno"));
- model.setValue("/root/main/grnt/grntlist1/pumemplnm", model.getValue("/root/send/paydedu/emplnm"));
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/send/paydedu/emplno"));
- }
- model.refresh();
- */
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/grnt/grntlist1/naeyong" navindex="5" style="left:450px; top:35px; width:510px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption15" class="search_name" style="left:45px; top:85px; width:87px; height:17px; ">예 금 주 :</caption>
- <caption id="caption7" class="search_name" style="left:45px; top:60px; width:83px; height:17px; ">작 성 자 :</caption>
- <input id="input2" ref="/root/main/grnt/grntlist1/bankman" class="input_essential" navindex="10" style="left:140px; top:85px; width:190px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption16" class="search_name" style="left:355px; top:85px; width:87px; height:17px; ">계좌번호 :</caption>
- <textarea id="textarea1" ref="/root/main/grnt/grntlist1/pumsayu" navindex="17" style="left:450px; top:160px; width:565px; height:50px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumsayu", model.getValue("/root/main/grnt/grntlist1/pumsayu"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </textarea>
- <input id="ipt_emplnos" ref="/root/main/grnt/grntlist1/pumemplno" class="input_essential" navindex="7" style="left:140px; top:60px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- /*
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/send/paydedu/emplno"));
- }
- model.refresh();*/
- /*
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- */
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:355px; top:35px; width:86px; height:17px; ">건 명 :</caption>
- <input id="input3" ref="/root/main/grnt/grntlist1/custnm" class="input_essential" disabled="true" style="left:569px; top:60px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_deptflag.attribute("ref")) == "1"){
- racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
- }else if(model.getValue(cmb_deptflag.attribute("ref")) == "2"){
- model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
- fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
- }
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
- || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept)){
- messageBox("권한이 없습니다.", "I000");
- model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- ipt_costcntrdeptcd.refresh();
- ipt_costcntrdeptcd.dispatch("xforms-value-changed");
- return false;
- }
-
- if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != ""){
- model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
- model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
- model.refresh();
- }
- fRemoveAcntValue();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <caption id="caption17" style="left:550px; top:110px; width:15px; height:20px; text-align:center; ">~</caption>
- <caption id="caption9" style="left:988px; top:36px; width:35px; height:20px; ">급여</caption>
- <input id="input4" ref="/root/main/grnt/grntlist1/usedate" class="input_s_essential" navindex="12" inputtype="date" style="left:895px; top:85px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/usedate") < '20110101'){
- messageBox("2011년 1월 1일 이전자료는 이전시스템에서 등록하시기 바랍니다.", "E999", "");
- return;
- }
-
- // 2011.08.04 cyw
- if( model.getValue("/root/main/grnt/grntlist1/usedate") <= model.getValue("/root/closeinfo/closelist/closdd") ){
- messageBox("마감일자가 지난 후에는 이전날짜로 등록 불가능합니다.", "E000", "");
- return;
- }
-
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/usedate", model.getValue("/root/main/grnt/grntlist1/usedate"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:790px; top:110px; width:101px; height:17px; ">품 의 총 액 :</caption>
- <input id="ipt_emplnms" ref="/root/main/grnt/grntlist1/pumemplnm" class="input_default" disabled="true" style="left:250px; top:60px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms", "xforms-value-changed");
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
- model.refresh();
- /*
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- */
- ]]>
- </script>
- </input>
- <input id="input5" ref="/root/main/grnt/grntlist1/nabdate" class="input_s_essential" navindex="13" inputtype="date" style="left:140px; top:110px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows;i++){
- model.setValue("/root/main/grnt/grntlist2[" + i + "]/nabdate", model.getValue("/root/main/grnt/grntlist1/nabdate"));
- if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
-
- }else{
- grd_grntpsn1.rowStatus(i) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/main/grnt/grntlist1/pumno" disabled="true" navindex="4" visibility="hidden" format="00000000-0000" style="left:1055px; top:135px; width:120px; height:19px; text-align:center; "/>
- <input id="input14" ref="/root/send/paydedu/pumno1" disabled="true" navindex="4" style="left:140px; top:35px; width:90px; height:19px; text-align:center; "/>
- <input id="input15" ref="/root/send/paydedu/pumno2" disabled="true" navindex="4" style="left:250px; top:35px; width:40px; height:19px; text-align:center; "/>
- <caption id="caption23" class="search_name" visibility="hidden" style="left:45px; top:200px; width:87px; height:17px; ">수정구분 :</caption>
- <input id="input16" ref="/root/main/grnt/grntlist1/iudgb" visibility="hidden" style="left:140px; top:200px; width:100px; height:19px; "/>
- <select1 id="combo2" ref="/root/main/grnt/grntlist1/gwanno" disabled="true" visibility="hidden" appearance="minimal" editmode="inputsearch" style="left:140px; top:160px; width:190px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combo4/proccmb">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:45px; top:160px; width:99px; height:17px; ">프로젝트 :</caption>
- <caption id="caption24" class="search_name" style="left:355px; top:135px; width:86px; height:17px; ">관리번호 :</caption>
- <button id="button6" class="icon_search" navindex="-1" style="left:549px; top:135px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRPQ02000.xrw","modal","pop1", "width:200px; height:100;");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input17" ref="/root/main/grnt/grntlist1/inptgwno" class="input_essential" navindex="8" maxlength="11" style="left:450px; top:135px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input18" ref="/root/main/grnt/grntlist1/inptgwnm" class="input_essential" disabled="true" style="left:569px; top:135px; width:184px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("ipt_acntnm");
- }
- ]]>
- </script>
- </input>
- <select1 id="combo3" ref="/root/main/grnt/grntlist1/taxlist" appearance="minimal" editmode="inputsearch" style="left:140px; top:135px; width:190px; height:19px; ">
- <choices>
- <item>
- <label>기타</label>
- <value>0</value>
- </item>
- <item>
- <label>세금계산서</label>
- <value>1</value>
- </item>
- <item>
- <label>계산서</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" class="search_name" style="left:45px; top:135px; width:99px; height:17px; ">증빙유형 :</caption>
- </group>
- <caption id="caption26" visibility="hidden" style="left:315px; top:6px; width:540px; height:34px; font-size:16pt; font-weight:bold; color:#ff0000; ">마감되었습니다.</caption>
- <button id="btn_chulpum" class="btn5_letter5" visibility="hidden" style="left:1000px; top:270px; width:75px; height:19px; ">
- <caption>출장비품의</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
- messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
- return;
- }
-
- model.setValue("/root/pop4data/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
- modal("SPRPD08000", "", "200", "200", "popup","/root/pop4data","/root/pop4data");
- model.setValue("/root/pop1data/chulseq", model.getValue("/root/pop4data/chulseq"));
- model.setValue("/root/send/paydedu/chulseq", model.getValue("/root/pop4data/chulseq"));
- var amt = 0;
- var totamt = 0;
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- if (isNaN(amt) || amt == ""){
- amt = 0;
- }
- totamt = parseFloat(totamt) + parseFloat(amt);
- }
- model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
- model.refreshpart("/root/main/grnt/grntlist1/pumtot");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:245px; height:18px; ">품의내역등록</caption>
- <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/grnt/grntlist1/usedate") < '20110101'){
- messageBox("2011년 1월 1일 이전자료는 이전시스템에서 등록하시기 바랍니다.", "E999", "");
- return;
- }
-
- // 2011.08.03 cyw
- if( model.getValue("/root/main/grnt/grntlist1/usedate") <= model.getValue("/root/closeinfo/closelist/closdd") ){
- messageBox("마감일자가 지난 후에는 이전날짜로 등록 불가능합니다.", "E000", "");
- return;
- }
-
- if (grd_grntpsn1.rows < 2){
- messageBox("품의상세내역이 없습니다. 확인바랍니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
- if (model.getValue("/root/main/grnt/grntlist1/bankno") == ""){
- messageBox("카드번호는 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- if(model.getValue("/root/main/grnt/grntlist1/taxlist") == ""){
- messageBox("증빙유형은 필수 입력항목입니다.", "E999", "");
- return;
- }
-
-
-
- /* 20110523_계정과목 필수체크 DB자료 검색으로 수정 - 주석처리 서원식
- var check = "";
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
- if (cdacntcd == "12280101" || cdacntcd == "12280102" || cdacntcd == "12280103" || cdacntcd == "12280109" || cdacntcd == "12280200" || cdacntcd == "12280300" || cdacntcd == "71120100" || cdacntcd == "71240900"){
- check = "Y";
- }
- }
- if (check == "Y"){
- if (model.getValue("/root/main/grnt/grntlist1/inptgwno") == ""){
- messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- */
-
- model.removeNodeset("/root/acntcheckinfo");
- submit("TRRAD01517");
- // var nodelist = instance1.selectNodes("/root/acntcheckinfo/acntchecklist");
- // alert(nodelist.length);
- // alert(model.getxpathvalue("count(/root/acntcheckinfo/acntchecklist)" ));
-
- for ( var i = 1; i < grd_grntpsn1.rows; i++ ){
- var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
- var chkcnt = getNodesetCount("/root/acntcheckinfo/acntchecklist");
- for ( var j = 1 ; j <= chkcnt ; j++ ) {
- if( cdacntcd == model.getValue("/root/acntcheckinfo/acntchecklist[" + j + "]/cdid") ) {
- if(model.getValue("/root/main/grnt/grntlist1/inptgwno") == "") {
- messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- }
-
-
- }
- /*
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
- if (submit("TRRAD01517")){
- messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- */
-
-
-
-
- /* 20110523_프로젝트 사용안함 - 주석처리 서원식
- var schk = "";
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- tcnt = parseInt(tcnt) + 1;
- if (grd_grntpsn1.rowStatus(i) == 4 || grd_grntpsn1.rowStatus(i) == 5 || grd_grntpsn1.rowStatus(i) == 6){
- dcnt = parseInt(dcnt) + 1;
- }
- var acntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
- if (acntcd == "12280100" || acntcd == "12280101" || acntcd == "12280102" || acntcd == "12280103" || acntcd == "12280109" || acntcd == "12280200" || acntcd == "12280300" || acntcd == "71249900"){
- schk = "Y";
- }
- if (acntcd >= "71240200" && acntcd <= "71240900"){
- schk = "Y";
- }
- if (acntcd >= "71241000" && acntcd <= "71242100"){
- schk = "Y";
- }
- }
- if (schk == "Y"){
- if (model.getValue("/root/main/grnt/grntlist1/gwanno") == ""){
- messageBox("해당 계정과목은 프로젝트ID가 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- */
-
- var tcnt = 0;
- var dcnt = 0;
- var iudgb = "";
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- tcnt = parseInt(tcnt) + 1;
- if (grd_grntpsn1.rowStatus(i) == 4 || grd_grntpsn1.rowStatus(i) == 5 || grd_grntpsn1.rowStatus(i) == 6){
- dcnt = parseInt(dcnt) + 1;
- }
- }
-
- if (tcnt == dcnt){
- model.setValue("/root/main/grnt/grntlist1/iudgb", "D");
- model.refresh();
- }
- iudgb = model.getValue("/root/main/grnt/grntlist1/iudgb");
-
- if (iudgb != "D"){
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- if (grd_grntpsn1.rowStatus(i) != 0){
- amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
- if (isNaN(amt) || amt == ""){
- messageBox("품의금액은 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/custcode") == ""){
- messageBox("거래처는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd") == ""){
- messageBox("품의계정은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd") == ""){
- messageBox("경리계정은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.colRef("cdacntcd")) != ""){
- if (parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt"))){
- messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
- return;
- }
- }
- var acntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
- for (var j = 1; j < grd_grntpsn1.rows; j++){
- var acntcd1 = model.getValue("/root/main/grnt/grntlist2[" + j + "]/cdacntcd");
- if (i != j){
- if (acntcd == acntcd1){
- messageBox(j + "번째에서 중복된 품의계정이 존재합니다.", "E999", "");
- return;
- }
- }
- }
- }
- }
- }
- model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
- model.makeValue("/root/send/save/grntlist1/chulseq", model.getValue("/root/send/paydedu/chulseq"));
- //model.copyNode("/root/send/save/grntlist2", "/root/main/grnt/grntlist2");
-
- if (misfSave("TXRAD01501")){
- if (iudgb == "D"){
- button35.dispatch("DOMActivate");
- }else{
- if (model.getValue("/root/hidden/item/pumno") != ""){
- model.setValue("/root/send/paydedu/pumno", model.getValue("/root/hidden/item/pumno"));
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- model.setValue("/root/main/grnt/grntlist2["+ i + "]/pumno", model.getValue("/root/hidden/item/pumno"));
- }
- model.setValue("/root/main/grnt/grntlist1/pumno", model.getValue("/root/hidden/item/pumno"));
- }
- //model.setValue("/root/pop1data/pumno", model.getValue("/root/hidden/item/pumno"));
- //model.setValue("/root/main/grnt/grntlist1/pumno", model.getValue("/root/hidden/item/pumno"));
- model.refresh();
-
- if(model.getValue("/root/main/grnt/grntlist1/taxlist") != "0"){
- Popup2();
- }
- if (model.getValue("/root/send/paydedu/stat") != "U"){
- //for(var i = 1; i < grd_grntpsn1.rows; i++){
- Popup1();
- //}
- }
- btn_search.dispatch("DOMActivate");
- button3.dispatch("DOMActivate");
-
- }
- }
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/grnt/grntlist1");
- //model.resetInstanceNode("/root/taxinfo/taxlist");
- 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;
- // 2011.06.29 cyw
- btn_grddelpaydedulist.disabled = false;
- btn_grdaddpaydedulist.disabled = false;
- model.setValue("/root/send/paydedu/pumno1", "");
- model.setValue("/root/send/paydedu/pumno2", "");
- // 저장 후 출장SEQ 없애기 2011.09.05 cyw
- model.setValue("/root/pop1data/chulseq", "");
- model.setValue("/root/send/paydedu/chulseq", "");
- initialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button2" class="btn2_letter6" style="left:920px; top:5px; width:86px; height:19px; ">
- <caption>품의내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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 == ""){
- messageBox("발생일자, 작성부서, 예산관련부서를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- Popup();
- // 저장 후 출장SEQ 없애기 2011.09.05 cyw
- // model.setValue("/root/pop1data/chulseq", "");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" style="left:1010px; top:5px; width:53px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/main/grnt/grntlist1/inptgwno") != "" && model.getValue("/root/main/grnt/grntlist1/inptgwno").substring(0,5) == "C2011" ){
- model.setValue("/root/send/reqdata/useyn", "Y");
- model.setValue("/root/send/reqdata/grupcdid", "B");
- model.setValue("/root/send/reqdata/srcd", model.getValue("/root/main/grnt/grntlist1/inptgwno"));
-
- if (submit("TRRAH02101")){
- var Cnt = getNodesetCount("/root/main/grnt/grntlist3");
- for(var i = 1; i <= Cnt ; i++){
- model.setValue("/root/main/grnt/grntlist3["+ i +"]/gwanno", "(" + model.getValue("/root/main/codeinfo/codelist/cdid") + ")" + model.getValue("/root/main/codeinfo/codelist/detldesc") );
- }
- }
- }
-
-
- var acntnm = model.getValue("/root/main/grnt/grntlist3["+ 1 +"]/acntnm").substr(1,8);
- if(acntnm == '21150900'){
- model.setValue("/root/main/grnt/grntlist3["+ 1 +"]/acntnm", model.getValue("/root/main/grnt/grntlist3["+ 2 +"]/acntnm"));
- }
- if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
- // exeReportPreview("RPRAD01501", "XMLSTR");
- exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter6" visibility="hidden" style="left:810px; top:5px; width:86px; height:19px; ">
- <caption>품의상세</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_grntpsn1.rows; i++){
- var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
- var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
- var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
- var pumamt = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt");
- model.setValue("/root/send/paydedu/acntcd", cdacntcd);
- if (submit("TRRAD01508")){
- if (instance1.selectSingleNode("/root/wongainfo/wongalist/acntcd") == null){
-
- }else{
- model.setValue("/root/pop1data/pumno", pumno);
- model.setValue("/root/pop1data/cdacntcd", cdacntcd);
- model.setValue("/root/pop1data/pumgubun", pumgubun);
- model.setValue("/root/pop1data/pumamt", pumamt);
- model.setValue("/root/pop1data/irow", i);
- //modal("SPRAD00500", "", "", "", "SPRAD00500","/root/pop1data","/root/pop1data");
- window.load("SPRAD00500.xrw", "modal","", "caption:hidden", "/root/pop1data","/root/pop1data");
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter6" visibility="hidden" style="left:725px; top:5px; width:86px; height:19px; ">
- <caption>품의상세</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
- if (misfSave("TXRAD01501")){
-
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|