123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>기간별 약품입고 현황(약품)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init/>
- <send>
- <sendlist>
- <instcd/>
- <goodflag/>
- <stocym/>
- <tostocym/>
- <mngtcls/>
- </sendlist>
- </send>
- <main>
- <stocpropertylist>
- </stocpropertylist>
- </main>
- <temp/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
- misfGridInit(grd_stocpropertylist);
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- misfMsterDetailSet(grd_stocpropertylist,null,"TRRST00901","Y");
- //화면 권한 설정
- // btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRST00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/stocpropertylist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.removeNodeset("/root/main/stocpropertylist");
- model.resetInstanceNode("/root/send");
- misfComboComCdList("030M0003",cmb_mngtcls,"Y");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- var curdd = getCurrentDate();
- model.setValue(ipt_stocym.attribute("ref") ,curdd.substr(0,6) );
- model.setValue(ipt_tostocym.attribute("ref") ,curdd.substr(0,6) );
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(opt_goodflag.attribute("ref") ,"PH" );
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:209px; height:14px; ">기간별 약품입고 현황(약품)</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:57px; width:211px; height:13px; ">기간별 약품입고 현황</caption>
- <group id="group6" style="left:0px; top:13px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption10" class="search_name" style="left:353px; top:9px; width:93px; height:17px; ">마 감 월 :</caption>
- <caption id="caption7" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:8px; width:141px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_stocym" ref="/root/send/sendlist/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:435px; top:8px; width:100px; height:19px; text-align:center; "/>
- <line id="line18" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // submit("TRRST00800");
- //기관코드체크
- var null_check = cmb_instcd.value;
- /*
- if( null_check=="") {
- messageBox("기관코드를","C002");
- return;
- null_check=cmb_goodflag.value;
- } else if(null_check=="") {
- messageBox("물품청구 구분","C002");
- return;
- }
- */
- submit("TRRST00902");
- // misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <output id="opt_goodflag" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:960px; top:5px; width:100px; height:19px; "/>
- <select1 id="cmb_mngtcls" ref="/root/send/sendlist/mngtcls" class="combo_s_essential" appearance="minimal" style="left:810px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:725px; top:9px; width:88px; height:17px; ">관리분류 :</caption>
- <caption id="caption1" style="left:540px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_tostocym" ref="/root/send/sendlist/tostocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:560px; top:8px; width:100px; height:19px; text-align:center; "/>
- </group>
- <line id="line15" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
- <datagrid id="grd_stocpropertylist" nodeset="/root/main/stocpropertylist" class="datagrid2" caption="약분류^계정명^약품코드^약품명^단가^함량/단위^함량/단위^규격/단위^규격/단위^낱개단위^포장수량/단위^포장수량/단위^최소단위^입고수량/단위^입고수량/단위^입고금액^출고수량^출고금액^재고수량^재고금액^계정코드" colsep="^" colwidth="8, 26, 84, 169, 10, 42, 40, 44, 42, 57, 44, 42, 32, 70, 41, 113, 64, 100, 66, 113, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:77px; width:1195px; height:657px; ">
- <col ref="lrgnm" visibility="hidden" style="text-align:center; "/>
- <col ref="dcntnm" visibility="hidden"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodunitcost" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="cntsqty" style="text-align:right; "/>
- <col ref="cntsunit" style="text-align:center; "/>
- <col ref="specvol" style="text-align:right; "/>
- <col ref="specunit" style="text-align:center; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="exchqty" style="text-align:right; "/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="deliveunit" visibility="hidden" style="text-align:center; "/>
- <col ref="abwinqty" format="#,###.##" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:left; "/>
- <col ref="abwinamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="deliveqty" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="deliveamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="abstocqty" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="stocamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
- <col ref="amtacnt" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <button id="btn_excel" class="btn5_letter6" style="left:1106px; top:52px; width:86px; height:19px; ">
- <caption>Excel Save</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqfrdd = model.getValue(ipt_stocym.attribute("ref"));
- var fileName = window.fileDialog("save", ",", false, "약품입고현황"+"(" + reqfrdd + ")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_stocpropertylist.saveExcel(fileName, "약품입고현황");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/tmp/rexinfo/sendlist");
- model.removeNodeset("/root/tmp/rexinfo/stocpropertylist");
- model.makeNode("/root/tmp/rexinfo/sendlist");
- model.makeNode("/root/tmp/rexinfo/stocpropertylist");
- copyNodesetType("/root/tmp/rexinfo/sendlist", "/root/send/sendlist", "replace");
- copyNodesetType("/root/tmp/rexinfo/stocpropertylist", grd_stocpropertylist.nodeset, "replace");
- exeReportPreview("RPRST00903", "XMLSTR","/root/tmp/rexinfo");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|