123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830 |
- <?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>
- <stokasetcnfminfo>
- <stokasetcnfmlist/>
- <inputyninfo>
- <inputyn/>
- </inputyninfo>
- </stokasetcnfminfo>
- <iptstokasetcnfminfo>
- <iptstokasetcnfm>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <allsizespecidnm/>
- <goodmodel/>
- <totstocqty/>
- <cnfmstockqty/>
- <inputyn/>
- <goodflag>Y</goodflag>
- </iptstokasetcnfm>
- <iptvalichkflag>
- <valichkflag/>
- </iptvalichkflag>
- </iptstokasetcnfminfo>
- <tmpstokasetcnfminfo>
- <tmpstokasetcnfmlist/>
- </tmpstokasetcnfminfo>
- <inputyninfo>
- <inputyndesc/>
- </inputyninfo>
- </list>
- </main>
- <send>
- <search>
- <execyymm/>
- <instcd/>
- <goodflag>Y</goodflag>
- <lrgcd/>
- <mdlcd/>
- <goodcd/>
- <goodnm/>
- <jobflag>R</jobflag>
- <purcflag/>
- <stocmngtflag/>
- </search>
- <ipt_search>
- <execyymm/>
- <instcd/>
- <goodflag/>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <allsizespecidnm/>
- <purcflag/>
- <stocmngtflag/>
- </ipt_search>
- <stokasetcnfmlist/>
- <iptstokasetcnfm/>
- <goodcdinfo>
- <execyymm/>
- <instcd/>
- <goodflag/>
- <goodcd/>
- <allsizespecid/>
- <jobflag>I</jobflag>
- <inputyn>N</inputyn>
- <purcflag/>
- <stocmngtflag/>
- </goodcdinfo>
- <popuppara>
- <instcd/>
- <goodflag/>
- <goodcd/>
- <allsizespecid/>
- </popuppara>
- </send>
- <save>
- <iptstokasetcnfm>
- <goodcd/>
- <goodnm/>
- <allsizespecid/>
- <allsizespecidnm/>
- <goodmodel/>
- <totstocqty/>
- <cnfmstockqty/>
- </iptstokasetcnfm>
- </save>
- <init>
- </init>
- <temp>
- <rstinfo>
- <allsizespecid/>
- <allsizespecidnm/>
- </rstinfo>
- <inputyninfo/>
- <barcdinfo>
- <barcd/>
- </barcdinfo>
- </temp>
- </root>
- </instance>
- <submission id="TRRSG06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/stokasetcnfminfo"/>
- <submission id="TRRSG06103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/tmpstokasetcnfminfo"/>
- <submission id="TRRSG06104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/tmpstokasetcnfminfo"/>
- <submission id="TXRSG06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iptstokasetcnfm" resultref="/root/temp"/>
- <submission id="TXRSG06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stokasetcnfmlist" resultref="/root/temp"/>
- <submission id="TRRSG06105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ipt_search" resultref="/root/main/list/iptstokasetcnfminfo"/>
- </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";
-
- grp_button.attribute("left" ) = "505";
-
- lin_main.attribute("x2" ) = "905";
- grd_stokasetcnfmlist.attribute("width")= "905";
- grp_main.refresh();
- break;
- case 1 :
- // 메인 Grup
- grp_main.attribute("left" ) = "0";
- grp_main.attribute("width" ) = "1191";
-
- grp_button.attribute("left" ) = "790";
- lin_main.attribute("x2" ) = "1191";
- grd_stokasetcnfmlist.attribute("width")= "1191";
- grp_main.refresh();
- break;
- }
- }
- function fInputData(){
- for (var i=grd_stokasetcnfmlist.fixedRows; i<grd_stokasetcnfmlist.rows; i++){
-
- if ( grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("goodcd")) == model.getValue(ipt_goodcd.attribute("ref"))
- && grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("allsizespecid")) == model.getValue(ipt_allsizespecid.attribute("ref"))){
- messageBox("중복 입력된 데이타 ","I009");
- return;
- }
- }
- submit("TRRSG06104");
- inputyn = model.getValue("/root/main/list/tmpstokasetcnfminfo/tmpstokasetcnfmlist/inputyn");
- if (inputyn == "N"){
- messageBox("이미 입력된 데이타 ","I009");
- return;
- }
- submit("TRRSG06105");
- var valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/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("TRRSG06103");
- grd_stokasetcnfmlist.addRow();
- var Path = "/root/main/list/tmpstokasetcnfminfo/tmpstokasetcnfmlist/";
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk")) = "Y";
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("execyymm")) = model.getValue(Path+"execyymm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("instcd")) = model.getValue(Path+"instcd");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodflag")) = model.getValue(Path+"goodflag");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodcd")) = model.getValue(Path+"goodcd");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("allsizespecid")) = model.getValue(Path+"allsizespecid");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodnm")) = model.getValue(Path+"goodnm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("allsizespecidnm")) = model.getValue(Path+"allsizespecidnm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodmodel")) = model.getValue(Path+"goodmodel");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("prodcmpynm")) = model.getValue(Path+"prodcmpynm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("maincustnm")) = model.getValue(Path+"maincustnm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("subcustnm")) = model.getValue(Path+"subcustnm");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("totstocqty")) = model.getValue(Path+"totstocqty");
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("cnfmstockqty")) = model.getValue(Path+"cnfmstockqty");
- model.refresh();
- }
-
- function fInitialize()
- {
- misfComboComCdListMulti("R0069,R0111,Z0007","cmb_stocmngtflag,cmb_purcflag,cmb_instcd");
- model.setValue(ipt_execyymm.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/stokasetcnfminfo");
- model.setFocus("ipt_barcdinfo");
- 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_input" style="left:0px; top:85px; width:278px; height:620px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:45px; width:270px; height:330px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">실사량 입력</caption>
- <line id="line1" 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[
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var save, status;
- var mPath = "/root/send/search/";
- var dPath = "/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/";
- var execyymm = model.getValue(mPath+"execyymm" );
- var instcd = model.getValue(mPath+"instcd" );
- 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 cnfmstockqty = model.getValue(dPath+"cnfmstockqty" );
- var inputyn = model.getValue(dPath+"inputyn" );
- model.resetInstanceNode("/root/send/iptstokasetcnfm");
-
- if (inputyn == "Y"){
- status = "i";
- }else{
- status = "u";
- }
- var save = "m▦execyymm▦instcd▦goodflag▦goodcd▦allsizespecid▦goodmodel▦totstocqty▦cnfmstockqty▦inputyn▩";
- save += status + "▦";
- save += execyymm.substr(0, 6) + "▦";
- save += instcd + "▦";
- save += goodflag + "▦";
- save += goodcd + "▦";
- save += allsizespecid + "▦";
- save += goodmodel + "▦";
- save += totstocqty + "▦";
- save += cnfmstockqty + "▦";
- save += inputyn + "▩";
- model.setValue("/root/send/iptstokasetcnfm" , save);
- submit("TXRSG06101");
- //model.refresh();
- //model.resetInstanceNode("/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm");
- btn_iptsearch.dispatch("DOMActivate");
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <button id="btn_iptgoodcd" class="icon_search" style="left:251px; top:119px; 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="caption3" class="search_name" style="left:18px; top:119px; width:81px; height:17px; ">물품코드 :</caption>
- <input id="ipt_iptgoodnm" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodnm" class="output_search" style="left:107px; top:150px; width:155px; height:19px; "/>
- <input id="ipt_iptgoodcd" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodcd" class="input_search" appearance="input" style="left:107px; top:119px; 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="caption5" class="search_name" style="left:18px; top:150px; 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[
- // if(!isRequiredControls("cmb_iptgoodflag")) return;
- var SPath1 = "/root/send/search/";
- var SPath2 = "/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/";
- 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 + "execyymm" , model.getValue( SPath1 + "execyymm").substr(0, 6));
- model.setValue( DPath + "instcd" , model.getValue( SPath1 + "instcd"));
- 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 + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
- model.setValue( DPath + "allsizespecidnm" , model.getValue( SPath2 + "allsizespecidnm"));
- submit("TRRSG06105");
- inputyn = model.getValue("/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/inputyn");
- valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/iptvalichkflag/valichkflag");
- if (valichkflag == "0"){
- messageBox("해당 데이타가 ","E014");
- model.setValue( ipt_iptgoodcd.attribute("ref") , "");
- }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="caption9" class="search_name" style="left:18px; top:210px; width:95px; height:17px; ">규 격 명 :</caption>
- <input id="ipt_iptallsizespecidnm" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/allsizespecidnm" class="output_search" style="left:107px; top:210px; width:155px; height:19px; "/>
- <input id="ipt_iptgoodmodel" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodmodel" class="output_search" style="left:107px; top:240px; 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="caption11" class="search_name" style="left:18px; top:240px; width:95px; height:17px; ">모 델 :</caption>
- <caption id="caption12" class="search_name" style="left:18px; top:275px; width:104px; height:17px; ">현재고 수량 :</caption>
- <input id="ipt_ipttotstocqty" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/totstocqty" class="output_search" disabled="false" format="#,###" style="left:137px; top:275px; 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="caption13" class="search_name" style="left:18px; top:310px; width:106px; height:17px; ">실사 수량 :</caption>
- <input id="ipt_iptcnfmstockqty" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/cnfmstockqty" class="input_search" format="#,###" style="left:137px; top:310px; width:125px; height:19px; text-align:right; "/>
- <input id="ipt_inputyn" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/inputyn" visibility="hidden" style="left:19px; top:55px; width:55px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:18px; top:180px; width:106px; height:17px; ">규격코드 :</caption>
- <input id="ipt_iptallsizespecid" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/allsizespecid" class="input_search" style="left:107px; top:180px; width:131px; height:19px; "/>
- <button id="btn_iptallsizespecid" class="icon_search" style="left:251px; top:180px; 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/iptstokasetcnfminfo/iptstokasetcnfm/" ;
- // 규격코드 정보 popup에 Parameter값을 Setting
- model.setValue(dPath+"instcd" , model.getValue(sPath+"instcd" ));
- model.setValue(dPath+"goodflag" , model.getValue(sPath+"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:345px; width:255px; height:17px; "/>
- <select1 id="cmb_iptgoodflag" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodflag" class="combo_default" appearance="minimal" style="left:107px; top:88px; width:155px; height:19px; ">
- <choices>
- <item>
- <label>의료비품</label>
- <value>U</value>
- </item>
- <item>
- <label>약품</label>
- <value>P</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="caption2" class="search_name" style="left:18px; top:87px; width:81px; 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:385px; 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/iptstokasetcnfminfo/iptstokasetcnfm/";
- var DPath = "/root/send/ipt_search/";
- var DPath2 = "/root/send/goodcdinfo/";
- var valichkflag, inputyn;
- var barcdinfo = ipt_barcdinfo.currentText;
-
- model.setValue(cmb_iptgoodflag.attribute("ref") , barcdinfo.substr(0, 1));
- cmb_iptgoodflag.refresh();
- 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 + "execyymm" , model.getValue( SPath1 + "execyymm"));
- 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 + "execyymm" , model.getValue( SPath1 + "execyymm").substr(0, 6));
- 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"));
- /*if (inputyn == "Y"){
- cap_inputyndesc.value = "※ 추가 할 수 있는 데이타 입니다.";
- }else if (inputyn == "N"){
- cap_inputyndesc.value = "※ 수정 할 수 있는 데이타 입니다.";
- }else{
- cap_inputyndesc.value = "";
- }*/
- var valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/iptvalichkflag/valichkflag");
- if (valichkflag == "1"){
- fInputData();
- }
- }
-
- ]]>
- </script>
- </input>
- </group>
- <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[
- model.resetInstanceNode("/root/main/list/stokasetcnfminfo/stokasetcnfmlist");
- model.setValue("/root/send/search/execyymm", model.getValue("/root/send/search/execyymm").substr(0, 6));
-
- submit("TRRSG06102");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:130px; 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:344px; top:10px; width:161px; 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:250px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:344px; top:36px; width:161px; 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:619px; top:36px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:250px; top:36px; width:88px; height:17px; ">대 분 류 :</caption>
- <caption id="caption8" class="search_name" style="left:523px; top:36px; width:88px; height:17px; ">중 분 류 :</caption>
- <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="output_search" style="left:740px; top:10px; width:160px; height:19px; "/>
- <button id="btn_goodcd" class="icon_search" style="left:721px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_searchgoodcd,"","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>
- <input id="ipt_searchgoodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:619px; top:10px; width:95px; height:19px; "/>
- <caption id="cap_goodcd" class="search_name" style="left:525px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
- <input id="ipt_execyymm" ref="/root/send/search/execyymm" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:104px; top:36px; width:130px; 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>
- </group>
- <group id="grp_main" style="left:280px; top:85px; width:910px; height:625px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:13px; ">실사량 조정</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="lin_main" class="line_1" style="x1:0px; y1:34px; x2:903px; y2:34px; "/>
- <group id="grp_button" style="left:505px; top:2px; width:390px; height:30px; ">
- <button id="button2" class="icon_search" style="left:110px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","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>
- <button id="btn_delrow" class="btn2_letter2" style="left:290px; top:5px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 4;
- grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk")) = "Y";
- ]]>
- </script>
- </button>
- <button id="button6" class="icon_search" style="left:205px; top:5px; 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/send/goodcdinfo/";
- // 규격코드 정보 popup에 Parameter값을 Setting
- model.setValue(dPath+"instcd" , model.getValue(sPath+"instcd" ));
- 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("/root/send/goodcdinfo/goodflag" , model.getValue("/root/temp/rstinfo/goodflag"));
- model.setValue(ipt_allsizespecid.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecid"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_allsizespecid" ref="/root/send/goodcdinfo/allsizespecid" style="left:130px; top:5px; width:70px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/send/goodcdinfo/goodcd" class="input_search" maxlength="10" appearance="input" style="left:5px; top:5px; width:100px; height:19px; "/>
- <button id="btn_save" class="btn2_letter2" style="left:340px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- for (i=grd_stokasetcnfmlist.fixedRows;i<grd_stokasetcnfmlist.rows;i++){
- if (grd_stokasetcnfmlist.rowStatus(i) != 4){
- if (grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("chk")) == "Y" ){
- grd_stokasetcnfmlist.rowStatus(i) = 1;
- }else{
- grd_stokasetcnfmlist.rowStatus(i) = 0;
- }
- }
- }
-
- var updtdata = getGridUpdateData(grd_stokasetcnfmlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/stokasetcnfmlist", updtdata);
- submit("TXRSG06102");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter2" style="left:240px; top:5px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var inputyn;
- if(!isRequiredControls("ipt_goodcd")) return;
- if(!isRequiredControls("ipt_allsizespecid")) return;
-
- model.setValue("/root/send/goodcdinfo/execyymm" , model.getValue(ipt_execyymm.attribute("ref")).substr(0, 6));
- model.setValue("/root/send/goodcdinfo/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/goodcdinfo/purcflag" , model.getValue(cmb_purcflag.attribute("ref")));
- model.setValue("/root/send/goodcdinfo/stocmngtflag" , model.getValue(cmb_stocmngtflag.attribute("ref")));
- fInputData();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_stokasetcnfmlist" nodeset="/root/main/list/stokasetcnfminfo/stokasetcnfmlist" class="datagrid3" caption="선택^실사년월^기관코드^물품구분^물품코드^물품코드^물품명^규격^모델^제조원^주거래처명^보조거래처명^현재고수량^실사수량" colsep="^" colwidth="37, 3, 1, 2, 80, 25, 285, 160, 130, 100, 100, 100, 69, 78" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:905px; height:570px; font-weight:normal; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:left; "/>
- <col ref="execyymm" 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="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 ref="totstocqty" format="#,###" style="text-align:right; "/>
- <col ref="cnfmstockqty" type="input" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_stokasetcnfmlist.col == grd_stokasetcnfmlist.colRef("chk")){
- var chk;
- chk = grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk"));
- if (chk == "Y"){
- grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 1;
- }else{
- grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 0;
- }
-
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </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>
|