123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?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>
- <pnrqinfo>
- <pnrqlist>
- <ioflag/>
- <cdnm/>
- <safecnt/>
- <delreqcnt/>
- <reqcnt/>
- <reqid/>
- <remark2/>
- <delcnt/>
- <outcnt/>
- <outid/>
- <remark1/>
- <deptcd/>
- <reqdd/>
- <instcd/>
- <goodscd/>
- <bfoutcnt/>
- <bfdelcnt/>
- <deptnm/>
- <outnm/>
- <reqnm/>
- </pnrqlist>
- <csrdeptlist/>
- </pnrqinfo>
- <cond>
- <reqdd/>
- <deptcd/>
- <instcd/>
- </cond>
- <csrdeptlist/>
- </main>
- <send>
- <reqdd/>
- <deptcd/>
- <gubuncd>01</gubuncd>
- </send>
- <hidden>
- <mnw>
- <codelist/>
- </mnw>
- </hidden>
- <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="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRMNG02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pnrqinfo"/>
- <submission id="TXMNG02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMNG02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
- model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate()); //현재날짜
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
-
- fGetHardCodeInfo("/root/send/cdgrupid", "/root/init/csrdeptinfo", "160"); // 중앙공급실 부서코드 조회
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
- if (!isNull(userdutplcecd)) {
- model.setValue(cmb_deptcd.attribute("ref"), 'ALL');
- } else {
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- cmb_deptcd.disabled = true; //중앙공급실이 아닐 경우 부서선택 숨김
- }
-
- ipt_reqdd.refresh();
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- submit("TRMNG00402"); //부서
-
- addComboItem("cmb_deptcd","--전체--","ALL","above");
- fSearch();
-
- }
-
- function fSearch() {
-
- model.setValue("/root/send/reqdd", model.getValue(ipt_reqdd.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("TRMNG02501");
-
- var ioflag;
- var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
-
- for(var i = grd_pnrqlist.fixedRows; i < grd_pnrqlist.rows; i++) {
- ioflag = grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("ioflag")); //N, O N : 신규 O: 수정
- outidflag = grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("outid"));
- reqidflag = grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("reqid"));
-
-
- if(ioflag == "N") {
- grd_pnrqlist.rowStatus(i) = "1";
-
- if (!isNull(userdutplcecd) && isNull(outidflag)) {
- grd_pnrqlist.colType(grd_pnrqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
- grd_pnrqlist.colType(grd_pnrqlist.colRef("delreqcnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("rtnreqcnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("remark2")) = 'output'; //중앙공급실에서 비고 비활성화
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("outnm")) = getUserInfo("usernm"); //담당자
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("outid")) = getUserInfo("userid"); //담당자
- } else if (isNull(userdutplcecd) && isNull(reqidflag)) {
-
- grd_pnrqlist.colType(grd_pnrqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
- grd_pnrqlist.colType(grd_pnrqlist.colRef("delcnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("rtncnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("remark1")) = 'output'; //중앙공급실에서 비고 비활성화
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("reqnm")) = getUserInfo("usernm"); //청구요청자
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("reqid")) = getUserInfo("userid"); //담당자
- }
- }
-
- if (ioflag == "O" && !isNull(userdutplcecd) ) {
-
- grd_pnrqlist.colType(grd_pnrqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
- grd_pnrqlist.colType(grd_pnrqlist.colRef("delreqcnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("remark2")) = 'output'; //중앙공급실에서 비고 비활성화
- if (isNull(outidflag) ) {
- grd_pnrqlist.rowStatus(i) = "2";
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("outnm")) = getUserInfo("usernm"); //담당자
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("outid")) = getUserInfo("userid"); //담당자
- }
- } else if (ioflag == "O" && isNull(userdutplcecd)) {
-
- grd_pnrqlist.colType(grd_pnrqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
- grd_pnrqlist.colType(grd_pnrqlist.colRef("delcnt")) = 'output';
- grd_pnrqlist.colType(grd_pnrqlist.colRef("remark1")) = 'output'; //중앙공급실에서 비고 비활성화
- grd_pnrqlist.colType(grd_pnrqlist.colRef("rtncnt")) = 'output';
- if (isNull(reqidflag)) {
- grd_pnrqlist.rowStatus(i) = "2";
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("reqnm")) = getUserInfo("usernm"); //청구요청자
- grd_pnrqlist.valueMatrix(i, grd_pnrqlist.colRef("reqid")) = getUserInfo("userid"); //담당자
- }
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1024" pageheight="546" guideline="1,1007;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:995px; 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:995px; height:453px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:134px; height:14px; ">세탁물이불운영관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:990px; y2:24px; "/>
- <button id="btn_sav" class="btn5_letter2" style="left:948px; top:3px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/pnrqlist", getGridUpdateData(grd_pnrqlist) );
-
- submit("TXMNG02501");
- submit("TXMNG02502");
-
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_pnrqlist" nodeset="/root/main/pnrqinfo/pnrqlist" class="datagrid2" caption="구분^부서명^품목^안전
재고량^폐기
요청량^청구
요청량^반납
요청량^청구자^비고^실제
폐기량^실제
불출량^실제
반납량^담당자^비고^부서코드^청구일^기관코드^품목코드^전불출량^전폐기량^전반납량^날짜" colsep="^" colwidth="0, 129, 100, 55, 55, 55, 55, 67, 98, 55, 55, 55, 66, 103, 30, 28, 29, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:990px; height:416px; ">
- <col ref="ioflag" visibility="visible"/>
- <col ref="deptnm" visibility="visible"/>
- <col ref="cdnm" visibility="visible"/>
- <col ref="safecnt" visibility="visible"/>
- <col ref="delreqcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="reqcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="rtnreqcnt" type="input"/>
- <col ref="reqnm" visibility="visible"/>
- <col ref="remark2" type="input" visibility="visible"/>
- <col ref="delcnt" type="input" visibility="visible"/>
- <col ref="outcnt" type="input" visibility="visible" format="#,###"/>
- <col ref="rtncnt" type="input"/>
- <col ref="outnm" visibility="visible"/>
- <col ref="remark1" type="input" visibility="visible"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodscd" visibility="hidden"/>
- <col ref="bfoutcnt" visibility="hidden"/>
- <col ref="bfdelcnt" visibility="hidden"/>
- <col ref="bfrtncnt" visibility="hidden"/>
- <col ref="reqid" visibility="hidden"/>
- <col ref="outid" visibility="hidden"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var row = grd_pnrqlist.row;
- if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
- if(grd_pnrqlist.col == grd_pnrqlist.colRef("delreqcnt") || grd_pnrqlist.col == grd_pnrqlist.colRef("reqcnt") ||
- grd_pnrqlist.col == grd_pnrqlist.colRef("delcnt") | grd_pnrqlist.col == grd_pnrqlist.colRef("outcnt") ) { //불출수량이나 미불출수량 엔터시
- if(grd_pnrqlist.row + 1 < grd_pnrqlist.rows) {
- grd_pnrqlist.row = row + 1;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" 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:995px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="caption2" class="search_name" style="left:480px; top:30px; width:88px; height:17px; ">부 서 명 :</caption>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:300px; top:30px; width:68px; height:17px; ">청구일:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:935px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdd" ref="/root/main/cond/reqdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:370px; top:30px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" appearance="minimal" style="left:570px; 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:930px; y1:23px; x2:930px; y2:48px; "/>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/main/cond/instcd" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
- </xhtml:body>
- </xhtml:html>
|