123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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="">
- <main>
- <cond>
- <cdgrupid/>
- <instcd/>
- </cond>
- <baseinfo>
- <baseinfolist>
- <cdgrupid/>
- <grupdetldesc/>
- <cdid/>
- <cdnm/>
- <valifromdd/>
- <instcd/>
- <sortseq/>
- <valitodd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <supcdid/>
- </baseinfolist>
- </baseinfo>
- </main>
- <send>
- <req>
- <instcd/>
- <cdgrupid/>
- </req>
- </send>
- <hidden>
- <prcpinfo>
- <prcpinfolist/>
- </prcpinfo>
- </hidden>
- <temp>
- <prcpinfo/>
- </temp>
- <init>
- <codelist>
- <code>
- <cdnm>전체</cdnm>
- <cdid/>
- </code>
- <code>
- <cdnm>진검</cdnm>
- <cdid>B2</cdid>
- </code>
- <code>
- <cdnm>영상</cdnm>
- <cdid>C2</cdid>
- </code>
- <code>
- <cdnm>처치</cdnm>
- <cdid>H4</cdid>
- </code>
- <code>
- <cdnm>병리</cdnm>
- <cdid>D2</cdid>
- </code>
- </codelist>
- <codelist1>
- <code>
- <cdnm>진검</cdnm>
- <cdid>B2</cdid>
- </code>
- <code>
- <cdnm>영상</cdnm>
- <cdid>C2</cdid>
- </code>
- <code>
- <cdnm>처치</cdnm>
- <cdid>H4</cdid>
- </code>
- <code>
- <cdnm>병리</cdnm>
- <cdid>D2</cdid>
- </code>
- </codelist1>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset(grd_baseinfo.nodeset);
- grd_baseinfo.refresh();
-
-
- model.setValue(ipt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- ipt_instcd.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fSave() {
- var stat;
- var chk;
- var chk1;
- var chk2;
-
- for(var i = grd_baseinfo.fixedRows; i < grd_baseinfo.rows; i++) {
- stat = grd_baseinfo.rowStatus(i);
-
- if(stat != "0") {
- chk = fValidCheck(i, "cdgrupid");
-
- if(!chk) {
- return;
- }
-
- chk1 = fValidCheck(i, "cdid");
-
- if(!chk1) {
- return;
- }
-
- chk2 = fValidCheck(i, "cdnm");
-
- if(!chk2) {
- return;
- }
- }
- }
-
- var updt = getGridUpdateData(grd_baseinfo);
-
- model.makeValue("/root/send/savedata/baseinfolist", updt);
- submit("TXMNO04301");
-
- fSearch();
- }
-
- function fValidCheck(rownum, colnm) {
- var str = grd_baseinfo.valueMatrix(rownum, grd_baseinfo.colRef(colnm));
-
- if(str == "") {
- messageBox(rownum + "번째 열 " + grd_baseinfo.valueMatrix(0, grd_baseinfo.colRef(colnm)) + "값을 입력하세요.", "I");
- grd_baseinfo.row = rownum;
- grd_baseinfo.col = grd_baseinfo.colRef(colnm);
- return false;;
- }
- return true;
- }
-
- function fSetPopupData(curCol) {
-
- model.makeValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/req/prcpcd", grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdid")));
-
- submit("TRMNO04401");
-
- var cnt = instance1.selectNodes("/root/hidden/prcpinfo/prcpinfolist").length;
-
- var curRow = grd_baseinfo.row;
-
- if(cnt == 1) {
-
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdid")) = model.getValue("/root/hidden/prcpinfo/prcpinfolist/prcpcd");
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid")) = model.getValue("/root/hidden/prcpinfo/prcpinfolist/prcpclscd");
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdnm")) = model.getValue("/root/hidden/prcpinfo/prcpinfolist/prcpnm");
- } else {
-
- if(grd_baseinfo.colRef("cdid") == curCol ) {
-
- model.property("prcpcd") = grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdid"));
- model.property("prcpnm") = "";
- } else if(grd_baseinfo.colRef("cdnm") == curCol ) {
-
-
- model.property("prcpcd") = "";
- model.property("prcpnm") = grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdnm"));
- }
-
- model.property("prcpclscd") = grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid"));
- modal("SPMNO04400");
-
- var cnt = instance1.selectNodes("/root/temp/prcpinfo").length;
-
- if(cnt > 1) {
- for(var i = 0; i < cnt; i++) {
-
- if(i!=0) {
- grd_baseinfo.addRow();
- }
-
- grd_baseinfo.valueMatrix(curRow + i, grd_baseinfo.colRef("cdid")) = model.getValue("/root/temp/prcpinfo[" + (i + 1) + "]/prcpcd");
- grd_baseinfo.valueMatrix(curRow + i, grd_baseinfo.colRef("cdgrupid")) = model.getValue("/root/temp/prcpinfo[" + (i + 1) + "]/prcpclscd");
- grd_baseinfo.valueMatrix(curRow + i, grd_baseinfo.colRef("cdnm")) = model.getValue("/root/temp/prcpinfo[" + (i + 1) + "]/prcpnm");
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("grupdetldesc")) = grd_baseinfo.labelMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid"))
- }
-
- } else if(cnt == 1) {
-
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdid")) = model.getValue("/root/temp/prcpinfo/prcpcd");
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid")) = model.getValue("/root/temp/prcpinfo/prcpclscd");
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdnm")) = model.getValue("/root/temp/prcpinfo/prcpnm");
-
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("grupdetldesc")) = grd_baseinfo.labelMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid"))
- }
- }
- model.resetInstanceNode("/root/hidden/prcpinfo/prcpinfolist");
- model.resetInstanceNode("/root/temp/prcpinfo");
- }
-
- function fSearch() {
- model.setValue("/root/send/req/instcd", model.getValue(ipt_instcd.attribute("ref")));
- model.setValue("/root/send/req/cdgrupid", model.getValue(rdo_cdgrupid.attribute("ref")));
- submit("TRMNO04301");
- }
- ]]>
- </script>
- <submission id="TXMNO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMNO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/baseinfo"/>
- <submission id="TRMNO04401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/prcpinfo"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="570" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:535px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">처방기준자료관리</caption>
- </group>
- <datagrid id="grd_baseinfo" nodeset="/root/main/baseinfo/baseinfolist" caption="처방분류^처방코드^처방명^처방분류명^시작일^기관코드^순번^종료일^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^상위코드" colsep="^" colwidth="100, 98, 324, 1, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:535px; height:395px; ">
- <col ref="cdgrupid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/codelist1/code">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cdid" type="input" style="text-align:center; "/>
- <col imemode="hangul" ref="cdnm" type="inputbutton" style="text-align:left; "/>
- <col ref="grupdetldesc" visibility="visible"/>
- <col ref="valifromdd"/>
- <col ref="instcd"/>
- <col ref="sortseq"/>
- <col ref="valitodd"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <col ref="supcdid"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_recstandlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_baseinfo.col == grd_baseinfo.colRef("cdgrupid")) {
- grd_baseinfo.valueMatrix(grd_baseinfo.row, grd_baseinfo.colRef("grupdetldesc")) = grd_baseinfo.labelMatrix(grd_baseinfo.row, grd_baseinfo.colRef("cdgrupid"));
- } else if (grd_baseinfo.col == grd_baseinfo.colRef("cdid")) {
-
- fSetPopupData(grd_baseinfo.col);
- } else if(grd_baseinfo.col == grd_baseinfo.colRef("cdnm")) {
-
- fSetPopupData(grd_baseinfo.col);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn5_letter2" style="left:491px; top:60px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:435px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_baseinfo.addrow();
-
- var row = grd_baseinfo.row;
-
- var cdgrupid = model.getValue(cmb_cdgrupid.attribute("ref"));
- var cdgrupnm = cmb_cdgrupid.label;
-
- if(cdgrupid != "") {
- grd_baseinfo.valueMatrix(row, grd_baseinfo.colRef("cdgrupid")) = cdgrupid;
- grd_baseinfo.valueMatrix(row, grd_baseinfo.colRef("grupdetldesc")) = cdgrupnm;
- }
-
- ]]>
- </script>
- </button>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:535px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:29px; width:86px; height:17px; ">처방분류 :</caption>
- <select1 id="cmb_cdgrupid" ref="/root/main/cond/cdgrupid" visibility="hidden" appearance="minimal" style="left:105px; top:58px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codelist/code">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:535px; y2:80px; "/>
- <button id="button7" class="btn1_letter2" style="left:465px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:455px; y1:28px; x2:455px; y2:48px; "/>
- <select1 id="rdo_cdgrupid" ref="/root/main/cond/cdgrupid" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:105px; top:30px; width:100px; height:13px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/codelist/code">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <input id="ipt_instcd" ref="/root/main/cond/instcd" visibility="hidden" style="left:180px; top:60px; width:100px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|