123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <?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/>
- </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", "03");
- 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:615px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:580px; y1:25px; x2:580px; y2:50px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:65px; width:144px; height:14px; ">안전재고 제한 마스터</caption>
- <button id="btn_excel" class="btn5_letter3" style="left:395px; top:60px; width:53px; height:19px; ">
- <caption>Excel</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:595px; 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" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:center; "/>
- <col ref="goodnm" type="input" 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="xforms-value-changed">
- <![CDATA[
- if (isDataCell() == true) {
- model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
- if (grd_safestoc.colRef("goodcd")) {
- model.makeValue("/root/send/reqdata/goodcd" , grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.col));
- model.makeValue("/root/send/reqdata/goodnm" , "");
- } else if (grd_safestoc.colRef("goodnm")){
- model.makeValue("/root/send/reqdata/goodnm" , grd_safestoc.valueMatrix(grd_safestoc.row, grd_safestoc.col));
- model.makeValue("/root/send/reqdata/goodcd" , "");
- }
- if (grd_safestoc.colRef("goodcd") || grd_safestoc.colRef("goodnm")) {
- 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" , "03");
- 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" , "");
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_insert" class="btn2_letter3" style="left:560px; 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" , "03");
- 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="btn2_letter2" style="left:505px; top:60px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/safestoc", grd_safestoc.getUpdateData())
- submit("TXRSC05501");
- ]]>
- </script>
- </button>
- <output id="opt_instcdnm" ref="/root/main/cond/instnm" class="output_fix" style="left:105px; top:30px; width:150px; height:19px; "/>
- <output id="opt_instcd" ref="/root/main/cond/instcd" class="output_fix" visibility="hidden" style="left:260px; top:30px; width:20px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|