123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>물품입고관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <hardcodeinfo/>
- </init>
- <main>
- <cond>
- <reqfromdd/>
- <reqtodd/>
- <purcflag>1</purcflag>
- <goodcd/>
- <goodnm/>
- <reqprid>0</reqprid>
- <endflag>N</endflag>
- <allsizespecid/>
- <deptflag>O</deptflag>
- <reqmthd/>
- <reqdeptcd/>
- <refflag/>
- </cond>
- <rsdhdemdinfo>
- <rsdhdemdlist>
- <reqdd/>
- <goodcd/>
- <allsizespecid/>
- <goodspec/>
- <goodnm/>
- <goodmodel/>
- <prodcmpynm/>
- <prcpunit/>
- <reqqty/>
- <deliveqty/>
- <chkflag/>
- <winqty/>
- <opinflag/>
- <cmt/>
- <goodflag/>
- <reqmthd/>
- <reqdeptcd/>
- <deliveno/>
- <deliveseqno/>
- <reqno/>
- <reqseqno/>
- <reqflag/>
- <bfwinqty/>
- <opprocflag/>
- <prcpexchqty/>
- </rsdhdemdlist>
- </rsdhdemdinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <temp>
- <refflag/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMNP04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsdhdemdinfo"/>
- <submission id="TXMNP04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdemdinfo"/>
- <submission id="TXMNP04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdemdinfo"/>
- <submission id="TRMNP04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcodeinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/opanstweb/js/SMMNP04900.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,753;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:248px; height:14px; ">물품입고관리</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:18px; width:1195px; height:735px; ">
- <group id="group2" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:0px; top:9px; width:86px; height:17px; ">청구일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1110px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:52px; "/>
- <caption id="caption8" class="search_n_b" style="left:186px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_reqfromdd" ref="/root/main/cond/reqfromdd" class="input_s_essential" inputtype="date" style="left:90px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_reqtodd" ref="/root/main/cond/reqtodd" class="input_s_essential" inputtype="date" style="left:203px; top:8px; width:90px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:630px; top:36px; width:86px; height:17px; ">물품조회 :</caption>
- <button id="btn_excelsave" class="btn1_letter4" style="left:1110px; top:32px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pGrid = "";
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if( model.getValue("/root/main/cond/purcflag") == "1" ) {//구매
- if (fileName != ""){
- grd_purclist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- //pGrid = "grd_purclist";
- }else if( model.getValue("/root/main/cond/purcflag") == "2" ) {//수탁
- if (fileName != ""){
- grd_trustlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- //pGrid = "grd_trustlist";
- }else if( model.getValue("/root/main/cond/purcflag") == "3" ) {//가납
- if (fileName != ""){
- grd_depositlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- //pGrid = "grd_depositlist";
- }else if( model.getValue("/root/main/cond/purcflag") == "N" ) {//신규
- if (fileName != ""){
- grd_newlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- //pGrid = "grd_newlist";
- }
-
- //fSaveExcel(pGrid);
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:720px; top:35px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //model.setValue("/root/temp/refflag", "2");
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_goodsearch" class="icon_search" style="left:804px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPopup();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:825px; top:35px; width:165px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //model.setValue("/root/temp/refflag", "1");
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:315px; top:35px; width:89px; height:17px; ">집계구분 :</caption>
- <select1 id="rdo_reqprid" ref="/root/main/cond/reqprid" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:405px; top:35px; width:215px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>일집계</label>
- <value>1</value>
- </item>
- <item>
- <label>월집계</label>
- <value>4</value>
- </item>
- <item>
- <label>주집계</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:0px; top:35px; width:89px; height:17px; ">입고구분 :</caption>
- <select1 id="rdo_endflag" ref="/root/main/cond/endflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:90px; top:35px; width:215px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>입고</label>
- <value>Y</value>
- </item>
- <!--item>
- <label>부분입고</label>
- <value>S</value>
- </item -->
- <item>
- <label>미입고</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:315px; top:9px; width:89px; height:17px; ">조회구분 :</caption>
- <select1 id="radio1" ref="/root/main/cond/refflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:405px; top:8px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>청구</label>
- <value>1</value>
- </item>
- <item>
- <label>처방</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:855px; top:9px; width:89px; height:17px; ">부서구분 :</caption>
- <select1 id="radio2" ref="/root/main/cond/deptflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:945px; top:8px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수술</label>
- <value>O</value>
- </item>
- <item>
- <label>마취</label>
- <value>A</value>
- </item>
- <item>
- <label>회복</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/reqdata/cdgrupid", "093");//퇴실장소
- model.makeValue("/root/send/reqdata/supcdid", "");//서브구분
- model.makeValue("/root/send/reqdata/cdid", model.getValue("/root/main/cond/deptflag"));//서브구분
- submit("TRMNP04903");
- model.setValue("/root/main/cond/reqdeptcd", model.getValue("/root/init/hardcodeinfo/cdnm"));
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn2_letter3" style="left:995px; top:35px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/goodcd", "");
- model.setValue("/root/main/cond/goodnm", "");
- model.setValue("/root/main/cond/allsizespecid", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:570px; top:9px; width:89px; height:17px; ">청구방법 :</caption>
- <select1 id="radio3" ref="/root/main/cond/reqmthd" appearance="full" cols="3" overflow="visible" style="left:660px; top:8px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>처방집계</label>
- <value>1</value>
- </item>
- <item>
- <label>일반청구</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_cncl" class="btn2_letter4" style="left:1059px; top:75px; width:64px; height:19px; ">
- <caption>입고취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCncl();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn2_letter2" visibility="hidden" style="left:780px; top:75px; width:42px; height:19px; ">
- <caption>확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCnfm();
- ]]>
- </script>
- </button>
- <button id="btn_purc" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>구 매</caption>
- <toggle case="opmain" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
- model.setValue("/root/main/cond/purcflag", "1");
- model.toggle("case1");
- btn_cncl.visible = true;
- //btn_cnfm.visible = true;
- btn_save.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_trust" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:60px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>수 탁</caption>
- <toggle case="opmain" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
- model.setValue("/root/main/cond/purcflag", "2");
- model.toggle("case2");
- btn_cncl.visible = true;
- //btn_cnfm.visible = true;
- btn_save.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_deposit" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:120px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>가 납</caption>
- <toggle case="opmain" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
- model.setValue("/root/main/cond/purcflag", "3");
- model.toggle("case3");
- btn_cncl.visible = true;
- //btn_cnfm.visible = true;
- btn_save.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:180px; top:75px; width:60px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>신 규</caption>
- <toggle case="opmain" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/rsdhdemdinfo/rsdhdemdlist");
- model.setValue("/root/main/cond/purcflag", "N");
- model.toggle("case4");
- btn_cncl.visible = false;
- //btn_cnfm.visible = false;
- btn_save.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:95px; width:1195px; height:630px; ">
- <case id="case1" style="left:0px; top:0px; width:1194px; height:629px; ">
- <datagrid id="grd_purclist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구
수량^구매
수량^^입고
수량^재고
반영^비고^^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
- <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
- <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:center; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" style="text-align:left; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="chkflag" type="checkbox"/>
- <col ref="winqty" type="input" style="text-align:right; "/>
- <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>반영</label>
- <value>Y</value>
- </item>
- <item>
- <label>일부반영</label>
- <value>S</value>
- </item>
- <item>
- <label>미반영</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="goodflag" style="text-align:right; "/>
- <col ref="reqmthd" style="text-align:right; "/>
- <col ref="reqdeptcd" style="text-align:right; "/>
- <col ref="deliveno" style="text-align:right; "/>
- <col ref="deliveseqno" style="text-align:right; "/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqseqno" style="text-align:right; "/>
- <col ref="reqflag" style="text-align:right; "/>
- <col ref="bfwinqty" style="text-align:right; "/>
- <col ref="opprocflag" style="text-align:right; "/>
- <col ref="prcpexchqty" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_purclist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") > "0" ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "true");
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/chkflag", "false");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
- </case>
- <case id="case2" selected="true" style="left:0px; top:0px; width:1194px; height:629px; ">
- <datagrid id="grd_trustlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구
수량^구매
수량^^입고
수량^재고
반영^비고^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
- <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
- <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:center; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" style="text-align:left; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="chkflag" type="checkbox"/>
- <col ref="winqty" type="input" style="text-align:right; "/>
- <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>반영</label>
- <value>Y</value>
- </item>
- <item>
- <label>일부반영</label>
- <value>S</value>
- </item>
- <item>
- <label>미반영</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="goodflag" style="text-align:right; "/>
- <col ref="reqmthd" style="text-align:right; "/>
- <col ref="reqdeptcd" style="text-align:right; "/>
- <col ref="deliveno" style="text-align:right; "/>
- <col ref="deliveseqno" style="text-align:right; "/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqseqno" style="text-align:right; "/>
- <col ref="reqflag" style="text-align:right; "/>
- <col ref="bfwinqty" style="text-align:right; "/>
- <col ref="opprocflag" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_trustlist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") > "0" ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "true");
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_trustlist.row+"]/chkflag", "false");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
- </case>
- <case id="case3" style="left:0px; top:0px; width:1194px; height:629px; ">
- <datagrid id="grd_depositlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^청구
수량^구매
수량^^입고
수량^재고
반영^비고^^^^^^^^" colsep="^" colwidth="80, 80, 37, 260, 110, 100, 95, 55, 45, 45, 35, 45, 55, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
- <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
- <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:center; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" style="text-align:left; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="chkflag" type="checkbox"/>
- <col ref="winqty" type="input" style="text-align:right; "/>
- <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>반영</label>
- <value>Y</value>
- </item>
- <item>
- <label>일부반영</label>
- <value>S</value>
- </item>
- <item>
- <label>미반영</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <col ref="goodflag" style="text-align:right; "/>
- <col ref="reqmthd" style="text-align:right; "/>
- <col ref="reqdeptcd" style="text-align:right; "/>
- <col ref="deliveno" style="text-align:right; "/>
- <col ref="deliveseqno" style="text-align:right; "/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqseqno" style="text-align:right; "/>
- <col ref="reqflag" style="text-align:right; "/>
- <col ref="bfwinqty" style="text-align:right; "/>
- <col ref="opprocflag" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_depositlist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") > "0" ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "true");
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_depositlist.row+"]/chkflag", "false");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
- </case>
- <case id="case4" style="left:0px; top:0px; width:1194px; height:629px; ">
- <datagrid id="grd_newlist" nodeset="/root/main/rsdhdemdinfo/rsdhdemdlist" class="datagrid2" backcoloralternate="transparent" caption="청구일자^물품코드^SIZE^물품명^규격^모델^제조원^단위^^입고
수량^^^^^^^^^^^^^" colsep="^" colwidth="90, 90, 40, 357, 135, 125, 120, 70, 40, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:7px; width:1194px; height:622px; ">
- <col ref="reqdd" format="yyyy-mm-dd" style="left:50px; top:23px; width:75px; height:23px; text-align:center; "/>
- <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="prodcmpynm" style="text-align:left; "/>
- <col ref="prcpunit" style="text-align:center; "/>
- <col ref="chkflag" type="checkbox"/>
- <col ref="winqty" type="input" style="text-align:right; background-color:#ccffcc; "/>
- <col disabled="true" ref="opinflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>반영</label>
- <value>Y</value>
- </item>
- <item>
- <label>일부반영</label>
- <value>S</value>
- </item>
- <item>
- <label>미반영</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" style="text-align:left; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="deliveqty" style="text-align:right; "/>
- <col ref="goodflag" style="text-align:right; "/>
- <col ref="reqmthd" style="text-align:right; "/>
- <col ref="reqdeptcd" style="text-align:right; "/>
- <col ref="deliveno" style="text-align:right; "/>
- <col ref="deliveseqno" style="text-align:right; "/>
- <col ref="reqno" style="text-align:right; "/>
- <col ref="reqseqno" style="text-align:right; "/>
- <col ref="reqflag" style="text-align:right; "/>
- <col ref="bfwinqty" style="text-align:right; "/>
- <col ref="opprocflag" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_newlist.gridToInstance();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") > "0" ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "true");
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") != model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_purclist.row+"]/bfwinqty") ) {
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "true");//이전수량과 틀릴때 체크
- }
- if( model.getValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/winqty") == "0" ) {//입고수량이 0일때 미체크
- model.setValue("/root/main/rsdhdemdinfo/rsdhdemdlist["+grd_newlist.row+"]/chkflag", "false");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:2px; x2:1194px; y2:2px; "/>
- </case>
- </switch>
- <button id="btn_save" class="btn2_letter4" style="left:1126px; top:75px; width:64px; height:19px; ">
- <caption>입고저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCnfm();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|