123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?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>약국 이미지 Upload</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <reportlist>
- <reportnm/>
- <reportid/>
- </reportlist>
- <attachlist>
- <lastupdtdt/>
- <lastupdtrid/>
- <filename/>
- <filesize/>
- <filetype/>
- <filepath/>
- <dispid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <seq/>
- </attachlist>
- </list>
- </main>
- <send>
- <attach>
- <file/>
- </attach>
- <dispid/>
- <updateflag/>
- </send>
- <delsend>
- <dispid/>
- <seq/>
- </delsend>
- <init>
- <flagcd/>
- </init>
- <hidden>
- <flagcd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct">
- <![CDATA[
-
- ]]>
- </script>
- <submission id="TRAZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/attachlist"/>
- <submission id="TRAZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXAZZ00102" mediatype="multipart/form-data" method="form-data-post" ref="/root/delsend" resultref="/root/hidden"/>
- <submission id="TXAZZ00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/list/attachlist");
- model.removeNodeset("/root/send/attach");
-
- model.makeValue("/root/send/updateflag", "1");
- model.makeValue("/root/init/flagcd", "1");
-
- button1.dispatch("DOMActivate");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="710" pageheight="600" guideline="1,687;1,686;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:690px; height:580px; ">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; vertical-align:middle; ">약국 이미지 Upload</caption>
- <button id="btn_upload" class="btn5_letter3" style="left:611px; top:22px; width:53px; height:19px; ">
- <caption>업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (Number(getNodesetCount("/root/send/attach/file")) <= 0) {
- messageBox("파일을 추가하여 주세요.", "E999");
- return false;
- }
-
- if (submit("TXAZZ00201")) {
- messageBox("Upload가 성공적으로 이루어졌습니다.","I999");
- model.removeNodeset("/root/send/attach");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_addfile" class="btn2_letter4" style="left:545px; top:22px; width:64px; height:19px; ">
- <caption>파일추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- files = window.fileDialog("open", "|", true);
- filelist = files.split("|");
- for(var i = 0 ; i < filelist.length ; i++ ) {
- if(filelist[i] != "") {
- grd_attach.addRow(false);
- grd_attach.valueMatrix(grd_attach.rows - 1, 1) = filelist[i];
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" style="left:260px; top:10px; width:100px; height:20px; "/>
- <datagrid id="grd_attach" nodeset="/root/send/attach" caption="파일경로^" colwidth="644" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:0px; top:45px; width:665px; height:530px; ">
- <col ref="file"/>
- </datagrid>
- <select1 id="combo1" ref="/root/init/flagcd" appearance="minimal" style="left:464px; top:22px; width:79px; height:19px; ">
- <choices>
- <item>
- <label>약품편람</label>
- <value>1</value>
- </item>
- <item>
- <label>약품식별</label>
- <value>2</value>
- </item>
- <item>
- <label>식별문양</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/updateflag", model.getValue("/root/init/flagcd"));
- ]]>
- </script>
- </select1>
- <datagrid id="grd_attachfile" nodeset="/root/main/list/attachlist" visibility="hidden" caption="업로드일시^업로드ID^첨부파일명^파일크기(Byte)^파일종류^서버저장경로^화면ID^최초등록자^최초등록일시^순번" colwidth="148, 87, 307, 97, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:310px; top:260px; width:120px; height:153px; ">
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="filename"/>
- <col ref="filesize"/>
- <col ref="filetype"/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="dispid" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //alert(getActionURL("TRAZZ00102"));
- var idx = grd_attachfile.row;
- var filepath = model.getValue("/root/main/list/attachlist["+idx+"]/filepath");
- var filenm = model.getValue("/root/main/list/attachlist["+idx+"]/filename");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRAZZ00102")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn1_letter2" visibility="hidden" style="left:340px; top:355px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.send("TRZSS00101");
- submit("TRAZZ00101");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter2" visibility="hidden" style="left:335px; top:315px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( (grd_attachfile.row >= grd_attachfile.fixedRows) ) {
-
- var cur_row = grd_attachfile.row;
- var dispid = model.getValue("/root/main/list/attachlist["+cur_row+"]/dispid");
- var seq = model.getValue("/root/main/list/attachlist["+cur_row+"]/seq");
- model.setValue("/root/delsend/dispid", dispid);
- model.setValue("/root/delsend/seq", seq);
- if ( messageBox("파일 ["+model.getValue("/root/main/list/attachlist["+cur_row+"]/filename")+"] 을 ","Q001")==6 ) {
- // alert('삭제한다.');
- if ( submit("TXAZZ00102") ) {
-
- messageBox("파일을 삭제하였습니다.","I999");
- submit("TRAZZ00101");
- model.refresh();
-
- }else {
- messageBox("파일삭제 실패하였습니다. 전산실로 문의하십시오.","I999");
- model.resetInstanceNode("/root/delsend");
- return;
- }
-
- }else {
- //alert('삭제안한다.');
- model.resetInstanceNode("/root/delsend");
- }
-
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption20" class="tit_2" style="left:0px; top:25px; width:118px; height:14px; ">이미지 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:42px; x2:665px; y2:42px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|