123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <?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>
- <lnedinfo>
- <lnedlist>
- </lnedlist>
- </lnedinfo>
- </main>
- <send>
- <instcdnm/>
- <reqdd/>
- <gubuncd>01</gubuncd>
- <lnedflag/>
- <cdgrupid>T67</cdgrupid>
- <cdgrupid1>T64</cdgrupid1>
- <deptcd/>
- <flag>1</flag>
- <reqtodd/>
- </send>
- <cond>
- <reqdd/>
- <selyymmdd>DD</selyymmdd>
- </cond>
- <init>
- <grupcdinfo/>
- <csrdeptlist/>
- <lnedinfo/>
- </init>
- <hidden>
- <setvalue>
- <cdid/>
- </setvalue>
- </hidden>
- <send1>
- <cdgrupid>T65</cdgrupid>
- </send1>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo"/>
- <submission id="TRMNG02306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo1"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/csrdeptlist"/>
- <submission id="TRMNG03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lnedinfo"/>
- <submission id="TRMNG03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lnedinfo"/>
- <submission id="TXMNG03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lnedinfo" resultref="/root/temp"/>
- <submission id="TRMSG04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
-
- // 마감업무는 전일 청구 불출 내역에 대한 작업이므로 청구일자를 전일로 셋팅한다.
- var da = getCurrentDate();
- var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
- model.setValue(ipt_reqdd.attribute("ref"), dat);
- model.setValue(ipt_reqtodd.attribute("ref"), dat);
-
- grd_lnedlist.colDisabled(grd_lnedlist.colRef("lnedflag") ) = true;
- grd_lnedlist.colDisabled(grd_lnedlist.colRef("deptcd") ) = true;
- grd_lnedlist.colDisabled(grd_lnedlist.colRef("lnrqflag") ) = true;
-
- // CSR 청구부서, 린넨청구부서 가져오기
- submit("TRMNG00402");
-
- // 공통코드 가져오기(T67) => 마감구분
- submit("TRMNG02305");
-
- // 공통코드 가져오기(T64) => 마감구분
- submit("TRMNG02306");
-
- addComboItem("cmb_deptcd","--전체--","","above");
-
- addComboItem("rdo_lnedflag","전체","","above");
-
-
- // 마감구분 초기 셋팅 : 마감전
- rdo_lnedflag.value = "B";
-
- model.refresh();
-
- fSearch();
-
- grd_lnedlist.colDisabled(grd_lnedlist.colRef("erflag")) = true;
-
- model.makeNode("/root/send1/workdd");
- model.setValue("/root/send1/workdd", getCurrentDate());
-
- submit("TRMSG04004");
-
- var pord = model.getValue("/root/hidden/setvalue/cdid");
- var userid = getUserInfo("userid");
-
-
- if(userid="ENR") {
- btn_sav.disabled = false;
- } else {
-
- if (pord == userid) {
- btn_sav.disabled = false;
- } else {
- btn_sav.disabled = true;
- }
- }
-
- }
-
- function fSearch() {
-
- submit("TRMNG03403");
-
- fStyleChk();
- }
-
- function fStyleChk() {
- for ( i = grd_lnedlist.fixedRows; i < grd_lnedlist.rows; i++ ) {
- if ( grd_lnedlist.valueMatrix(i, grd_lnedlist.colRef("lnrqflag")) == "06" ) {
- grd_lnedlist.cellStyle("background-color", i, grd_lnedlist.colRef("lnrqflag")) = "#99CC00";
- } else {
- grd_lnedlist.cellStyle("background-color", i, grd_lnedlist.colRef("lnrqflag")) = "#FFFFFF";
- }
-
- if ( grd_lnedlist.valueMatrix(i, grd_lnedlist.colRef("erflag")) == "Y" ) {
- grd_lnedlist.cellStyle("background-color", i, grd_lnedlist.colRef("erflag")) = "#FF6600";
- } else {
- grd_lnedlist.cellStyle("background-color", i, grd_lnedlist.colRef("erflag")) = "#FFFFFF";
- }
- }
- }
-
- function fPrintRex() {
-
- submit("TRMNG03402");
-
- model.makeNode("/root/send/report/csmtrexinfo");
- copyNodesetType("/root/send/report/csmtrexinfo", "/root/main/whiorexinfo");
-
- exeReportPreview("RPMNG03400", "XMLSTR", "/root/send/report/csmtrexinfo");
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1185px; 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:1185px; height:655px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:138px; height:14px; ">린넨 일일마감 관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
- <button id="btn_sav" class="btn5_letter2" style="left:1135px; top:3px; width:42px; height:19px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 청구일자에 해당하는 내역중 수령까지 완료되지 않은 청구내역이 있는지 확인
- submit("TRMNG03404");
-
- var result = model.getValue("/root/init/lnedinfo/result");
- // 청구일자에 해당하는 미확정 내역이 존재하면 마감 작업을 멈추고 미확정 내역을 보여준다.
- if ( result == "Y" ) {
- rdo_lnedflag.value = "E";
- fSearch();
- } else {
- // 미확정 내역이 없으면 마감작업을 진행한다.
- // 마감시 청구관리 테이블(mnghlnrq)에 마감구분을 'A'로 업데이트, 마감관리테이블(mnrqlned)에 마감내역 insert
- for ( i = grd_lnedlist.fixedRows; i < grd_lnedlist.rows; i++ ) {
- grd_lnedlist.rowStatus(i) = 1;
- }
- model.makeValue("/root/send/lnedinfo/lnedlist", getGridUpdateData(grd_lnedlist));
- submit("TXMNG03402");
- }
-
- fSearch();
- ]]>
- </script>
- </button>
- <datagrid id="grd_lnedlist" nodeset="/root/main/lnedinfo/lnedlist" class="datagrid2" visibility="visible" caption="마감구분^응급여부^부서코드^청구일자^물품코드^상세코드^린넨품명^상세규격^운용
안전재고량^린넨보관실
안전재고량^현재고량^청구량^불출량^린넨보관실
실재고량^청구일시^수령일시^비고^마감자^마감일시^청구구분" colsep="^" colwidth="66, 80, 80, 80, 80, 65, 120, 80, 75, 75, 75, 65, 70, 75, 120, 120, 100, 75, 120, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1185px; height:615px; ">
- <col ref="lnedflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="erflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>응급</label>
- <value>Y</value>
- </item>
- <item>
- <label>정규</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col editable="false" ref="deptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="goodcd"/>
- <col ref="goodcdseq" visibility="visible"/>
- <col ref="lngoodnm" visibility="visible"/>
- <col ref="goodmodel"/>
- <col ref="deptlnsfcnt" format="#,###"/>
- <col ref="lnsfcnt" visibility="visible"/>
- <col ref="nowcnt" format="#,###"/>
- <col ref="reqcnt"/>
- <col ref="outcnt" format="#,###"/>
- <col ref="lnrlcnt" format="#,###"/>
- <col ref="reqdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="recdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="remark"/>
- <col ref="lnednm"/>
- <col ref="lneddt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lnrqflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo1/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lnedid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- </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>
- <button id="button1" class="btn2_letter2" style="left:1089px; top:4px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "린넨일일마감관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_lnedlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- } ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1067px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1060px; y1:25px; x2:1060px; y2:50px; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:200px; top:30px; width:81px; height:17px; ">청구일자:</caption>
- <input id="ipt_reqdd" ref="/root/send/reqdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:285px; top:30px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="cap_instcd" class="search_name" visibility="hidden" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" visibility="hidden" style="left:100px; top:30px; width:105px; height:19px; text-align:center; "/>
- <button id="btn_prt" class="btn1_letter2" style="left:1125px; top:27px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fPrintRex();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:805px; top:30px; width:81px; height:17px; ">부서구분:</caption>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" appearance="minimal" style="left:900px; top:30px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:480px; top:30px; width:81px; height:17px; ">마감구분:</caption>
- <select1 id="rdo_lnedflag" ref="/root/send/lnedflag" appearance="full" cols="4" overflow="visible" style="left:575px; top:30px; width:225px; height:15px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_default" visibility="hidden" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:390px; top:30px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </input>
- <caption id="cap_bar" visibility="hidden" style="left:376px; top:29px; width:16px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption4" class="search_name" style="left:10px; top:30px; width:64px; height:17px; ">구분 :</caption>
- <select1 id="rdo_flag" ref="/root/send/flag" appearance="full" cols="2." overflow="visible" style="left:70px; top:30px; width:100px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>업무</label>
- <value>1</value>
- </item>
- <item>
- <label>조회</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_flag.value == "1") {
-
-
- var pord = model.getValue("/root/hidden/setvalue/cdid");
- var userid = getUserInfo("userid");
-
- if(userid="ENR") {
- btn_sav.disabled = false;
- } else {
-
- if (pord == userid) {
- btn_sav.disabled = false;
- } else {
- btn_sav.disabled = true;
- }
- }
- ipt_reqtodd.visible = false;
- cap_bar.visible = false;
-
- } else {
- btn_sav.disabled = true;
- ipt_reqtodd.visible = true;
- cap_bar.visible = true;
-
- }
-
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|