123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?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>Medical Zone (약품정보)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <druginfo>
- <codelist>
- <dgseq/>
- <instcd/>
- <dginsdate/>
- <dgtitle/>
- <dgbigo/>
- <filenm/>
- <filepath/>
- </codelist>
- </druginfo>
- </main>
- <send>
- <viewinfo>
- <viewlist>
- <dgseq/>
- <instcd/>
- <dginsdate/>
- <dgtitle/>
- <dgbigo/>
- <filenm/>
- </viewlist>
- </viewinfo>
- <save>
- <reqdesc/>
- <file/>
- </save>
- </send>
- <tmp>
- <datalist>
- <maxseq>
- <seq/>
- </maxseq>
- </datalist>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // model.removeNodeset("/root/main/codeinfo/codelist");
- // btn_grdadd.disabled = true;
- // btn_grddel.disabled = true;
- // btn_save.disabled = true;
- // if (model.getValue("/root/popdata/cdgrupid") != ""){
- // model.setValue("/root/send/reqdata/cdgrupid", model.getValue("/root/popdata/cdgrupid"));
- // btn_grdadd.disabled = false;
- // btn_grddel.disabled = false;
- // btn_save.disabled = false;
- // readfunc();
- // }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- window.close();;
- ]]>
- </script>
- <submission id="TXADB04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata" resultref="/root/hidden"/>
- <submission id="TRADB65001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/send/viewinfo/viewlist"/>
- <submission id="TRADB65200" mediatype="multipart/form-data" method="form-data-post" ref="/root/main/druginfo" resultref="/root/send/viewinfo/viewlist"/>
- <submission id="TRADB65000" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp/datalist"/>
- </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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SMADB65000.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- //모든 데이타을 claear 셋팅하는 부분
- model.setValue(rad_instcd.attribute("ref"), "" );
- model.setValue(inp_drugtitle.attribute("ref"), "" );
- model.setValue(inp_indate.attribute("ref"), "" );
- model.setValue(inp_bigo.attribute("ref"), "" );
- model.setValue(inp_savefile.attribute("ref"), "" );
- SaveFlag = "Y" ;
- submit("TRADB65000");
- var work_seq_tmp = model.getValue("/root/tmp/datalist/maxseq/seq");
- // alert(work_seq_tmp)
- model.setValue("/root/main/druginfo/codelist/dgseq",work_seq_tmp);
- model.refresh();
- }
- function fCheckSaveData() {
- /////구분
- var inpseq = model.getValue( "/root/tmp/datalist/maxseq/seq");
- if ( inpseq == "" ) {
- messageBox("신규버튼을 클릭하고 등록하세요!! ","");
- /////////저장 데이타 점검 Flag
- SaveFlag = 'N' ;
- }
- var instcd = model.getValue( "/root/main/druginfo/codelist/instcd");
- if ( instcd == "" ) {
- messageBox("구분를 선택하세요!! ","");
- /////////저장 데이타 점검 Flag
- SaveFlag = 'N' ;
- }
- var drugtitle = model.getValue( "/root/main/druginfo/codelist/dgtitle");
- if ( drugtitle == "" ) {
- messageBox("제목을를 입력하세요!! ","");
- /////////저장 데이타 점검 Flag
- SaveFlag = 'N' ;
- }
- var indate = model.getValue( "/root/main/druginfo/codelist/dginsdate" );
- if ( indate == "" ) {
- messageBox("등록일자를 입력하세요!! ","");
- /////////저장 데이타 점검 Flag
- SaveFlag = 'N' ;
- }
- var savefile = model.getValue( "/root/main/druginfo/codelist/filenm");
- if ( savefile == "" ) {
- messageBox("첨부파일을 등록하세요!! ","");
- /////////저장 데이타 점검 Flag
- SaveFlag = 'N' ;
- }
- }
- ////////저장루틴
- function fSaveData(savemode) {
- //alert(savemode);
- //----신규 Insert ,update하기
- if (savemode == "i"){
- submit("TRADB65200"); // 데이타 저장 서브밋
- submit("TRADB65001"); // 저장 데이타 조회 서브밋
- //----삭제 하기
- }else if(savemode == "d"){
- submit("TXRPS00300");
- submit("TXRPS00400");
- }
- }
-
- function fupload(){
- var files = window.fileDialog("open", ",", false);
- var replacepath = "";
- if ( files.length <= 0 ) return;
- model.makeValue(ipt_updpath.attribute("ref") , files); //전체파일경로와이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
- model.setValue(inp_savefile.attribute("ref") , filename);
-
- // submit("TXRWC03002");
- if(model.getValue("/root/main/filepath[1]/filepath") != ""){
- model.setValue("/root/main/manualdetl/manualdetllist/filepath"+flag,model.getValue("/root/main/filepath[1]/filepath"));
- }
- ipt_filepath.dispatch("xforms-value-changed");
- model.refresh();
- }
- function fdown(flag){
- var filepath = model.getValue("/root/main/manualdetl/manualdetllist/filepath"+flag);
- var filenm = model.getValue("/root/main/manualdetl/manualdetllist/filenm"+flag);
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900px" pageheight="700px" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption1" class="tit_1" style="left:5px; top:15px; width:252px; height:13px; ">Medical Zone (약품정보)</caption>
- <shape id="rectangle1" appearance="roundrect" style="left:3px; top:35px; width:817px; height:83px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption11" class="search_name" visibility="visible" style="left:15px; top:70px; width:94px; height:17px; ">등록일자</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:825px; top:90px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- SaveFlag = "Y" ;
- //alert ("시작 " + SaveFlag);
- fCheckSaveData() ;
- //alert ("체크 " + SaveFlag);
- if (SaveFlag == "Y") {
- fSaveData("i");
- fInitialize();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:3px; y1:119px; x2:900px; y2:120px; "/>
- <datagrid id="datagrid1" nodeset="/root/send/viewinfo/viewlist" visibility="visible" caption="순번^구분^등록일자^제목^비고^파일명^파일 위치" colsep="^" colwidth="31, 49, 66, 360, 208, 167, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:125px; width:895px; height:570px; ">
- <col ref="dgseq" type="input" maxlength="3" style="text-align:center; "/>
- <col ref="instcd" type="input" style="text-align:left; "/>
- <col ref="dginsdate" type="input" style="text-align:center; "/>
- <col ref="dgtitle" type="input" style="text-align:left; "/>
- <col ref="dgbigo" type="output" visibility="visible"/>
- <col ref="filenm" style="left:734px; top:23px; width:167px; height:23px; "/>
- <col/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var scol = datagrid1.col;
- datagrid1.col = scol;
- datagrid1.dispatch("onentercell");
- datagrid1.editCell();
- */
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn4_letter2" style="left:825px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADB65001");
- model.setValue(inp_seq.attribute("ref"), "" );
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:240px; top:45px; width:63px; height:17px; ">제목:</caption>
- <input id="inp_drugtitle" ref="/root/main/druginfo/codelist/dgtitle" class="input_search" visibility="visible" style="left:305px; top:45px; width:505px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:42px; width:63px; height:17px; ">구분:</caption>
- <caption id="caption5" class="search_name" style="left:14px; top:94px; width:81px; height:17px; ">첨부파일:</caption>
- <select1 id="rad_instcd" ref="/root/main/druginfo/codelist/instcd" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:102px; top:42px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <input id="inp_savefile" ref="/root/main/druginfo/codelist/filenm" class="input_search" disabled="true" visibility="visible" style="left:100px; top:93px; width:510px; height:19px; "/>
- <button id="button1" class="btn2_letter4" visibility="visible" style="left:615px; top:93px; width:64px; height:19px; ">
- <caption>첨부파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fupload();
- ]]>
- </script>
- </button>
- <input id="inp_indate" ref="/root/main/druginfo/codelist/dginsdate" class="input_essential" navindex="14" inputtype="date" style="left:100px; top:70px; width:130px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:240px; top:70px; width:63px; height:17px; ">비고:</caption>
- <input id="inp_bigo" ref="/root/main/druginfo/codelist/dgbigo" class="input_search" visibility="visible" style="left:305px; top:70px; width:505px; height:19px; "/>
- <upload id="upload1" nodeset="/root/send/save/file" filecount="5" filesize="10485760" validate="true" style="left:87px; top:349px; width:15px; height:15px; "/>
- <button id="button2" class="btn4_letter2" style="left:826px; top:63px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <input id="inp_seq" ref="/root/tmp/datalist/maxseq/seq" style="left:765px; top:15px; width:45px; height:19px; "/>
- <input id="input1" ref="/root/main/druginfo/codelist/dgseq" style="left:761px; top:93px; width:45px; height:19px; "/>
- <input id="ipt_updpath" ref="/root/main/druginfo/codelist/filepath" class="input_search" disabled="true" visibility="hidden" style="left:680px; top:95px; width:35px; height:19px; "/>
- <input id="ipt_filepath" ref="/root/main/druginfo/codelist/filepath" class="input_search" disabled="true" visibility="hidden" style="left:720px; top:95px; width:30px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|