123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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>
- <lnrqact>
- <lnrqactinfo/>
- <lnrqdept/>
- </lnrqact>
- </main>
- <send>
- <reqfromdd/>
- <instcdnm/>
- <instcd/>
- <reqtodd/>
- <deptcd/>
- </send>
- <init>
- <csrreqdeptlist/>
- </init>
- <temp>
- <lnrqact>
- <lnrqactinfo/>
- <lnrqdept/>
- </lnrqact>
- </temp>
- </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="TRMNG02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/lnrqact"/>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/csrreqdeptlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
- model.setValue(ipt_reqfromdd.attribute("ref"), getCurrentDate()); //년월일
- model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate()); //년월일
-
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //기관코드
- submit("TRMNG00401"); // 부서구분 조회
-
- addComboItem( "cmb_deptcd", "전체", "", "above");
- }
-
- function fSearch() {
-
- submit("TRMNG02403");
-
- fDataset();
-
- }
-
- function fDataset() {
- var caption = "린넨품명^물품코드^상세코드";
- var caption1 = "린넨품명^물품코드^상세코드";
- grd_lnrqactinfo.colWidth(grd_lnrqactinfo.colRef("lngoodnm")) = 150;
- // caption 및 컬럼 동적생성
- for ( i = 1; i < getNodesetCount("/root/temp/lnrqact/lnrqdept/deptcd"); i++) {
- caption += "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm") + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm")
- + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm") + "^" + model.getValue("/root/temp/lnrqact/lnrqdept[" + i + "]/deptnm");
- caption1 += "^안전재고량^청구량^불출량^실재고량";
- for ( j=1; j < 5; j++) {
- grd_lnrqactinfo.addColumn("ref:col" + grd_lnrqactinfo.cols + "; type:text;", false);
- grd_lnrqactinfo.colWidth(grd_lnrqactinfo.cols-1) = 60;
- }
- }
-
- grd_lnrqactinfo.refresh();
-
- grd_lnrqactinfo.addColumn("ref:lnsfsum; type:text;", false);
- grd_lnrqactinfo.addColumn("ref:reqsum; type:text;", false);
- grd_lnrqactinfo.addColumn("ref:outsum; type:text;", false);
- grd_lnrqactinfo.addColumn("ref:lnrlsum; type:text;", false);
-
- caption += "^TOTAL^TOTAL^TOTAL^TOTAL";
- caption1 += "^안전재고량^청구량^불출량^실재고량";
-
- var cap = caption + "|" + caption1;
- grd_lnrqactinfo.caption = cap;
-
- var lnsfcol = 0;
- var reqcol = 0;
- var outcol = 0;
- var lnrlcol = 0;
-
- for ( h=1; h< model.getValue("/root/temp/lnrqact/lnrqmaxrow/maxrow"); h++) {
- grd_lnrqactinfo.addRow(false, false);
- }
- grd_lnrqactinfo.refresh();
- for ( k=1; k< getNodesetCount("/root/temp/lnrqact/lnrqactinfo/deptcd"); k++) {
- // grd_lnrqactinfo.addRow(false, false);
- //for ( k=1; k< 3; k++) {
- var row = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k +"]/rnum");
- var col = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k +"]/col");
- if ( col == "") {
- lnsfcol = grd_lnrqactinfo.colRef("lnsfsum");
- reqcol = grd_lnrqactinfo.colRef("reqsum");
- outcol = grd_lnrqactinfo.colRef("outsum");
- lnrlcol = grd_lnrqactinfo.colRef("lnrlsum");
- } else {
- lnsfcol = (col-1)*4 + 3;
- reqcol = (col-1)*4 + 4;
- outcol = (col-1)*4 + 5;
- lnrlcol = (col-1)*4 + 6;
- }
- if ( model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lngoodnm") != "" ) {
- grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("lngoodnm")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lngoodnm");
- }
- grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("goodcd")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/goodcd");
- grd_lnrqactinfo.valueMatrix(row, grd_lnrqactinfo.colRef("goodcdseq")) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/goodcdseq");
- grd_lnrqactinfo.valueMatrix(row, lnsfcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lnsfcnt");
- grd_lnrqactinfo.valueMatrix(row, reqcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/reqcnt");
- grd_lnrqactinfo.valueMatrix(row, outcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/outcnt");
- grd_lnrqactinfo.valueMatrix(row, lnrlcol) = model.getValue("/root/temp/lnrqact/lnrqactinfo[" + k + "]/lnrlcnt");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:580px; 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:1175px; height:660px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">청구현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1170px; y2:25px; "/>
- <col ref="posscnt" type="input"/>
- <col ref="posscnt" type="input"/>
- <datagrid id="grd_lnrqactinfo" nodeset="/root/main/lnrqact/lnrqactinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1170px; height:610px; ">
- <col ref="lngoodnm" visibility="visible"/>
- <col ref="goodcd" visibility="visible"/>
- <col ref="goodcdseq" visibility="visible"/>
- </datagrid>
- </group>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1175px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:279px; top:30px; width:67px; height:17px; ">년월:</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1055px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_reqfromdd" ref="/root/send/reqfromdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:334px; top:30px; width:95px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:95px; top:30px; width:175px; height:19px; text-align:center; "/>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
- <line id="line2" class="line_4" style="x1:1050px; y1:26px; x2:1050px; y2:51px; "/>
- <caption id="caption1" class="search_name" style="left:557px; top:30px; width:85px; height:17px; ">병동:</caption>
- <button id="button3" class="btn1_letter2" style="left:1115px; top:27px; width:56px; height:22px; ">
- <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_lnrqactinfo.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_s_essential" appearance="minimal" style="left:615px; top:30px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <input id="ipt_reqtodd" ref="/root/send/reqtodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:444px; top:30px; width:95px; height:19px; "/>
- <caption id="caption2" style="left:430px; top:34px; width:15px; height:15px; ">~</caption>
- </xhtml:body>
- </xhtml:html>
|