123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>물품사용량관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ipgoinfo>
- <ipgolist>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <allsizespecidnm/>
- <goodmodel/>
- <deliveunit/>
- <prodcmpynm/>
- <custnm/>
- <prcpqty/>
- <prcpqty2/>
- <rtninqty/>
- <iodate/>
- <allsizespecid/>
- <suppdeptcd/>
- <custcd/>
- <iudgb/>
- <inflag/>
- <indate/>
- </ipgolist>
- </ipgoinfo>
- </main>
- <send>
- <iodate/>
- <custnm/>
- <prodcmpynm/>
- <goodcd/>
- <goodnm/>
- <totinqty/>
- <totrtninqty/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- <openerid>SMAGA01500</openerid>
- </send>
- <init>
- <baseinfo>
- <intiunit/>
- </baseinfo>
- </init>
- <hidden>
- <item/>
- </hidden>
- <cmb_info>
- <dpcminfo>
- <dpcmcust>
- <custnm/>
- <perchgr/>
- <cntctel/>
- <faxno/>
- <mpphontel/>
- <email/>
- <auttrsmflag/>
- <custcd/>
- <suppdeptcd/>
- <instcd/>
- <trsmtrid/>
- <useyn/>
- </dpcmcust>
- </dpcminfo>
- </cmb_info>
- </root>
- </instance>
- <submission id="TRAGA01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
- <submission id="TXAGA01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
-
- submit("TRAGA00101");
-
- model.setValue("/root/send/iodate", getCurrentDate());
-
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
- <submission id="TXAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:67px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1102px; y1:7px; x2:1102px; y2:59px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:1120px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/ipgoinfo/ipgolist");
- submit("TRAGA01501");
- var inqty = 0;
- var rtninqty = 0;
- for (var i = 1; i < datagrid1.rows; i++){
- inqty = parseFloat(inqty) + parseFloat(model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/prcpqty"));
- }
- model.setValue("/root/send/totinqty", inqty);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:12px; width:86px; height:17px; ">사용일자 :</caption>
- <input id="input1" ref="/root/send/iodate" navindex="1" inputtype="date" style="left:110px; top:11px; width:120px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:300px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
- <caption id="caption4" class="search_name" style="left:600px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
- <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:710px; top:11px; width:145px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:42px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption5" class="search_name" style="left:300px; top:42px; width:93px; height:17px; ">물 품 명 :</caption>
- <input id="input4" ref="/root/send/goodcd" navindex="4" style="left:110px; top:39px; width:120px; height:19px; "/>
- <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:395px; top:39px; width:145px; height:19px; "/>
- <button id="button9" class="btn3_letter4" style="left:1000px; top:40px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
- <caption>물품코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPAGA05100", "", "200", "200", "popup", "", "");
- ]]>
- </script>
- </button>
- <caption id="caption7" style="left:605px; top:45px; width:65px; height:20px; ">총사용량 :</caption>
- <output id="output1" ref="/root/send/totinqty" format="#,###" style="left:665px; top:45px; width:75px; height:19px; text-align:center; "/>
- <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:395px; top:11px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cmb_info/dpcminfo">
- <label ref="dpcmcust/custnm"/>
- <value ref="dpcmcust/custnm"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:3px; y1:79px; x2:1194px; y2:80px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="물품코드^물품명^규격^All Size^모델^단위^제조회사^거래처^사용량^처방사용량^반납량^사용일자^caption2^caption3^caption4^caption1^caption5^caption6" colsep="^" colwidth="92, 163, 122, 125, 105, 95, 132, 125, 74, 74, 79, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:82px; width:1191px; height:660px; ">
- <col ref="goodcd" style="text-align:left; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="allsizespecidnm" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col disabled="true" ref="deliveunit" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prodcmpynm" style="text-align:left; "/>
- <col ref="custnm" style="text-align:left; "/>
- <col ref="prcpqty" type="input" format="999999" style="text-align:right; "/>
- <col ref="prcpqty2" format="999999" style="text-align:right; "/>
- <col ref="rtninqty" type="input" format="999999" style="text-align:right; "/>
- <col ref="iodate" visibility="hidden"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="iudgb" visibility="hidden"/>
- <col ref="inflag"/>
- <col ref="indate"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- /*
- var scol = datagrid1.col;
- if (datagrid1.colRef("inqty") == scol){
- var irow = datagrid1.row;
- datagrid1.row = irow;
- datagrid1.col = datagrid1.colRef("rtninqty");
- datagrid1.dispatch("onentercell");
- datagrid1.editCell();
- datagrid1.refresh();
- }else{
- var irow = datagrid1.row + 1;
- if (irow <= datagrid1.rows){
- datagrid1.row = irow;
- datagrid1.col = datagrid1.colRef("inqty");
- datagrid1.dispatch("onentercell");
- datagrid1.editCell();
- datagrid1.refresh();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- var irow = datagrid1.row;
- datagrid1.row = irow;
- var scol = datagrid1.col;
- if (datagrid1.colRef("inqty") == scol){
- datagrid1.col = datagrid1.colRef("inqty");
- }else if (datagrid1.colRef("rtninqty") == scol){
- datagrid1.col = datagrid1.colRef("rtninqty");
- }
- datagrid1.dispatch("onentercell");
- datagrid1.editCell();
- datagrid1.refresh();
- */
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("","Q002")==6 ) {
-
- for (var i = 1; i < datagrid1.rows; i++){
- model.setValue("/root/main/ipgoinfo/ipgolist[" + i + "]/iodate", model.getValue("/root/send/iodate"));
- }
- datagrid1.refresh();
- var update = getGridUpdateData(datagrid1);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
- if (submit("TXAGA01501")){
- if (submit("TXAGA01101")){
- btn_sea.dispatch("DOMActivate");
- }
- }
- }
-
- }
- ]]>
- </script>
- </button>
- </group>
- <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:144px; height:14px; ">물품사용량관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|