123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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>
- <rscmiocdlist/>
- </main>
- <send>
- <instcd/>
- </send>
- <init>
- <ioflag>
- <label>입고</label>
- <value>I</value>
- <label>출고</label>
- <value>O</value>
- </ioflag>
- <abactflag>
- <label>장부</label>
- <value>0</value>
- <label>실물</label>
- <value>1</value>
- <label>장부/실물</label>
- <value>2</value>
- </abactflag>
- <stocupdtbase>
- <label>-</label>
- <value>-</value>
- <label>+</label>
- <value>+</value>
- </stocupdtbase>
- <unitcostappbase>
- <label>선입선출</label>
- <value>1</value>
- <label>단가입력</label>
- <value>2</value>
- <label>후입선출</label>
- <value>3</value>
- </unitcostappbase>
- <etccd>
- <label>ENTRY</label>
- <value>E</value>
- <label>QUERY</label>
- <value>Q</value>
- <label>사용안함</label>
- <value>N</value>
- </etccd>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSC00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rscmiocdlist"/>
- <submission id="TXRSC00501" ref="/root/main/rscmpcomlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_rscmiocdlist);
-
- //기관코드 설정.
- misfComboComCdList("Z0007", cmb_instcd);
-
-
- // 사용자 기관코드 기본 설정.
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
- misfMsterDetailSet(grd_rscmiocdlist, null, "TRRSC00501", "Y");
-
- // 조회.
- btn_search.dispatch("DOMActivate");
- }
-
- function fCheckGridNotUpdate()
- {
- for(var fRow = grd_rscmiocdlist.fixedRows; fRow < grd_rscmiocdlist.rows; fRow++)
- {
- grd_rscmiocdlist.isReadOnly(fRow, grd_rscmiocdlist.colRef("iokindcd")) = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; ">입출유형코드관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">기관코드 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( getGridUpdateData(grd_rscmiocdlist) != "" )
- {
- if( messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
- misfMsterDetailRetrieve();
- fCheckGridNotUpdate();
- }else{
- return;
- }
-
- }else{
- //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
- misfMsterDetailRetrieve();
- fCheckGridNotUpdate();
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:108px; top:8px; width:200px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:14px; ">입출유형코드List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <datagrid id="grd_rscmiocdlist" nodeset="/root/main/rscmiocdlist" caption="기관코드^입출유형코드^입출유형명^입출력구분^장부실물구분^재고반영기준^단가적용기준^ID^구매사용코드구분^영양사용코드구분^약국사용코드구분^비고^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^최종수정일시" colwidth="100, 85, 130, 100, 101, 95, 100, 80, 110, 110, 110, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:74px; width:1195px; height:661px; ">
- <col ref="instcd" visibility="hidden"/>
- <col class="input_s_essential" ref="iokindcd" type="input" _key="true"/>
- <col ref="iokindnm" type="input"/>
- <col ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="abactflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/abactflag">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="stocupdtbase" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/stocupdtbase">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="unitcostappbase" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/unitcostappbase">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="updtcolmid" visibility="hidden"/>
- <col ref="purcetccd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/etccd">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="nutetccd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/etccd">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="parmetccd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/etccd">
- <value ref="value"/>
- <label ref="label"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rscmiocdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_add" class="btn2_letter3" style="left:1085px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscmiocdlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" style="left:1141px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscmiocdlist, "D");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( getGridUpdateData(grd_rscmiocdlist) == "" )
- {
- messageBox("업데이트 된 내용이", "I004");
- return;
- }
-
- if( !checkKeyColumn("grd_rscmiocdlist") ) return;
-
- misfSave("TXRSC00501");
-
- btn_search.dispatch("DOMAtivate");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ) btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|