1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>재고자산 실사량 입력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <rctpdisburseinfo>
- <rctpdisburselist/>
- </rctpdisburseinfo>
- <wininputinfo>
- <wininputinfo>
- <wininputlist/>
- </wininputinfo>
- <iptwininputinfo>
- <iptwininput>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <allsizespecidnm/>
- <goodmodel/>
- <totstocqty/>
- <cnfmstockqty/>
- <inputyn/>
- <goodflag>Y</goodflag>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodunitcost/>
- <rctpdisburseqty/>
- <adjtqty/>
- <plceordamt/>
- <ioflag/>
- <rctpdisbursedt/>
- </iptwininput>
- <iptvalichkflag>
- <valichkflag/>
- </iptvalichkflag>
- </iptwininputinfo>
- <tmpwininputinfo>
- <tmpwininputlist/>
- </tmpwininputinfo>
- </wininputinfo>
- <deliveinputinfo>
- <deliveinputlist/>
- </deliveinputinfo>
- <stocksuminfo>
- <stocksumlist/>
- </stocksuminfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <goodflag>Y</goodflag>
- <lrgcd/>
- <mdlcd/>
- <goodcd/>
- <goodnm/>
- <jobflag>R</jobflag>
- <purcflag/>
- <stocmngtflag/>
- <rctpdisbursedtfrom/>
- <rctpdisbursedtto/>
- </search>
- <popuppara>
- <instcd/>
- <goodflag/>
- <goodcd/>
- <allsizespecid/>
- </popuppara>
- <ipt_search>
- <rctpdisbursedt/>
- <instcd/>
- <goodflag>Y</goodflag>
- <lrgcd/>
- <mdlcd/>
- <goodcd/>
- <goodnm/>
- <jobflag>R</jobflag>
- <allsizespecid/>
- <allsizespecidnm/>
- <purcflag/>
- <stocmngtflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodunitcost/>
- <rctpdisburseqty/>
- <adjtqty/>
- <plceordamt/>
- <ioflag/>
- </ipt_search>
- <goodcdinfo>
- <instcd/>
- <goodflag/>
- <goodcd/>
- <allsizespecid/>
- <jobflag>I</jobflag>
- <inputyn>N</inputyn>
- <purcflag/>
- <stocmngtflag/>
- <rctpdisbursedtfrom/>
- <rctpdisbursedtto/>
- <rctpdisbursedt/>
- </goodcdinfo>
- </send>
- <save>
- <iptwininput/>
- <wininputlist/>
- </save>
- <init>
- </init>
- <temp>
- <rstinfo>
- <allsizespecid/>
- <allsizespecidnm/>
- </rstinfo>
- <inputyninfo/>
- <barcdinfo>
- <barcd/>
- </barcdinfo>
- </temp>
- </root>
- </instance>
- <submission id="TRRSG06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/rctpdisburseinfo"/>
- <submission id="TRRSG06311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ipt_search" resultref="/root/main/list/wininputinfo/iptwininputinfo"/>
- <submission id="TRRSG06312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/wininputinfo/wininputinfo"/>
- <submission id="TRRSG06313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/wininputinfo/tmpwininputinfo"/>
- <submission id="TRRSG06314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/wininputinfo/tmpwininputinfo"/>
- <submission id="TXRSG06311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/iptwininput" resultref="/root/temp"/>
- <submission id="TXRSG06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rctpdisburselist" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // --------------------------------------------------
- // Data Part Toggle 속성Toggle 처리하는 함수
- // --------------------------------------------------
- function fDataPartToggle(pCls) {
- switch(pCls) {
- case 0 :
- // 메인 Grup
- grp_main.attribute("left" ) = "285";
- grp_main.attribute("width" ) = "906";
-
- lin_main.attribute("x2" ) = "905";
- grd_wininputlist.attribute("width")= "905";
- grp_main.refresh();
- break;
- case 1 :
- // 메인 Grup
- grp_main.attribute("left" ) = "0";
- grp_main.attribute("width" ) = "1191";
-
- lin_main.attribute("x2" ) = "1191";
- grd_wininputlist.attribute("width")= "1191";
- grp_main.refresh();
- break;
- }
- }
-
- function fInitialize()
- {
- misfComboComCdListMulti("R0069,R0111,Z0007","cmb_stocmngtflag,cmb_purcflag,cmb_instcd");
- model.setValue(ipt_rctpdisbursedtfrom.attribute("ref") , getCurrentDate());
- model.setValue(ipt_rctpdisbursedtto.attribute("ref") , getCurrentDate());
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd" , "전체", "", "above");
- addComboItem( "cmb_stocmngtflag" , "전체", "", "above");
- addComboItem( "cmb_purcflag" , "전체", "", "above");
- model.removeNodeset("/root/main/list/wininputinfo/wininputinfo/wininputlist");
-
- model.setFocus("ipt_barcdinfo");
- model.refresh();
-
- }
- function fInputData(){
- /*for (var i=grd_wininputlist.fixedRows; i<grd_wininputlist.rows; i++){
-
- if ( grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("goodcd")) == model.getValue(ipt_goodcd.attribute("ref"))
- && grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("allsizespecid")) == model.getValue(ipt_allsizespecid.attribute("ref"))){
- messageBox("중복 입력된 데이타 ","I009");
- return;
- }
- }
- submit("TRRSG06314");
- inputyn = model.getValue("/root/main/list/wininputinfo/tmpwininputinfo/tmpwininputlist/inputyn");
- if (inputyn == "N"){
- messageBox("이미 입력된 데이타 ","I009");
- return;
- }
- submit("TRRSG06311");
- var valichkflag = model.getValue("/root/main/list/iptrctpdisburseinfo/iptvalichkflag/valichkflag");
- if (valichkflag == "0"){
- messageBox("해당 데이타가 ","E014");
- return;
- }else if(valichkflag == "9"){
- messageBox("1건 이상의 데이타가 존재하고.","I010");
- return;
- }*/
-
- //model.setValue("/root/send/goodcdinfo/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
- submit("TRRSG06313");
- grd_wininputlist.addRow();
- var Path = "/root/main/list/wininputinfo/tmpwininputinfo/tmpwininputlist/";
-
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("rctpdisbursedt")) = model.getValue(Path+"rctpdisbursedt");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("instcd")) = model.getValue(Path+"instcd");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodflag")) = model.getValue(Path+"goodflag");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodcd")) = model.getValue(Path+"goodcd");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("allsizespecid")) = model.getValue(Path+"allsizespecid");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodnm")) = model.getValue(Path+"goodnm");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("allsizespecidnm")) = model.getValue(Path+"allsizespecidnm");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodmodel")) = model.getValue(Path+"goodmodel");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("prodcmpynm")) = model.getValue(Path+"prodcmpynm");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("maincustnm")) = model.getValue(Path+"maincustnm");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("subcustnm")) = model.getValue(Path+"subcustnm");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("totstocqty")) = model.getValue(Path+"totstocqty");
-
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("rctpdisburseqty")) = model.getValue(Path+"rctpdisburseqty");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("adjtqty")) = model.getValue(Path+"adjtqty");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodunitcost")) = model.getValue(Path+"goodunitcost");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("plceordamt")) = model.getValue(Path+"plceordamt");
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("ioflag")) = model.getValue(Path+"ioflag");
- model.refresh();
- }
-
- // 조회버튼클릭
- function fSearchButtonClick() {
- if (swh_select.selectedIndex == 0) {
- model.resetInstanceNode("/root/main/list/rctpdisburseinfo/rctpdisburselist");
- submit("TRRSG06301");
- model.refresh();
- } else if (swh_select.selectedIndex == 1) {
- model.resetInstanceNode("/root/main/list/wininputinfo/wininputinfo/wininputlist");
- submit("TRRSG06312");
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">물품 수불내역 관리</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:17px; width:1195px; height:63px; vertical-align:top; ">
- <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchButtonClick();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:414px; top:10px; width:121px; height:19px; ">
- <choices>
- <item>
- <label>의료비품</label>
- <value>U</value>
- </item>
- <item>
- <label>의료소모품</label>
- <value>Y</value>
- </item>
- <item>
- <label>공급실물품</label>
- <value>T</value>
- </item>
- <item>
- <label>일반소모품</label>
- <value>Z</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd", "전체", "", "above");
- cmb_mdlcd.value='';
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:320px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:414px; top:36px; width:121px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
- cmb_mdlcd.dispatch("xforms-value-changed");
- addComboItem( "cmb_mdlcd", "전체", "", "above");
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:639px; top:36px; width:126px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:320px; top:36px; width:88px; height:17px; ">대 분 류 :</caption>
- <caption id="caption8" class="search_name" style="left:543px; top:36px; width:88px; height:17px; ">중 분 류 :</caption>
- <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="output_search" style="left:745px; top:10px; width:140px; height:19px; "/>
- <button id="btn_goodcd" class="icon_search" style="left:726px; top:10px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="ipt_searchgoodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:639px; top:10px; width:81px; height:19px; "/>
- <caption id="cap_goodcd" class="search_name" style="left:545px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
- <input id="ipt_rctpdisbursedtfrom" ref="/root/send/search/rctpdisbursedtfrom" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:104px; top:36px; width:91px; height:19px; "/>
- <caption id="caption15" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">수불기간 :</caption>
- <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" appearance="minimal" style="left:896px; top:36px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stocmngtflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:905px; top:10px; width:86px; height:17px; ">구매구분 :</caption>
- <caption id="caption16" class="search_name" style="left:775px; top:36px; width:112px; height:17px; ">재고관리기준 :</caption>
- <select1 id="cmb_purcflag" ref="/root/send/search/purcflag" appearance="minimal" style="left:995px; top:10px; width:101px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/purcflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_rctpdisbursedtto" ref="/root/send/search/rctpdisbursedtto" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:36px; width:91px; height:19px; "/>
- <caption id="caption29" style="left:200px; top:37px; width:15px; height:17px; ">~</caption>
- </group>
- <switch id="swh_select" style="left:0px; top:110px; width:1190px; height:595px; ">
- <case id="cse_rctpdisburse">
- <caption id="caption22" class="tit_2" style="left:10px; top:6px; width:98px; height:14px; ">수불 내역</caption>
- <line id="lin_main" class="line_1" style="x1:0px; y1:24px; x2:1185px; y2:24px; "/>
- <datagrid id="grd_rctpdisburselist" nodeset="/root/main/list/rctpdisburseinfo/rctpdisburselist" class="datagrid3" caption="입출구분^불출일자^기관코드^물품구분^요청부서코드^요청부서명^물품코드^물품코드^물품명^규격^모델^제조원^주거래처^보조거래처^재고량^수불수량^조정수량^단가^금액" colsep="^" colwidth="62, 65, 0, 0, 103, 123, 121, 40, 331, 145, 143, 136, 131, 132, 80, 80, 80, 80, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:30px; width:1185px; height:540px; font-weight:normal; text-align:center; ">
- <col disabled="false" ref="ioflag" type="combo" visibility="visible" style="text-align:center; ">
- <choices>
- <item>
- <label>I</label>
- <value>입고</value>
- </item>
- <item>
- <label>O</label>
- <value>출고</value>
- </item>
- </choices>
- </col>
- <col ref="rctpdisbursedt" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
- <col ref="reqdeptcd" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; padding-left:10; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="allsizespecidnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col ref="maincustnm" style="text-align:left; padding-left:10; "/>
- <col ref="subcustnm" style="text-align:left; padding:10; "/>
- <col ref="totstocqty" format="#,###" style="text-align:right; "/>
- <col ref="rctpdisburseqty" format="#,###" style="text-align:right; "/>
- <col ref="adjtqty" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="plceordamt" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_wininputlist.colAttribute(grd_wininputlist.col,"ref") == "reqdeptcd" ) { // 부서
- var instcd = model.getValue(cmb_instcd.attribute("ref"));
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", grd_wininputlist,"", recv_list,instcd,"instcd") ;
- model.refresh();
- }
- /* if (grd_wininputlist.col == grd_wininputlist.colRef("reqdeptcd")) { //요청부서코드
-
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", grd_wininputlist.reqdeptcd,"", recv_list) ;
- model.refresh();
-
- }*/
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( (grd_wininputlist.colAttribute(grd_wininputlist.col,"ref") == "goodcd" )
- || (grd_wininputlist.colAttribute(grd_wininputlist.col,"ref") == "allsizespecid" )) {
- fInputData();
- }
-
- if (grd_wininputlist.colAttribute(grd_wininputlist.col,"ref") == "rctpdisburseqty") {
- var rctpdisburseqty = parseInt(grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("rctpdisburseqty")));
- var goodunitcost = parseInt(grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("goodunitcost")));
- grd_wininputlist.valueMatrix(grd_wininputlist.row, grd_wininputlist.colRef("plceordamt")) = rctpdisburseqty * goodunitcost;
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="cse_wininput" selected="true">
- <group id="grp_input" style="left:0px; top:0px; width:278px; height:570px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:45px; width:270px; height:485px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">입고 입력</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:34px; x2:275px; y2:34px; "/>
- <button id="btn_iptsave" class="btn2_letter2" style="left:224px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!isRequiredControls("ipt_iptrctpdisbursedt")) return;
- if(!isRequiredControls("ipt_reqdeptcd")) return;
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var save, status;
- var mPath = "/root/send/search/";
- var dPath = "/root/main/list/wininputinfo/iptwininputinfo/iptwininput/";
- var instcd = model.getValue(mPath+"instcd" );
- var oldrctpdisbursedt = model.getValue(dPath+"oldrctpdisbursedt" );
- var rctpdisbursedt = model.getValue(dPath+"rctpdisbursedt" );
- var oldreqdeptcd = model.getValue(dPath+"oldreqdeptcd" );
- var reqdeptcd = model.getValue(dPath+"reqdeptcd" );
- var goodflag = model.getValue(dPath+"goodcd" ).substr(0, 1);
- var goodcd = model.getValue(dPath+"goodcd" );
- var goodnm = model.getValue(dPath+"goodnm" );
- var allsizespecid = model.getValue(dPath+"allsizespecid" );
- var allsizespecidnm = model.getValue(dPath+"allsizespecidnm" );
- var goodmodel = model.getValue(dPath+"goodmodel" );
- var totstocqty = model.getValue(dPath+"totstocqty" );
- var inputyn = model.getValue(dPath+"inputyn" );
- var goodunitcost = model.getValue(dPath+"goodunitcost" );
- var ioflag = model.getValue(dPath+"ioflag" );
- var rctpdisburseqty = model.getValue(dPath+"rctpdisburseqty" );
- var adjtqty = model.getValue(dPath+"adjtqty" );
- var plceordamt = model.getValue(dPath+"plceordamt" );
- var inputyn = model.getValue(dPath+"inputyn" );
-
- model.resetInstanceNode("/root/save/iptwininput");
-
- if (inputyn == "Y"){
- status = "i";
- }else{
- status = "u";
- }
- var save = "m▦instcd▦oldrctpdisbursedt▦rctpdisbursedt▦oldreqdeptcd▦reqdeptcd▦goodflag▦goodcd▦allsizespecid▦rctpdisburseqty▦adjtqty▦goodunitcost▦plceordamt▦inputyn▦ioflag▩";
- save += status + "▦";
- save += instcd + "▦";
- save += oldrctpdisbursedt + "▦";
- save += rctpdisbursedt + "▦";
- save += oldreqdeptcd + "▦";
- save += reqdeptcd + "▦";
- save += goodflag + "▦";
- save += goodcd + "▦";
- save += allsizespecid + "▦";
- save += rctpdisburseqty + "▦";
- save += adjtqty + "▦";
- save += goodunitcost + "▦";
- save += plceordamt + "▦";
- save += inputyn + "▦";
- save += "I" + "▩";
-
- model.setValue("/root/save/iptwininput" , save);
- submit("TXRSG06311");
- //model.refresh();
- //model.resetInstanceNode("/root/main/list/wininputinfo/iptwininputinfo/iptwininput");
- btn_iptsearch.dispatch("DOMActivate");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_iptgoodcd" class="icon_search" style="left:251px; top:199px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_iptgoodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,reqflag","cmb_instcd,cmb_goodflag,cmb_reqflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:18px; top:199px; width:81px; height:17px; ">물품코드 :</caption>
- <input id="ipt_iptgoodnm" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/goodnm" class="output_search" style="left:107px; top:230px; width:155px; height:19px; "/>
- <input id="ipt_iptgoodcd" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/goodcd" class="input_search" appearance="input" style="left:107px; top:199px; width:131px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_iptgoodflag.value = model.getValue(ipt_iptgoodcd.attribute("ref")).substr(0, 1);
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:18px; top:230px; width:93px; height:17px; ">물 품 명 :</caption>
- <button id="btn_iptsearch" class="btn2_letter2" style="left:174px; top:55px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/send/ipt_search");
- var SPath1 = "/root/send/search/";
- var SPath2 = "/root/main/list/wininputinfo/iptwininputinfo/iptwininput/";
- var DPath = "/root/send/ipt_search/";
- var valichkflag, inputyn;
- model.setValue( DPath + "purcflag" , model.getValue( SPath1 + "purcflag" ));
- model.setValue( DPath + "stocmngtflag" , model.getValue( SPath1 + "stocmngtflag" ));
- model.setValue( DPath + "instcd" , model.getValue( SPath1 + "instcd" ));
- model.setValue( DPath + "rctpdisbursedt" , model.getValue( SPath2 + "rctpdisbursedt"));
- model.setValue( DPath + "goodflag" , model.getValue( SPath2 + "goodflag").toUpperCase());
- model.setValue( DPath + "goodcd" , model.getValue( SPath2 + "goodcd").toUpperCase());
- model.setValue( DPath + "goodnm" , model.getValue( SPath2 + "goodnm" ));
- model.setValue( DPath + "reqdeptcd" , model.getValue( SPath2 + "reqdeptcd" ));
- model.setValue( DPath + "reqdeptnm" , model.getValue( SPath2 + "reqdeptnm" ));
- model.setValue( DPath + "allsizespecid" , model.getValue( SPath2 + "allsizespecid" ));
- model.setValue( DPath + "allsizespecidnm" , model.getValue( SPath2 + "allsizespecidnm"));
- model.setValue( DPath + "goodunitcost" , model.getValue( SPath2 + "goodunitcost" ));
- model.setValue( DPath + "ioflag" , model.getValue( SPath2 + "ioflag" ));
- model.setValue( DPath + "rctpdisburseqty" , model.getValue( SPath2 + "rctpdisburseqty"));
- model.setValue( DPath + "adjtqty" , model.getValue( SPath2 + "adjtqty" ));
- model.setValue( DPath + "plceordamt" , model.getValue( SPath2 + "plceordamt" ));
-
- submit("TRRSG06311");
- inputyn = model.getValue("/root/main/list/wininputinfo/iptwininputinfo/iptwininput/inputyn");
- valichkflag = model.getValue("/root/main/list/wininputinfo/iptwininputinfo/iptvalichkflag/valichkflag");
- if (valichkflag == "0"){
- messageBox("해당 데이타가 ","E014");
- }else if(valichkflag == "9"){
- messageBox("1건 이상의 데이타가 존재하고.","I010");
- }
-
- if (inputyn == "Y"){
- cap_inputyndesc.value = "※ 추가 할 수 있는 데이타 입니다.";
- }else if (inputyn == "N"){
- cap_inputyndesc.value = "※ 수정 할 수 있는 데이타 입니다.";
- }else{
- cap_inputyndesc.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="search_name" style="left:18px; top:290px; width:95px; height:17px; ">규 격 명 :</caption>
- <input id="ipt_iptallsizespecidnm" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/allsizespecidnm" class="output_search" style="left:107px; top:290px; width:155px; height:19px; "/>
- <input id="ipt_iptgoodmodel" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/goodmodel" class="output_search" style="left:107px; top:320px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != ""){
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,reqflag,goodcd,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_reqflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref"))
- ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd");
- }else{
- ipt_goodcd.value = "";
- }
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:18px; top:320px; width:95px; height:17px; ">모 델 :</caption>
- <caption id="caption17" class="search_name" style="left:18px; top:360px; width:114px; height:17px; ">현재고 수량 :</caption>
- <input id="ipt_ipttotstocqty" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/totstocqty" class="output_search" disabled="false" format="#,###" style="left:137px; top:360px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != ""){
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,reqflag,goodcd,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_reqflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref"))
- ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd");
- }else{
- ipt_goodcd.value = "";
- }
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:18px; top:385px; width:111px; height:17px; ">수불 수량 :</caption>
- <input id="ipt_iptrctpdisburseqty" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/rctpdisburseqty" class="input_search" format="#,###" style="left:137px; top:385px; width:125px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rctpdisburseqty = parseInt(model.getValue(ipt_iptrctpdisburseqty.attribute("ref")));
- var goodunitcost = parseInt(model.getValue(ipt_iptgoodunitcost.attribute("ref")));
- model.setValue(ipt_plceordamt.attribute("ref"), rctpdisburseqty * goodunitcost);
- ipt_plceordamt.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_inputyn" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/inputyn" visibility="visible" style="left:19px; top:55px; width:55px; height:19px; "/>
- <caption id="caption19" class="search_name" style="left:18px; top:260px; width:106px; height:17px; ">규격코드 :</caption>
- <input id="ipt_iptallsizespecid" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/allsizespecid" class="input_search" style="left:107px; top:260px; width:131px; height:19px; "/>
- <button id="btn_iptallsizespecid" class="icon_search" style="left:251px; top:260px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dPath ="/root/send/popuppara/" ;
- var sPath ="/root/send/search/" ;
- var sPath2 ="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/" ;
-
- // 규격코드 정보 popup에 Parameter값을 Setting
- model.setValue(dPath+"instcd" , model.getValue(sPath +"instcd" ));
- model.setValue(dPath+"goodflag" , model.getValue(sPath2+"goodflag" ));
- model.setValue(dPath+"allsizespecid" , model.getValue(sPath +"allsizespecid"));
- model.setValue(dPath+"goodcd" , model.getValue(sPath2+"goodcd" ));
-
- setParameter("SMRSG06200_popuppara", getNodeListCSV(model.instances(0).selectNodes("/root/send/popuppara")) );
- modal("SMRSG06200");
-
- model.removenode("/root/temp/rstinfo");
-
- var csv_rstinfo = getParameter("SMRSG06100_rstinfo");
- setCSVToNode("/root/temp", csv_rstinfo, "rstinfo");
-
- model.setValue(ipt_iptallsizespecid.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecid"));
- model.setValue(ipt_iptallsizespecidnm.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecidnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_inputyndesc" style="left:14px; top:500px; width:255px; height:17px; "/>
- <select1 id="cmb_iptgoodflag" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/goodflag" class="combo_default" appearance="minimal" style="left:107px; top:118px; width:155px; height:19px; ">
- <choices>
- <item>
- <label>의료비품</label>
- <value>U</value>
- </item>
- <item>
- <label>의료소모품</label>
- <value>Y</value>
- </item>
- <item>
- <label>공급실물품</label>
- <value>T</value>
- </item>
- <item>
- <label>일반소모품</label>
- <value>Z</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd", "전체", "", "above");
- cmb_mdlcd.value='';
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="search_name" style="left:18px; top:117px; width:91px; height:17px; ">물품구분 :</caption>
- <button id="btn_barcd" class="btn2_letter6" style="left:80px; top:55px; width:86px; height:19px; ">
- <caption>바코드 입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/temp/barcdinfo/barcd");
- model.setFocus("ipt_barcdinfo");
- ]]>
- </script>
- </button>
- <input id="ipt_barcdinfo" ref="/root/temp/barcdinfo/barcd" visibility="visible" style="left:5px; top:540px; width:260px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13"){
-
- var SPath1 = "/root/send/search/";
- var SPath2 = "/root/main/list/wininputinfo/iptwininputinfo/iptwininput/";
- var DPath = "/root/send/ipt_search/";
- var DPath2 = "/root/send/goodcdinfo/";
- var valichkflag, inputyn;
- var barcdinfo = ipt_barcdinfo.currentText;
- model.setValue(SPath2 + "goodflag" , barcdinfo.substr(0, 1));
- model.setValue(SPath2 + "goodcd" , barcdinfo.substr(0, 9));
- model.setValue(SPath2 + "allsizespecid" , barcdinfo.substr(9, 3));
- model.resetInstanceNode("/root/send/ipt_search");
-
- model.setValue( DPath + "rctpdisbursedt" , getCurrentDate());
- model.setValue( DPath + "instcd" , model.getValue( SPath1 + "instcd"));
- model.setValue( DPath + "goodflag" , model.getValue( SPath2 + "goodcd").substr(0, 1));
- model.setValue( DPath + "goodcd" , model.getValue( SPath2 + "goodcd"));
- model.setValue( DPath + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
- btn_iptsearch.dispatch("DOMActivate");
- model.setValue( DPath2 + "rctpdisbursedt" , getCurrentDate());
- model.setValue( DPath2 + "instcd" , model.getValue( SPath1 + "instcd"));
- model.setValue( DPath2 + "goodflag" , model.getValue( SPath2 + "goodflag").getTrim());
- model.setValue( DPath2 + "goodcd" , model.getValue( SPath2 + "goodcd"));
- model.setValue( DPath2 + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
- var valichkflag = model.getValue("/root/main/list/wininputinfo/iptwininputinfo/iptvalichkflag/valichkflag");
- if (valichkflag == "1"){
- btn_search.dispatch("DOMActivate");
- fInputData();
- }
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptnm" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/reqdeptnm" class="output_search" appearance="input" style="left:107px; top:172px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm.value.length == 0)
- ipt_reqdeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_reqdeptnm.value, "", "reqdeptcd,reqdeptnm",
- ipt_reqdeptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_windeptcd" class="icon_search" style="left:251px; top:145px; 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();
- btn_iptsearch.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptcd" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/reqdeptcd" class="input_fix" maxlength="10" appearance="input" style="left:107px; top:145px; width:131px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0){
- ipt_reqdeptnm.value = "";
- }else{
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_reqdeptcd.value, "", "reqdeptcd,reqdeptnm", ipt_reqdeptcd, "SPRPZ00200", "","");
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <caption id="cap_reqdeptcd" class="search_name" style="left:18px; top:145px; width:91px; height:17px; ">부서코드 :</caption>
- <caption id="caption24" class="search_name" style="left:18px; top:172px; width:83px; height:17px; ">부 서 명 :</caption>
- <input id="ipt_iptadjtqty" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/adjtqty" class="input_search" format="#,###" style="left:137px; top:410px; width:125px; height:19px; text-align:right; "/>
- <caption id="caption25" class="search_name" style="left:18px; top:410px; width:111px; height:17px; ">조정 수량 :</caption>
- <caption id="caption26" class="search_name" style="left:18px; top:435px; width:115px; height:17px; ">단 가 :</caption>
- <input id="ipt_iptgoodunitcost" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/goodunitcost" class="input_search" format="#,###" style="left:137px; top:435px; width:125px; height:19px; text-align:right; "/>
- <caption id="caption27" class="search_name" style="left:18px; top:460px; width:111px; height:17px; ">금 액 :</caption>
- <input id="ipt_plceordamt" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/plceordamt" class="input_search" format="#,###" style="left:137px; top:460px; width:125px; height:19px; text-align:right; "/>
- <input id="ipt_iptrctpdisbursedt" ref="/root/main/list/wininputinfo/iptwininputinfo/iptwininput/rctpdisbursedt" class="input_default" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:107px; top:90px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_iptsearch.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_iptrctpdisbursedt" class="search_name" style="left:18px; top:90px; width:91px; height:17px; ">수불일자 :</caption>
- </group>
- <group id="grp_main" style="left:280px; top:0px; width:900px; height:590px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">입고 내역</caption>
- <button id="button3" class="icon_pre_month" style="left:100px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataPartToggle(1);
- ]]>
- </script>
- </button>
- <button id="button5" class="icon_next_month" style="left:120px; top:15px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataPartToggle(0);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:34px; x2:900px; y2:34px; "/>
- <datagrid id="grd_wininputlist" nodeset="/root/main/list/wininputinfo/wininputinfo/wininputlist" class="datagrid3" caption="불출일자^기관코드^물품구분^요청부서코드^요청부서명^물품코드^물품코드^물품명^규격^모델^제조원^주거래처^보조거래처^재고량^수불수량^조정수량^단가^금액^입출구분^구 불출일자^구 요청부서" colsep="^" colwidth="96, 2, 2, 103, 123, 121, 56, 331, 145, 143, 136, 131, 132, 80, 80, 80, 80, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:900px; height:550px; font-weight:normal; text-align:center; ">
- <col ref="rctpdisbursedt" type="inputdate" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
- <col ref="reqdeptcd" type="inputbutton" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodcd" type="inputbutton" style="text-align:center; "/>
- <col ref="allsizespecid" type="inputbutton" style="text-align:center; padding-left:10; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="allsizespecidnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col ref="maincustnm" style="text-align:left; padding-left:10; "/>
- <col ref="subcustnm" style="text-align:left; padding:10; "/>
- <col ref="totstocqty" format="#,###" style="text-align:right; "/>
- <col ref="rctpdisburseqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="adjtqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="plceordamt" format="#,###" style="text-align:right; "/>
- <col ref="ioflag" visibility="hidden" style="text-align:center; "/>
- <col ref="oldrctpdisbursedt" visibility="hidden" style="text-align:center; "/>
- <col ref="oldreqdeptcd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- alert("onbuttonclick");
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- alert("oncolchanged");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-valid">
- <![CDATA[
- alert("xforms-valid");
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn2_letter2" style="left:845px; top:7px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_wininputlist.fixedRows ; i < grd_wininputlist.rows ; i++){
- if (grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("rctpdisbursedt")) == ""){
- messageBox( i+"번째"+ " 불출 일자가 입력되지","E007");
- return;
- }
- if (grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("reqdeptcd")) == ""){
- messageBox( i+"번째"+ " 요청 부서가 입력되지","E007");
- return;
- }
- if (grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("goodcd")) == ""){
- messageBox( i+"번째"+ " 물품 코드가 입력되지","E007");
- return;
- }
- if (grd_wininputlist.valueMatrix(i, grd_wininputlist.colRef("allsizespecid")) == ""){
- messageBox( i+"번째"+ " 규격코드가 입력되지","E007");
- return;
- }
- }
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- var updtdata = getGridUpdateData(grd_wininputlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/save/iptwininput", updtdata);
- submit("TXRSG06311");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter2" style="left:795px; top:7px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_wininputlist.rowStatus(grd_wininputlist.row) = 4;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:735px; top:7px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_wininputlist.addRow();
- grd_wininputlist.rowStatus(grd_wininputlist.row) = 1;
- ]]>
- </script>
- </button>
- </group>
- </case>
- <case id="cse_deliveinput">
- <datagrid id="grd_deliveinputlist" nodeset="/root/main/list/deliveinputinfo/deliveinputlist" class="datagrid1" caption="Chk^SEQ^기관^물품구분^물품코드^^물품명^규격^모델^주거래처^주거래처명^보조거래처^보조거래처명^조정량^총 재고량^포장구성^환산량^재고환산^발주량^구매단가^구매금액^단위^접수 수량^승인수량^청구 단위" colsep="^" colwidth="35, 42, 37, 38, 70, 25, 186, 90, 60, 70, 130, 37, 37, 55, 60, 100, 60, 64, 73, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:35px; width:1185px; height:545px; font-weight:normal; text-align:center; ">
- <col checkvalue="Y,N" ref="purcaprvyn" type="checkbox"/>
- <col ref="rowcnt" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:center; "/>
- <col ref="maincustlastsuplplcenm" style="text-align:left; "/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="suppcustcdnm" visibility="hidden"/>
- <col ref="adjtqty" format="#,###" style="text-align:right; "/>
- <col ref="totstocqty" format="#,###" style="text-align:right; "/>
- <col ref="constunit"/>
- <col ref="exchqty" format="#,###" style="text-align:right; "/>
- <col ref="totexchstocqty" format="#,###" style="text-align:right; "/>
- <col ref="plceordqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="plceordamt" format="#,###" style="text-align:right; "/>
- <col ref="requnit" visibility="hidden"/>
- <col ref="acptqty" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodreq.col == grd_goodreq.colRef("adjtqty") ) {
-
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/aprvyn") == "Y" )
- {
- grd_goodreq.endEditCell();
- grd_goodreq.rowStatus(grd_goodreq.row) = "0"
- messageBox("승인 되었을 경우 청구량을 조정 " ,"E001");
- }
-
- /*
- [2008.01.26 HBH] 접수된 상태에서 조정수량을 변경하면 DB에 저장이 안된다.
- 저장될때 조건처럼 이전 접수여부를 N로 셋팅 .....꽁수다 */
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/preacptflag") == "Y" &&
- model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "Y" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/preacptflag","N");
- }
-
- } // end edit adjtqty
- 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)+ "]/purcaprvyn") == "Y") )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag",
- model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/preacptflag"));
-
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/purcaprvyn",
- model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/preacptflag"));
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "2")grd_goodreq.rowStatus(grd_goodreq.row) = "0";
- messageBox("청구 접수가 발주승인 되었으므로 접수상태를 취소" ,"E001");
- }
- else if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "Y")
- {
- if((model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/adjtqty") == 0) ||
- (model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/adjtqty").length == 0))
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/adjtqty",model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqqty"));
- }
-
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "0")grd_goodreq.rowStatus(grd_goodreq.row) = "2"
-
- // 승인권자이면 승인 column check 한다.
- if(model.getValue("/root/init/reqflagpurcarth/reqflagpurcarthlist/purcarthyn") == "Y")
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/purcaprvyn","Y");
- }
- }
- else if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "N")
- {
- // [20090411] YYJ 조정 접수 후 접수를 풀때 0으로 되는 부분 막는다.
- // model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/adjtqty","0");
-
- if(grd_goodreq.rowStatus(grd_goodreq.row) == "0")grd_goodreq.rowStatus(grd_goodreq.row) = "2"
-
- // 승인권자이면 승인 column check 한다.
- if (model.getValue("/root/init/reqflagpurcarth/reqflagpurcarthlist/purcarthyn") == "Y")
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/purcaprvyn","N");
- }
-
- }
- } // end acptflag 구매팀 접수 구분
- else if(grd_goodreq.col == grd_goodreq.colRef("purcaprvyn") )
- {
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "N" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/purcaprvyn","N");
- messageBox("청구 접수이전에 승인을 하실수 " ,"E001");
- }
- else if(grd_goodreq.rowStatus(grd_goodreq.row) == "0")grd_goodreq.rowStatus(grd_goodreq.row) = "2";
- if(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/purcaprvyn") == "N" ){
- grd_goodreq.rowStatus(grd_goodreq.row) = 0;
- }
- }// end purcaprvyn 구매 승인관리
- model.recalculate();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_goodreq.col == grd_goodreq.colRef("purcaprvyn")
- || grd_goodreq.col == grd_goodreq.colRef("plceordqty")){
- return;
- }
- var tPath ="/root/send/goodreqinfo" ;
- var sPath ="/root/send/gooddetail" ;
- // 청구 상세 내역에서 파라미터 정보
- model.setValue(tPath+"/reqflag" , model.getValue(sPath+"/reqflag" ));
- model.setValue(tPath+"/instcd" , model.getValue(sPath+"/instcd" ));
- model.setValue(tPath+"/purcflag" , model.getValue(sPath+"/purcflag" ));
- model.setValue(tPath+"/workflag" , model.getValue(sPath+"/workflag" ));
- model.setValue(tPath+"/acptfrdd" , model.getValue(sPath+"/acptfrdd" ));
- model.setValue(tPath+"/acpttodd" , model.getValue(sPath+"/acpttodd" ));
- model.setValue(tPath+"/maincustlastsuplplce" , model.getValue(sPath+"/maincustlastsuplplce" ));
- model.setValue(tPath+"/reqdeptcd" , model.getValue(sPath+"/reqdeptcd" ));
- model.setValue(tPath+"/suppcustcd" , model.getValue(sPath+"/suppcustcd" ));
- model.setValue(tPath+"/jobpsnyn" , model.getValue(sPath+"/jobpsnyn" ));
- model.setValue(tPath+"/jobpsn" , model.getValue(sPath+"/jobpsn" ));
- model.setValue(tPath+"/goodcd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("goodcd" )));
- model.setValue(tPath+"/allsizespecid" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("allsizespecid")));
- // 청구 상세 내역에서 마스터 정보
- model.setValue(tPath +"/goodflag" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("goodflag" )));
- model.setValue(tPath +"/goodnm" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("goodnm" )));
- model.setValue(tPath +"/goodspec" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("goodspec" )));
- model.setValue(tPath +"/requnit" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("requnit" )));
- model.setValue(tPath +"/constunit" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("constunit" )));
- model.setValue(tPath +"/goodunitcost" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("goodunitcost" )));
- model.setValue(tPath +"/acptqty" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptqty" )));
- model.setValue(tPath +"/totstocqty" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("totstocqty" )));
- setParameter("SMRSR01212_goodreqinfo", getNodeListCSV(model.instances(0).selectNodes("/root/send/goodreqinfo")) );
- modal("SMRSR01213");
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:10px; top:6px; width:120px; height:13px; ">출고내역 등록</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:29px; x2:1185px; y2:29px; "/>
- <input id="ipt_purcdmnddd" ref="/root/init/purcdmnddd" class="input_s_essential" inputtype="date" style="left:799px; top:5px; width:107px; height:19px; "/>
- <caption id="caption5" style="left:735px; top:5px; width:67px; height:19px; font-weight:bold; vertical-align:middle; ">발주일자 :</caption>
- <input id="input1" ref="/root/init/purcdmnddd" class="input_s_essential" inputtype="date" style="left:925px; top:5px; width:107px; height:19px; "/>
- <caption id="caption9" style="left:910px; top:5px; width:15px; height:19px; font-weight:bold; vertical-align:middle; ">~</caption>
- </case>
- <case id="cse_stocksum">
- <caption id="caption2" class="tit_2" style="left:10px; top:6px; width:135px; height:13px; ">물품 재고 내역</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:24px; x2:1185px; y2:24px; "/>
- <datagrid id="grd_stocksumlist" nodeset="/root/main/list/stocksuminfo/stocksumlist" class="datagrid3" caption="실사년월^기관코드^물품구분^작업구분^물품코드^물품코드^물품명^규격^모델^제조원^주거래처명^보조거래처명^입고수량^입고조정^출고수량^출고조정^실사수량^재고수량" colsep="^" colwidth="3, 1, 2, 69, 80, 25, 285, 160, 130, 100, 100, 100, 64, 69, 64, 66, 69, 73" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:30px; width:1185px; height:540px; font-weight:normal; text-align:center; ">
- <col ref="jobyymm" visibility="hidden" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
- <col ref="ioflag" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="allsizespecidnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col ref="maincustnm" style="text-align:left; padding-left:10; "/>
- <col ref="subcustnm" style="text-align:left; padding-left:10; "/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_rctpdisburselist.col == grd_rctpdisburselist.colRef("chk")){
- var chk;
- chk = grd_rctpdisburselist.valueMatrix(grd_rctpdisburselist.row, grd_rctpdisburselist.colRef("chk"));
- if (chk == "Y"){
- grd_rctpdisburselist.rowStatus(grd_rctpdisburselist.row) = 1;
- }else{
- grd_rctpdisburselist.rowStatus(grd_rctpdisburselist.row) = 0;
- }
-
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_rctpdisburse" class="btn_sw" group="tab" selected="true" style="left:0px; top:87px; width:144px; height:22px; ">
- <caption>수불내역 조회</caption>
- <toggle case="cse_rctpdisburse" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="btn_wininput" class="btn_sw" group="tab" style="left:143px; top:87px; width:125px; height:22px; ">
- <caption>입고내역 등록</caption>
- <toggle case="cse_wininput" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="btn_deliveinput" class="btn_sw" group="tab" style="left:269px; top:87px; width:144px; height:22px; ">
- <caption>출고내역 등록</caption>
- <toggle case="cse_deliveinput" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="btn_stocksum" class="btn_sw" group="tab" style="left:412px; top:87px; width:125px; height:22px; ">
- <caption>물품 재고내역</caption>
- <toggle case="cse_stocksum" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|