123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- <?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>청구분 접수승인 및 발주처리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodreq>
- <goodreqlist/>
- </goodreq>
- </list>
- <item/>
- <RsdhdemdTrees>
- <TreeList>
- <depth/>
- <pcode/>
- <codecd/>
- <codenm/>
- <dispnm/>
- </TreeList>
- </RsdhdemdTrees>
- </main>
- <send>
- <save>
- <goodreqlist/>
- </save>
- <goodreq>
- <instcd/>
- <reqflag/>
- <reqfrdd/>
- <reqtodd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <deptaprvyn/>
- </goodreq>
- <reqdetaillist/>
- <reqaprvlist/>
- <gooddetail>
- <instcd/>
- <reqflag/>
- <reqfrdd/>
- <reqtodd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <deptaprvyn/>
- </gooddetail>
- </send>
- <init>
- <popmenu>
- <grd_goodreq>
- <item>
- <name>행추가</name>
- <func>fInsertReqRow</func>
- </item>
- <item>
- <name>행삭제</name>
- <func>fDeleteReqRow</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>청구SET목록조회</name>
- <func>fGetReqSetList</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>접수</name>
- <func>fSetGoodnm</func>
- </item>
- <item>
- <name>승인</name>
- <func>fSetGoodnm</func>
- </item>
- <item>
- <name>발주생성</name>
- <func>fSetGoodnm</func>
- </item>
- </grd_goodreq>
- </popmenu>
- <deptaprvyn>
- <label>전체</label>
- <value/>
- <label>승인</label>
- <value>Y</value>
- <label>미승인</label>
- <value>N</value>
- </deptaprvyn>
- <workflag>
- <label>청 구</label>
- <value>1</value>
- <label>반 품</label>
- <value>2</value>
- </workflag>
- <reqdeptcd/>
- <reqdeptnm/>
- <requserno/>
- <requsernm/>
- <reqfinaldeptcd/>
- <reqfinaldeptnm/>
- <nonaprvcnt/>
- <aprvcnt/>
- <totaprvcnt/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/reqweb/js/SMRSD07000.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <submission id="TXRSD00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRSO03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdetaillist" resultref="/root/temp"/>
- <submission id="TXRSD07002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqaprvlist" resultref="/root/temp"/>
- <submission id="TRRSD07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetail" resultref="/root/main/list/goodreq"/>
- <submission id="TRRSD07002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/RsdhdemdTrees"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,332;2,33;2,776;1,487;">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:270px; height:14px; ">청구분 접수승인 및 발주처리</caption>
- </group>
- <group id="group2" style="left:0px; top:18px; width:1195px; height:744px; ">
- <group id="group3" style="left:0px; top:15px; width:325px; height:720px; vertical-align:top; ">
- <treeview id="trv_setcode" ref="/root/main/RsdhdemdTrees/TreeList" expanddepth="1" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:5px; top:173px; width:320px; height:544px; ">
- <itemset nodeset="/root/main/RsdhdemdTrees/TreeList">
- <label ref="dispnm"/>
- <value ref="pcode"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // fDataSearchDetail(trv_setcode.focusIndex);
- // fTreeClick(trv_setcode.focusIndex);
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDataSearchDetail(trv_setcode.focusIndex);
- ]]>
- </script>
- </treeview>
- <group id="group4" style="left:5px; top:0px; width:320px; height:172px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:318px; height:170px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="rdo_viewcls" ref="/root/WorkData/HideData/viewcls" appearance="full" cols="2" overflow="visible" style="left:189px; top:151px; width:120px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일자별</label>
- <value>D</value>
- </item>
- <item>
- <label>부서별</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fRscmggbnTree();
- ]]>
- </script>
- </select1>
- <button id="button5" style="left:5px; top:141px; width:310px; height:25px; text-align:center; background-image:C:\CMCOracle\application\webapps\com\commonweb\images\btn2_letter20.gif; background-repeat:repeat-x; background-stretch:stretch; ">
- <caption>트리 재구성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
-
- submit("TRRSD07002");
- trv_setcode.rebuild();
-
- ]]>
- </script>
- </button>
- <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:91px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:91px; top:91px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_name" style="left:5px; top:91px; width:86px; height:17px; ">청구일자 :</caption>
- <caption id="caption13" style="left:195px; top:91px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <select1 id="rbo_deptaprvyn" ref="/root/send/goodreq/deptaprvyn" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:91px; top:5px; width:155px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/deptaprvyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:5px; top:5px; width:86px; height:17px; ">진행구분 :</caption>
- <caption id="caption9" class="search_name" style="left:5px; top:116px; width:86px; height:17px; ">청구구분 :</caption>
- <select1 id="cmb_reqflag" ref="/root/send/goodreq/reqflag" class="combo_default" appearance="minimal" style="left:91px; top:115px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetReqAuth();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_3" style="x1:2px; y1:137px; x2:317px; y2:137px; "/>
- <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_default" appearance="minimal" style="left:91px; top:24px; width:152px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_goodreq);
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag ,"N",model.getValue(cmb_instcd.attribute("ref")));
- model.refresh();
- fSetReqAuth();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:5px; top:25px; width:86px; height:17px; ">기관코드 :</caption>
- <button id="button29" class="icon_search" style="left:211px; top:49px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="search_name" style="left:5px; top:49px; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="put_fix" appearance="input" style="left:90px; top:68px; width:222px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.lenth == 0)
- ipt_reqdeptnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_default" appearance="output" style="left:91px; top:47px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.lenth == 0)
- ipt_reqdeptnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:260px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataSearchTree();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <!--
- <group id="grp_main" style="left:0px; top:15px; width:1195px; height:720px; ">
- <group id="grp_button" style="left:485px; top:0px; width:706px; height:49px; ">
- -->
- <group id="grp_main" style="left:332px; top:15px; width:863px; height:720px; ">
- <group id="grp_button" style="left:155px; top:0px; width:706px; height:49px; ">
- <caption id="opt_nonaprvtitle" style="left:144px; top:28px; width:79px; height:20px; font-weight:bold; vertical-align:middle; ">미승인건수 :</caption>
- <output id="opt_aprvcnt" ref="/root/init/aprvcnt" class="output_default" format="#,###" style="left:357px; top:28px; width:65px; height:19px; font-weight:bold; "/>
- <caption id="caption3" style="left:0px; top:28px; width:64px; height:20px; font-weight:bold; vertical-align:middle; ">전체건수 :</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:443px; top:3px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodreq);
- ]]>
- </script>
- </button>
- <caption id="opt_aprvcnttitle" style="left:293px; top:28px; width:65px; height:20px; font-weight:bold; vertical-align:middle; ">승인건수 :</caption>
- <output id="opt_nonaprvcnt" ref="/root/init/nonaprvcnt" class="output_default" format="#,###" style="left:220px; top:28px; width:65px; height:19px; font-weight:bold; "/>
- <button id="btn_accept" class="btn4_letter2" style="left:580px; top:2px; width:56px; height:22px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveReqAprv();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:638px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn2_letter6" style="left:487px; top:3px; width:86px; height:19px; ">
- <caption>E-Mail 전송</caption>
- </button>
- <output id="opt_totalaprvcnt" ref="/root/init/totaprvcnt" class="output_default" format="#,###" style="left:70px; top:28px; width:65px; height:19px; font-weight:bold; "/>
- </group>
- <caption id="caption8" class="tit_2" style="left:0px; top:6px; width:98px; height:13px; ">청구현황내역</caption>
- <!--
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="청구부서^청구번호^청구일자^청구번호^순번^물품코드^물품명^규격^모델^제조회사^구매단위^청구^청구^비고^전월^접수^승인^승인" colsep="^" colwidth="0, 90, 0, 0, 0, 80, 268, 87, 85, 81, 58, 40, 55, 30, 48, 48, 30, 48, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:49px; width:1195px; height:621px; ">
- -->
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="청구부서^청구번호^청구일자^청구번호^순번^물품코드^물품명^규격^모델^제조회사^구매단위^청구^청구^비고^전월^접수^승인^승인" colsep="^" colwidth="0, 111, 0, 0, 0, 71, 268, 110, 37, 60, 54, 40, 55, 30, 48, 48, 30, 48, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:49px; width:860px; height:621px; ">
- <col ref="reqdeptnm"/>
- <col ref="reqnodisp"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec" type="output"/>
- <col ref="goodmodel" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="purcunit"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="requnit"/>
- <col ref="chkcmt" style="text-align:center; "/>
- <col/>
- <col ref="jobstatus"/>
- <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
- <col ref="deptaprvnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="reqmthdflag" visibility="hidden"/>
- <col ref="deliveflag" visibility="hidden"/>
- <col ref="reqpridflag" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqcollcdeptcd" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="delivehopedd" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqtm" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- <col ref="basevol" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptcharid" visibility="hidden"/>
- <col ref="purcdmnddd" visibility="hidden"/>
- <col ref="purcdmndno" visibility="hidden"/>
- <col ref="purcdmndseq" visibility="hidden"/>
- <col ref="colreqdept" visibility="hidden"/>
- <col ref="colreqno" visibility="hidden"/>
- <col ref="colreqseqno" visibility="hidden"/>
- <col ref="deliveqty" visibility="hidden"/>
- <col ref="unwinresn" visibility="hidden"/>
- <col ref="deliveprcsflag" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_goodreq.col == grd_goodreq.colRef("reqqty") ) {//청구량조절할경우
- basevol = grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("basevol"));
- stocqty = grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("stocqty"));
- reqqty = grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqqty"));
- minexch = grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("minexch"));
-
- if(minexch > 0 && (reqqty%minexch != 0))
- {
- messageBox((grd_goodreq.row )+ "번째 물품은 최소청구량["+ minexch + "] 에 맞춰서" , "C001");
- grd_goodreq.row = grd_goodreq.row;
- grd_goodreq.col= grd_goodreq.colRef("reqqty");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqqty","");
- grd_goodreq.editCell();
- return;
- }
-
- if(basevol > 0 && (basevol - stocqty) < reqqty)
- {
- messageBox((grd_goodreq.row) + "번째 물품은 기준량과 재료량을 기준으로 과다 청구되었습니다.처리","E001" );
- grd_goodreq.row = grd_goodreq.row;
- grd_goodreq.col= grd_goodreq.colRef("reqqty");
- grd_goodreq.editCell();
- return;
- }
- }
- else if(grd_goodreq.col == grd_goodreq.colRef("goodcd") ) {
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd") + ",,,," + model.getValue(cmb_reqflag.attribute("ref")) ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm,purcunit,stocqty,minexch,goodflag,ddavguseqty,reqflag",grd_goodreq,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodflag"),"Y");
- model.refresh();
-
- if( grd_goodreq.valueMatrix(cur_row, grd_goodreq.colRef("goodnm")).length> 0)
- {
-
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/minexch") > 0) model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqqty",model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/minexch") );
- else model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqqty","1");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/basevol",model.getValue("/root/init/main/goodlist/minexch"));
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/requnit",model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqmthdflag",model.getValue("/root/init/main/goodlist/reqmthd"));
- }
-
- model.refresh();
-
- var cur_row = grd_goodreq.row;
- var status = grd_goodreq.valueMatrix(cur_row, grd_goodreq.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_goodreq.valueMatrix(cur_row, grd_goodreq.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/goodspec" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/goodflag" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/goodmodel" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/prodcmpynm" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/purcunit" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/basevol" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/stocqty" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/reqqty" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/requnit" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/minexch" , "");
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1) + "]/ddavguseqty" , "");
- grd_goodreq.col = grd_goodreq.colRef("goodcd");
- grd_goodreq.editCell();
- }
- else if (CSV.length > 0)
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "goodreqlist");
-
- fSettingGoodList("/root/copynode", "goodreqlist" , "userqty");
- }
- }
- else if(grd_goodreq.col == grd_goodreq.colRef("deptaprvyn") ) {
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "N" &&
- model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/deptaprvyn") == "Y" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/deptaprvyn","N");
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "2")grd_goodreq.rowStatus(grd_goodreq.row) = "0"
- }
- }
- else if(grd_goodreq.col == grd_goodreq.colRef("acptflag") ) {
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "N" &&
- model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/deptaprvyn") == "Y" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag","Y");
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "2")grd_goodreq.rowStatus(grd_goodreq.row) = "0"
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_goodreq.col == grd_goodreq.colRef("goodcd") && grd_goodreq.rowStatus(grd_goodreq.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_goodreq,"","goodcd,goodnm","SPRSD00190","instcd,goodflag,reqflag","cmb_instcd,opt_goodflag,cmb_reqflag");
-
- var cur_row = grd_goodreq.row;
- var status = grd_goodreq.valueMatrix(cur_row, grd_goodreq.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "goodreqlist");
-
- fSettingGoodList("/root/copynode", "goodreqlist" , "userqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- tar_cmt.value = model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/cmt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_goodreq.colAttribute(grd_goodreq.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_goodreq.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_goodreq.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_goodreq.col = curcol;
- grd_goodreq.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("input") == -1)
- {
- if(grd_goodreq.col - 1 == grd_goodreq.colRef("goodcd") && grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.col - 1).length == 0)
- {
- grd_goodreq.col = grd_goodreq.colRef("goodcd");
- grd_goodreq.editCell();
- return;
- }
- for(curcol = grd_goodreq.col ; curcol <grd_goodreq.cols ; curcol++)
- {
- if(grd_goodreq.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_goodreq.col = curcol;
- grd_goodreq.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <!--
- <textarea id="tar_cmt" style="left:110px; top:675px; width:1084px; height:40px; ">
- -->
- <textarea id="tar_cmt" style="left:110px; top:675px; width:752px; height:40px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodreq.row > 0 &&( tar_cmt.value != model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/cmt")))
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/cmt", tar_cmt.value);
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "0")grd_goodreq.rowStatus(grd_goodreq.row) = "2";
- model.refresh();
- }
- ]]>
- </script>
- </textarea>
- <caption id="caption17" class="cell_1" style="left:0px; top:675px; width:108px; height:40px; text-align:center; vertical-align:middle; ">비고</caption>
- <!--
- <line id="lin_main" class="line_1" style="x1:0px; y1:24px; x2:1192px; y2:24px; "/>
- -->
- <line id="lin_main" class="line_1" style="x1:0px; y1:24px; x2:861px; y2:24px; "/>
- <caption id="cpt_disp" style="left:110px; top:6px; width:495px; height:15px; "/>
- <button id="button57" class="icon_pre_month" style="left:0px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDisplayToggle("1");
- ]]>
- </script>
- </button>
- <button id="button58" class="icon_next_month" style="left:20px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDisplayToggle("0");
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|