123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <?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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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="">
- <cond>
- <instcd/>
- <srchfrdd/>
- <srchtodd/>
- <delivedd/>
- <iokind/>
- <delivedeptcd/>
- <iokind2/>
- </cond>
- <main>
- <list>
- <druggoodoutinfo>
- <druggoodoutlist/>
- </druggoodoutinfo>
- <druggoodoutdetailinfo>
- <druggoodoutdetailist/>
- </druggoodoutdetailinfo>
- </list>
- </main>
- <send>
- <reqdata>
- </reqdata>
- </send>
- <init>
- </init>
- <hidden>
- <common>
- <conflaglist/>
- <purcclslist/>
- </common>
- <commoninfo>
- <acntlist/>
- </commoninfo>
- <init>
- <sumpurcamt/>
- <sumpurcqty/>
- </init>
- </hidden>
- <temp>
- <maxpurcdmndnoinfo>
- <purcdmndno/>
- </maxpurcdmndnoinfo>
- </temp>
- <tmp>
- <costchginfo>
- <goodcd/>
- <goodunitcost/>
- </costchginfo>
- <commoninfo>
- <acntlist/>
- </commoninfo>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/list/druggoodoutinfo"/>
- <submission id="TRRSO10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list/druggoodoutdetailinfo"/>
- </model>
- <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">
- <![CDATA[
-
- /**
- * @ver : 2010-10-19
- * @desc : 폼 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize() {
- misfGridInit(grd_druggoodoutlist);
- misfGridInit(grd_druggoodoutdetailist);
- misfComboComCdList("Z0007" ,cmb_instcd);
- rszfGetPurcIOFlagList(cmb_iokind, model.getValue(cmb_instcd.attribute("ref")) , "O","N","","","");
- rszfComboStockArthDeptcdList(cmb_delivedeptcd,getUserInfo("dutplceinstcd"),"PH" ,"Y");
- addComboItem("cmb_iokind2","전체","","above");
- var bfdd = ((getCurrentDate()).toDate()).getAddDate(-1, "M");
- model.setValue(ipt_srchfrdd.attribute("ref") , bfdd.getDateFormat());
- model.setValue(ipt_srchtodd.attribute("ref") , getCurrentDate());
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/instcd"));
-
- if(submit("TRRSO10201")){
-
- }
-
- model.refresh();
- }
-
-
- ]]>
- </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:1195px; 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:38px; width:1185px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1185px; y2:95px; "/>
- <switch id="sch_select" style="left:0px; top:80px; width:1185px; height:648px; ">
- <case id="cse_req" selected="true" style="left:0px; top:0px; width:1185px; height:638; ">
- <line id="line2" class="line_1" style="x1:0px; y1:25; x2:1185; y2:25; "/>
- <datagrid id="grd_druggoodoutlist" nodeset="/root/main/list/druggoodoutinfo/druggoodoutlist" class="datagrid2" caption="출고일자^출고부서^출고부서코드^출고유형^출고유형코드^품목" colsep="^" colwidth="100, 124, 44, 128, 73, 430" explorerbar="sortshow" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1185px; height:608px; ">
- <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="delivedeptnm" style="text-align:center; "/>
- <col ref="delivedeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="iokindnm" type="output" style="text-align:center; "/>
- <col ref="iokind" type="output" visibility="hidden" style="text-align:center; "/>
- <col ref="goodcntnm" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- btn_reqdetail.selected = true;
- model.toggle("cse_reqdetail");
- btn_reqdetail.dispatch("DOMActivate");
- var iRow = grd_druggoodoutlist.row - grd_druggoodoutlist.fixedRows + 1;
- var sInstcd = model.getValue("/root/cond/instcd");
- var sDelivedd = model.getValue("/root/main/list/druggoodoutinfo/druggoodoutlist["+iRow+"]/delivedd");
- var sDelivedeptcd = model.getValue("/root/main/list/druggoodoutinfo/druggoodoutlist["+iRow+"]/delivedeptcd");
- var sIokind = model.getValue("/root/main/list/druggoodoutinfo/druggoodoutlist["+iRow+"]/iokind");
-
- model.setValue("/root/cond/delivedd",sDelivedd);
- model.setValue("/root/cond/iokind",sIokind);
- model.setValue("/root/cond/delivedeptcd",sDelivedeptcd);
- model.makeValue("/root/send/reqdata/instcd" ,sInstcd);
- model.makeValue("/root/send/reqdata/delivedd" ,sDelivedd);
- model.makeValue("/root/send/reqdata/delivedeptcd" ,sDelivedeptcd);
- model.makeValue("/root/send/reqdata/iokind" ,sIokind);
- if(submit("TRRSO10202")){
- var sumpurcamt = 0;
- var sumpurcqty = 0;
- model.removeNodeset("/root/send/reqdata");
-
- for(var i =grd_druggoodoutdetailist.fixedRows;i <grd_druggoodoutdetailist.rows;i++){
- sumpurcqty = sumpurcqty + parseFloat( grd_druggoodoutdetailist.valueMatrix(i , grd_druggoodoutdetailist.colRef("delivedeptqty")));
- sumpurcamt = sumpurcamt + parseFloat( grd_druggoodoutdetailist.valueMatrix(i , grd_druggoodoutdetailist.colRef("outamt")));
- }
-
- model.setValue(opt_sumpurcqty.attribute("ref"),sumpurcqty);
- model.setValue(opt_sumpurcamt.attribute("ref"),sumpurcamt);
- opt_sumpurcqty.refresh();
- opt_sumpurcamt.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:4px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_druggoodoutlist);
- ]]>
- </script>
- </button>
- </case>
- <case id="cse_reqdetail" style="left:0px; top:0px; width:1185px; height:638; ">
- <line id="line3" class="line_1" style="x1:0px; y1:25; x2:1185; y2:25; "/>
- <datagrid id="grd_druggoodoutdetailist" nodeset="/root/main/list/druggoodoutdetailinfo/druggoodoutdetailist" class="datagrid2" caption="약품코드^약품명(영문)^포장규격^함량^단위^출고수량^출고단가^출고금액^출고부서명^출고유형^출고일자^포장^포장^포장^포장수량^낱개수량^단가^금액^전송상태^caption1^기관코드^물품구분^발주일자^발주번호^발주구분^발주부서^접수자^발주자" colsep="^" colwidth="99, 273, 77, 100, 73, 82, 107, 109, 100, 100, 60" dataheight="25" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1185px; height:603px; ">
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodengnm" style="text-align:left; "/>
- <col ref="packspec" style="text-align:center; "/>
- <col ref="cntsqtyunit" style="text-align:center; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="delivedeptqty" format="#,###.##" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
- <col ref="outamt" format="#,###.##" style="text-align:right; "/>
- <col ref="delivedeptnm" visibility="hidden"/>
- <col ref="iokindnm" visibility="hidden"/>
- <col ref="delivedd" visibility="hidden"/>
- </datagrid>
- <button id="button12" class="btn2_letter2" style="left:1140px; top:6px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "약품수급계획조정", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_druggoodoutdetailist.saveExcel(fileName, "Excel",false);
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_reqdetail" class="btn_sw10" group="tab" style="left:111px; top:57px; width:136px; height:22px; ">
- <caption>약품출고상세현황</caption>
- <toggle case="cse_reqdetail" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grp_srch1.visible = false;
- grp_srch2.visible = true;
- cap_sumpurcamt.visible = true;
- opt_sumpurcamt.visible = true;
- opt_sumpurcqty.visible = true;
- cap_sumpurcqty.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn_sw8" group="tab" selected="true" style="left:0px; top:57px; width:112px; height:22px; ">
- <caption>약품출고현황</caption>
- <toggle case="cse_req" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_srch1.visible = true;
- grp_srch2.visible = false;
- cap_sumpurcamt.visible = false;
- opt_sumpurcamt.visible = false;
- opt_sumpurcqty.visible = false;
- cap_sumpurcqty.visible = false;
-
- ]]>
- </script>
- </button>
- <group id="grp_srch1" style="left:0px; top:0px; width:1185px; height:41px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:41px; "/>
- <select1 id="cmb_instcd" ref="/root/cond/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:105px; top:14px; width:143px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:15px; top:15px; width:97px; height:17px; ">기관코드 :</caption>
- <caption id="cap_line" class="search_n_b" style="left:522px; top:17px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="cap_purcmm" class="search_name" style="left:315px; top:15px; width:86px; height:17px; ">출고일자 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1110px; top:10px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRRSO10201")){
-
- }
-
-
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1095px; y1:8px; x2:1095px; y2:35px; "/>
- <input id="ipt_srchtodd" ref="/root/cond/srchtodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:538px; top:14px; width:105px; height:19px; text-align:center; "/>
- <input id="ipt_srchfrdd" ref="/root/cond/srchfrdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:410px; top:14px; width:105px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_iokind2" ref="/root/cond/iokind2" class="input_essential" appearance="minimal" style="left:775px; top:14px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/ioflag/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:686px; top:15px; width:87px; height:17px; ">출고유형 :</caption>
- </group>
- <group id="grp_srch2" visibility="hidden" style="left:0px; top:0px; width:1185px; height:41px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:41px; "/>
- <caption id="cap_purcdmnddd" class="search_name" style="left:25px; top:14px; width:115px; height:17px; ">출고일자 :</caption>
- <input id="ipt_windd" ref="/root/cond/delivedd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:113px; top:13px; width:125px; height:19px; text-align:center; "/>
- <button id="btn_search1" class="btn1_letter2" navindex="7" style="left:1110px; top:10px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sInstcd = model.getValue("/root/cond/instcd");
- var sDelivedd = model.getValue("/root/cond/delivedd");
- var sDelivedeptcd = model.getValue("/root/cond/delivedeptcd");
- var sIokind = model.getValue("/root/cond/iokind");
-
- model.makeValue("/root/send/reqdata/instcd" ,sInstcd);
- model.makeValue("/root/send/reqdata/delivedd" ,sDelivedd);
- model.makeValue("/root/send/reqdata/delivedeptcd" ,sDelivedeptcd);
- model.makeValue("/root/send/reqdata/iokind" ,sIokind);
- if(submit("TRRSO10202")){
- var sumpurcamt = 0;
- var sumpurcqty = 0;
- model.removeNodeset("/root/send/reqdata");
-
- for(var i =grd_druggoodoutdetailist.fixedRows;i <grd_druggoodoutdetailist.rows;i++){
- sumpurcqty = sumpurcqty + parseFloat( grd_druggoodoutdetailist.valueMatrix(i , grd_druggoodoutdetailist.colRef("delivedeptqty")));
- sumpurcamt = sumpurcamt + parseFloat( grd_druggoodoutdetailist.valueMatrix(i , grd_druggoodoutdetailist.colRef("outamt")));
- }
-
- model.setValue(opt_sumpurcqty.attribute("ref"),sumpurcqty);
- model.setValue(opt_sumpurcamt.attribute("ref"),sumpurcamt);
- opt_sumpurcqty.refresh();
- opt_sumpurcamt.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line4" class="line_4" style="x1:1100px; y1:8px; x2:1100px; y2:35px; "/>
- <caption id="caption2" class="search_name" style="left:315px; top:14px; width:87px; height:17px; ">출고유형 :</caption>
- <select1 id="cmb_iokind" ref="/root/cond/iokind" class="input_essential" disabled="true" appearance="minimal" style="left:404px; top:13px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_delivedeptcd" ref="/root/cond/delivedeptcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:695px; top:13px; width:145px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:610px; top:14px; width:89px; height:17px; ">출고부서 :</caption>
- </group>
- <caption id="cap_sumpurcamt" visibility="hidden" style="left:882px; top:54px; width:48px; height:25px; vertical-align:middle; ">총금액 :</caption>
- <output id="opt_sumpurcamt" ref="/root/hidden/init/sumpurcamt" class="output_default" visibility="hidden" format="#,###.##" style="left:929px; top:56px; width:90px; height:19px; font-weight:bold; text-align:center; "/>
- <output id="opt_sumpurcqty" ref="/root/hidden/init/sumpurcqty" class="output_default" visibility="hidden" format="#,###.##" style="left:795px; top:56px; width:70px; height:19px; font-weight:bold; text-align:center; "/>
- <caption id="cap_sumpurcqty" visibility="hidden" style="left:748px; top:57px; width:49px; height:20px; vertical-align:middle; ">총수량 :</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(sch_select.selectedIndex == "1"){
- exeReportPreview("RPRSI10601","XMLSTR");
- }else{
- messageBox("약품출고상세현황에서 출력","I006");
- return;
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|