123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?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="">
- <init>
- <instnm/>
- <reqfromdd/>
- <reqtodd/>
- <goodflag/>
- <goodhngnm/>
- <reqpsnid/>
- <reqpsnnm/>
- <reqdeptcd/>
- <reqdeptnm/>
- <instcd/>
- <frreqconfdd/>
- <toreqconfdd/>
- </init>
- <send>
- <report>
- <newfestinfo/>
- </report>
- </send>
- <main>
- <newfestinfo>
- <newfestinfo>
- <instnm/>
- <instcd/>
- <reqdept/>
- <reqdeptnm/>
- <reqdd/>
- <suplplcecd/>
- <subsuplplcecd/>
- <goodhngnm/>
- <goodspec/>
- <goodmodel/>
- <purcunit/>
- <deliveunit/>
- <purcqty/>
- <goodunitcost/>
- <reqamt/>
- <edicd/>
- <custnm/>
- <prsdnm/>
- <infaddr/>
- <bizcont/>
- <supsubplcenm/>
- <chrgnm/>
- <chrgtel/>
- </newfestinfo>
- </newfestinfo>
- </main>
- <temp>
- <reqData>
- <req/>
- </reqData>
- </temp>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
-
- if(checkOpener()) {
- model.setValue(cmb_goodflag_search.attribute("ref") , opener.javascript.getParameter("goodflag"));
- model.setValue(ipt_goodnm_search.attribute("ref") , opener.javascript.getParameter("goodnm"));
- model.setValue(ipt_reqdeptcd_search.attribute("ref") , opener.javascript.getParameter("reqdeptcd"));
- model.setValue(ipt_reqdeptnm_search.attribute("ref") , opener.javascript.getParameter("reqdeptnm"));
- model.setValue(ipt_reqfromdd_search.attribute("ref") , opener.javascript.getParameter("reqfromdd"));
- model.setValue(ipt_reqpsnid_search.attribute("ref") , opener.javascript.getParameter("reqpsnid"));
- model.setValue(ipt_reqpsnnm_search.attribute("ref") , opener.javascript.getParameter("reqpsnnm"));
- model.setValue(ipt_reqtodd_search.attribute("ref") , opener.javascript.getParameter("reqtodd"));
- }
- //
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
- model.setValue(ipt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- model.refresh();
- // model.setValue(ipt_reqfromdd_search.attribute("ref") , getCurrentDate());
- // model.setValue(ipt_reqtodd_search.attribute("ref") , getCurrentDate());
- grd_newfestinfo.fixedcellcheckbox(0,grd_newfestinfo.colRef("chkyn"),false) = true;
- grd_newfestinfo.explorerbar = "sortshow";
-
- ipt_instcd.refresh();
- opt_instcdnm.refresh();
- // ipt_reqfromdd_search.refresh();
- // ipt_reqtodd_search.refresh();
- ]]>
- </script>
- <submission id="TRRSD05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/newfestinfo"/>
- </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[
- function fOpenUrl(photurl){
- if(photurl != ""){
- var file = encodeURI(photurl);
- htmlwindow.open(file);
- }
- }
- ]]>
- </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:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">신규 재료 견적서조회</caption>
- <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:5px; width:1191px; height:70px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1191px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_reqdeptnm_search" ref="/root/init/reqdeptnm" class="input_search" style="left:794px; top:35px; width:108px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
- ipt_reqdeptcd_search.refresh();
- ipt_reqdeptnm_search.refresh();
- ]]>
- </script>
- </input>
- <button id="button5" class="icon_search" style="left:773px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
- fPurcAuthInfo(ipt_reqdeptcd_search);
-
- ipt_reqdeptcd_search.refresh();
- ipt_reqdeptnm_search.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:771px; top:9px; width:73px; height:17px; ">물품명 :</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
- <caption id="caption8" class="search_name" style="left:588px; top:35px; width:87px; height:17px; ">청구부서 :</caption>
- <caption id="caption10" class="search_name" style="left:270px; top:9px; width:87px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqdeptcd_search" ref="/root/init/reqdeptcd" class="input_default" style="left:677px; top:35px; width:88px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
-
- ipt_reqdeptcd_search.refresh();
- ipt_reqdeptnm_search.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodnm_search" ref="/root/init/goodhngnm" class="input_default" style="left:850px; top:9px; width:205px; height:19px; "/>
- <input id="ipt_reqtodd_search" ref="/root/init/reqtodd" class="input_search" inputtype="date" style="left:469px; top:9px; width:88px; height:19px; "/>
- <caption id="caption14" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_reqfromdd_search" ref="/root/init/reqfromdd" class="input_search" inputtype="date" style="left:357px; top:9px; width:88px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:588px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag_search" ref="/root/init/goodflag" appearance="minimal" editmode="search" style="left:675px; top:9px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>의료비품</label>
- <value>U</value>
- </item>
- <item>
- <label>의료소모품</label>
- <value>Y</value>
- </item>
- <item>
- <label>일반소모품</label>
- <value>Z</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line14" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <output id="opt_instcd" ref="/root/cond/instcd" class="output_fix" visibility="hidden" style="left:92px; top:9px; width:29px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/init/instnm" class="output_fix" style="left:92px; top:9px; width:168px; height:19px; "/>
- <input id="ipt_reqpsnid_search" ref="/root/init/reqpsnid" class="input_search" maxlength="10" appearance="input" style="left:92px; top:35px; width:68px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //misfValidationCheck("01-1", "", "emplno,emplnm,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy1,dummy1" );
-
- model.refresh();
- var recv_list = "reqpsnid,reqpsnnm";
- misfValidationCheck("01-1","", recv_list);
-
- ipt_reqpsnid_search.refresh();
- ipt_reqpsnnm_search.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_reqpsn" class="icon_search" style="left:167px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqpsnid,reqpsnnm";
- misfOpenPopUpList("12",ipt_reqpsnid_search ,"",recv_list); // 사용자 조회
-
- ipt_reqpsnid_search.refresh();
- ipt_reqpsnnm_search.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqpsnnm_search" ref="/root/init/reqpsnnm" class="output_fix" style="left:188px; top:35px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "reqpsnid,reqpsnnm";
- misfValidationCheck("01-2","", recv_list);
-
- ipt_reqpsnid_search.refresh();
- ipt_reqpsnnm_search.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption21" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">신 청 자 :</caption>
- <input id="ipt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:1055px; top:35px; width:40px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:268px; top:35px; width:96px; height:17px; ">견적등록 :</caption>
- <caption id="caption5" class="search_no_b" style="left:450px; top:35px; width:12px; height:17px; ">~</caption>
- <input id="ipt_frreqconfdd" ref="/root/init/frreqconfdd" class="input_search" inputtype="date" style="left:357px; top:35px; width:88px; height:19px; "/>
- <input id="ipt_toreqconfdd" ref="/root/init/toreqconfdd" class="input_search" inputtype="date" style="left:469px; top:35px; width:88px; height:19px; "/>
- </group>
- <datagrid id="grd_newfestinfo" nodeset="/root/main/newfestinfo/newfestinfo" class="datagrid2" caption="기관^^기관명^물품코드^물품명(한)^물품명^규격^모델^AllSize규격^포장
단위^기본
단위^물품단위^수량^단가^금액^계정/EDI^청구부서^청구부서^청구일자^청구번호^보조거래처^주거래처^보조거래처^주거래처명^대표자명^주소^담당자명^담당자전화^업태/종목^청구자명^견적서등록일^담당자^useinstname^비고^제조사코드^제조사^파일다운로드URL^파일
다운로드^제조국^담당자핸드폰" colsep="^" colwidth="0, 31, 100, 80, 100, 100, 100, 100, 75, 40, 40, 100, 70, 80, 80, 80, 0, 100, 80, 0, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 150, 33, 100, 100, 58, 100, 100" dataheight="25" ellipsis="true" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:1px; top:105px; width:1188px; height:630px; ">
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="instnm" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="allsizespecid"/>
- <col ref="purcunit"/>
- <col ref="deliveunit"/>
- <col ref="goodunit" visibility="hidden"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="reqamt" format="#,###" style="text-align:right; "/>
- <col ref="edicd"/>
- <col ref="reqdept" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="subsuplplcenm"/>
- <col ref="subsuplplcecd" visibility="hidden"/>
- <col ref="subsuplplcecdnm" visibility="hidden"/>
- <col ref="custnm"/>
- <col ref="prsdnm"/>
- <col ref="infaddr"/>
- <col ref="chrgnm"/>
- <col ref="chrgtel"/>
- <col ref="bizcontitem"/>
- <col ref="reqpsnnm"/>
- <col ref="reqconfdd"/>
- <col ref="custrecvnm"/>
- <col ref="useinstname" visibility="hidden"/>
- <col ref="cmt"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="prodcmpycdnm"/>
- <col ref="photurl" visibility="hidden"/>
- <col ref="photimg"/>
- <col ref="prodplcenm"/>
- <col ref="chrgmpphon"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(!eval(grd_newfestinfo.iscell(event.target))) return false;
-
- if (grd_newfestinfo.row == 0 && grd_newfestinfo.col== 2) {
- for (var fRow = grd_newfestinfo.fixedRows ; fRow < grd_newfestinfo.rows ; fRow++) {
- if (model.getValue(grd_newfestinfo.nodeset+"["+fRow+"]/chkyn") == "Y") {
- grd_newfestinfo.rowStatus(fRow) = "2";
- } else {
- grd_newfestinfo.removeStatus(fRow, "update");
- }
- }
-
- }
-
- if(eval(grd_newfestinfo.row) < eval(grd_newfestinfo.fixedRows)) return false;
-
- var photurl = grd_newfestinfo.valueMatrix(grd_newfestinfo.row, grd_newfestinfo.colRef("photurl"));
-
- if(grd_newfestinfo.col == grd_newfestinfo.colRef("photimg")){
- var photurl = grd_newfestinfo.valueMatrix(grd_newfestinfo.row, grd_newfestinfo.colRef("photurl"));
-
- fOpenUrl(photurl);
-
-
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_newfestinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption26" class="tit_2" style="left:0px; top:85px; width:139px; height:13px; ">신규재료 견적서조회</caption>
- <line id="line2" class="line_1" style="x1:1px; y1:100px; x2:1189px; y2:100px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/sendlist");
- model.copyNode("/root/send/sendlist", "/root/init");
- model.makeValue("/root/send/sendlist/reqdata", model.getValue("/root/temp/reqData/req"));
-
- submit("TRRSD05401");
- for(var i=grd_newfestinfo.fixedRows; i<grd_newfestinfo.rows; i++){
- if(grd_newfestinfo.valueMatrix(i, grd_newfestinfo.colRef("photurl")) != ""){
- grd_newfestinfo.cellStyle("background-image", i, grd_newfestinfo.colRef("photimg")) = "../../../com/commonweb/images/icon_list.gif";
- grd_newfestinfo.cellStyle("background-position", i, grd_newfestinfo.colRef("photimg")) = "center";
- }
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:1147px; top:80px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(getGridUpdateData(grd_newfestinfo) == "") {
- messageBox("선택된 내역이 존재하지않습니다.", "E");
- return;
- }
-
- model.removeNodeset("/root/send/report/newfestinfo");
-
- model.makeNode("/root/send/report/newfestinfo");
-
- copyNodesetType("/root/send/report/newfestinfo", grd_newfestinfo.nodeset + "[chkyn='Y']");
-
- // alert(instance1.selectNodesXml("/root/send/report"));
- exeReportPreview("RPRSD05402", "XMLSTR", "/root/send/report");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|