123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609 |
- <?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>
- <list>
- <goodmst>
- <goodmstlist/>
- </goodmst>
- <goodset>
- <goodsetlist/>
- <goodsettstlist/>
- </goodset>
- </list>
- <goodset>
- <goodsettstlist>
- <goodcd/>
- <prodmthd/>
- <efcy/>
- <cnfmexam/>
- <fixqtymthd/>
- <nonbacexam/>
- <rorgnmatr/>
- <cmt/>
- </goodsettstlist>
- </goodset>
- </main>
- <target>
- <defaultvalue>
- <instcd/>
- <setplceordflag/>
- <goodcd/>
- <goodnm/>
- <goodflag/>
- </defaultvalue>
- </target>
- <send>
- <goodmstset>
- <instcd/>
- <proddrugsetflag/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- </goodmstset>
- <goodset>
- <instcd/>
- <proddrugsetflag/>
- <goodcd/>
- </goodset>
- <save>
- <goodsetlist/>
- <goodsettstlist/>
- </save>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodmstset" resultref="/root/main/list/goodmst"/>
- <submission id="TRRSC00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodset" resultref="/root/main/list/goodset"/>
- <submission id="TXRSC00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- </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">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_setmstlist);
- misfGridInit(grd_setlist);
- misfGridInit(grd_settst);
-
- misfMsterDetailSet(grd_setmstlist,null, "TRRSC00401" ,"N");
- misfMsterDetailSet(grd_setlist,grd_setmstlist, "TRRSC00210" ,"Y");
- misfMsterDetailSet(grd_settst,grd_setmstlist, "TRRSC00210" ,"Y");
- misfGridComboComCdList("R0034",grd_setlist,"compsgoodunit");
- misfComboComCdListMulti("Z0007,R0068", "cmb_instcd,cmb_proddrugsetflag"); //기관코드,set 제제약 구분
- model.refresh();
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fDefaultSetting(prow)
- {
- model.setValue(grd_setlist.nodeset + "["+ prow + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_setlist.nodeset + "["+ prow+ "]/proddrugsetflag" , model.getValue(cmb_proddrugsetflag.attribute("ref")));
- model.setValue(grd_setlist.nodeset + "["+ prow + "]/goodcd" , grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
- }
-
- function fSettingGoodList(pnode, nodename){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_setlist.rows - grd_setlist.fixedRows;
- if(model.getValue(grd_setlist.nodeset + "/goodsetlist[" + addRow + "]/comdrugtoolcd").length > 0)addRow = addRow + 1;
-
- for (var j = 1; j <= codynode.length ; j++) {
- if(addRow > grd_setlist.rows - grd_setlist.fixedRows)
- {
- misfGridIUD(grd_setlist,"A");
- addRow = grd_setlist.rows - grd_setlist.fixedRows;
- fDefaultSetting(addRow );
- }
- model.setValue(grd_setlist.nodeset + "[" + addRow + "]/comdrugtoolcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_setlist.nodeset + "[" + addRow + "]/consitemnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_setlist.nodeset + "[" + addRow + "]/compsgoodunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
- model.setValue(grd_setlist.nodeset + "[" + addRow + "]/consqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/userqty"));
- addRow = addRow + 1;
- }
-
- //model.removenode(pnode);
- model.refresh();
- }
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드는" ,"I003");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
-
- if(swt_select.selected == 0)
- {
- if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("SET구분은" ,"I003");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- }
- else
- {
- if(grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")).length == 0 )
- {
- if(pmsg == true)
- {
- messageBox("SET구분은" ,"I003");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- }
- /*
- if(model.getValue(opt_goodcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("물품구분" ,"I003");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- */
- return true;
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드는" ,"I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length== 0 )
- {
- messageBox("SET구분은" ,"I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- /*
- if(model.getValue(opt_goodcd.attribute("ref")).length== 0 )
- {
- messageBox("물품구분" ,"I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- */
- for(var currow = 1 ; currow < grd_setlist.rows ; currow++)
- {
- if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("comdrugtoolcd")).length == 0)
- {
- messageBox(currow + " 번째 물품코드를" ,"C001");
- grd_setlist.row = currow;
- grd_setlist.col= grd_setlist.colRef("comdrugtoolcd");
- grd_setlist.editCell();
- return false;
- }
- if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("consqty")) == 0)
- {
- messageBox(currow + " 번째 수량을" ,"C001");
- grd_setlist.row = currow;
- grd_setlist.col= grd_setlist.colRef("consqty");
- grd_setlist.editCell();
- return false;
- }
- if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("compsgoodunit")) == 0)
- {
- messageBox(currow + " 번째 단위를" ,"C001");
- grd_setlist.row = currow;
- grd_setlist.col= grd_setlist.colRef("compsgoodunit");
- return false;
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:124px; height:14px; ">제제약 제원 등록</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:77px; width:136px; height:13px; ">제제약 List</caption>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:61; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:61; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption4" class="search_name" style="left:15; top:9px; width:104px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodmstset/instcd" class="combo_essential" appearance="minimal" style="left:100px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- model.resetInstanceNode("/root/main/goodset/goodsettstlist");
- misfMsterDetailRetrieve();
- if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
- model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
- grd_settst.row = grd_settst.fixedRows;
- swt_select.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:52px; "/>
- <caption id="caption8" class="search_name" style="left:288px; top:9px; width:86px; height:17px; ">SET구분 :</caption>
- <select1 id="cmb_proddrugsetflag" ref="/root/send/goodmstset/proddrugsetflag" class="combo_essential" appearance="minimal" style="left:373px; top:8px; width:162px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/proddrugsetflag">
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <output id="opt_goodspec" ref="/root/send/goodmstset/goodspec" class="output_fix" appearance="output" style="left:569px; top:35px; width:194px; height:19px; "/>
- <button id="btn_searchgoodcd" class="icon_search" style="left:267px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,PH");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd" ref="/root/send/goodmstset/goodcd" class="input_fix" style="left:100px; top:35px; width:162px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + ",P," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag" ,"Y");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- opt_goodspec.value = "";
- opt_goodmodel.value = "";
- opt_prodcmpynm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:15px; top:36px; width:86px; height:17px; ">물품코드 :</caption>
- <output id="opt_goodmodel" ref="/root/send/goodmstset/goodmodel" class="output_fix" appearance="output" style="left:764px; top:35px; width:158px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/goodmstset/goodnm" class="input_search" style="left:287px; top:35px; width:281px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + ",P,," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag" ,"Y");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- opt_goodspec.value = "";
- opt_goodmodel.value = "";
- opt_prodcmpynm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm" ref="/root/send/goodmstset/prodcmpynm" class="output_fix" appearance="output" style="left:923px; top:35px; width:149px; height:19px; "/>
- </group>
- <button id="button15" class="btn_sw" group="tab" style="left:478px; top:75px; width:108px; height:22px; ">
- <caption>품질관리실험내역</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="button14" class="btn_sw" group="tab" selected="true" style="left:350px; top:75px; width:128px; height:22px; ">
- <caption>제원 및 제제법</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <datagrid id="grd_setmstlist" nodeset="/root/main/list/goodmst/goodmstlist" caption="제제약" colsep="^" colwidth="322" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:95px; width:345px; height:643px; ">
- <col ref="goodnm"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="proddrugsetflag" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(grd_setmstlist.rowStatus(grd_setmstlist.row) == "1" )return;
- model.resetInstanceNode("/root/main/goodset/goodsettstlist");
- misfMsterDetailRetrieve();
- if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
- model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
- grd_settst.row = grd_settst.fixedRows;
- swt_select.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_setmstlist.col == grd_setmstlist.colRef("goodcd") && grd_setmstlist.rowStatus(grd_setmstlist.row) == "1" ) {//구성물품코드를 눌렀을 경우
- var recv_list = "goodcd,goodnm";
- rszfOpenPopUpListByWndName(grd_setmstlist,"",recv_list,"SPRSD00210","instcd","cmb_instcd", "Y");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:90px; x2:345px; y2:90px; "/>
- <switch id="swt_select" style="left:350px; top:97px; width:845px; height:641px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:845; height:640; ">
- <datagrid id="grd_setlist" nodeset="/root/main/list/goodset/goodsetlist" caption="기관코드^제제약, SET구분^물품코드^순번^구성물품코드^구성품명^구성수량^단위^비고" colsep="^" colwidth="0, 0, 0, 39, 101, 291, 65, 85, 239" dataheight="60" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:29px; width:843px; height:601px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="proddrugsetflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="proddrugseqno"/>
- <col ref="comdrugtoolcd" type="inputbutton"/>
- <col ref="consitemnm"/>
- <col ref="consqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="compsgoodunit" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_setlist.col == grd_setlist.colRef("comdrugtoolcd")) {//구성물품코드를 눌렀을 경우
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
- <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
- rszfOpenPopUpListByWndName(grd_setlist,"","comdrugtoolcd,consitemnm","SPRSD00190","instcd,goodflag","cmb_instcd,PH");
-
- var cur_row = grd_setlist.row;
- var status = grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "goodsetlist");
-
- fSettingGoodList("/root/copynode", "goodsetlist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_setlist.col == grd_setlist.colRef("comdrugtoolcd") && grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("consitemnm")).length> 0 ) {
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
- <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/comdrugtoolcd") + ",,,," ,"","minexch",grd_setlist,"SPRSD00190","instcd,goodflag","cmb_instcd,PH","Y");
- model.refresh();
-
- if( grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("consitemnm")).length> 0)
- {
- if(model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/minexch") > 0) model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/consqty",model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/minexch") );
- else model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/consqty","1");
-
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/comdrugtoolcd" , model.getValue("/root/init/main/goodlist/goodcd"));
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consitemnm" , model.getValue("/root/init/main/goodlist/goodnm"));
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/compsgoodunit" , model.getValue("/root/init/main/goodlist/purcunit"));
- }
-
- model.refresh();
-
- var cur_row = grd_setlist.row;
- var status = grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("consitemnm")).length == 0)
- {
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/comdrugtoolcd" , "");
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consitemnm" , "");
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/compsgoodunit" , "");
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consqty" , "");
- grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
- grd_setlist.editCell();
- }
- if(CSV.length > 0)
- {
- model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/comdrugtoolcd","");
- setCSVToNode("/root/copynode", CSV, "goodsetlist");
- fSettingGoodList("/root/copynode", "goodsetlist");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_setlist.colAttribute(grd_setlist.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_setlist.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_setlist.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_setlist.col = curcol;
- grd_setlist.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_setlist.colAttribute(grd_setlist.col, "type").indexOf ("input") == -1)
- {
- if(grd_setlist.col - 1 == grd_setlist.colRef("comdrugtoolcd") && grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.col - 1).length == 0)
- {
- grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
- grd_setlist.editCell();
- return;
- }
- for(curcol = grd_setlist.col ; curcol <grd_setlist.cols ; curcol++)
- {
- if(grd_setlist.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_setlist.col = curcol;
- grd_setlist.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line16" class="line_1" style="x1:0px; y1:24px; x2:843px; y2:24px; "/>
- <button id="button2" class="btn2_letter3" style="left:790px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_setlist, "D");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:735px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(true) == false)return;
- misfGridIUD(grd_setlist, "A");
- grd_setlist.row = grd_setlist.rows -grd_setlist.fixedRows ;
- fDefaultSetting(grd_setlist.row);
- grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
- grd_setlist.editCell();
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <line id="line7" class="line_1" style="x1:0px; y1:24px; x2:843px; y2:24px; "/>
- <line id="line4" class="line_2" style="x1:0; y1:523px; x2:843; y2:523px; "/>
- <line id="line3" class="line_2" style="x1:0; y1:584px; x2:843; y2:584px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:627px; x2:843px; y2:627px; "/>
- <line id="line1" class="line_2" style="x1:0; y1:455px; x2:843; y2:455px; "/>
- <line id="line9" class="line_2" style="x1:0; y1:138px; x2:843; y2:138px; "/>
- <line id="line8" class="line_2" style="x1:0; y1:305px; x2:843; y2:305px; "/>
- <textarea id="textarea1" ref="/root/main/goodset/goodsettstlist/rorgnmatr" style="left:105px; top:527px; width:737px; height:56px; "/>
- <textarea id="textarea2" ref="/root/main/goodset/goodsettstlist/nonbacexam" style="left:105px; top:459px; width:737px; height:63px; "/>
- <textarea id="textarea3" ref="/root/main/goodset/goodsettstlist/cmt" style="left:105px; top:588px; width:737px; height:38px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:525px; width:103px; height:60px; vertical-align:middle; ">이물시험</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:457px; width:103px; height:67px; vertical-align:middle; ">무균시험</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:586px; width:103px; height:42px; vertical-align:middle; ">비고</caption>
- <caption id="caption12" class="cell_1" style="left:0; top:164px; width:103px; height:142px; vertical-align:middle; ">확인시험</caption>
- <caption id="caption13" class="cell_1" style="left:0; top:29px; width:103px; height:110px; vertical-align:middle; ">제제법</caption>
- <caption id="caption14" class="cell_1" style="left:0; top:307px; width:103px; height:149px; vertical-align:middle; ">정량법</caption>
- <textarea id="textarea4" ref="/root/main/goodset/goodsettstlist/cnfmexam" style="left:105px; top:166px; width:737px; height:138px; "/>
- <textarea id="textarea5" ref="/root/main/goodset/goodsettstlist/prodmthd" style="left:105px; top:31px; width:737px; height:106px; "/>
- <textarea id="textarea6" ref="/root/main/goodset/goodsettstlist/fixqtymthd" style="left:105px; top:309px; width:737px; height:145px; "/>
- <textarea id="textarea10" ref="/root/main/goodset/goodsettstlist/efcy" style="left:105px; top:142px; width:737px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:0; top:140px; width:103px; height:23px; vertical-align:middle; ">효능</caption>
- <button id="btn_tstdel" class="btn2_letter3" style="left:790px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_settst, "D");
- ]]>
- </script>
- </button>
- <button id="btn_tstins" class="btn2_letter3" style="left:735px; top:3px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_settst);
- misfGridIUD(grd_settst, "A");
- model.setValue(grd_settst.nodeset + "[" + (grd_settst.row - grd_settst.fixedRows + 1)+ "]/goodcd", grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
- model.copyNode("/root/main/goodset/goodsettstlistt","/root/main/list/goodset/goodsettstlistt");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_2" style="x1:0; y1:162px; x2:843; y2:162px; "/>
- <datagrid id="grd_settst" nodeset="/root/main/list/goodset/goodsettstlist" visibility="hidden" caption="물품코드^제제법^효능^확인시험^정량법^무균시험^이물시험^비고" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:145px; top:255px; width:640px; height:150px; ">
- <col ref="goodcd"/>
- <col ref="prodmthd"/>
- <col ref="efcy"/>
- <col ref="cnfmexam"/>
- <col ref="fixqtymthd"/>
- <col ref="nonbacexam"/>
- <col ref="rorgnmatr"/>
- <col ref="cmt"/>
- </datagrid>
- </case>
- </switch>
- </group>
- <group id="group5" style="left:0; top:12; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- misfGridRowStatusChange(grd_settst,"/root/main/list/goodset" ,"/root/main/goodset");
- model.setValue(grd_settst.nodeset + "[" + (grd_settst.row - grd_settst.fixedRows + 1)+ "]/goodcd", grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
- model.refresh();
- misfSave("TXRSC00210");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- model.resetInstanceNode("/root/main/goodset/goodsettstlist");
- submit("TRRSC00210");
- if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
- model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
- grd_settst.row = grd_settst.fixedRows;
- swt_select.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button29" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|