123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?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>
- <possinfo>
- <posslist>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <posscnt/>
- <possyymm/>
- <deptcd/>
- <ioflag/>
- <remark1/>
- <fstrgstrid/>
- <fstrgstrnm/>
- </posslist>
- <csrdeptlist/>
- </possinfo>
- <cond>
- <possyymm/>
- <deptcd/>
- </cond>
- <csrdeptlist/>
- </main>
- <send>
- <possyymm/>
- <deptcd/>
- <instcdnm/>
- <gubuncd>01</gubuncd>
- </send>
- <init>
- <csrdeptinfo/>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/possinfo"/>
- <submission id="TXMNG02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(ipt_possyymm.attribute("ref"), getCurrentDate().substr(0,6));
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
-
- fGetHardCodeInfo("/root/send/cdgrupid", "/root/init/csrdeptinfo", "160"); // 중앙공급실 부서코드 조회
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
- if (!isNull(userdutplcecd)) {
- cmb_deptcd.disabled = false;
- } else {
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- cmb_deptcd.disabled = true; //중앙공급실이 아닐 경우 부서선택 숨김
- }
-
- ipt_possyymm.refresh();
- cmb_deptcd.refresh();
- opt_instcdnm.refresh();
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- submit("TRMNG00402");
-
- fSearch();
- }
-
- function fSearch() {
- model.setValue("/root/send/possyymm", model.getValue(ipt_possyymm.attribute("ref")));
- model.setValue("/root/send/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
- model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
-
- submit("TRMNG02101");
-
- var ioflag;
- for(var i = grd_posslist.fixedRows; i < grd_posslist.rows; i++) {
- ioflag = grd_posslist.valueMatrix(i, grd_posslist.colRef("ioflag"));
-
- if(ioflag == "N") {
- grd_posslist.rowStatus(i) = "1";
- }
- }
- grd_posslist.mergecol(1)=false;
- grd_posslist.mergecol(2)=false;
- grd_posslist.mergecol(3)=false;
- grd_posslist.mergecol(4)=false;
- grd_posslist.mergecells="bycol";
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="500" guideline="1,801;2,546;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:775px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">보유량 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:775px; height:420px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">보유량관리</caption>
- <button id="btn_sav" class="btn5_letter2" style="left:731px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/posslist", getGridUpdateData(grd_posslist) );
-
- //alert(instance1.selectNodesXml("/root/send"));
- submit("TXMNG02101");
-
- fSearch();
- ]]>
- </script>
- </button>
- <col ref="posscnt" type="input"/>
- <col ref="posscnt" type="input"/>
- <datagrid id="grd_posslist" nodeset="/root/main/possinfo/posslist" caption="물품코드^품목명^보유량^관리자^비고^기관번호^년월^품목코드^부서코드^caption1^망순번" colsep="^" colwidth="0, 226, 74, 100, 337, 74, 100, 65, 76, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:775px; height:385px; ">
- <col ref="ioflag" visibility="hidden"/>
- <col ref="goodnm"/>
- <col ref="posscnt" type="input" visibility="visible" format="#,###"/>
- <col ref="fstrgstrnm" visibility="visible" ype="output"/>
- <col ref="remark1" type="input" visibility="visible"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="possyymm" visibility="hidden"/>
- <col ref="goodcd" type="hidden" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden" ype="output"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var remark1 = "";
- if(grd_posslist.col == grd_posslist.colRef("remark1") || grd_posslist.col == grd_posslist.colRef("posscnt") ) {
- remark1 = grd_posslist.valueMatrix(grd_posslist.row, grd_posslist.colRef("remark1"));
- for(var i = grd_posslist.fixedRows; i < grd_posslist.rows; i++) {
-
- if (grd_posslist.rowStatus(i) == "1" || grd_posslist.rowStatus(i) == "3" ) {
- grd_posslist.rowStatus(i) = "1";
- } else if (grd_posslist.rowStatus(i) == "2" || grd_posslist.rowStatus(i) == "0") {
- grd_posslist.rowStatus(i) = "2";
- }
- grd_posslist.valueMatrix(i, grd_posslist.colRef("remark1")) = remark1;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var row = grd_posslist.row;
- if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
- if(grd_posslist.col == grd_posslist.colRef("posscnt")) { //불출수량이나 미불출수량 엔터시
- if(grd_posslist.row + 1 < grd_posslist.rows) {
- grd_posslist.row = row + 1;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:1px; y1:26px; x2:775px; y2:25px; "/>
- <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>물품마스터</label>
- <value>01</value>
- </item>
- <item>
- <label>창고마스터</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:775px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="caption2" class="search_name" style="left:435px; top:30px; width:88px; height:17px; ">부 서 명 :</caption>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:290px; top:30px; width:67px; height:17px; ">년월:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:714px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_possyymm" ref="/root/main/cond/possyymm" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm" style="left:350px; top:30px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" disabled="true" appearance="minimal" style="left:520px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_4" style="x1:705px; y1:25px; x2:705px; y2:50px; "/>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
- </xhtml:body>
- </xhtml:html>
|