123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?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="">
- <main>
- <cond>
- <instcd/>
- <instnm/>
- <workflag/>
- <useyn>Y</useyn>
- </cond>
- <safestocinfo>
- <safestoclist/>
- </safestocinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <main/>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/main"/>
- <submission id="TRRSC05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/safestocinfo"/>
- <submission id="TXRSC05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/init/main"/>
- </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[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_safestoc);
- model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
- model.setValue("/root/main/cond/workflag", "01");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="740" guideline="1,701;2,740;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:670px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">공동관리약품마스터</caption>
- <button id="btn_delete" class="btn2_letter3" style="left:556px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_safestoc, "D");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:540px; y1:25px; x2:540px; y2:50px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:65px; width:144px; height:14px; ">공동관리약품마스터</caption>
- <button id="btn_excel" class="btn1_letter2" style="left:605px; top:27px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_safestoc , "공동관리약품마스터");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:670px; y2:80px; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:29px; width:86px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:545px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (submit("TRRSC05501") == true) {
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_safestoc" nodeset="/root/main/safestocinfo/safestoclist" caption="사용^물품코드^품명^시작일자^종료일자^기관코드^구분" colsep="^" colwidth="34, 115, 300, 90, 91, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:85px; width:670px; height:634px; ">
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="goodcd" type="input" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:center; "/>
- <col ref="goodnm" type="output" style="text-align:center; "/>
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if (isDataCell() == true) {
-
- var sGoodcd = grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("goodcd"));
- var sGoodnm = grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("goodnm"));
-
- model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
- if (grd_safestoc.col == grd_safestoc.colRef("goodcd")) {
- model.makeValue("/root/send/reqdata/goodcd" , sGoodcd);
- model.makeValue("/root/send/reqdata/goodnm" , "");
- } else if (grd_safestoc.col == grd_safestoc.colRef("goodnm")){
- model.makeValue("/root/send/reqdata/goodnm" , sGoodnm);
- model.makeValue("/root/send/reqdata/goodcd" , "");
- }
-
- if (grd_safestoc.col == grd_safestoc.colRef("goodcd") || grd_safestoc.col == grd_safestoc.colRef("goodnm")) {
-
- if(sGoodcd!=""){
- if (submit("TRRSD00192") == true) {
- var nodecnts = getNodesetCount("/root/init/main/goodlist");
- if (nodecnts >= 2) {
- group1.visible = true;
- } else if (nodecnts == 1) {
-
- var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
-
- var row2 = grd_safestoc.row;
-
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , goodcd)
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , goodnm)
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/instcd" , model.getValue("/root/main/cond/instcd"));
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/workflag" , "01");
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/useyn" , "Y")
- group1.visible = false;
- model.refresh();
- } else {
- messageBox("검색된 코드가 없습니다.", "I");
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , "");
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , "");
- }
- }
- }else{
- grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("goodcd"))="";
- grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("goodnm"))="";
- }
-
- }
- }
- grd_safestoc.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_safestoc.col == grd_safestoc.colRef("useyn")){
- var chgUseyn = grd_safestoc.valueMatrix(grd_safestoc.row,grd_safestoc.colRef("useyn"));
- if(chgUseyn=="Y"){
- grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("todd"))="99991231";
- }else{
- grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.colRef("todd"))=getCurrentDate();
- }
- }
- grd_safestoc.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_insert" class="btn2_letter3" style="left:500px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_safestoc.addRow();
- var row = grd_safestoc.row
- model.setValue("/root/main/safestocinfo/safestoclist[" + row + "]/fromdd" , getCurrentDate());
- model.setValue("/root/main/safestocinfo/safestoclist[" + row + "]/todd" , "99991231");
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:70px; top:170px; width:410px; height:170px; ">
- <datagrid id="grd_pharmcylist" nodeset="/root/init/main/goodlist" visibility="visible" caption="물품코드^품명" colsep="^" colwidth="102, 270" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:20px; width:410px; height:150px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- var row = grd_pharmcylist.row;
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + row + "]/goodnm");
-
- var row2 = grd_safestoc.row;
-
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodcd" , goodcd)
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/goodnm" , goodnm)
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/instcd" , model.getValue("/root/main/cond/instcd"));
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/workflag" , "01");
- model.setValue("/root/main/safestocinfo/safestoclist[" + row2 + "]/useyn" , "Y")
- group1.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:340px; top:0px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/safestocinfo/safestoclist[" + grd_safestoc.row + "]/goodcd" , "");
- model.setValue("/root/main/safestocinfo/safestoclist[" + grd_safestoc.row + "]/goodnm" , "");
- group1.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="button2" class="btn4_letter2" style="left:614px; top:58px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/safestoc", grd_safestoc.getUpdateData());
- if(submit("TXRSC05501")){
- btn_search.dispatch("DOMActivate")
- }
-
- ]]>
- </script>
- </button>
- <output id="opt_instcdnm" ref="/root/main/cond/instnm" class="output_fix" style="left:105px; top:30px; width:150px; height:19px; text-align:center; "/>
- <output id="opt_instcd" ref="/root/main/cond/instcd" class="output_fix" visibility="hidden" style="left:145px; top:60px; width:20px; height:19px; "/>
- <select1 id="rdo_useyn" ref="/root/main/cond/useyn" appearance="full" cols="2" overflow="visible" style="left:373px; top:29px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:280px; top:29px; width:86px; height:17px; ">사용여부 :</caption>
- </xhtml:body>
- </xhtml:html>
|