123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>상용SET관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <setdetlinfo>
- <setdetllist/>
- </setdetlinfo>
- <cond>
- <instcd/>
- <csrreqdeptcd/>
- <deptcd/>
- <deptnm/>
- <useyn/>
- <csrreqdeptcd2/>
- </cond>
- <newElement/>
- <csrbipuminfo>
- <csrbipumlist/>
- </csrbipuminfo>
- </main>
- <init/>
- <temp>
- </temp>
- <send>
- </send>
- <cond>
- <instcd/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <reqflag/>
- <proddrugsetflag/>
- <goodcd/>
- <reqdata/>
- <goodflag>01</goodflag>
- </cond>
- <hidden>
- <cond>
- <checkallitem/>
- <checkallitem2/>
- </cond>
- <csrdeptlist/>
- <deptcodelist/>
- <common>
- <instcdinfo/>
- </common>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //submit 되는 node 들을 초기화한다
- fInitialize();
-
-
- ]]>
- </script>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/csrreqdeptlist"/>
- <submission id="TRRSS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
- <submission id="TRMNG00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
- <submission id="TXMNG00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TXMNG00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/setdetlinfo"/>
- <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lrglist"/>
- <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/mdllist"/>
- <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/smllist"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/csrdeptlist"/>
- <submission id="TRMNG00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/csrbipuminfo"/>
- <submission id="TRMNG00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/deptcodelist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- var curRow = -1;
-
- function fInitialize(){
-
- model.removeNodeset("/root/main/csrbipuminfo/csrbipumlist");
- model.removeNodeset("/root/main/setdetlinfo/setdetllist");
- zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- cmb_instcd.refresh();
-
-
- model.makeValue("/root/main/cond/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.makeValue("/root/main/cond/useyn", "Y");
-
- submit("TRMNG00401");
-
- submit("TRMNG00101"); //대분류 조회
-
- addComboItem( "cmb_lrgcd", "전체", "", "above");
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/refcond", "deptcd");
- submit("TRMNG00303");//부서구분 조회
-
- model.setValue("/root/main/cond/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
- cmb_csrreqdeptcd.refresh();
- model.removeNodeset("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- model.setValue("/root/main/cond/deptcd",getUserInfo("dutplcecd"));
- cmb_deptcd.refresh();
- model.removeNodeset("/root/send/reqdata");
- fSearch();
- }
-
- function fSearch() {
- model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
- //model.makeValue("/root/send/reqdata/csrreqdeptcd", model.getValue(cmb_csrreqdeptcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
- if(submit("TRMNG00802")){
- grd_setdetllist.rebuild();
- grd_setdetllist.rebuildStyle();
- for(var i = 0 ; i < grd_setdetllist.rows ; i++){
- if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
- setRowStyle("grd_setdetllist","1","2","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
- setRowStyle("grd_setdetllist","2","3","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
- setRowStyle("grd_setdetllist","3","4","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
- setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
- }
- }
- }
- }
-
- function fSearch2() {
- model.makeValue("/root/send/reqdata/instcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("instcd")));
- model.makeValue("/root/send/reqdata/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
- model.makeValue("/root/send/reqdata/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
-
- submit("TRMNG00802");
- }
-
- function fSave() {
-
- var updtdata = getGridUpdateData(grd_setlist);
-
- model.makeValue("/root/send/savedata/updtdata", updtdata);
-
- if(submit("TXMNG00801")) {
- messageBox("상용SET저장이 완료되었습니다. ", "I");
-
- fSearch();
- }
-
- }
-
- function fSave2() {
- var updtdata = getGridUpdateData(grd_setdetllist);
-
- model.makeValue("/root/send/savedata/updtdata", updtdata);
-
- submit("TXMNG00802");
- }
- function fSerachData()
- {
- model.makeValue("/root/cond/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/cond/rgstflag", "4");
- submit("TRMNG00801");
- }
-
- function fSetGridData() {
-
- if (grd_setdetllist.col == grd_setdetllist.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD06001_/SMRSD06001_value");
- model.makeNode("/root/copynode");
-
- model.property("deptcd") = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd"));
- model.property("deptnm") = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptnm"));
-
- modal("SPRSD06002", "", "", "", "", "", "","width:900px;height:530px;align:left;");
-
- model.property("deptcd") = "";
- model.property("deptnm") = "";
-
- var CSV = model.getValue(gvParamPath + "/SMRSD06002_/SMRSD06002_value");
-
-
- setCSVToNode("/root/copynode", CSV, "grd_setdetllist");
-
- fSettingGoodList("/root/copynode","grd_setdetllist");
- }
- }
- //팝업에서 선택한 항목을 해당 그리드에 셋팅한다.
- function fSettingGoodList(pnode, grdName)
- {
- var datagrid = document.controls(grdName);
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = datagrid.rows - datagrid.fixedRows;
-
-
- for (var j = 1; j <= codynode.length ; j++)
- {
-
- if(addRow > datagrid.rows - datagrid.fixedRows)
- {
- misfGridIUD(datagrid,"A");
- addRow = datagrid.rows - datagrid.fixedRows;
- }
-
- model.setValue(datagrid.nodeset + "[" + addRow + "]/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/deptnm", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptnm")));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/csrreqdeptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("csrreqdeptcd")));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/reqflag", model.getValue(pnode +"/" + grdName + "[" + j + "]/reqflag"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/goodcd"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodnm"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodspec"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodmodel"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/dinfflag" , model.getValue(pnode +"/" + grdName + "[" + j + "]/dinfflag"));
- model.setValue(datagrid.nodeset + "[" + addRow + "]/instcd" , cmb_instcd.value);
-
- addRow = addRow + 1;
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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:206px; height:14px; ">상용SET관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipuminfo/csrbipumlist" class="datagrid2" caption="^물품구분^물품코드^물품명^규격^모델^멸균구분" colsep="^" colwidth="23, 62, 85, 217, 60, 60, 57" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:165px; width:545px; height:560px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="goodcd"/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col disabled="true" ref="dinfflag" type="combo">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <group id="group2" style="left:5px; top:10px; width:545px; height:105px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:545px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:460px; y1:42px; x2:460px; y2:68px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:470px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSerachData();
- ]]>
- </script>
- </button>
- <select1 id="cmb_smlcd" ref="/root/cond/smlcd" appearance="minimal" style="left:300px; top:4px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smllist">
- <label ref="smlnm"/>
- <value ref="smlcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_lrgcd" ref="/root/cond/lrgcd" appearance="minimal" style="left:100px; top:4px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/lrglist">
- <label ref="lrgnm"/>
- <value ref="lrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMNG00102");
-
- var nodelist = instance1.selectNodes("/root/init/mdllist");
- model.removeNodeset("/root/cond/mdlcd");
- model.removeNodeset("/root/cond/smlcd");
- model.makeNode("/root/cond/mdlcd");
-
- if(nodelist.length < 1 ){
- model.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- }else{
- addComboItem( "cmb_mdlcd", "전체", "", "above");
- model.setValue("/root/cond/mdlcd",model.getValue("/root/init/mdllist/mdlcd[1]"));
- }
- cmb_mdlcd.refresh();
- cmb_smlcd.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="rdo_proddrugsetflag" ref="/root/cond/proddrugsetflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:55px; width:185px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Set</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_reqdata" ref="/root/cond/reqdata" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:76px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_goodcd" class="search_name" style="left:10px; top:78px; width:86px; height:17px; ">검색구분 :</caption>
- <select1 id="cmb_mdlcd" ref="/root/cond/mdlcd" appearance="minimal" style="left:200px; top:4px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mdllist">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMNG00103");
-
- var nodelist = instance1.selectNodes("/root/init/smllist");
- model.removeNodeset("/root/cond/smlcd");
- model.makeNode("/root/cond/smlcd");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/smllist");
- }else{
- addComboItem( "cmb_smlcd", "전체", "", "above");
- model.setValue("/root/cond/smlcd",model.getValue("/root/init/smllist/smlcd[1]"));
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:10px; top:55px; width:86px; height:17px; ">Set구분 :</caption>
- <caption id="caption13" class="search_name" style="left:10px; top:5px; width:86px; height:17px; ">분류구분 :</caption>
- <caption id="caption14" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="rdo_reqflag" ref="/root/cond/reqflag" appearance="full" cols="5" overflow="visible" style="left:100px; top:30px; width:261px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_goodflag" ref="/root/cond/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:80px; width:125px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>01</value>
- </item>
- <item>
- <label>물품명</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption12" class="tit_2" style="left:5px; top:144px; width:121px; height:14px; ">물품검색결과</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:160px; x2:550px; y2:160px; "/>
- <group id="grp_sea" style="left:580px; top:17px; width:610px; height:50px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:610px; height:50px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="bnt_search" class="btn1_letter2" style="left:550px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:545px; y1:15px; x2:545px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:17px; width:91px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="input_s_essential" disabled="true" appearance="minimal" style="left:92px; top:17px; width:103px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" appearance="minimal" style="left:454px; top:17px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:370px; top:19px; width:89px; height:17px; ">부 서 명 :</caption>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:200px; top:19px; width:89px; height:17px; ">부서구분 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/main/cond/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:289px; top:17px; width:76px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- cmb_deptcd.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_setdetllist" nodeset="/root/main/setdetlinfo/setdetllist" class="datagrid2" caption="삭제^setcd^부서구분^instcd^부서코드^정렬
순서^부서명^물품구분^물품코드^물품명^규격^모델^멸균구분^저장일시^저장자^rgstflag^deptcd^deptcgflag" colsep="^" colwidth="34, 0, 39, 0, 0, 42, 92, 64, 80, 209, 100, 100, 55, 120, 70, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:580px; top:165px; width:610px; height:560px; ">
- <col checkvalue="Y,N" ref="delyn" type="checkbox"/>
- <col ref="setcd"/>
- <col ref="csrreqdeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="sortno" type="input"/>
- <col ref="deptnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="rgstflag" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptcgflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_setdetllist.col == grd_setdetllist.colRef("sortno")){ // 순서변경시 update
- var rowstatus = grd_setdetllist.rowStatus(grd_setdetllist.row);
- if (rowstatus != "1" && rowstatus != "3") {
- grd_setdetllist.rowStatus(grd_setdetllist.row)="2";
- }
- } else {
- var deptcgflag = grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("deptcgflag"));
- var goodnm = grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("goodnm"));
- if(deptcgflag =="D"){
- messageBox(goodnm+" "+"은(는) 부서 비품수량으로 이미 등록된 코드이므로 삭제할 수","I004");
- grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("delyn")) ="N" ;
- grd_setdetllist.rowStatus(grd_setdetllist.row)="0";
- }else{
- if(grd_setdetllist.valueMatrix(grd_setdetllist.row,grd_setdetllist.colRef("delyn"))=="Y"){
- grd_setdetllist.rowStatus(grd_setdetllist.row)="4";
- }else{
- grd_setdetllist.rowStatus(grd_setdetllist.row)="0";
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:580px; top:144px; width:131px; height:14px; ">부서 상용 Set 내역</caption>
- <line id="line1" class="line_1" style="x1:580px; y1:160px; x2:1190px; y2:160px; "/>
- <button id="btn_addlist" class="icon_right" navindex="15" style="left:552px; top:445px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var vPath = "/root/main/csrbipuminfo/csrbipumlist";
- for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
- if (model.getValue(vPath+"["+ i + "]/chkyn") == "Y") {
- goodnm = model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodnm");
- goodcd = model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodcd");
- if (model.getValue("/root/main/setdetlinfo/setdetllist[goodcd='"+goodcd+"']/goodcd") =="") {
- grd_setdetllist.addRow(false);
- grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("deptcd")) = cmb_deptcd.value;
- grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("deptnm")) = cmb_deptcd.label;
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/reqflag" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/reqflag"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodcd" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodcd"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodnm" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodnm"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodspec" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodspec"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/goodmodel" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/goodmodel"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/dinfflag" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/dinfflag"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/lastupdtdt" ,model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/lastupdtdt"));
- model.setValue("/root/main/setdetlinfo/setdetllist["+grd_setdetllist.row+"]/lastupdtrnm",model.getValue("/root/main/csrbipuminfo/csrbipumlist["+i+"]/lastupdtrnm"));
- grd_setdetllist.rowStatus(grd_setdetllist.rows-1) = "1";
-
- if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="2"){
- setRowStyle("grd_setdetllist","1","2","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="3"){
- setRowStyle("grd_setdetllist","2","3","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(grd_setdetllist.rows-1,grd_setdetllist.colRef("reqflag")) =="4"){
- setRowStyle("grd_setdetllist","3","4","reqflag","equal");
- }
- }else{
- messageBox(goodnm+" "+"은(는) 부서 상용Set으로 이미 등록된 코드","I009");
- }
- }
- model.setValue(vPath+"["+ i + "]/chkyn","N");
- }
- bool2.value ="N";
- model.refresh();
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/hidden/cond/checkallitem" style="left:577px; top:171px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool1.value == "Y"){
- for(var i = 1 ; i < grd_setdetllist.rows ; i++){
- var deptcgflag = grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag"));
- var goodnm = grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("goodnm"));
- if(deptcgflag =="D"){
- messageBox(goodnm+" "+"은(는) 부서 비품수량으로 이미 등록된 코드이므로 삭제할 수","I004");
- grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) ="N";
- grd_setdetllist.rowStatus(i)="0";
- }else{
- grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) = "Y";
- grd_setdetllist.rowStatus(i)="4";
- }
- }
- }else{
- for(var i = 1 ; i < grd_setdetllist.rows ; i++){
- grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("delyn")) = "N";
- grd_setdetllist.rowStatus(i)="0";
- }
- }
- grd_setdetllist.refresh();
- ]]>
- </script>
- </bool>
- <button id="btn_save" class="btn4_letter2" style="left:1127px; top:135px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/cond/instcd" ,model.getValue("/root/main/cond/instcd"));
- model.makeValue("/root/send/savedata/cond/csrreqdeptcd" ,model.getValue("/root/main/cond/csrreqdeptcd"));
- model.makeValue("/root/send/savedata/cond/deptcd" ,model.getValue("/root/main/cond/deptcd"));
- model.makeValue("/root/send/savedata/setdetllist",grd_setdetllist.getUpdateData());
- if(submit("TXMNG00802")){
- bnt_search.dispatch("DOMActivate");
- model.removeNodeset("/root/send/savedata");
- grd_setdetllist.rebuild();
- grd_setdetllist.rebuildStyle();
- for(var i = 0 ; i < grd_setdetllist.rows ; i++){
- if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
- setRowStyle("grd_setdetllist","1","2","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
- setRowStyle("grd_setdetllist","2","3","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
- setRowStyle("grd_setdetllist","3","4","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
- setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <bool id="bool2" checkvalue="Y,N" ref="/root/hidden/cond/checkallitem2" style="left:22px; top:171px; width:30px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(bool2.value == "Y"){
- for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
- grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("chkyn")) = "Y";
- }
- }else{
- for(var i = 1 ; i < grd_csrbipumlist.rows ; i++){
- grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("chkyn")) = "N";
- }
- }
- grd_csrbipumlist.refresh();
- ]]>
- </script>
- </bool>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line11" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line5" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_screenmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <select1 id="cmb_goodflag" visibility="hidden" appearance="minimal" style="left:875px; top:5px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|